]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
36c142dad4b56baf1217d478ae159d1b0201a0bd
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$lt_ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 ECHO=${lt_ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $ECHO works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<_LT_EOF
582 $*
583 _LT_EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$lt_ECHO"; then
592   if test "X${echo_test_string+set}" != Xset; then
593     # find a string as large as possible, as long as the shell can cope with it
594     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598       then
599         break
600       fi
601     done
602   fi
603
604   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606      test "X$echo_testing_string" = "X$echo_test_string"; then
607     :
608   else
609     # The Solaris, AIX, and Digital Unix default echo programs unquote
610     # backslashes.  This makes it impossible to quote backslashes using
611     #   echo "$something" | sed 's/\\/\\\\/g'
612     #
613     # So, first we look for a working echo in the user's PATH.
614
615     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616     for dir in $PATH /usr/ucb; do
617       IFS="$lt_save_ifs"
618       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621          test "X$echo_testing_string" = "X$echo_test_string"; then
622         ECHO="$dir/echo"
623         break
624       fi
625     done
626     IFS="$lt_save_ifs"
627
628     if test "X$ECHO" = Xecho; then
629       # We didn't find a better echo, so look for alternatives.
630       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632          test "X$echo_testing_string" = "X$echo_test_string"; then
633         # This shell has a builtin print -r that does the trick.
634         ECHO='print -r'
635       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636            test "X$CONFIG_SHELL" != X/bin/ksh; then
637         # If we have ksh, try running configure again with it.
638         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639         export ORIGINAL_CONFIG_SHELL
640         CONFIG_SHELL=/bin/ksh
641         export CONFIG_SHELL
642         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643       else
644         # Try using printf.
645         ECHO='printf %s\n'
646         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648            test "X$echo_testing_string" = "X$echo_test_string"; then
649           # Cool, printf works
650           :
651         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652              test "X$echo_testing_string" = 'X\t' &&
653              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654              test "X$echo_testing_string" = "X$echo_test_string"; then
655           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656           export CONFIG_SHELL
657           SHELL="$CONFIG_SHELL"
658           export SHELL
659           ECHO="$CONFIG_SHELL $0 --fallback-echo"
660         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661              test "X$echo_testing_string" = 'X\t' &&
662              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663              test "X$echo_testing_string" = "X$echo_test_string"; then
664           ECHO="$CONFIG_SHELL $0 --fallback-echo"
665         else
666           # maybe with a smaller string...
667           prev=:
668
669           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671             then
672               break
673             fi
674             prev="$cmd"
675           done
676
677           if test "$prev" != 'sed 50q "$0"'; then
678             echo_test_string=`eval $prev`
679             export echo_test_string
680             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681           else
682             # Oops.  We lost completely, so just stick with echo.
683             ECHO=echo
684           fi
685         fi
686       fi
687     fi
688   fi
689 fi
690
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 lt_ECHO=$ECHO
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696 fi
697
698
699
700
701 exec 7<&0 </dev/null 6>&1
702
703 # Name of the host.
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
707
708 #
709 # Initializations.
710 #
711 ac_default_prefix=/usr/local
712 ac_clean_files=
713 ac_config_libobj_dir=.
714 LIBOBJS=
715 cross_compiling=no
716 subdirs=
717 MFLAGS=
718 MAKEFLAGS=
719 SHELL=${CONFIG_SHELL-/bin/sh}
720
721 # Identity of this package.
722 PACKAGE_NAME=
723 PACKAGE_TARNAME=
724 PACKAGE_VERSION=
725 PACKAGE_STRING=
726 PACKAGE_BUGREPORT=
727
728 ac_unique_file="src/version.h"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
731 #include <stdio.h>
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
734 #endif
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
737 #endif
738 #ifdef STDC_HEADERS
739 # include <stdlib.h>
740 # include <stddef.h>
741 #else
742 # ifdef HAVE_STDLIB_H
743 #  include <stdlib.h>
744 # endif
745 #endif
746 #ifdef HAVE_STRING_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 #  include <memory.h>
749 # endif
750 # include <string.h>
751 #endif
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
754 #endif
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
757 #endif
758 #ifdef HAVE_STDINT_H
759 # include <stdint.h>
760 #endif
761 #ifdef HAVE_UNISTD_H
762 # include <unistd.h>
763 #endif"
764
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 BUILD_DIR
803 TOP_DIR
804 WIN32BUILDDIR
805 WIN32MAINDIR
806 WIN32TOPDIR
807 TRUEPRG
808 FALSEPRG
809 VERSION
810 DATE
811 LSMDATE
812 BACULA
813 post_host
814 CC
815 CFLAGS
816 LDFLAGS
817 CPPFLAGS
818 ac_ct_CC
819 EXEEXT
820 OBJEXT
821 CXX
822 CXXFLAGS
823 ac_ct_CXX
824 CPP
825 GREP
826 EGREP
827 INSTALL_PROGRAM
828 INSTALL_SCRIPT
829 INSTALL_DATA
830 MV
831 REMOVE
832 CP
833 SED
834 ECHO
835 CMP
836 TBL
837 AR
838 OPENSSL
839 MTX
840 DD
841 MKISOFS
842 PYTHON
843 GROWISOFS
844 DVDRWMEDIAINFO
845 DVDRWFORMAT
846 PKGCONFIG
847 QMAKE
848 QMAKEQT4
849 GMAKE
850 WXCONFIG
851 WXFLAGS
852 CDRECORD
853 PIDOF
854 AWK
855 ARFLAGS
856 MAKE_SHELL
857 LOCAL_LIBS
858 LOCAL_CFLAGS
859 LOCAL_LDFLAGS
860 LOCAL_DEFS
861 LIBTOOL
862 build
863 build_cpu
864 build_vendor
865 build_os
866 host
867 host_cpu
868 host_vendor
869 host_os
870 FGREP
871 LD
872 DUMPBIN
873 ac_ct_DUMPBIN
874 NM
875 LN_S
876 OBJDUMP
877 STRIP
878 RANLIB
879 lt_ECHO
880 DSYMUTIL
881 NMEDIT
882 LIPO
883 OTOOL
884 OTOOL64
885 CXXCPP
886 DEFAULT_OBJECT_TYPE
887 DEFAULT_ARCHIVE_TYPE
888 DEFAULT_SHARED_OBJECT_TYPE
889 LIBTOOL_INSTALL_TARGET
890 LIBTOOL_UNINSTALL_TARGET
891 LIBTOOL_CLEAN_TARGET
892 QMAKE_LIBTOOL
893 FD_PLUGIN_DIR
894 INCLUDE_INSTALL_TARGET
895 INCLUDE_UNINSTALL_TARGET
896 HAVE_SUN_OS_TRUE
897 HAVE_SUN_OS_FALSE
898 HAVE_OSF1_OS_TRUE
899 HAVE_OSF1_OS_FALSE
900 HAVE_AIX_OS_TRUE
901 HAVE_AIX_OS_FALSE
902 HAVE_HPUX_OS_TRUE
903 HAVE_HPUX_OS_FALSE
904 HAVE_LINUX_OS_TRUE
905 HAVE_LINUX_OS_FALSE
906 HAVE_FREEBSD_OS_TRUE
907 HAVE_FREEBSD_OS_FALSE
908 HAVE_NETBSD_OS_TRUE
909 HAVE_NETBSD_OS_FALSE
910 HAVE_OPENBSD_OS_TRUE
911 HAVE_OPENBSD_OS_FALSE
912 HAVE_BSDI_OS_TRUE
913 HAVE_BSDI_OS_FALSE
914 HAVE_SGI_OS_TRUE
915 HAVE_SGI_OS_FALSE
916 HAVE_IRIX_OS_TRUE
917 HAVE_IRIX_OS_FALSE
918 HAVE_DARWIN_OS_TRUE
919 HAVE_DARWIN_OS_FALSE
920 SET_MAKE
921 MKINSTALLDIRS
922 USE_NLS
923 MSGFMT
924 GMSGFMT
925 XGETTEXT
926 MSGMERGE
927 INTL_MACOSX_LIBS
928 LIBICONV
929 LTLIBICONV
930 INTLLIBS
931 LIBINTL
932 LTLIBINTL
933 POSUB
934 GLIBC2
935 ALLOCA
936 GLIBC21
937 HAVE_POSIX_PRINTF
938 HAVE_ASPRINTF
939 HAVE_SNPRINTF
940 HAVE_WPRINTF
941 INTLBISON
942 BUILD_INCLUDED_LIBINTL
943 USE_INCLUDED_LIBINTL
944 CATOBJEXT
945 DATADIRNAME
946 INSTOBJEXT
947 GENCAT
948 INTLOBJS
949 INTL_LIBTOOL_SUFFIX_PREFIX
950 BAT_DIR
951 QWT_INC
952 QWT_LDFLAGS
953 QWT_LIB
954 QWT
955 WXCONS_CPPFLAGS
956 WXCONS_LDFLAGS
957 WX_DIR
958 TRAY_MONITOR_CPPFLAGS
959 TRAY_MONITOR_LDFLAGS
960 TRAY_MONITOR_DIR
961 TTOOL_LDFLAGS
962 STATIC_FD
963 STATIC_SD
964 STATIC_DIR
965 STATIC_CONS
966 STATIC_GNOME_CONS
967 STATIC_WX_CONS
968 ALL_DIRS
969 DIRD_DIR
970 DIR_TOOLS
971 STORED_DIR
972 CONS_INC
973 CONS_OBJ
974 CONS_SRC
975 CONS_LIBS
976 CONS_LDFLAGS
977 READLINE_SRC
978 PYTHON_LIBS
979 PYTHON_INCDIR
980 OPENSSL_LIBS
981 OPENSSL_INC
982 working_dir
983 archivedir
984 basename
985 hostname
986 scriptdir
987 bsrdir
988 logdir
989 plugindir
990 dump_email
991 job_email
992 smtp_host
993 piddir
994 subsysdir
995 baseport
996 dir_port
997 fd_port
998 sd_port
999 dir_password
1000 fd_password
1001 sd_password
1002 mon_dir_password
1003 mon_fd_password
1004 mon_sd_password
1005 db_name
1006 db_user
1007 db_password
1008 db_port
1009 dir_user
1010 dir_group
1011 sd_user
1012 sd_group
1013 fd_user
1014 fd_group
1015 SBINPERM
1016 SQL_LFLAGS
1017 SQL_INCLUDE
1018 SQL_BINDIR
1019 DBI_DBD_DRIVERDIR
1020 uncomment_dbi
1021 DB_PROG
1022 DB_PROG_LIB
1023 cats
1024 DB_TYPE
1025 GETCONF
1026 XMKMF
1027 X_CFLAGS
1028 X_PRE_LIBS
1029 X_LIBS
1030 X_EXTRA_LIBS
1031 LIBOBJS
1032 CAP_LIBS
1033 FDLIBS
1034 DEBUG
1035 DINCLUDE
1036 DLIB
1037 DB_LIBS
1038 WCFLAGS
1039 WLDFLAGS
1040 WRAPLIBS
1041 OBJLIST
1042 TAPEDRIVE
1043 PSCMD
1044 WIN32
1045 MACOSX
1046 DISTNAME
1047 DISTVER
1048 LTLIBOBJS'
1049 ac_subst_files='MCOMMON'
1050       ac_precious_vars='build_alias
1051 host_alias
1052 target_alias
1053 CC
1054 CFLAGS
1055 LDFLAGS
1056 LIBS
1057 CPPFLAGS
1058 CXX
1059 CXXFLAGS
1060 CCC
1061 CPP
1062 WXCONFIG
1063 WXFLAGS
1064 CXXCPP
1065 XMKMF'
1066
1067
1068 # Initialize some variables set by options.
1069 ac_init_help=
1070 ac_init_version=false
1071 # The variables have the same names as the options, with
1072 # dashes changed to underlines.
1073 cache_file=/dev/null
1074 exec_prefix=NONE
1075 no_create=
1076 no_recursion=
1077 prefix=NONE
1078 program_prefix=NONE
1079 program_suffix=NONE
1080 program_transform_name=s,x,x,
1081 silent=
1082 site=
1083 srcdir=
1084 verbose=
1085 x_includes=NONE
1086 x_libraries=NONE
1087
1088 # Installation directory options.
1089 # These are left unexpanded so users can "make install exec_prefix=/foo"
1090 # and all the variables that are supposed to be based on exec_prefix
1091 # by default will actually change.
1092 # Use braces instead of parens because sh, perl, etc. also accept them.
1093 # (The list follows the same order as the GNU Coding Standards.)
1094 bindir='${exec_prefix}/bin'
1095 sbindir='${exec_prefix}/sbin'
1096 libexecdir='${exec_prefix}/libexec'
1097 datarootdir='${prefix}/share'
1098 datadir='${datarootdir}'
1099 sysconfdir='${prefix}/etc'
1100 sharedstatedir='${prefix}/com'
1101 localstatedir='${prefix}/var'
1102 includedir='${prefix}/include'
1103 oldincludedir='/usr/include'
1104 docdir='${datarootdir}/doc/${PACKAGE}'
1105 infodir='${datarootdir}/info'
1106 htmldir='${docdir}'
1107 dvidir='${docdir}'
1108 pdfdir='${docdir}'
1109 psdir='${docdir}'
1110 libdir='${exec_prefix}/lib'
1111 localedir='${datarootdir}/locale'
1112 mandir='${datarootdir}/man'
1113
1114 ac_prev=
1115 ac_dashdash=
1116 for ac_option
1117 do
1118   # If the previous option needs an argument, assign it.
1119   if test -n "$ac_prev"; then
1120     eval $ac_prev=\$ac_option
1121     ac_prev=
1122     continue
1123   fi
1124
1125   case $ac_option in
1126   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1127   *)    ac_optarg=yes ;;
1128   esac
1129
1130   # Accept the important Cygnus configure options, so we can diagnose typos.
1131
1132   case $ac_dashdash$ac_option in
1133   --)
1134     ac_dashdash=yes ;;
1135
1136   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1137     ac_prev=bindir ;;
1138   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1139     bindir=$ac_optarg ;;
1140
1141   -build | --build | --buil | --bui | --bu)
1142     ac_prev=build_alias ;;
1143   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1144     build_alias=$ac_optarg ;;
1145
1146   -cache-file | --cache-file | --cache-fil | --cache-fi \
1147   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1148     ac_prev=cache_file ;;
1149   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1150   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1151     cache_file=$ac_optarg ;;
1152
1153   --config-cache | -C)
1154     cache_file=config.cache ;;
1155
1156   -datadir | --datadir | --datadi | --datad)
1157     ac_prev=datadir ;;
1158   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1159     datadir=$ac_optarg ;;
1160
1161   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1162   | --dataroo | --dataro | --datar)
1163     ac_prev=datarootdir ;;
1164   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1165   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1166     datarootdir=$ac_optarg ;;
1167
1168   -disable-* | --disable-*)
1169     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1170     # Reject names that are not valid shell variable names.
1171     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1173    { (exit 1); exit 1; }; }
1174     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1175     eval enable_$ac_feature=no ;;
1176
1177   -docdir | --docdir | --docdi | --doc | --do)
1178     ac_prev=docdir ;;
1179   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1180     docdir=$ac_optarg ;;
1181
1182   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1183     ac_prev=dvidir ;;
1184   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1185     dvidir=$ac_optarg ;;
1186
1187   -enable-* | --enable-*)
1188     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1189     # Reject names that are not valid shell variable names.
1190     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1192    { (exit 1); exit 1; }; }
1193     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1194     eval enable_$ac_feature=\$ac_optarg ;;
1195
1196   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1197   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1198   | --exec | --exe | --ex)
1199     ac_prev=exec_prefix ;;
1200   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1201   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1202   | --exec=* | --exe=* | --ex=*)
1203     exec_prefix=$ac_optarg ;;
1204
1205   -gas | --gas | --ga | --g)
1206     # Obsolete; use --with-gas.
1207     with_gas=yes ;;
1208
1209   -help | --help | --hel | --he | -h)
1210     ac_init_help=long ;;
1211   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1212     ac_init_help=recursive ;;
1213   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1214     ac_init_help=short ;;
1215
1216   -host | --host | --hos | --ho)
1217     ac_prev=host_alias ;;
1218   -host=* | --host=* | --hos=* | --ho=*)
1219     host_alias=$ac_optarg ;;
1220
1221   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1222     ac_prev=htmldir ;;
1223   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1224   | --ht=*)
1225     htmldir=$ac_optarg ;;
1226
1227   -includedir | --includedir | --includedi | --included | --include \
1228   | --includ | --inclu | --incl | --inc)
1229     ac_prev=includedir ;;
1230   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1231   | --includ=* | --inclu=* | --incl=* | --inc=*)
1232     includedir=$ac_optarg ;;
1233
1234   -infodir | --infodir | --infodi | --infod | --info | --inf)
1235     ac_prev=infodir ;;
1236   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1237     infodir=$ac_optarg ;;
1238
1239   -libdir | --libdir | --libdi | --libd)
1240     ac_prev=libdir ;;
1241   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1242     libdir=$ac_optarg ;;
1243
1244   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1245   | --libexe | --libex | --libe)
1246     ac_prev=libexecdir ;;
1247   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1248   | --libexe=* | --libex=* | --libe=*)
1249     libexecdir=$ac_optarg ;;
1250
1251   -localedir | --localedir | --localedi | --localed | --locale)
1252     ac_prev=localedir ;;
1253   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1254     localedir=$ac_optarg ;;
1255
1256   -localstatedir | --localstatedir | --localstatedi | --localstated \
1257   | --localstate | --localstat | --localsta | --localst | --locals)
1258     ac_prev=localstatedir ;;
1259   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1260   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1261     localstatedir=$ac_optarg ;;
1262
1263   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1264     ac_prev=mandir ;;
1265   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1266     mandir=$ac_optarg ;;
1267
1268   -nfp | --nfp | --nf)
1269     # Obsolete; use --without-fp.
1270     with_fp=no ;;
1271
1272   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1273   | --no-cr | --no-c | -n)
1274     no_create=yes ;;
1275
1276   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1277   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1278     no_recursion=yes ;;
1279
1280   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1281   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1282   | --oldin | --oldi | --old | --ol | --o)
1283     ac_prev=oldincludedir ;;
1284   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1285   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1286   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1287     oldincludedir=$ac_optarg ;;
1288
1289   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1290     ac_prev=prefix ;;
1291   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1292     prefix=$ac_optarg ;;
1293
1294   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1295   | --program-pre | --program-pr | --program-p)
1296     ac_prev=program_prefix ;;
1297   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1298   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1299     program_prefix=$ac_optarg ;;
1300
1301   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1302   | --program-suf | --program-su | --program-s)
1303     ac_prev=program_suffix ;;
1304   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1305   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1306     program_suffix=$ac_optarg ;;
1307
1308   -program-transform-name | --program-transform-name \
1309   | --program-transform-nam | --program-transform-na \
1310   | --program-transform-n | --program-transform- \
1311   | --program-transform | --program-transfor \
1312   | --program-transfo | --program-transf \
1313   | --program-trans | --program-tran \
1314   | --progr-tra | --program-tr | --program-t)
1315     ac_prev=program_transform_name ;;
1316   -program-transform-name=* | --program-transform-name=* \
1317   | --program-transform-nam=* | --program-transform-na=* \
1318   | --program-transform-n=* | --program-transform-=* \
1319   | --program-transform=* | --program-transfor=* \
1320   | --program-transfo=* | --program-transf=* \
1321   | --program-trans=* | --program-tran=* \
1322   | --progr-tra=* | --program-tr=* | --program-t=*)
1323     program_transform_name=$ac_optarg ;;
1324
1325   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1326     ac_prev=pdfdir ;;
1327   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1328     pdfdir=$ac_optarg ;;
1329
1330   -psdir | --psdir | --psdi | --psd | --ps)
1331     ac_prev=psdir ;;
1332   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1333     psdir=$ac_optarg ;;
1334
1335   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1336   | -silent | --silent | --silen | --sile | --sil)
1337     silent=yes ;;
1338
1339   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1340     ac_prev=sbindir ;;
1341   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1342   | --sbi=* | --sb=*)
1343     sbindir=$ac_optarg ;;
1344
1345   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1346   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1347   | --sharedst | --shareds | --shared | --share | --shar \
1348   | --sha | --sh)
1349     ac_prev=sharedstatedir ;;
1350   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1351   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1352   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1353   | --sha=* | --sh=*)
1354     sharedstatedir=$ac_optarg ;;
1355
1356   -site | --site | --sit)
1357     ac_prev=site ;;
1358   -site=* | --site=* | --sit=*)
1359     site=$ac_optarg ;;
1360
1361   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1362     ac_prev=srcdir ;;
1363   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1364     srcdir=$ac_optarg ;;
1365
1366   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1367   | --syscon | --sysco | --sysc | --sys | --sy)
1368     ac_prev=sysconfdir ;;
1369   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1370   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1371     sysconfdir=$ac_optarg ;;
1372
1373   -target | --target | --targe | --targ | --tar | --ta | --t)
1374     ac_prev=target_alias ;;
1375   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1376     target_alias=$ac_optarg ;;
1377
1378   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1379     verbose=yes ;;
1380
1381   -version | --version | --versio | --versi | --vers | -V)
1382     ac_init_version=: ;;
1383
1384   -with-* | --with-*)
1385     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1386     # Reject names that are not valid shell variable names.
1387     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1388       { echo "$as_me: error: invalid package name: $ac_package" >&2
1389    { (exit 1); exit 1; }; }
1390     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1391     eval with_$ac_package=\$ac_optarg ;;
1392
1393   -without-* | --without-*)
1394     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1395     # Reject names that are not valid shell variable names.
1396     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1397       { echo "$as_me: error: invalid package name: $ac_package" >&2
1398    { (exit 1); exit 1; }; }
1399     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1400     eval with_$ac_package=no ;;
1401
1402   --x)
1403     # Obsolete; use --with-x.
1404     with_x=yes ;;
1405
1406   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1407   | --x-incl | --x-inc | --x-in | --x-i)
1408     ac_prev=x_includes ;;
1409   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1410   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1411     x_includes=$ac_optarg ;;
1412
1413   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1414   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1415     ac_prev=x_libraries ;;
1416   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1417   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1418     x_libraries=$ac_optarg ;;
1419
1420   -*) { echo "$as_me: error: unrecognized option: $ac_option
1421 Try \`$0 --help' for more information." >&2
1422    { (exit 1); exit 1; }; }
1423     ;;
1424
1425   *=*)
1426     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1427     # Reject names that are not valid shell variable names.
1428     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1429       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1430    { (exit 1); exit 1; }; }
1431     eval $ac_envvar=\$ac_optarg
1432     export $ac_envvar ;;
1433
1434   *)
1435     # FIXME: should be removed in autoconf 3.0.
1436     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1437     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1438       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1439     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1440     ;;
1441
1442   esac
1443 done
1444
1445 if test -n "$ac_prev"; then
1446   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1447   { echo "$as_me: error: missing argument to $ac_option" >&2
1448    { (exit 1); exit 1; }; }
1449 fi
1450
1451 # Be sure to have absolute directory names.
1452 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1453                 datadir sysconfdir sharedstatedir localstatedir includedir \
1454                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1455                 libdir localedir mandir
1456 do
1457   eval ac_val=\$$ac_var
1458   case $ac_val in
1459     [\\/$]* | ?:[\\/]* )  continue;;
1460     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1461   esac
1462   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1463    { (exit 1); exit 1; }; }
1464 done
1465
1466 # There might be people who depend on the old broken behavior: `$host'
1467 # used to hold the argument of --host etc.
1468 # FIXME: To remove some day.
1469 build=$build_alias
1470 host=$host_alias
1471 target=$target_alias
1472
1473 # FIXME: To remove some day.
1474 if test "x$host_alias" != x; then
1475   if test "x$build_alias" = x; then
1476     cross_compiling=maybe
1477     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1478     If a cross compiler is detected then cross compile mode will be used." >&2
1479   elif test "x$build_alias" != "x$host_alias"; then
1480     cross_compiling=yes
1481   fi
1482 fi
1483
1484 ac_tool_prefix=
1485 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1486
1487 test "$silent" = yes && exec 6>/dev/null
1488
1489
1490 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1491 ac_ls_di=`ls -di .` &&
1492 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1493   { echo "$as_me: error: Working directory cannot be determined" >&2
1494    { (exit 1); exit 1; }; }
1495 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1496   { echo "$as_me: error: pwd does not report name of working directory" >&2
1497    { (exit 1); exit 1; }; }
1498
1499
1500 # Find the source files, if location was not specified.
1501 if test -z "$srcdir"; then
1502   ac_srcdir_defaulted=yes
1503   # Try the directory containing this script, then the parent directory.
1504   ac_confdir=`$as_dirname -- "$0" ||
1505 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1506          X"$0" : 'X\(//\)[^/]' \| \
1507          X"$0" : 'X\(//\)$' \| \
1508          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1509 echo X"$0" |
1510     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1511             s//\1/
1512             q
1513           }
1514           /^X\(\/\/\)[^/].*/{
1515             s//\1/
1516             q
1517           }
1518           /^X\(\/\/\)$/{
1519             s//\1/
1520             q
1521           }
1522           /^X\(\/\).*/{
1523             s//\1/
1524             q
1525           }
1526           s/.*/./; q'`
1527   srcdir=$ac_confdir
1528   if test ! -r "$srcdir/$ac_unique_file"; then
1529     srcdir=..
1530   fi
1531 else
1532   ac_srcdir_defaulted=no
1533 fi
1534 if test ! -r "$srcdir/$ac_unique_file"; then
1535   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1536   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1537    { (exit 1); exit 1; }; }
1538 fi
1539 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1540 ac_abs_confdir=`(
1541         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1542    { (exit 1); exit 1; }; }
1543         pwd)`
1544 # When building in place, set srcdir=.
1545 if test "$ac_abs_confdir" = "$ac_pwd"; then
1546   srcdir=.
1547 fi
1548 # Remove unnecessary trailing slashes from srcdir.
1549 # Double slashes in file names in object file debugging info
1550 # mess up M-x gdb in Emacs.
1551 case $srcdir in
1552 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1553 esac
1554 for ac_var in $ac_precious_vars; do
1555   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1556   eval ac_env_${ac_var}_value=\$${ac_var}
1557   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1558   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1559 done
1560
1561 #
1562 # Report the --help message.
1563 #
1564 if test "$ac_init_help" = "long"; then
1565   # Omit some internal or obsolete options to make the list less imposing.
1566   # This message is too long to be a string in the A/UX 3.1 sh.
1567   cat <<_ACEOF
1568 \`configure' configures this package to adapt to many kinds of systems.
1569
1570 Usage: $0 [OPTION]... [VAR=VALUE]...
1571
1572 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1573 VAR=VALUE.  See below for descriptions of some of the useful variables.
1574
1575 Defaults for the options are specified in brackets.
1576
1577 Configuration:
1578   -h, --help              display this help and exit
1579       --help=short        display options specific to this package
1580       --help=recursive    display the short help of all the included packages
1581   -V, --version           display version information and exit
1582   -q, --quiet, --silent   do not print \`checking...' messages
1583       --cache-file=FILE   cache test results in FILE [disabled]
1584   -C, --config-cache      alias for \`--cache-file=config.cache'
1585   -n, --no-create         do not create output files
1586       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1587
1588 Installation directories:
1589   --prefix=PREFIX         install architecture-independent files in PREFIX
1590                           [$ac_default_prefix]
1591   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1592                           [PREFIX]
1593
1594 By default, \`make install' will install all the files in
1595 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1596 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1597 for instance \`--prefix=\$HOME'.
1598
1599 For better control, use the options below.
1600
1601 Fine tuning of the installation directories:
1602   --bindir=DIR           user executables [EPREFIX/bin]
1603   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1604   --libexecdir=DIR       program executables [EPREFIX/libexec]
1605   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1606   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1607   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1608   --libdir=DIR           object code libraries [EPREFIX/lib]
1609   --includedir=DIR       C header files [PREFIX/include]
1610   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1611   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1612   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1613   --infodir=DIR          info documentation [DATAROOTDIR/info]
1614   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1615   --mandir=DIR           man documentation [DATAROOTDIR/man]
1616   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1617   --htmldir=DIR          html documentation [DOCDIR]
1618   --dvidir=DIR           dvi documentation [DOCDIR]
1619   --pdfdir=DIR           pdf documentation [DOCDIR]
1620   --psdir=DIR            ps documentation [DOCDIR]
1621 _ACEOF
1622
1623   cat <<\_ACEOF
1624
1625 X features:
1626   --x-includes=DIR    X include files are in DIR
1627   --x-libraries=DIR   X library files are in DIR
1628
1629 System types:
1630   --build=BUILD     configure for building on BUILD [guessed]
1631   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1632 _ACEOF
1633 fi
1634
1635 if test -n "$ac_init_help"; then
1636
1637   cat <<\_ACEOF
1638
1639 Optional Features:
1640   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1641   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1642   --enable-libtool        enable building using GNU libtool [default=yes]
1643   --enable-shared[=PKGS]  build shared libraries [default=yes]
1644   --enable-static[=PKGS]  build static libraries [default=no]
1645   --enable-fast-install[=PKGS]
1646                           optimize for fast installation [default=yes]
1647   --disable-libtool-lock  avoid locking (might break parallel builds)
1648   --enable-includes       enable installing of include files [default=no]
1649   --disable-nls           do not use Native Language Support
1650   --disable-rpath         do not hardcode runtime library paths
1651   --enable-gnome          enable build of bgnome-console GUI [default=no]
1652   --enable-bat            enable build of bat Qt4 GUI [default=no]
1653   --enable-bwx-console    enable build of wxWidgets console [default=no]
1654   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1655                           KDE [default=no]
1656   --enable-smartalloc     enable smartalloc debugging support [default=no]
1657   --enable-lockmgr        enable lock manager support [default=no]
1658   --enable-static-tools   enable static tape tools [default=no]
1659   --enable-static-fd      enable static File daemon [default=no]
1660   --enable-static-sd      enable static Storage daemon [default=no]
1661   --enable-static-dir     enable static Director [default=no]
1662   --enable-static-cons    enable static Console [default=no]
1663   --enable-client-only    build client (File daemon) only [default=no]
1664   --enable-build-dird     enable building of dird (Director) [default=yes]
1665   --enable-build-stored   enable building of stored (Storage daemon)
1666                           [default=yes]
1667   --disable-conio         disable conio support [default=no]
1668   --enable-ipv6           enable ipv6 support [default=yes]
1669   --disable-readline      disable readline support [default=yes]
1670   --enable-batch-insert   enable the DB batch insert code [default=no]
1671   --disable-largefile     omit support for large files
1672   --disable-acl           disable acl support [default=auto]
1673   --disable-xattr         disable xattr support [default=auto]
1674
1675 Optional Packages:
1676   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1677   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1678   --with-pic              try to use only PIC/non-PIC objects [default=use
1679                           both]
1680   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1681   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1682   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1683   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1684   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1685   --without-libintl-prefix     don't search for libintl in includedir and libdir
1686   --with-included-gettext use the GNU gettext library included here
1687   --with-qwt[=DIR]        specify qwt library directory
1688   --with-readline[=DIR]   specify readline library directory
1689   --with-python[=DIR]     Include Python support. DIR is the Python base
1690                           install directory, default is to search through a
1691                           number of common places for the Python files.
1692   --with-tcp-wrappers[=DIR]
1693                           enable tcpwrappers support
1694   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1695   --with-working-dir=PATH specify path of Bacula working directory
1696   --with-archivedir=PATH  specify path of SD archive directory
1697   --with-basename=RESNAME specify base resource name for daemons
1698   --with-hostname=RESNAME specify host name for daemons
1699   --with-scriptdir=PATH   specify path of Bacula scripts directory
1700   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1701   --with-logdir=PATH      specify path of Bacula logs directory
1702   --with-plugindir=PATH   specify path of Bacula plugins directory
1703   --with-dump-email=EMAIL dump email address
1704   --with-job-email=EMAIL  job output email address
1705   --with-smtp-host=HOST   SMTP mail host address
1706   --with-pid-dir=PATH     specify location of Bacula pid files
1707   --with-subsys-dir=PATH  specify location of Bacula subsys file
1708   --with-baseport=PORT    specify base port address for daemons
1709   --with-dir-password=PASSWORD
1710                           specify Director's password
1711   --with-fd-password=PASSWORD
1712                           specify Client's password
1713   --with-sd-password=PASSWORD
1714                           specify Storage daemon's password
1715   --with-mon-dir-password=PASSWORD
1716                           specify Director's password used by the monitor
1717   --with-mon-fd-password=PASSWORD
1718                           specify Client's password used by the monitor
1719   --with-mon-sd-password=PASSWORD
1720                           specify Storage daemon's password used by the
1721                           monitor
1722   --with-db-name=DBNAME   specify database name [default=bacula]
1723   --with-db-user=UNAME    specify database user [default=bacula]
1724   --with-db-password=PWD  specify database password [default=*none*]
1725   --with-db-port=DBPORT   specify a database port [default=null]
1726   --with-dir-user=USER    specify user for Director daemon
1727   --with-dir-group=GROUP  specify group for Director daemon
1728   --with-sd-user=USER     specify user for Storage daemon
1729   --with-sd-group=GROUP   specify group for Storage daemon
1730   --with-fd-user=USER     specify user for File daemon
1731   --with-fd-group=GROUP   specify group for File daemon
1732   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0754]
1733   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1734                           base install directory, [default=/usr/local/pgsql]
1735   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1736                           directory, default is to search through a number of
1737                           common places for the MySQL files.
1738   --with-embedded-mysql[=DIR]
1739                           Include MySQL support. DIR is the MySQL base install
1740                           directory, default is to search through a number of
1741                           common places for the MySQL files.
1742   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1743                           install directory, default is to search through a
1744                           number of common places for the SQLite3 files.
1745   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1746                           directory, default is to search through a number of
1747                           common places for the DBI files.
1748   --with-dbi-driver[=DRIVER]
1749                           Suport for DBI driver. DRIVER is the one DBI driver
1750                           like Mysql, Postgresql, others. Default is to not
1751                           configure any driver.
1752   --with-x                use the X Window System
1753
1754 Some influential environment variables:
1755   CC          C compiler command
1756   CFLAGS      C compiler flags
1757   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1758               nonstandard directory <lib dir>
1759   LIBS        libraries to pass to the linker, e.g. -l<library>
1760   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1761               you have headers in a nonstandard directory <include dir>
1762   CXX         C++ compiler command
1763   CXXFLAGS    C++ compiler flags
1764   CPP         C preprocessor
1765   WXCONFIG    wx-config command. On some systems, you must set it to
1766               wx-config-2.6 to use wxWidgets 2.6.
1767   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1768   CXXCPP      C++ preprocessor
1769   XMKMF       Path to xmkmf, Makefile generator for X Window System
1770
1771 Use these variables to override the choices made by `configure' or to help
1772 it to find libraries and programs with nonstandard names/locations.
1773
1774 _ACEOF
1775 ac_status=$?
1776 fi
1777
1778 if test "$ac_init_help" = "recursive"; then
1779   # If there are subdirs, report their specific --help.
1780   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1781     test -d "$ac_dir" || continue
1782     ac_builddir=.
1783
1784 case "$ac_dir" in
1785 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1786 *)
1787   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1788   # A ".." for each directory in $ac_dir_suffix.
1789   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1790   case $ac_top_builddir_sub in
1791   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1792   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1793   esac ;;
1794 esac
1795 ac_abs_top_builddir=$ac_pwd
1796 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1797 # for backward compatibility:
1798 ac_top_builddir=$ac_top_build_prefix
1799
1800 case $srcdir in
1801   .)  # We are building in place.
1802     ac_srcdir=.
1803     ac_top_srcdir=$ac_top_builddir_sub
1804     ac_abs_top_srcdir=$ac_pwd ;;
1805   [\\/]* | ?:[\\/]* )  # Absolute name.
1806     ac_srcdir=$srcdir$ac_dir_suffix;
1807     ac_top_srcdir=$srcdir
1808     ac_abs_top_srcdir=$srcdir ;;
1809   *) # Relative name.
1810     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1811     ac_top_srcdir=$ac_top_build_prefix$srcdir
1812     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1813 esac
1814 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1815
1816     cd "$ac_dir" || { ac_status=$?; continue; }
1817     # Check for guested configure.
1818     if test -f "$ac_srcdir/configure.gnu"; then
1819       echo &&
1820       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1821     elif test -f "$ac_srcdir/configure"; then
1822       echo &&
1823       $SHELL "$ac_srcdir/configure" --help=recursive
1824     else
1825       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1826     fi || ac_status=$?
1827     cd "$ac_pwd" || { ac_status=$?; break; }
1828   done
1829 fi
1830
1831 test -n "$ac_init_help" && exit $ac_status
1832 if $ac_init_version; then
1833   cat <<\_ACEOF
1834 configure
1835 generated by GNU Autoconf 2.61
1836
1837 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1838 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1839 This configure script is free software; the Free Software Foundation
1840 gives unlimited permission to copy, distribute and modify it.
1841 _ACEOF
1842   exit
1843 fi
1844 cat >config.log <<_ACEOF
1845 This file contains any messages produced by compilers while
1846 running configure, to aid debugging if configure makes a mistake.
1847
1848 It was created by $as_me, which was
1849 generated by GNU Autoconf 2.61.  Invocation command line was
1850
1851   $ $0 $@
1852
1853 _ACEOF
1854 exec 5>>config.log
1855 {
1856 cat <<_ASUNAME
1857 ## --------- ##
1858 ## Platform. ##
1859 ## --------- ##
1860
1861 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1862 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1863 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1864 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1865 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1866
1867 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1868 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1869
1870 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1871 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1872 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1873 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1874 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1875 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1876 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1877
1878 _ASUNAME
1879
1880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881 for as_dir in $PATH
1882 do
1883   IFS=$as_save_IFS
1884   test -z "$as_dir" && as_dir=.
1885   echo "PATH: $as_dir"
1886 done
1887 IFS=$as_save_IFS
1888
1889 } >&5
1890
1891 cat >&5 <<_ACEOF
1892
1893
1894 ## ----------- ##
1895 ## Core tests. ##
1896 ## ----------- ##
1897
1898 _ACEOF
1899
1900
1901 # Keep a trace of the command line.
1902 # Strip out --no-create and --no-recursion so they do not pile up.
1903 # Strip out --silent because we don't want to record it for future runs.
1904 # Also quote any args containing shell meta-characters.
1905 # Make two passes to allow for proper duplicate-argument suppression.
1906 ac_configure_args=
1907 ac_configure_args0=
1908 ac_configure_args1=
1909 ac_must_keep_next=false
1910 for ac_pass in 1 2
1911 do
1912   for ac_arg
1913   do
1914     case $ac_arg in
1915     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1916     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1917     | -silent | --silent | --silen | --sile | --sil)
1918       continue ;;
1919     *\'*)
1920       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1921     esac
1922     case $ac_pass in
1923     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1924     2)
1925       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1926       if test $ac_must_keep_next = true; then
1927         ac_must_keep_next=false # Got value, back to normal.
1928       else
1929         case $ac_arg in
1930           *=* | --config-cache | -C | -disable-* | --disable-* \
1931           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1932           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1933           | -with-* | --with-* | -without-* | --without-* | --x)
1934             case "$ac_configure_args0 " in
1935               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1936             esac
1937             ;;
1938           -* ) ac_must_keep_next=true ;;
1939         esac
1940       fi
1941       ac_configure_args="$ac_configure_args '$ac_arg'"
1942       ;;
1943     esac
1944   done
1945 done
1946 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1947 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1948
1949 # When interrupted or exit'd, cleanup temporary files, and complete
1950 # config.log.  We remove comments because anyway the quotes in there
1951 # would cause problems or look ugly.
1952 # WARNING: Use '\'' to represent an apostrophe within the trap.
1953 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1954 trap 'exit_status=$?
1955   # Save into config.log some information that might help in debugging.
1956   {
1957     echo
1958
1959     cat <<\_ASBOX
1960 ## ---------------- ##
1961 ## Cache variables. ##
1962 ## ---------------- ##
1963 _ASBOX
1964     echo
1965     # The following way of writing the cache mishandles newlines in values,
1966 (
1967   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1968     eval ac_val=\$$ac_var
1969     case $ac_val in #(
1970     *${as_nl}*)
1971       case $ac_var in #(
1972       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1973 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1974       esac
1975       case $ac_var in #(
1976       _ | IFS | as_nl) ;; #(
1977       *) $as_unset $ac_var ;;
1978       esac ;;
1979     esac
1980   done
1981   (set) 2>&1 |
1982     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1983     *${as_nl}ac_space=\ *)
1984       sed -n \
1985         "s/'\''/'\''\\\\'\'''\''/g;
1986           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1987       ;; #(
1988     *)
1989       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1990       ;;
1991     esac |
1992     sort
1993 )
1994     echo
1995
1996     cat <<\_ASBOX
1997 ## ----------------- ##
1998 ## Output variables. ##
1999 ## ----------------- ##
2000 _ASBOX
2001     echo
2002     for ac_var in $ac_subst_vars
2003     do
2004       eval ac_val=\$$ac_var
2005       case $ac_val in
2006       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2007       esac
2008       echo "$ac_var='\''$ac_val'\''"
2009     done | sort
2010     echo
2011
2012     if test -n "$ac_subst_files"; then
2013       cat <<\_ASBOX
2014 ## ------------------- ##
2015 ## File substitutions. ##
2016 ## ------------------- ##
2017 _ASBOX
2018       echo
2019       for ac_var in $ac_subst_files
2020       do
2021         eval ac_val=\$$ac_var
2022         case $ac_val in
2023         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2024         esac
2025         echo "$ac_var='\''$ac_val'\''"
2026       done | sort
2027       echo
2028     fi
2029
2030     if test -s confdefs.h; then
2031       cat <<\_ASBOX
2032 ## ----------- ##
2033 ## confdefs.h. ##
2034 ## ----------- ##
2035 _ASBOX
2036       echo
2037       cat confdefs.h
2038       echo
2039     fi
2040     test "$ac_signal" != 0 &&
2041       echo "$as_me: caught signal $ac_signal"
2042     echo "$as_me: exit $exit_status"
2043   } >&5
2044   rm -f core *.core core.conftest.* &&
2045     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2046     exit $exit_status
2047 ' 0
2048 for ac_signal in 1 2 13 15; do
2049   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2050 done
2051 ac_signal=0
2052
2053 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2054 rm -f -r conftest* confdefs.h
2055
2056 # Predefined preprocessor variables.
2057
2058 cat >>confdefs.h <<_ACEOF
2059 #define PACKAGE_NAME "$PACKAGE_NAME"
2060 _ACEOF
2061
2062
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2065 _ACEOF
2066
2067
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2070 _ACEOF
2071
2072
2073 cat >>confdefs.h <<_ACEOF
2074 #define PACKAGE_STRING "$PACKAGE_STRING"
2075 _ACEOF
2076
2077
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2080 _ACEOF
2081
2082
2083 # Let the site file select an alternate cache file if it wants to.
2084 # Prefer explicitly selected file to automatically selected ones.
2085 if test -n "$CONFIG_SITE"; then
2086   set x "$CONFIG_SITE"
2087 elif test "x$prefix" != xNONE; then
2088   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2089 else
2090   set x "$ac_default_prefix/share/config.site" \
2091         "$ac_default_prefix/etc/config.site"
2092 fi
2093 shift
2094 for ac_site_file
2095 do
2096   if test -r "$ac_site_file"; then
2097     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2098 echo "$as_me: loading site script $ac_site_file" >&6;}
2099     sed 's/^/| /' "$ac_site_file" >&5
2100     . "$ac_site_file"
2101   fi
2102 done
2103
2104 if test -r "$cache_file"; then
2105   # Some versions of bash will fail to source /dev/null (special
2106   # files actually), so we avoid doing that.
2107   if test -f "$cache_file"; then
2108     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2109 echo "$as_me: loading cache $cache_file" >&6;}
2110     case $cache_file in
2111       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2112       *)                      . "./$cache_file";;
2113     esac
2114   fi
2115 else
2116   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2117 echo "$as_me: creating cache $cache_file" >&6;}
2118   >$cache_file
2119 fi
2120
2121 # Check that the precious variables saved in the cache have kept the same
2122 # value.
2123 ac_cache_corrupted=false
2124 for ac_var in $ac_precious_vars; do
2125   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2126   eval ac_new_set=\$ac_env_${ac_var}_set
2127   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2128   eval ac_new_val=\$ac_env_${ac_var}_value
2129   case $ac_old_set,$ac_new_set in
2130     set,)
2131       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2132 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2133       ac_cache_corrupted=: ;;
2134     ,set)
2135       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2136 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2137       ac_cache_corrupted=: ;;
2138     ,);;
2139     *)
2140       if test "x$ac_old_val" != "x$ac_new_val"; then
2141         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2142 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2143         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2144 echo "$as_me:   former value:  $ac_old_val" >&2;}
2145         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2146 echo "$as_me:   current value: $ac_new_val" >&2;}
2147         ac_cache_corrupted=:
2148       fi;;
2149   esac
2150   # Pass precious variables to config.status.
2151   if test "$ac_new_set" = set; then
2152     case $ac_new_val in
2153     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2154     *) ac_arg=$ac_var=$ac_new_val ;;
2155     esac
2156     case " $ac_configure_args " in
2157       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2158       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2159     esac
2160   fi
2161 done
2162 if $ac_cache_corrupted; then
2163   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2164 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2165   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2166 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2167    { (exit 1); exit 1; }; }
2168 fi
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186 ac_ext=c
2187 ac_cpp='$CPP $CPPFLAGS'
2188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2191
2192
2193 BUILD_DIR=`pwd`
2194 cd ..
2195 TOP_DIR=`pwd`
2196 cd ${BUILD_DIR}
2197
2198
2199 ac_aux_dir=
2200 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2201   if test -f "$ac_dir/install-sh"; then
2202     ac_aux_dir=$ac_dir
2203     ac_install_sh="$ac_aux_dir/install-sh -c"
2204     break
2205   elif test -f "$ac_dir/install.sh"; then
2206     ac_aux_dir=$ac_dir
2207     ac_install_sh="$ac_aux_dir/install.sh -c"
2208     break
2209   elif test -f "$ac_dir/shtool"; then
2210     ac_aux_dir=$ac_dir
2211     ac_install_sh="$ac_aux_dir/shtool install -c"
2212     break
2213   fi
2214 done
2215 if test -z "$ac_aux_dir"; then
2216   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2217 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2218    { (exit 1); exit 1; }; }
2219 fi
2220
2221 # These three variables are undocumented and unsupported,
2222 # and are intended to be withdrawn in a future Autoconf release.
2223 # They can cause serious problems if a builder's source tree is in a directory
2224 # whose full name contains unusual characters.
2225 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2226 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2227 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2228
2229
2230 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2231
2232
2233 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2234 WIN32MAINDIR=${BUILD_DIR}
2235 WIN32TOPDIR=${TOP_DIR}
2236
2237
2238
2239
2240
2241
2242
2243 for ac_prog in true
2244 do
2245   # Extract the first word of "$ac_prog", so it can be a program name with args.
2246 set dummy $ac_prog; ac_word=$2
2247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2249 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2250   echo $ECHO_N "(cached) $ECHO_C" >&6
2251 else
2252   case $TRUEPRG in
2253   [\\/]* | ?:[\\/]*)
2254   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2255   ;;
2256   *)
2257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 for as_dir in $PATH
2259 do
2260   IFS=$as_save_IFS
2261   test -z "$as_dir" && as_dir=.
2262   for ac_exec_ext in '' $ac_executable_extensions; do
2263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2264     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2266     break 2
2267   fi
2268 done
2269 done
2270 IFS=$as_save_IFS
2271
2272   ;;
2273 esac
2274 fi
2275 TRUEPRG=$ac_cv_path_TRUEPRG
2276 if test -n "$TRUEPRG"; then
2277   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2278 echo "${ECHO_T}$TRUEPRG" >&6; }
2279 else
2280   { echo "$as_me:$LINENO: result: no" >&5
2281 echo "${ECHO_T}no" >&6; }
2282 fi
2283
2284
2285   test -n "$TRUEPRG" && break
2286 done
2287 test -n "$TRUEPRG" || TRUEPRG=":"
2288
2289 for ac_prog in false
2290 do
2291   # Extract the first word of "$ac_prog", so it can be a program name with args.
2292 set dummy $ac_prog; ac_word=$2
2293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2295 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2296   echo $ECHO_N "(cached) $ECHO_C" >&6
2297 else
2298   case $FALSEPRG in
2299   [\\/]* | ?:[\\/]*)
2300   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2301   ;;
2302   *)
2303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 for as_dir in $PATH
2305 do
2306   IFS=$as_save_IFS
2307   test -z "$as_dir" && as_dir=.
2308   for ac_exec_ext in '' $ac_executable_extensions; do
2309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2310     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312     break 2
2313   fi
2314 done
2315 done
2316 IFS=$as_save_IFS
2317
2318   ;;
2319 esac
2320 fi
2321 FALSEPRG=$ac_cv_path_FALSEPRG
2322 if test -n "$FALSEPRG"; then
2323   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2324 echo "${ECHO_T}$FALSEPRG" >&6; }
2325 else
2326   { echo "$as_me:$LINENO: result: no" >&5
2327 echo "${ECHO_T}no" >&6; }
2328 fi
2329
2330
2331   test -n "$FALSEPRG" && break
2332 done
2333 test -n "$FALSEPRG" || FALSEPRG=":"
2334
2335
2336
2337 post_host=
2338 if test "x$BACULA" != x; then
2339    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2340 fi
2341 BACULA=${BACULA:-Bacula}
2342 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2343 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2344 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2345 echo "configuring for ${BACULA} $VERSION ($DATE)"
2346
2347
2348 ac_ext=c
2349 ac_cpp='$CPP $CPPFLAGS'
2350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2353 if test -n "$ac_tool_prefix"; then
2354   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2355 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2358 if test "${ac_cv_prog_CC+set}" = set; then
2359   echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361   if test -n "$CC"; then
2362   ac_cv_prog_CC="$CC" # Let the user override the test.
2363 else
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 for as_dir in $PATH
2366 do
2367   IFS=$as_save_IFS
2368   test -z "$as_dir" && as_dir=.
2369   for ac_exec_ext in '' $ac_executable_extensions; do
2370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2371     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373     break 2
2374   fi
2375 done
2376 done
2377 IFS=$as_save_IFS
2378
2379 fi
2380 fi
2381 CC=$ac_cv_prog_CC
2382 if test -n "$CC"; then
2383   { echo "$as_me:$LINENO: result: $CC" >&5
2384 echo "${ECHO_T}$CC" >&6; }
2385 else
2386   { echo "$as_me:$LINENO: result: no" >&5
2387 echo "${ECHO_T}no" >&6; }
2388 fi
2389
2390
2391 fi
2392 if test -z "$ac_cv_prog_CC"; then
2393   ac_ct_CC=$CC
2394   # Extract the first word of "gcc", so it can be a program name with args.
2395 set dummy gcc; ac_word=$2
2396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2398 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2399   echo $ECHO_N "(cached) $ECHO_C" >&6
2400 else
2401   if test -n "$ac_ct_CC"; then
2402   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2403 else
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 for as_dir in $PATH
2406 do
2407   IFS=$as_save_IFS
2408   test -z "$as_dir" && as_dir=.
2409   for ac_exec_ext in '' $ac_executable_extensions; do
2410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2411     ac_cv_prog_ac_ct_CC="gcc"
2412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413     break 2
2414   fi
2415 done
2416 done
2417 IFS=$as_save_IFS
2418
2419 fi
2420 fi
2421 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2422 if test -n "$ac_ct_CC"; then
2423   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2424 echo "${ECHO_T}$ac_ct_CC" >&6; }
2425 else
2426   { echo "$as_me:$LINENO: result: no" >&5
2427 echo "${ECHO_T}no" >&6; }
2428 fi
2429
2430   if test "x$ac_ct_CC" = x; then
2431     CC=""
2432   else
2433     case $cross_compiling:$ac_tool_warned in
2434 yes:)
2435 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2436 whose name does not start with the host triplet.  If you think this
2437 configuration is useful to you, please write to autoconf@gnu.org." >&5
2438 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2439 whose name does not start with the host triplet.  If you think this
2440 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2441 ac_tool_warned=yes ;;
2442 esac
2443     CC=$ac_ct_CC
2444   fi
2445 else
2446   CC="$ac_cv_prog_CC"
2447 fi
2448
2449 if test -z "$CC"; then
2450           if test -n "$ac_tool_prefix"; then
2451     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2452 set dummy ${ac_tool_prefix}cc; ac_word=$2
2453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2455 if test "${ac_cv_prog_CC+set}" = set; then
2456   echo $ECHO_N "(cached) $ECHO_C" >&6
2457 else
2458   if test -n "$CC"; then
2459   ac_cv_prog_CC="$CC" # Let the user override the test.
2460 else
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 for as_dir in $PATH
2463 do
2464   IFS=$as_save_IFS
2465   test -z "$as_dir" && as_dir=.
2466   for ac_exec_ext in '' $ac_executable_extensions; do
2467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2468     ac_cv_prog_CC="${ac_tool_prefix}cc"
2469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470     break 2
2471   fi
2472 done
2473 done
2474 IFS=$as_save_IFS
2475
2476 fi
2477 fi
2478 CC=$ac_cv_prog_CC
2479 if test -n "$CC"; then
2480   { echo "$as_me:$LINENO: result: $CC" >&5
2481 echo "${ECHO_T}$CC" >&6; }
2482 else
2483   { echo "$as_me:$LINENO: result: no" >&5
2484 echo "${ECHO_T}no" >&6; }
2485 fi
2486
2487
2488   fi
2489 fi
2490 if test -z "$CC"; then
2491   # Extract the first word of "cc", so it can be a program name with args.
2492 set dummy cc; ac_word=$2
2493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2495 if test "${ac_cv_prog_CC+set}" = set; then
2496   echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498   if test -n "$CC"; then
2499   ac_cv_prog_CC="$CC" # Let the user override the test.
2500 else
2501   ac_prog_rejected=no
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH
2504 do
2505   IFS=$as_save_IFS
2506   test -z "$as_dir" && as_dir=.
2507   for ac_exec_ext in '' $ac_executable_extensions; do
2508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2509     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2510        ac_prog_rejected=yes
2511        continue
2512      fi
2513     ac_cv_prog_CC="cc"
2514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2515     break 2
2516   fi
2517 done
2518 done
2519 IFS=$as_save_IFS
2520
2521 if test $ac_prog_rejected = yes; then
2522   # We found a bogon in the path, so make sure we never use it.
2523   set dummy $ac_cv_prog_CC
2524   shift
2525   if test $# != 0; then
2526     # We chose a different compiler from the bogus one.
2527     # However, it has the same basename, so the bogon will be chosen
2528     # first if we set CC to just the basename; use the full file name.
2529     shift
2530     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2531   fi
2532 fi
2533 fi
2534 fi
2535 CC=$ac_cv_prog_CC
2536 if test -n "$CC"; then
2537   { echo "$as_me:$LINENO: result: $CC" >&5
2538 echo "${ECHO_T}$CC" >&6; }
2539 else
2540   { echo "$as_me:$LINENO: result: no" >&5
2541 echo "${ECHO_T}no" >&6; }
2542 fi
2543
2544
2545 fi
2546 if test -z "$CC"; then
2547   if test -n "$ac_tool_prefix"; then
2548   for ac_prog in cl.exe
2549   do
2550     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2551 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2554 if test "${ac_cv_prog_CC+set}" = set; then
2555   echo $ECHO_N "(cached) $ECHO_C" >&6
2556 else
2557   if test -n "$CC"; then
2558   ac_cv_prog_CC="$CC" # Let the user override the test.
2559 else
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 for as_dir in $PATH
2562 do
2563   IFS=$as_save_IFS
2564   test -z "$as_dir" && as_dir=.
2565   for ac_exec_ext in '' $ac_executable_extensions; do
2566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2567     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2569     break 2
2570   fi
2571 done
2572 done
2573 IFS=$as_save_IFS
2574
2575 fi
2576 fi
2577 CC=$ac_cv_prog_CC
2578 if test -n "$CC"; then
2579   { echo "$as_me:$LINENO: result: $CC" >&5
2580 echo "${ECHO_T}$CC" >&6; }
2581 else
2582   { echo "$as_me:$LINENO: result: no" >&5
2583 echo "${ECHO_T}no" >&6; }
2584 fi
2585
2586
2587     test -n "$CC" && break
2588   done
2589 fi
2590 if test -z "$CC"; then
2591   ac_ct_CC=$CC
2592   for ac_prog in cl.exe
2593 do
2594   # Extract the first word of "$ac_prog", so it can be a program name with args.
2595 set dummy $ac_prog; ac_word=$2
2596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2598 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2599   echo $ECHO_N "(cached) $ECHO_C" >&6
2600 else
2601   if test -n "$ac_ct_CC"; then
2602   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2603 else
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 for as_dir in $PATH
2606 do
2607   IFS=$as_save_IFS
2608   test -z "$as_dir" && as_dir=.
2609   for ac_exec_ext in '' $ac_executable_extensions; do
2610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2611     ac_cv_prog_ac_ct_CC="$ac_prog"
2612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613     break 2
2614   fi
2615 done
2616 done
2617 IFS=$as_save_IFS
2618
2619 fi
2620 fi
2621 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2622 if test -n "$ac_ct_CC"; then
2623   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2624 echo "${ECHO_T}$ac_ct_CC" >&6; }
2625 else
2626   { echo "$as_me:$LINENO: result: no" >&5
2627 echo "${ECHO_T}no" >&6; }
2628 fi
2629
2630
2631   test -n "$ac_ct_CC" && break
2632 done
2633
2634   if test "x$ac_ct_CC" = x; then
2635     CC=""
2636   else
2637     case $cross_compiling:$ac_tool_warned in
2638 yes:)
2639 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2640 whose name does not start with the host triplet.  If you think this
2641 configuration is useful to you, please write to autoconf@gnu.org." >&5
2642 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2643 whose name does not start with the host triplet.  If you think this
2644 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2645 ac_tool_warned=yes ;;
2646 esac
2647     CC=$ac_ct_CC
2648   fi
2649 fi
2650
2651 fi
2652
2653
2654 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2655 See \`config.log' for more details." >&5
2656 echo "$as_me: error: no acceptable C compiler found in \$PATH
2657 See \`config.log' for more details." >&2;}
2658    { (exit 1); exit 1; }; }
2659
2660 # Provide some information about the compiler.
2661 echo "$as_me:$LINENO: checking for C compiler version" >&5
2662 ac_compiler=`set X $ac_compile; echo $2`
2663 { (ac_try="$ac_compiler --version >&5"
2664 case "(($ac_try" in
2665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666   *) ac_try_echo=$ac_try;;
2667 esac
2668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2669   (eval "$ac_compiler --version >&5") 2>&5
2670   ac_status=$?
2671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672   (exit $ac_status); }
2673 { (ac_try="$ac_compiler -v >&5"
2674 case "(($ac_try" in
2675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2676   *) ac_try_echo=$ac_try;;
2677 esac
2678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2679   (eval "$ac_compiler -v >&5") 2>&5
2680   ac_status=$?
2681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682   (exit $ac_status); }
2683 { (ac_try="$ac_compiler -V >&5"
2684 case "(($ac_try" in
2685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686   *) ac_try_echo=$ac_try;;
2687 esac
2688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2689   (eval "$ac_compiler -V >&5") 2>&5
2690   ac_status=$?
2691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692   (exit $ac_status); }
2693
2694 cat >conftest.$ac_ext <<_ACEOF
2695 /* confdefs.h.  */
2696 _ACEOF
2697 cat confdefs.h >>conftest.$ac_ext
2698 cat >>conftest.$ac_ext <<_ACEOF
2699 /* end confdefs.h.  */
2700
2701 int
2702 main ()
2703 {
2704
2705   ;
2706   return 0;
2707 }
2708 _ACEOF
2709 ac_clean_files_save=$ac_clean_files
2710 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2711 # Try to create an executable without -o first, disregard a.out.
2712 # It will help us diagnose broken compilers, and finding out an intuition
2713 # of exeext.
2714 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2715 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2716 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2717 #
2718 # List of possible output files, starting from the most likely.
2719 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2720 # only as a last resort.  b.out is created by i960 compilers.
2721 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2722 #
2723 # The IRIX 6 linker writes into existing files which may not be
2724 # executable, retaining their permissions.  Remove them first so a
2725 # subsequent execution test works.
2726 ac_rmfiles=
2727 for ac_file in $ac_files
2728 do
2729   case $ac_file in
2730     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2731     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2732   esac
2733 done
2734 rm -f $ac_rmfiles
2735
2736 if { (ac_try="$ac_link_default"
2737 case "(($ac_try" in
2738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739   *) ac_try_echo=$ac_try;;
2740 esac
2741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742   (eval "$ac_link_default") 2>&5
2743   ac_status=$?
2744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745   (exit $ac_status); }; then
2746   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2747 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2748 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2749 # so that the user can short-circuit this test for compilers unknown to
2750 # Autoconf.
2751 for ac_file in $ac_files ''
2752 do
2753   test -f "$ac_file" || continue
2754   case $ac_file in
2755     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2756         ;;
2757     [ab].out )
2758         # We found the default executable, but exeext='' is most
2759         # certainly right.
2760         break;;
2761     *.* )
2762         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2763         then :; else
2764            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2765         fi
2766         # We set ac_cv_exeext here because the later test for it is not
2767         # safe: cross compilers may not add the suffix if given an `-o'
2768         # argument, so we may need to know it at that point already.
2769         # Even if this section looks crufty: it has the advantage of
2770         # actually working.
2771         break;;
2772     * )
2773         break;;
2774   esac
2775 done
2776 test "$ac_cv_exeext" = no && ac_cv_exeext=
2777
2778 else
2779   ac_file=''
2780 fi
2781
2782 { echo "$as_me:$LINENO: result: $ac_file" >&5
2783 echo "${ECHO_T}$ac_file" >&6; }
2784 if test -z "$ac_file"; then
2785   echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2787
2788 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2789 See \`config.log' for more details." >&5
2790 echo "$as_me: error: C compiler cannot create executables
2791 See \`config.log' for more details." >&2;}
2792    { (exit 77); exit 77; }; }
2793 fi
2794
2795 ac_exeext=$ac_cv_exeext
2796
2797 # Check that the compiler produces executables we can run.  If not, either
2798 # the compiler is broken, or we cross compile.
2799 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2800 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2801 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2802 # If not cross compiling, check that we can run a simple program.
2803 if test "$cross_compiling" != yes; then
2804   if { ac_try='./$ac_file'
2805   { (case "(($ac_try" in
2806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807   *) ac_try_echo=$ac_try;;
2808 esac
2809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810   (eval "$ac_try") 2>&5
2811   ac_status=$?
2812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813   (exit $ac_status); }; }; then
2814     cross_compiling=no
2815   else
2816     if test "$cross_compiling" = maybe; then
2817         cross_compiling=yes
2818     else
2819         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2820 If you meant to cross compile, use \`--host'.
2821 See \`config.log' for more details." >&5
2822 echo "$as_me: error: cannot run C compiled programs.
2823 If you meant to cross compile, use \`--host'.
2824 See \`config.log' for more details." >&2;}
2825    { (exit 1); exit 1; }; }
2826     fi
2827   fi
2828 fi
2829 { echo "$as_me:$LINENO: result: yes" >&5
2830 echo "${ECHO_T}yes" >&6; }
2831
2832 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2833 ac_clean_files=$ac_clean_files_save
2834 # Check that the compiler produces executables we can run.  If not, either
2835 # the compiler is broken, or we cross compile.
2836 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2837 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2838 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2839 echo "${ECHO_T}$cross_compiling" >&6; }
2840
2841 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2842 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2843 if { (ac_try="$ac_link"
2844 case "(($ac_try" in
2845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846   *) ac_try_echo=$ac_try;;
2847 esac
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849   (eval "$ac_link") 2>&5
2850   ac_status=$?
2851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852   (exit $ac_status); }; then
2853   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2854 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2855 # work properly (i.e., refer to `conftest.exe'), while it won't with
2856 # `rm'.
2857 for ac_file in conftest.exe conftest conftest.*; do
2858   test -f "$ac_file" || continue
2859   case $ac_file in
2860     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2861     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2862           break;;
2863     * ) break;;
2864   esac
2865 done
2866 else
2867   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2868 See \`config.log' for more details." >&5
2869 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2870 See \`config.log' for more details." >&2;}
2871    { (exit 1); exit 1; }; }
2872 fi
2873
2874 rm -f conftest$ac_cv_exeext
2875 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2876 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2877
2878 rm -f conftest.$ac_ext
2879 EXEEXT=$ac_cv_exeext
2880 ac_exeext=$EXEEXT
2881 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2882 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2883 if test "${ac_cv_objext+set}" = set; then
2884   echo $ECHO_N "(cached) $ECHO_C" >&6
2885 else
2886   cat >conftest.$ac_ext <<_ACEOF
2887 /* confdefs.h.  */
2888 _ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h.  */
2892
2893 int
2894 main ()
2895 {
2896
2897   ;
2898   return 0;
2899 }
2900 _ACEOF
2901 rm -f conftest.o conftest.obj
2902 if { (ac_try="$ac_compile"
2903 case "(($ac_try" in
2904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905   *) ac_try_echo=$ac_try;;
2906 esac
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908   (eval "$ac_compile") 2>&5
2909   ac_status=$?
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); }; then
2912   for ac_file in conftest.o conftest.obj conftest.*; do
2913   test -f "$ac_file" || continue;
2914   case $ac_file in
2915     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2916     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2917        break;;
2918   esac
2919 done
2920 else
2921   echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2923
2924 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2925 See \`config.log' for more details." >&5
2926 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2927 See \`config.log' for more details." >&2;}
2928    { (exit 1); exit 1; }; }
2929 fi
2930
2931 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2932 fi
2933 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2934 echo "${ECHO_T}$ac_cv_objext" >&6; }
2935 OBJEXT=$ac_cv_objext
2936 ac_objext=$OBJEXT
2937 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2938 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2939 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2940   echo $ECHO_N "(cached) $ECHO_C" >&6
2941 else
2942   cat >conftest.$ac_ext <<_ACEOF
2943 /* confdefs.h.  */
2944 _ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h.  */
2948
2949 int
2950 main ()
2951 {
2952 #ifndef __GNUC__
2953        choke me
2954 #endif
2955
2956   ;
2957   return 0;
2958 }
2959 _ACEOF
2960 rm -f conftest.$ac_objext
2961 if { (ac_try="$ac_compile"
2962 case "(($ac_try" in
2963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964   *) ac_try_echo=$ac_try;;
2965 esac
2966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967   (eval "$ac_compile") 2>conftest.er1
2968   ac_status=$?
2969   grep -v '^ *+' conftest.er1 >conftest.err
2970   rm -f conftest.er1
2971   cat conftest.err >&5
2972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973   (exit $ac_status); } && {
2974          test -z "$ac_c_werror_flag" ||
2975          test ! -s conftest.err
2976        } && test -s conftest.$ac_objext; then
2977   ac_compiler_gnu=yes
2978 else
2979   echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2981
2982         ac_compiler_gnu=no
2983 fi
2984
2985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2987
2988 fi
2989 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2990 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2991 GCC=`test $ac_compiler_gnu = yes && echo yes`
2992 ac_test_CFLAGS=${CFLAGS+set}
2993 ac_save_CFLAGS=$CFLAGS
2994 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2995 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2996 if test "${ac_cv_prog_cc_g+set}" = set; then
2997   echo $ECHO_N "(cached) $ECHO_C" >&6
2998 else
2999   ac_save_c_werror_flag=$ac_c_werror_flag
3000    ac_c_werror_flag=yes
3001    ac_cv_prog_cc_g=no
3002    CFLAGS="-g"
3003    cat >conftest.$ac_ext <<_ACEOF
3004 /* confdefs.h.  */
3005 _ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h.  */
3009
3010 int
3011 main ()
3012 {
3013
3014   ;
3015   return 0;
3016 }
3017 _ACEOF
3018 rm -f conftest.$ac_objext
3019 if { (ac_try="$ac_compile"
3020 case "(($ac_try" in
3021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022   *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025   (eval "$ac_compile") 2>conftest.er1
3026   ac_status=$?
3027   grep -v '^ *+' conftest.er1 >conftest.err
3028   rm -f conftest.er1
3029   cat conftest.err >&5
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); } && {
3032          test -z "$ac_c_werror_flag" ||
3033          test ! -s conftest.err
3034        } && test -s conftest.$ac_objext; then
3035   ac_cv_prog_cc_g=yes
3036 else
3037   echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3039
3040         CFLAGS=""
3041       cat >conftest.$ac_ext <<_ACEOF
3042 /* confdefs.h.  */
3043 _ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h.  */
3047
3048 int
3049 main ()
3050 {
3051
3052   ;
3053   return 0;
3054 }
3055 _ACEOF
3056 rm -f conftest.$ac_objext
3057 if { (ac_try="$ac_compile"
3058 case "(($ac_try" in
3059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060   *) ac_try_echo=$ac_try;;
3061 esac
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063   (eval "$ac_compile") 2>conftest.er1
3064   ac_status=$?
3065   grep -v '^ *+' conftest.er1 >conftest.err
3066   rm -f conftest.er1
3067   cat conftest.err >&5
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); } && {
3070          test -z "$ac_c_werror_flag" ||
3071          test ! -s conftest.err
3072        } && test -s conftest.$ac_objext; then
3073   :
3074 else
3075   echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3077
3078         ac_c_werror_flag=$ac_save_c_werror_flag
3079          CFLAGS="-g"
3080          cat >conftest.$ac_ext <<_ACEOF
3081 /* confdefs.h.  */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h.  */
3086
3087 int
3088 main ()
3089 {
3090
3091   ;
3092   return 0;
3093 }
3094 _ACEOF
3095 rm -f conftest.$ac_objext
3096 if { (ac_try="$ac_compile"
3097 case "(($ac_try" in
3098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099   *) ac_try_echo=$ac_try;;
3100 esac
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102   (eval "$ac_compile") 2>conftest.er1
3103   ac_status=$?
3104   grep -v '^ *+' conftest.er1 >conftest.err
3105   rm -f conftest.er1
3106   cat conftest.err >&5
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); } && {
3109          test -z "$ac_c_werror_flag" ||
3110          test ! -s conftest.err
3111        } && test -s conftest.$ac_objext; then
3112   ac_cv_prog_cc_g=yes
3113 else
3114   echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3116
3117
3118 fi
3119
3120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3121 fi
3122
3123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3124 fi
3125
3126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3127    ac_c_werror_flag=$ac_save_c_werror_flag
3128 fi
3129 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3130 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3131 if test "$ac_test_CFLAGS" = set; then
3132   CFLAGS=$ac_save_CFLAGS
3133 elif test $ac_cv_prog_cc_g = yes; then
3134   if test "$GCC" = yes; then
3135     CFLAGS="-g -O2"
3136   else
3137     CFLAGS="-g"
3138   fi
3139 else
3140   if test "$GCC" = yes; then
3141     CFLAGS="-O2"
3142   else
3143     CFLAGS=
3144   fi
3145 fi
3146 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3147 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3148 if test "${ac_cv_prog_cc_c89+set}" = set; then
3149   echo $ECHO_N "(cached) $ECHO_C" >&6
3150 else
3151   ac_cv_prog_cc_c89=no
3152 ac_save_CC=$CC
3153 cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h.  */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h.  */
3159 #include <stdarg.h>
3160 #include <stdio.h>
3161 #include <sys/types.h>
3162 #include <sys/stat.h>
3163 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3164 struct buf { int x; };
3165 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3166 static char *e (p, i)
3167      char **p;
3168      int i;
3169 {
3170   return p[i];
3171 }
3172 static char *f (char * (*g) (char **, int), char **p, ...)
3173 {
3174   char *s;
3175   va_list v;
3176   va_start (v,p);
3177   s = g (p, va_arg (v,int));
3178   va_end (v);
3179   return s;
3180 }
3181
3182 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3183    function prototypes and stuff, but not '\xHH' hex character constants.
3184    These don't provoke an error unfortunately, instead are silently treated
3185    as 'x'.  The following induces an error, until -std is added to get
3186    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3187    array size at least.  It's necessary to write '\x00'==0 to get something
3188    that's true only with -std.  */
3189 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3190
3191 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3192    inside strings and character constants.  */
3193 #define FOO(x) 'x'
3194 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3195
3196 int test (int i, double x);
3197 struct s1 {int (*f) (int a);};
3198 struct s2 {int (*f) (double a);};
3199 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3200 int argc;
3201 char **argv;
3202 int
3203 main ()
3204 {
3205 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3206   ;
3207   return 0;
3208 }
3209 _ACEOF
3210 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3211         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3212 do
3213   CC="$ac_save_CC $ac_arg"
3214   rm -f conftest.$ac_objext
3215 if { (ac_try="$ac_compile"
3216 case "(($ac_try" in
3217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218   *) ac_try_echo=$ac_try;;
3219 esac
3220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221   (eval "$ac_compile") 2>conftest.er1
3222   ac_status=$?
3223   grep -v '^ *+' conftest.er1 >conftest.err
3224   rm -f conftest.er1
3225   cat conftest.err >&5
3226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227   (exit $ac_status); } && {
3228          test -z "$ac_c_werror_flag" ||
3229          test ! -s conftest.err
3230        } && test -s conftest.$ac_objext; then
3231   ac_cv_prog_cc_c89=$ac_arg
3232 else
3233   echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3235
3236
3237 fi
3238
3239 rm -f core conftest.err conftest.$ac_objext
3240   test "x$ac_cv_prog_cc_c89" != "xno" && break
3241 done
3242 rm -f conftest.$ac_ext
3243 CC=$ac_save_CC
3244
3245 fi
3246 # AC_CACHE_VAL
3247 case "x$ac_cv_prog_cc_c89" in
3248   x)
3249     { echo "$as_me:$LINENO: result: none needed" >&5
3250 echo "${ECHO_T}none needed" >&6; } ;;
3251   xno)
3252     { echo "$as_me:$LINENO: result: unsupported" >&5
3253 echo "${ECHO_T}unsupported" >&6; } ;;
3254   *)
3255     CC="$CC $ac_cv_prog_cc_c89"
3256     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3257 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3258 esac
3259
3260
3261 ac_ext=c
3262 ac_cpp='$CPP $CPPFLAGS'
3263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3266
3267 ac_ext=cpp
3268 ac_cpp='$CXXCPP $CPPFLAGS'
3269 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3270 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3271 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3272 if test -z "$CXX"; then
3273   if test -n "$CCC"; then
3274     CXX=$CCC
3275   else
3276     if test -n "$ac_tool_prefix"; then
3277   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3278   do
3279     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3280 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3283 if test "${ac_cv_prog_CXX+set}" = set; then
3284   echo $ECHO_N "(cached) $ECHO_C" >&6
3285 else
3286   if test -n "$CXX"; then
3287   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3288 else
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 for as_dir in $PATH
3291 do
3292   IFS=$as_save_IFS
3293   test -z "$as_dir" && as_dir=.
3294   for ac_exec_ext in '' $ac_executable_extensions; do
3295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3296     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3298     break 2
3299   fi
3300 done
3301 done
3302 IFS=$as_save_IFS
3303
3304 fi
3305 fi
3306 CXX=$ac_cv_prog_CXX
3307 if test -n "$CXX"; then
3308   { echo "$as_me:$LINENO: result: $CXX" >&5
3309 echo "${ECHO_T}$CXX" >&6; }
3310 else
3311   { echo "$as_me:$LINENO: result: no" >&5
3312 echo "${ECHO_T}no" >&6; }
3313 fi
3314
3315
3316     test -n "$CXX" && break
3317   done
3318 fi
3319 if test -z "$CXX"; then
3320   ac_ct_CXX=$CXX
3321   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3322 do
3323   # Extract the first word of "$ac_prog", so it can be a program name with args.
3324 set dummy $ac_prog; ac_word=$2
3325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3327 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3328   echo $ECHO_N "(cached) $ECHO_C" >&6
3329 else
3330   if test -n "$ac_ct_CXX"; then
3331   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3332 else
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 for as_dir in $PATH
3335 do
3336   IFS=$as_save_IFS
3337   test -z "$as_dir" && as_dir=.
3338   for ac_exec_ext in '' $ac_executable_extensions; do
3339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3340     ac_cv_prog_ac_ct_CXX="$ac_prog"
3341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3342     break 2
3343   fi
3344 done
3345 done
3346 IFS=$as_save_IFS
3347
3348 fi
3349 fi
3350 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3351 if test -n "$ac_ct_CXX"; then
3352   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3353 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3354 else
3355   { echo "$as_me:$LINENO: result: no" >&5
3356 echo "${ECHO_T}no" >&6; }
3357 fi
3358
3359
3360   test -n "$ac_ct_CXX" && break
3361 done
3362
3363   if test "x$ac_ct_CXX" = x; then
3364     CXX="g++"
3365   else
3366     case $cross_compiling:$ac_tool_warned in
3367 yes:)
3368 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3369 whose name does not start with the host triplet.  If you think this
3370 configuration is useful to you, please write to autoconf@gnu.org." >&5
3371 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3372 whose name does not start with the host triplet.  If you think this
3373 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3374 ac_tool_warned=yes ;;
3375 esac
3376     CXX=$ac_ct_CXX
3377   fi
3378 fi
3379
3380   fi
3381 fi
3382 # Provide some information about the compiler.
3383 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3384 ac_compiler=`set X $ac_compile; echo $2`
3385 { (ac_try="$ac_compiler --version >&5"
3386 case "(($ac_try" in
3387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388   *) ac_try_echo=$ac_try;;
3389 esac
3390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391   (eval "$ac_compiler --version >&5") 2>&5
3392   ac_status=$?
3393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394   (exit $ac_status); }
3395 { (ac_try="$ac_compiler -v >&5"
3396 case "(($ac_try" in
3397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398   *) ac_try_echo=$ac_try;;
3399 esac
3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401   (eval "$ac_compiler -v >&5") 2>&5
3402   ac_status=$?
3403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404   (exit $ac_status); }
3405 { (ac_try="$ac_compiler -V >&5"
3406 case "(($ac_try" in
3407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408   *) ac_try_echo=$ac_try;;
3409 esac
3410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411   (eval "$ac_compiler -V >&5") 2>&5
3412   ac_status=$?
3413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414   (exit $ac_status); }
3415
3416 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3417 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3418 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3419   echo $ECHO_N "(cached) $ECHO_C" >&6
3420 else
3421   cat >conftest.$ac_ext <<_ACEOF
3422 /* confdefs.h.  */
3423 _ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h.  */
3427
3428 int
3429 main ()
3430 {
3431 #ifndef __GNUC__
3432        choke me
3433 #endif
3434
3435   ;
3436   return 0;
3437 }
3438 _ACEOF
3439 rm -f conftest.$ac_objext
3440 if { (ac_try="$ac_compile"
3441 case "(($ac_try" in
3442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443   *) ac_try_echo=$ac_try;;
3444 esac
3445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3446   (eval "$ac_compile") 2>conftest.er1
3447   ac_status=$?
3448   grep -v '^ *+' conftest.er1 >conftest.err
3449   rm -f conftest.er1
3450   cat conftest.err >&5
3451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452   (exit $ac_status); } && {
3453          test -z "$ac_cxx_werror_flag" ||
3454          test ! -s conftest.err
3455        } && test -s conftest.$ac_objext; then
3456   ac_compiler_gnu=yes
3457 else
3458   echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3460
3461         ac_compiler_gnu=no
3462 fi
3463
3464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3465 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3466
3467 fi
3468 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3469 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3470 GXX=`test $ac_compiler_gnu = yes && echo yes`
3471 ac_test_CXXFLAGS=${CXXFLAGS+set}
3472 ac_save_CXXFLAGS=$CXXFLAGS
3473 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3474 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3475 if test "${ac_cv_prog_cxx_g+set}" = set; then
3476   echo $ECHO_N "(cached) $ECHO_C" >&6
3477 else
3478   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3479    ac_cxx_werror_flag=yes
3480    ac_cv_prog_cxx_g=no
3481    CXXFLAGS="-g"
3482    cat >conftest.$ac_ext <<_ACEOF
3483 /* confdefs.h.  */
3484 _ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h.  */
3488
3489 int
3490 main ()
3491 {
3492
3493   ;
3494   return 0;
3495 }
3496 _ACEOF
3497 rm -f conftest.$ac_objext
3498 if { (ac_try="$ac_compile"
3499 case "(($ac_try" in
3500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501   *) ac_try_echo=$ac_try;;
3502 esac
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504   (eval "$ac_compile") 2>conftest.er1
3505   ac_status=$?
3506   grep -v '^ *+' conftest.er1 >conftest.err
3507   rm -f conftest.er1
3508   cat conftest.err >&5
3509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510   (exit $ac_status); } && {
3511          test -z "$ac_cxx_werror_flag" ||
3512          test ! -s conftest.err
3513        } && test -s conftest.$ac_objext; then
3514   ac_cv_prog_cxx_g=yes
3515 else
3516   echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3518
3519         CXXFLAGS=""
3520       cat >conftest.$ac_ext <<_ACEOF
3521 /* confdefs.h.  */
3522 _ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h.  */
3526
3527 int
3528 main ()
3529 {
3530
3531   ;
3532   return 0;
3533 }
3534 _ACEOF
3535 rm -f conftest.$ac_objext
3536 if { (ac_try="$ac_compile"
3537 case "(($ac_try" in
3538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539   *) ac_try_echo=$ac_try;;
3540 esac
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542   (eval "$ac_compile") 2>conftest.er1
3543   ac_status=$?
3544   grep -v '^ *+' conftest.er1 >conftest.err
3545   rm -f conftest.er1
3546   cat conftest.err >&5
3547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548   (exit $ac_status); } && {
3549          test -z "$ac_cxx_werror_flag" ||
3550          test ! -s conftest.err
3551        } && test -s conftest.$ac_objext; then
3552   :
3553 else
3554   echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3556
3557         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3558          CXXFLAGS="-g"
3559          cat >conftest.$ac_ext <<_ACEOF
3560 /* confdefs.h.  */
3561 _ACEOF
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h.  */
3565
3566 int
3567 main ()
3568 {
3569
3570   ;
3571   return 0;
3572 }
3573 _ACEOF
3574 rm -f conftest.$ac_objext
3575 if { (ac_try="$ac_compile"
3576 case "(($ac_try" in
3577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578   *) ac_try_echo=$ac_try;;
3579 esac
3580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3581   (eval "$ac_compile") 2>conftest.er1
3582   ac_status=$?
3583   grep -v '^ *+' conftest.er1 >conftest.err
3584   rm -f conftest.er1
3585   cat conftest.err >&5
3586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587   (exit $ac_status); } && {
3588          test -z "$ac_cxx_werror_flag" ||
3589          test ! -s conftest.err
3590        } && test -s conftest.$ac_objext; then
3591   ac_cv_prog_cxx_g=yes
3592 else
3593   echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3595
3596
3597 fi
3598
3599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3600 fi
3601
3602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603 fi
3604
3605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3607 fi
3608 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3609 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3610 if test "$ac_test_CXXFLAGS" = set; then
3611   CXXFLAGS=$ac_save_CXXFLAGS
3612 elif test $ac_cv_prog_cxx_g = yes; then
3613   if test "$GXX" = yes; then
3614     CXXFLAGS="-g -O2"
3615   else
3616     CXXFLAGS="-g"
3617   fi
3618 else
3619   if test "$GXX" = yes; then
3620     CXXFLAGS="-O2"
3621   else
3622     CXXFLAGS=
3623   fi
3624 fi
3625 ac_ext=c
3626 ac_cpp='$CPP $CPPFLAGS'
3627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630
3631 if test "x$CC" != xcc; then
3632   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3633 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3634 else
3635   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3636 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3637 fi
3638 set dummy $CC; ac_cc=`echo $2 |
3639                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3640 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3641   echo $ECHO_N "(cached) $ECHO_C" >&6
3642 else
3643   cat >conftest.$ac_ext <<_ACEOF
3644 /* confdefs.h.  */
3645 _ACEOF
3646 cat confdefs.h >>conftest.$ac_ext
3647 cat >>conftest.$ac_ext <<_ACEOF
3648 /* end confdefs.h.  */
3649
3650 int
3651 main ()
3652 {
3653
3654   ;
3655   return 0;
3656 }
3657 _ACEOF
3658 # Make sure it works both with $CC and with simple cc.
3659 # We do the test twice because some compilers refuse to overwrite an
3660 # existing .o file with -o, though they will create one.
3661 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3662 rm -f conftest2.*
3663 if { (case "(($ac_try" in
3664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665   *) ac_try_echo=$ac_try;;
3666 esac
3667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3668   (eval "$ac_try") 2>&5
3669   ac_status=$?
3670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671   (exit $ac_status); } &&
3672    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674   *) ac_try_echo=$ac_try;;
3675 esac
3676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3677   (eval "$ac_try") 2>&5
3678   ac_status=$?
3679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680   (exit $ac_status); };
3681 then
3682   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3683   if test "x$CC" != xcc; then
3684     # Test first that cc exists at all.
3685     if { ac_try='cc -c conftest.$ac_ext >&5'
3686   { (case "(($ac_try" in
3687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688   *) ac_try_echo=$ac_try;;
3689 esac
3690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3691   (eval "$ac_try") 2>&5
3692   ac_status=$?
3693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694   (exit $ac_status); }; }; then
3695       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3696       rm -f conftest2.*
3697       if { (case "(($ac_try" in
3698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699   *) ac_try_echo=$ac_try;;
3700 esac
3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702   (eval "$ac_try") 2>&5
3703   ac_status=$?
3704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705   (exit $ac_status); } &&
3706          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708   *) ac_try_echo=$ac_try;;
3709 esac
3710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3711   (eval "$ac_try") 2>&5
3712   ac_status=$?
3713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714   (exit $ac_status); };
3715       then
3716         # cc works too.
3717         :
3718       else
3719         # cc exists but doesn't like -o.
3720         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3721       fi
3722     fi
3723   fi
3724 else
3725   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3726 fi
3727 rm -f core conftest*
3728
3729 fi
3730 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3731   { echo "$as_me:$LINENO: result: yes" >&5
3732 echo "${ECHO_T}yes" >&6; }
3733 else
3734   { echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6; }
3736
3737 cat >>confdefs.h <<\_ACEOF
3738 #define NO_MINUS_C_MINUS_O 1
3739 _ACEOF
3740
3741 fi
3742
3743 ac_ext=c
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3749 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3750 # On Suns, sometimes $CPP names a directory.
3751 if test -n "$CPP" && test -d "$CPP"; then
3752   CPP=
3753 fi
3754 if test -z "$CPP"; then
3755   if test "${ac_cv_prog_CPP+set}" = set; then
3756   echo $ECHO_N "(cached) $ECHO_C" >&6
3757 else
3758       # Double quotes because CPP needs to be expanded
3759     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3760     do
3761       ac_preproc_ok=false
3762 for ac_c_preproc_warn_flag in '' yes
3763 do
3764   # Use a header file that comes with gcc, so configuring glibc
3765   # with a fresh cross-compiler works.
3766   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3767   # <limits.h> exists even on freestanding compilers.
3768   # On the NeXT, cc -E runs the code through the compiler's parser,
3769   # not just through cpp. "Syntax error" is here to catch this case.
3770   cat >conftest.$ac_ext <<_ACEOF
3771 /* confdefs.h.  */
3772 _ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h.  */
3776 #ifdef __STDC__
3777 # include <limits.h>
3778 #else
3779 # include <assert.h>
3780 #endif
3781                      Syntax error
3782 _ACEOF
3783 if { (ac_try="$ac_cpp conftest.$ac_ext"
3784 case "(($ac_try" in
3785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786   *) ac_try_echo=$ac_try;;
3787 esac
3788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3789   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3790   ac_status=$?
3791   grep -v '^ *+' conftest.er1 >conftest.err
3792   rm -f conftest.er1
3793   cat conftest.err >&5
3794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795   (exit $ac_status); } >/dev/null && {
3796          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3797          test ! -s conftest.err
3798        }; then
3799   :
3800 else
3801   echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3803
3804   # Broken: fails on valid input.
3805 continue
3806 fi
3807
3808 rm -f conftest.err conftest.$ac_ext
3809
3810   # OK, works on sane cases.  Now check whether nonexistent headers
3811   # can be detected and how.
3812   cat >conftest.$ac_ext <<_ACEOF
3813 /* confdefs.h.  */
3814 _ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h.  */
3818 #include <ac_nonexistent.h>
3819 _ACEOF
3820 if { (ac_try="$ac_cpp conftest.$ac_ext"
3821 case "(($ac_try" in
3822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823   *) ac_try_echo=$ac_try;;
3824 esac
3825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3826   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3827   ac_status=$?
3828   grep -v '^ *+' conftest.er1 >conftest.err
3829   rm -f conftest.er1
3830   cat conftest.err >&5
3831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832   (exit $ac_status); } >/dev/null && {
3833          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3834          test ! -s conftest.err
3835        }; then
3836   # Broken: success on invalid input.
3837 continue
3838 else
3839   echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.$ac_ext >&5
3841
3842   # Passes both tests.
3843 ac_preproc_ok=:
3844 break
3845 fi
3846
3847 rm -f conftest.err conftest.$ac_ext
3848
3849 done
3850 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3851 rm -f conftest.err conftest.$ac_ext
3852 if $ac_preproc_ok; then
3853   break
3854 fi
3855
3856     done
3857     ac_cv_prog_CPP=$CPP
3858
3859 fi
3860   CPP=$ac_cv_prog_CPP
3861 else
3862   ac_cv_prog_CPP=$CPP
3863 fi
3864 { echo "$as_me:$LINENO: result: $CPP" >&5
3865 echo "${ECHO_T}$CPP" >&6; }
3866 ac_preproc_ok=false
3867 for ac_c_preproc_warn_flag in '' yes
3868 do
3869   # Use a header file that comes with gcc, so configuring glibc
3870   # with a fresh cross-compiler works.
3871   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3872   # <limits.h> exists even on freestanding compilers.
3873   # On the NeXT, cc -E runs the code through the compiler's parser,
3874   # not just through cpp. "Syntax error" is here to catch this case.
3875   cat >conftest.$ac_ext <<_ACEOF
3876 /* confdefs.h.  */
3877 _ACEOF
3878 cat confdefs.h >>conftest.$ac_ext
3879 cat >>conftest.$ac_ext <<_ACEOF
3880 /* end confdefs.h.  */
3881 #ifdef __STDC__
3882 # include <limits.h>
3883 #else
3884 # include <assert.h>
3885 #endif
3886                      Syntax error
3887 _ACEOF
3888 if { (ac_try="$ac_cpp conftest.$ac_ext"
3889 case "(($ac_try" in
3890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891   *) ac_try_echo=$ac_try;;
3892 esac
3893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3894   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3895   ac_status=$?
3896   grep -v '^ *+' conftest.er1 >conftest.err
3897   rm -f conftest.er1
3898   cat conftest.err >&5
3899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900   (exit $ac_status); } >/dev/null && {
3901          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3902          test ! -s conftest.err
3903        }; then
3904   :
3905 else
3906   echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.$ac_ext >&5
3908
3909   # Broken: fails on valid input.
3910 continue
3911 fi
3912
3913 rm -f conftest.err conftest.$ac_ext
3914
3915   # OK, works on sane cases.  Now check whether nonexistent headers
3916   # can be detected and how.
3917   cat >conftest.$ac_ext <<_ACEOF
3918 /* confdefs.h.  */
3919 _ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h.  */
3923 #include <ac_nonexistent.h>
3924 _ACEOF
3925 if { (ac_try="$ac_cpp conftest.$ac_ext"
3926 case "(($ac_try" in
3927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928   *) ac_try_echo=$ac_try;;
3929 esac
3930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3931   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3932   ac_status=$?
3933   grep -v '^ *+' conftest.er1 >conftest.err
3934   rm -f conftest.er1
3935   cat conftest.err >&5
3936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937   (exit $ac_status); } >/dev/null && {
3938          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3939          test ! -s conftest.err
3940        }; then
3941   # Broken: success on invalid input.
3942 continue
3943 else
3944   echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.$ac_ext >&5
3946
3947   # Passes both tests.
3948 ac_preproc_ok=:
3949 break
3950 fi
3951
3952 rm -f conftest.err conftest.$ac_ext
3953
3954 done
3955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3956 rm -f conftest.err conftest.$ac_ext
3957 if $ac_preproc_ok; then
3958   :
3959 else
3960   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3961 See \`config.log' for more details." >&5
3962 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3963 See \`config.log' for more details." >&2;}
3964    { (exit 1); exit 1; }; }
3965 fi
3966
3967 ac_ext=c
3968 ac_cpp='$CPP $CPPFLAGS'
3969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3972
3973
3974 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3975 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3976 if test "${ac_cv_path_GREP+set}" = set; then
3977   echo $ECHO_N "(cached) $ECHO_C" >&6
3978 else
3979   # Extract the first word of "grep ggrep" to use in msg output
3980 if test -z "$GREP"; then
3981 set dummy grep ggrep; ac_prog_name=$2
3982 if test "${ac_cv_path_GREP+set}" = set; then
3983   echo $ECHO_N "(cached) $ECHO_C" >&6
3984 else
3985   ac_path_GREP_found=false
3986 # Loop through the user's path and test for each of PROGNAME-LIST
3987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3989 do
3990   IFS=$as_save_IFS
3991   test -z "$as_dir" && as_dir=.
3992   for ac_prog in grep ggrep; do
3993   for ac_exec_ext in '' $ac_executable_extensions; do
3994     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3995     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3996     # Check for GNU ac_path_GREP and select it if it is found.
3997   # Check for GNU $ac_path_GREP
3998 case `"$ac_path_GREP" --version 2>&1` in
3999 *GNU*)
4000   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4001 *)
4002   ac_count=0
4003   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4004   while :
4005   do
4006     cat "conftest.in" "conftest.in" >"conftest.tmp"
4007     mv "conftest.tmp" "conftest.in"
4008     cp "conftest.in" "conftest.nl"
4009     echo 'GREP' >> "conftest.nl"
4010     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4011     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4012     ac_count=`expr $ac_count + 1`
4013     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4014       # Best one so far, save it but keep looking for a better one
4015       ac_cv_path_GREP="$ac_path_GREP"
4016       ac_path_GREP_max=$ac_count
4017     fi
4018     # 10*(2^10) chars as input seems more than enough
4019     test $ac_count -gt 10 && break
4020   done
4021   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4022 esac
4023
4024
4025     $ac_path_GREP_found && break 3
4026   done
4027 done
4028
4029 done
4030 IFS=$as_save_IFS
4031
4032
4033 fi
4034
4035 GREP="$ac_cv_path_GREP"
4036 if test -z "$GREP"; then
4037   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4038 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4039    { (exit 1); exit 1; }; }
4040 fi
4041
4042 else
4043   ac_cv_path_GREP=$GREP
4044 fi
4045
4046
4047 fi
4048 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4049 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4050  GREP="$ac_cv_path_GREP"
4051
4052
4053 { echo "$as_me:$LINENO: checking for egrep" >&5
4054 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4055 if test "${ac_cv_path_EGREP+set}" = set; then
4056   echo $ECHO_N "(cached) $ECHO_C" >&6
4057 else
4058   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4059    then ac_cv_path_EGREP="$GREP -E"
4060    else
4061      # Extract the first word of "egrep" to use in msg output
4062 if test -z "$EGREP"; then
4063 set dummy egrep; ac_prog_name=$2
4064 if test "${ac_cv_path_EGREP+set}" = set; then
4065   echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067   ac_path_EGREP_found=false
4068 # Loop through the user's path and test for each of PROGNAME-LIST
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4071 do
4072   IFS=$as_save_IFS
4073   test -z "$as_dir" && as_dir=.
4074   for ac_prog in egrep; do
4075   for ac_exec_ext in '' $ac_executable_extensions; do
4076     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4077     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4078     # Check for GNU ac_path_EGREP and select it if it is found.
4079   # Check for GNU $ac_path_EGREP
4080 case `"$ac_path_EGREP" --version 2>&1` in
4081 *GNU*)
4082   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4083 *)
4084   ac_count=0
4085   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4086   while :
4087   do
4088     cat "conftest.in" "conftest.in" >"conftest.tmp"
4089     mv "conftest.tmp" "conftest.in"
4090     cp "conftest.in" "conftest.nl"
4091     echo 'EGREP' >> "conftest.nl"
4092     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4093     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4094     ac_count=`expr $ac_count + 1`
4095     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4096       # Best one so far, save it but keep looking for a better one
4097       ac_cv_path_EGREP="$ac_path_EGREP"
4098       ac_path_EGREP_max=$ac_count
4099     fi
4100     # 10*(2^10) chars as input seems more than enough
4101     test $ac_count -gt 10 && break
4102   done
4103   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4104 esac
4105
4106
4107     $ac_path_EGREP_found && break 3
4108   done
4109 done
4110
4111 done
4112 IFS=$as_save_IFS
4113
4114
4115 fi
4116
4117 EGREP="$ac_cv_path_EGREP"
4118 if test -z "$EGREP"; then
4119   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4120 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4121    { (exit 1); exit 1; }; }
4122 fi
4123
4124 else
4125   ac_cv_path_EGREP=$EGREP
4126 fi
4127
4128
4129    fi
4130 fi
4131 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4132 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4133  EGREP="$ac_cv_path_EGREP"
4134
4135
4136 if test $ac_cv_c_compiler_gnu = yes; then
4137     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4138 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4139 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4140   echo $ECHO_N "(cached) $ECHO_C" >&6
4141 else
4142     ac_pattern="Autoconf.*'x'"
4143   cat >conftest.$ac_ext <<_ACEOF
4144 /* confdefs.h.  */
4145 _ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h.  */
4149 #include <sgtty.h>
4150 Autoconf TIOCGETP
4151 _ACEOF
4152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4153   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4154   ac_cv_prog_gcc_traditional=yes
4155 else
4156   ac_cv_prog_gcc_traditional=no
4157 fi
4158 rm -f conftest*
4159
4160
4161   if test $ac_cv_prog_gcc_traditional = no; then
4162     cat >conftest.$ac_ext <<_ACEOF
4163 /* confdefs.h.  */
4164 _ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h.  */
4168 #include <termio.h>
4169 Autoconf TCGETA
4170 _ACEOF
4171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4172   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4173   ac_cv_prog_gcc_traditional=yes
4174 fi
4175 rm -f conftest*
4176
4177   fi
4178 fi
4179 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4180 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4181   if test $ac_cv_prog_gcc_traditional = yes; then
4182     CC="$CC -traditional"
4183   fi
4184 fi
4185
4186 BASECC=`basename $CC`
4187 have_gcc=no
4188 if test "x$BASECC" = xgcc; then
4189    cat >>confdefs.h <<\_ACEOF
4190 #define HAVE_GCC 1
4191 _ACEOF
4192
4193    have_gcc=yes
4194 fi
4195 # Extract the first word of "$CXX", so it can be a program name with args.
4196 set dummy $CXX; ac_word=$2
4197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4199 if test "${ac_cv_path_CXX+set}" = set; then
4200   echo $ECHO_N "(cached) $ECHO_C" >&6
4201 else
4202   case $CXX in
4203   [\\/]* | ?:[\\/]*)
4204   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4205   ;;
4206   *)
4207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH
4209 do
4210   IFS=$as_save_IFS
4211   test -z "$as_dir" && as_dir=.
4212   for ac_exec_ext in '' $ac_executable_extensions; do
4213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4214     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4216     break 2
4217   fi
4218 done
4219 done
4220 IFS=$as_save_IFS
4221
4222   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4223   ;;
4224 esac
4225 fi
4226 CXX=$ac_cv_path_CXX
4227 if test -n "$CXX"; then
4228   { echo "$as_me:$LINENO: result: $CXX" >&5
4229 echo "${ECHO_T}$CXX" >&6; }
4230 else
4231   { echo "$as_me:$LINENO: result: no" >&5
4232 echo "${ECHO_T}no" >&6; }
4233 fi
4234
4235
4236 if test ! -e $CXX; then
4237    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4238 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4239    { (exit 1); exit 1; }; }
4240 fi
4241
4242 CXXFLAGS="-g -O2 -Wall"
4243 ac_ext=cpp
4244 ac_cpp='$CXXCPP $CPPFLAGS'
4245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4248
4249
4250 # Find a good install program.  We prefer a C program (faster),
4251 # so one script is as good as another.  But avoid the broken or
4252 # incompatible versions:
4253 # SysV /etc/install, /usr/sbin/install
4254 # SunOS /usr/etc/install
4255 # IRIX /sbin/install
4256 # AIX /bin/install
4257 # AmigaOS /C/install, which installs bootblocks on floppy discs
4258 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4259 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4260 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4261 # OS/2's system install, which has a completely different semantic
4262 # ./install, which can be erroneously created by make from ./install.sh.
4263 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4264 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4265 if test -z "$INSTALL"; then
4266 if test "${ac_cv_path_install+set}" = set; then
4267   echo $ECHO_N "(cached) $ECHO_C" >&6
4268 else
4269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 for as_dir in $PATH
4271 do
4272   IFS=$as_save_IFS
4273   test -z "$as_dir" && as_dir=.
4274   # Account for people who put trailing slashes in PATH elements.
4275 case $as_dir/ in
4276   ./ | .// | /cC/* | \
4277   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4278   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4279   /usr/ucb/* ) ;;
4280   *)
4281     # OSF1 and SCO ODT 3.0 have their own names for install.
4282     # Don't use installbsd from OSF since it installs stuff as root
4283     # by default.
4284     for ac_prog in ginstall scoinst install; do
4285       for ac_exec_ext in '' $ac_executable_extensions; do
4286         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4287           if test $ac_prog = install &&
4288             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4289             # AIX install.  It has an incompatible calling convention.
4290             :
4291           elif test $ac_prog = install &&
4292             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4293             # program-specific install script used by HP pwplus--don't use.
4294             :
4295           else
4296             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4297             break 3
4298           fi
4299         fi
4300       done
4301     done
4302     ;;
4303 esac
4304 done
4305 IFS=$as_save_IFS
4306
4307
4308 fi
4309   if test "${ac_cv_path_install+set}" = set; then
4310     INSTALL=$ac_cv_path_install
4311   else
4312     # As a last resort, use the slow shell script.  Don't cache a
4313     # value for INSTALL within a source directory, because that will
4314     # break other packages using the cache if that directory is
4315     # removed, or if the value is a relative name.
4316     INSTALL=$ac_install_sh
4317   fi
4318 fi
4319 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4320 echo "${ECHO_T}$INSTALL" >&6; }
4321
4322 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4323 # It thinks the first close brace ends the variable substitution.
4324 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4325
4326 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4327
4328 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4329
4330 # Extract the first word of "mv", so it can be a program name with args.
4331 set dummy mv; ac_word=$2
4332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4334 if test "${ac_cv_path_MV+set}" = set; then
4335   echo $ECHO_N "(cached) $ECHO_C" >&6
4336 else
4337   case $MV in
4338   [\\/]* | ?:[\\/]*)
4339   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4340   ;;
4341   *)
4342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 for as_dir in $PATH
4344 do
4345   IFS=$as_save_IFS
4346   test -z "$as_dir" && as_dir=.
4347   for ac_exec_ext in '' $ac_executable_extensions; do
4348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4349     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4351     break 2
4352   fi
4353 done
4354 done
4355 IFS=$as_save_IFS
4356
4357   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4358   ;;
4359 esac
4360 fi
4361 MV=$ac_cv_path_MV
4362 if test -n "$MV"; then
4363   { echo "$as_me:$LINENO: result: $MV" >&5
4364 echo "${ECHO_T}$MV" >&6; }
4365 else
4366   { echo "$as_me:$LINENO: result: no" >&5
4367 echo "${ECHO_T}no" >&6; }
4368 fi
4369
4370
4371 # Extract the first word of "rm", so it can be a program name with args.
4372 set dummy rm; ac_word=$2
4373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4375 if test "${ac_cv_path_REMOVE+set}" = set; then
4376   echo $ECHO_N "(cached) $ECHO_C" >&6
4377 else
4378   case $REMOVE in
4379   [\\/]* | ?:[\\/]*)
4380   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4381   ;;
4382   *)
4383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH
4385 do
4386   IFS=$as_save_IFS
4387   test -z "$as_dir" && as_dir=.
4388   for ac_exec_ext in '' $ac_executable_extensions; do
4389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4390     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4392     break 2
4393   fi
4394 done
4395 done
4396 IFS=$as_save_IFS
4397
4398   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4399   ;;
4400 esac
4401 fi
4402 REMOVE=$ac_cv_path_REMOVE
4403 if test -n "$REMOVE"; then
4404   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4405 echo "${ECHO_T}$REMOVE" >&6; }
4406 else
4407   { echo "$as_me:$LINENO: result: no" >&5
4408 echo "${ECHO_T}no" >&6; }
4409 fi
4410
4411
4412 # Extract the first word of "cp", so it can be a program name with args.
4413 set dummy cp; ac_word=$2
4414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4416 if test "${ac_cv_path_CP+set}" = set; then
4417   echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419   case $CP in
4420   [\\/]* | ?:[\\/]*)
4421   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4422   ;;
4423   *)
4424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4426 do
4427   IFS=$as_save_IFS
4428   test -z "$as_dir" && as_dir=.
4429   for ac_exec_ext in '' $ac_executable_extensions; do
4430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4431     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4433     break 2
4434   fi
4435 done
4436 done
4437 IFS=$as_save_IFS
4438
4439   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4440   ;;
4441 esac
4442 fi
4443 CP=$ac_cv_path_CP
4444 if test -n "$CP"; then
4445   { echo "$as_me:$LINENO: result: $CP" >&5
4446 echo "${ECHO_T}$CP" >&6; }
4447 else
4448   { echo "$as_me:$LINENO: result: no" >&5
4449 echo "${ECHO_T}no" >&6; }
4450 fi
4451
4452
4453 # Extract the first word of "sed", so it can be a program name with args.
4454 set dummy sed; ac_word=$2
4455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4457 if test "${ac_cv_path_SED+set}" = set; then
4458   echo $ECHO_N "(cached) $ECHO_C" >&6
4459 else
4460   case $SED in
4461   [\\/]* | ?:[\\/]*)
4462   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4463   ;;
4464   *)
4465   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 for as_dir in $PATH
4467 do
4468   IFS=$as_save_IFS
4469   test -z "$as_dir" && as_dir=.
4470   for ac_exec_ext in '' $ac_executable_extensions; do
4471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4472     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4474     break 2
4475   fi
4476 done
4477 done
4478 IFS=$as_save_IFS
4479
4480   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4481   ;;
4482 esac
4483 fi
4484 SED=$ac_cv_path_SED
4485 if test -n "$SED"; then
4486   { echo "$as_me:$LINENO: result: $SED" >&5
4487 echo "${ECHO_T}$SED" >&6; }
4488 else
4489   { echo "$as_me:$LINENO: result: no" >&5
4490 echo "${ECHO_T}no" >&6; }
4491 fi
4492
4493
4494 # Extract the first word of "echo", so it can be a program name with args.
4495 set dummy echo; ac_word=$2
4496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4498 if test "${ac_cv_path_ECHO+set}" = set; then
4499   echo $ECHO_N "(cached) $ECHO_C" >&6
4500 else
4501   case $ECHO in
4502   [\\/]* | ?:[\\/]*)
4503   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4504   ;;
4505   *)
4506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH
4508 do
4509   IFS=$as_save_IFS
4510   test -z "$as_dir" && as_dir=.
4511   for ac_exec_ext in '' $ac_executable_extensions; do
4512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4513     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515     break 2
4516   fi
4517 done
4518 done
4519 IFS=$as_save_IFS
4520
4521   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4522   ;;
4523 esac
4524 fi
4525 ECHO=$ac_cv_path_ECHO
4526 if test -n "$ECHO"; then
4527   { echo "$as_me:$LINENO: result: $ECHO" >&5
4528 echo "${ECHO_T}$ECHO" >&6; }
4529 else
4530   { echo "$as_me:$LINENO: result: no" >&5
4531 echo "${ECHO_T}no" >&6; }
4532 fi
4533
4534
4535 # Extract the first word of "cmp", so it can be a program name with args.
4536 set dummy cmp; ac_word=$2
4537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4539 if test "${ac_cv_path_CMP+set}" = set; then
4540   echo $ECHO_N "(cached) $ECHO_C" >&6
4541 else
4542   case $CMP in
4543   [\\/]* | ?:[\\/]*)
4544   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4545   ;;
4546   *)
4547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 for as_dir in $PATH
4549 do
4550   IFS=$as_save_IFS
4551   test -z "$as_dir" && as_dir=.
4552   for ac_exec_ext in '' $ac_executable_extensions; do
4553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4554     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4556     break 2
4557   fi
4558 done
4559 done
4560 IFS=$as_save_IFS
4561
4562   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4563   ;;
4564 esac
4565 fi
4566 CMP=$ac_cv_path_CMP
4567 if test -n "$CMP"; then
4568   { echo "$as_me:$LINENO: result: $CMP" >&5
4569 echo "${ECHO_T}$CMP" >&6; }
4570 else
4571   { echo "$as_me:$LINENO: result: no" >&5
4572 echo "${ECHO_T}no" >&6; }
4573 fi
4574
4575
4576 # Extract the first word of "tbl", so it can be a program name with args.
4577 set dummy tbl; ac_word=$2
4578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4580 if test "${ac_cv_path_TBL+set}" = set; then
4581   echo $ECHO_N "(cached) $ECHO_C" >&6
4582 else
4583   case $TBL in
4584   [\\/]* | ?:[\\/]*)
4585   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4586   ;;
4587   *)
4588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 for as_dir in $PATH
4590 do
4591   IFS=$as_save_IFS
4592   test -z "$as_dir" && as_dir=.
4593   for ac_exec_ext in '' $ac_executable_extensions; do
4594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4595     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597     break 2
4598   fi
4599 done
4600 done
4601 IFS=$as_save_IFS
4602
4603   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4604   ;;
4605 esac
4606 fi
4607 TBL=$ac_cv_path_TBL
4608 if test -n "$TBL"; then
4609   { echo "$as_me:$LINENO: result: $TBL" >&5
4610 echo "${ECHO_T}$TBL" >&6; }
4611 else
4612   { echo "$as_me:$LINENO: result: no" >&5
4613 echo "${ECHO_T}no" >&6; }
4614 fi
4615
4616
4617 # Extract the first word of "ar", so it can be a program name with args.
4618 set dummy ar; ac_word=$2
4619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4621 if test "${ac_cv_path_AR+set}" = set; then
4622   echo $ECHO_N "(cached) $ECHO_C" >&6
4623 else
4624   case $AR in
4625   [\\/]* | ?:[\\/]*)
4626   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4627   ;;
4628   *)
4629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4631 do
4632   IFS=$as_save_IFS
4633   test -z "$as_dir" && as_dir=.
4634   for ac_exec_ext in '' $ac_executable_extensions; do
4635   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638     break 2
4639   fi
4640 done
4641 done
4642 IFS=$as_save_IFS
4643
4644   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4645   ;;
4646 esac
4647 fi
4648 AR=$ac_cv_path_AR
4649 if test -n "$AR"; then
4650   { echo "$as_me:$LINENO: result: $AR" >&5
4651 echo "${ECHO_T}$AR" >&6; }
4652 else
4653   { echo "$as_me:$LINENO: result: no" >&5
4654 echo "${ECHO_T}no" >&6; }
4655 fi
4656
4657
4658 # Extract the first word of "openssl", so it can be a program name with args.
4659 set dummy openssl; ac_word=$2
4660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4662 if test "${ac_cv_path_OPENSSL+set}" = set; then
4663   echo $ECHO_N "(cached) $ECHO_C" >&6
4664 else
4665   case $OPENSSL in
4666   [\\/]* | ?:[\\/]*)
4667   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4668   ;;
4669   *)
4670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4672 do
4673   IFS=$as_save_IFS
4674   test -z "$as_dir" && as_dir=.
4675   for ac_exec_ext in '' $ac_executable_extensions; do
4676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679     break 2
4680   fi
4681 done
4682 done
4683 IFS=$as_save_IFS
4684
4685   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4686   ;;
4687 esac
4688 fi
4689 OPENSSL=$ac_cv_path_OPENSSL
4690 if test -n "$OPENSSL"; then
4691   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4692 echo "${ECHO_T}$OPENSSL" >&6; }
4693 else
4694   { echo "$as_me:$LINENO: result: no" >&5
4695 echo "${ECHO_T}no" >&6; }
4696 fi
4697
4698
4699 # Extract the first word of "mtx", so it can be a program name with args.
4700 set dummy mtx; ac_word=$2
4701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4703 if test "${ac_cv_path_MTX+set}" = set; then
4704   echo $ECHO_N "(cached) $ECHO_C" >&6
4705 else
4706   case $MTX in
4707   [\\/]* | ?:[\\/]*)
4708   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4709   ;;
4710   *)
4711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH
4713 do
4714   IFS=$as_save_IFS
4715   test -z "$as_dir" && as_dir=.
4716   for ac_exec_ext in '' $ac_executable_extensions; do
4717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4718     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4720     break 2
4721   fi
4722 done
4723 done
4724 IFS=$as_save_IFS
4725
4726   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4727   ;;
4728 esac
4729 fi
4730 MTX=$ac_cv_path_MTX
4731 if test -n "$MTX"; then
4732   { echo "$as_me:$LINENO: result: $MTX" >&5
4733 echo "${ECHO_T}$MTX" >&6; }
4734 else
4735   { echo "$as_me:$LINENO: result: no" >&5
4736 echo "${ECHO_T}no" >&6; }
4737 fi
4738
4739
4740 # Extract the first word of "dd", so it can be a program name with args.
4741 set dummy dd; ac_word=$2
4742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4744 if test "${ac_cv_path_DD+set}" = set; then
4745   echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747   case $DD in
4748   [\\/]* | ?:[\\/]*)
4749   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4750   ;;
4751   *)
4752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in $PATH
4754 do
4755   IFS=$as_save_IFS
4756   test -z "$as_dir" && as_dir=.
4757   for ac_exec_ext in '' $ac_executable_extensions; do
4758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4759     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761     break 2
4762   fi
4763 done
4764 done
4765 IFS=$as_save_IFS
4766
4767   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4768   ;;
4769 esac
4770 fi
4771 DD=$ac_cv_path_DD
4772 if test -n "$DD"; then
4773   { echo "$as_me:$LINENO: result: $DD" >&5
4774 echo "${ECHO_T}$DD" >&6; }
4775 else
4776   { echo "$as_me:$LINENO: result: no" >&5
4777 echo "${ECHO_T}no" >&6; }
4778 fi
4779
4780
4781 # Extract the first word of "mkisofs", so it can be a program name with args.
4782 set dummy mkisofs; ac_word=$2
4783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4785 if test "${ac_cv_path_MKISOFS+set}" = set; then
4786   echo $ECHO_N "(cached) $ECHO_C" >&6
4787 else
4788   case $MKISOFS in
4789   [\\/]* | ?:[\\/]*)
4790   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4791   ;;
4792   *)
4793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 for as_dir in $PATH
4795 do
4796   IFS=$as_save_IFS
4797   test -z "$as_dir" && as_dir=.
4798   for ac_exec_ext in '' $ac_executable_extensions; do
4799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4800     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802     break 2
4803   fi
4804 done
4805 done
4806 IFS=$as_save_IFS
4807
4808   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4809   ;;
4810 esac
4811 fi
4812 MKISOFS=$ac_cv_path_MKISOFS
4813 if test -n "$MKISOFS"; then
4814   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4815 echo "${ECHO_T}$MKISOFS" >&6; }
4816 else
4817   { echo "$as_me:$LINENO: result: no" >&5
4818 echo "${ECHO_T}no" >&6; }
4819 fi
4820
4821
4822 # Extract the first word of "python", so it can be a program name with args.
4823 set dummy python; ac_word=$2
4824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4826 if test "${ac_cv_path_PYTHON+set}" = set; then
4827   echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829   case $PYTHON in
4830   [\\/]* | ?:[\\/]*)
4831   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4832   ;;
4833   *)
4834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4836 do
4837   IFS=$as_save_IFS
4838   test -z "$as_dir" && as_dir=.
4839   for ac_exec_ext in '' $ac_executable_extensions; do
4840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4843     break 2
4844   fi
4845 done
4846 done
4847 IFS=$as_save_IFS
4848
4849   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4850   ;;
4851 esac
4852 fi
4853 PYTHON=$ac_cv_path_PYTHON
4854 if test -n "$PYTHON"; then
4855   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4856 echo "${ECHO_T}$PYTHON" >&6; }
4857 else
4858   { echo "$as_me:$LINENO: result: no" >&5
4859 echo "${ECHO_T}no" >&6; }
4860 fi
4861
4862
4863 # Extract the first word of "growisofs", so it can be a program name with args.
4864 set dummy growisofs; ac_word=$2
4865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4867 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4868   echo $ECHO_N "(cached) $ECHO_C" >&6
4869 else
4870   case $GROWISOFS in
4871   [\\/]* | ?:[\\/]*)
4872   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4873   ;;
4874   *)
4875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH
4877 do
4878   IFS=$as_save_IFS
4879   test -z "$as_dir" && as_dir=.
4880   for ac_exec_ext in '' $ac_executable_extensions; do
4881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4882     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884     break 2
4885   fi
4886 done
4887 done
4888 IFS=$as_save_IFS
4889
4890   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4891   ;;
4892 esac
4893 fi
4894 GROWISOFS=$ac_cv_path_GROWISOFS
4895 if test -n "$GROWISOFS"; then
4896   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4897 echo "${ECHO_T}$GROWISOFS" >&6; }
4898 else
4899   { echo "$as_me:$LINENO: result: no" >&5
4900 echo "${ECHO_T}no" >&6; }
4901 fi
4902
4903
4904 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4905 set dummy dvd+rw-mediainfo; ac_word=$2
4906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4908 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4909   echo $ECHO_N "(cached) $ECHO_C" >&6
4910 else
4911   case $DVDRWMEDIAINFO in
4912   [\\/]* | ?:[\\/]*)
4913   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4914   ;;
4915   *)
4916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH
4918 do
4919   IFS=$as_save_IFS
4920   test -z "$as_dir" && as_dir=.
4921   for ac_exec_ext in '' $ac_executable_extensions; do
4922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4923     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4925     break 2
4926   fi
4927 done
4928 done
4929 IFS=$as_save_IFS
4930
4931   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4932   ;;
4933 esac
4934 fi
4935 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4936 if test -n "$DVDRWMEDIAINFO"; then
4937   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4938 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4939 else
4940   { echo "$as_me:$LINENO: result: no" >&5
4941 echo "${ECHO_T}no" >&6; }
4942 fi
4943
4944
4945 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4946 set dummy dvd+rw-format; ac_word=$2
4947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4949 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4950   echo $ECHO_N "(cached) $ECHO_C" >&6
4951 else
4952   case $DVDRWFORMAT in
4953   [\\/]* | ?:[\\/]*)
4954   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4955   ;;
4956   *)
4957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH
4959 do
4960   IFS=$as_save_IFS
4961   test -z "$as_dir" && as_dir=.
4962   for ac_exec_ext in '' $ac_executable_extensions; do
4963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4964     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4966     break 2
4967   fi
4968 done
4969 done
4970 IFS=$as_save_IFS
4971
4972   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4973   ;;
4974 esac
4975 fi
4976 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4977 if test -n "$DVDRWFORMAT"; then
4978   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4979 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4980 else
4981   { echo "$as_me:$LINENO: result: no" >&5
4982 echo "${ECHO_T}no" >&6; }
4983 fi
4984
4985
4986 # Extract the first word of "pkg-config", so it can be a program name with args.
4987 set dummy pkg-config; ac_word=$2
4988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4990 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4991   echo $ECHO_N "(cached) $ECHO_C" >&6
4992 else
4993   case $PKGCONFIG in
4994   [\\/]* | ?:[\\/]*)
4995   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4996   ;;
4997   *)
4998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH
5000 do
5001   IFS=$as_save_IFS
5002   test -z "$as_dir" && as_dir=.
5003   for ac_exec_ext in '' $ac_executable_extensions; do
5004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5005     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5007     break 2
5008   fi
5009 done
5010 done
5011 IFS=$as_save_IFS
5012
5013   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5014   ;;
5015 esac
5016 fi
5017 PKGCONFIG=$ac_cv_path_PKGCONFIG
5018 if test -n "$PKGCONFIG"; then
5019   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5020 echo "${ECHO_T}$PKGCONFIG" >&6; }
5021 else
5022   { echo "$as_me:$LINENO: result: no" >&5
5023 echo "${ECHO_T}no" >&6; }
5024 fi
5025
5026
5027 # Extract the first word of "qmake", so it can be a program name with args.
5028 set dummy qmake; ac_word=$2
5029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5031 if test "${ac_cv_path_QMAKE+set}" = set; then
5032   echo $ECHO_N "(cached) $ECHO_C" >&6
5033 else
5034   case $QMAKE in
5035   [\\/]* | ?:[\\/]*)
5036   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5037   ;;
5038   *)
5039   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5041 do
5042   IFS=$as_save_IFS
5043   test -z "$as_dir" && as_dir=.
5044   for ac_exec_ext in '' $ac_executable_extensions; do
5045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5046     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048     break 2
5049   fi
5050 done
5051 done
5052 IFS=$as_save_IFS
5053
5054   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5055   ;;
5056 esac
5057 fi
5058 QMAKE=$ac_cv_path_QMAKE
5059 if test -n "$QMAKE"; then
5060   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5061 echo "${ECHO_T}$QMAKE" >&6; }
5062 else
5063   { echo "$as_me:$LINENO: result: no" >&5
5064 echo "${ECHO_T}no" >&6; }
5065 fi
5066
5067
5068 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5069 set dummy qmake-qt4; ac_word=$2
5070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5072 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5073   echo $ECHO_N "(cached) $ECHO_C" >&6
5074 else
5075   case $QMAKEQT4 in
5076   [\\/]* | ?:[\\/]*)
5077   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5078   ;;
5079   *)
5080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 for as_dir in $PATH
5082 do
5083   IFS=$as_save_IFS
5084   test -z "$as_dir" && as_dir=.
5085   for ac_exec_ext in '' $ac_executable_extensions; do
5086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5087     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5088     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5089     break 2
5090   fi
5091 done
5092 done
5093 IFS=$as_save_IFS
5094
5095   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5096   ;;
5097 esac
5098 fi
5099 QMAKEQT4=$ac_cv_path_QMAKEQT4
5100 if test -n "$QMAKEQT4"; then
5101   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5102 echo "${ECHO_T}$QMAKEQT4" >&6; }
5103 else
5104   { echo "$as_me:$LINENO: result: no" >&5
5105 echo "${ECHO_T}no" >&6; }
5106 fi
5107
5108
5109 # Extract the first word of "gmake", so it can be a program name with args.
5110 set dummy gmake; ac_word=$2
5111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5113 if test "${ac_cv_path_GMAKE+set}" = set; then
5114   echo $ECHO_N "(cached) $ECHO_C" >&6
5115 else
5116   case $GMAKE in
5117   [\\/]* | ?:[\\/]*)
5118   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5119   ;;
5120   *)
5121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH
5123 do
5124   IFS=$as_save_IFS
5125   test -z "$as_dir" && as_dir=.
5126   for ac_exec_ext in '' $ac_executable_extensions; do
5127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5130     break 2
5131   fi
5132 done
5133 done
5134 IFS=$as_save_IFS
5135
5136   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5137   ;;
5138 esac
5139 fi
5140 GMAKE=$ac_cv_path_GMAKE
5141 if test -n "$GMAKE"; then
5142   { echo "$as_me:$LINENO: result: $GMAKE" >&5
5143 echo "${ECHO_T}$GMAKE" >&6; }
5144 else
5145   { echo "$as_me:$LINENO: result: no" >&5
5146 echo "${ECHO_T}no" >&6; }
5147 fi
5148
5149
5150
5151 if test "x$WXCONFIG" = x; then
5152    WXCONFIG=wx-config
5153 fi
5154 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5155 set dummy ${WXCONFIG}; ac_word=$2
5156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5158 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5159   echo $ECHO_N "(cached) $ECHO_C" >&6
5160 else
5161   case $WXCONFIG in
5162   [\\/]* | ?:[\\/]*)
5163   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5164   ;;
5165   *)
5166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH
5168 do
5169   IFS=$as_save_IFS
5170   test -z "$as_dir" && as_dir=.
5171   for ac_exec_ext in '' $ac_executable_extensions; do
5172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5173     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5175     break 2
5176   fi
5177 done
5178 done
5179 IFS=$as_save_IFS
5180
5181   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5182   ;;
5183 esac
5184 fi
5185 WXCONFIG=$ac_cv_path_WXCONFIG
5186 if test -n "$WXCONFIG"; then
5187   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5188 echo "${ECHO_T}$WXCONFIG" >&6; }
5189 else
5190   { echo "$as_me:$LINENO: result: no" >&5
5191 echo "${ECHO_T}no" >&6; }
5192 fi
5193
5194
5195
5196 # Extract the first word of "cdrecord", so it can be a program name with args.
5197 set dummy cdrecord; ac_word=$2
5198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5200 if test "${ac_cv_path_CDRECORD+set}" = set; then
5201   echo $ECHO_N "(cached) $ECHO_C" >&6
5202 else
5203   case $CDRECORD in
5204   [\\/]* | ?:[\\/]*)
5205   ac_cv_path_CDRECORD="$CDRECORD" # 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_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5216     echo "$as_me:$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_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5224   ;;
5225 esac
5226 fi
5227 CDRECORD=$ac_cv_path_CDRECORD
5228 if test -n "$CDRECORD"; then
5229   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5230 echo "${ECHO_T}$CDRECORD" >&6; }
5231 else
5232   { echo "$as_me:$LINENO: result: no" >&5
5233 echo "${ECHO_T}no" >&6; }
5234 fi
5235
5236
5237 # Extract the first word of "pidof", so it can be a program name with args.
5238 set dummy pidof; ac_word=$2
5239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5241 if test "${ac_cv_path_PIDOF+set}" = set; then
5242   echo $ECHO_N "(cached) $ECHO_C" >&6
5243 else
5244   case $PIDOF in
5245   [\\/]* | ?:[\\/]*)
5246   ac_cv_path_PIDOF="$PIDOF" # 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_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5257     echo "$as_me:$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_PIDOF" && ac_cv_path_PIDOF="pidof"
5265   ;;
5266 esac
5267 fi
5268 PIDOF=$ac_cv_path_PIDOF
5269 if test -n "$PIDOF"; then
5270   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5271 echo "${ECHO_T}$PIDOF" >&6; }
5272 else
5273   { echo "$as_me:$LINENO: result: no" >&5
5274 echo "${ECHO_T}no" >&6; }
5275 fi
5276
5277
5278 for ac_prog in gawk mawk nawk awk
5279 do
5280   # Extract the first word of "$ac_prog", so it can be a program name with args.
5281 set dummy $ac_prog; ac_word=$2
5282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5284 if test "${ac_cv_prog_AWK+set}" = set; then
5285   echo $ECHO_N "(cached) $ECHO_C" >&6
5286 else
5287   if test -n "$AWK"; then
5288   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5289 else
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_prog_AWK="$ac_prog"
5298     echo "$as_me:$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 fi
5306 fi
5307 AWK=$ac_cv_prog_AWK
5308 if test -n "$AWK"; then
5309   { echo "$as_me:$LINENO: result: $AWK" >&5
5310 echo "${ECHO_T}$AWK" >&6; }
5311 else
5312   { echo "$as_me:$LINENO: result: no" >&5
5313 echo "${ECHO_T}no" >&6; }
5314 fi
5315
5316
5317   test -n "$AWK" && break
5318 done
5319
5320 # Some AWK programs fail, so test it and warn the user
5321 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5322       { if ((prog == $2) || (("(" prog ")") == $2) ||
5323       (("" prog "") == $2) ||
5324       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5325 else
5326   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5327    The regex engine of $AWK is too broken to be used you
5328    might want to install GNU AWK.
5329    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5330 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5331    The regex engine of $AWK is too broken to be used you
5332    might want to install GNU AWK.
5333    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5334    { (exit 1); exit 1; }; }
5335 fi
5336 THE_AWK=$AWK
5337 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5338 set dummy $THE_AWK; ac_word=$2
5339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5341 if test "${ac_cv_path_AWK+set}" = set; then
5342   echo $ECHO_N "(cached) $ECHO_C" >&6
5343 else
5344   case $AWK in
5345   [\\/]* | ?:[\\/]*)
5346   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5347   ;;
5348   *)
5349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH
5351 do
5352   IFS=$as_save_IFS
5353   test -z "$as_dir" && as_dir=.
5354   for ac_exec_ext in '' $ac_executable_extensions; do
5355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5356     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5358     break 2
5359   fi
5360 done
5361 done
5362 IFS=$as_save_IFS
5363
5364   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5365   ;;
5366 esac
5367 fi
5368 AWK=$ac_cv_path_AWK
5369 if test -n "$AWK"; then
5370   { echo "$as_me:$LINENO: result: $AWK" >&5
5371 echo "${ECHO_T}$AWK" >&6; }
5372 else
5373   { echo "$as_me:$LINENO: result: no" >&5
5374 echo "${ECHO_T}no" >&6; }
5375 fi
5376
5377
5378
5379
5380 test -n "$ARFLAG" || ARFLAGS="cr"
5381
5382
5383 MAKE_SHELL=/bin/sh
5384
5385
5386
5387
5388
5389
5390
5391 use_libtool=yes
5392 # Check whether --enable-libtool was given.
5393 if test "${enable_libtool+set}" = set; then
5394   enableval=$enable_libtool;
5395        if test x$enableval = xno; then
5396           use_libtool=no
5397        fi
5398
5399
5400 fi
5401
5402 case `pwd` in
5403   *\ * | *\     *)
5404     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5405 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5406 esac
5407
5408
5409
5410 macro_version='2.2.6'
5411 macro_revision='1.3012'
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425 ltmain="$ac_aux_dir/ltmain.sh"
5426
5427 # Make sure we can run config.sub.
5428 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5429   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5430 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5431    { (exit 1); exit 1; }; }
5432
5433 { echo "$as_me:$LINENO: checking build system type" >&5
5434 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5435 if test "${ac_cv_build+set}" = set; then
5436   echo $ECHO_N "(cached) $ECHO_C" >&6
5437 else
5438   ac_build_alias=$build_alias
5439 test "x$ac_build_alias" = x &&
5440   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5441 test "x$ac_build_alias" = x &&
5442   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5443 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5444    { (exit 1); exit 1; }; }
5445 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5446   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5447 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5448    { (exit 1); exit 1; }; }
5449
5450 fi
5451 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5452 echo "${ECHO_T}$ac_cv_build" >&6; }
5453 case $ac_cv_build in
5454 *-*-*) ;;
5455 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5456 echo "$as_me: error: invalid value of canonical build" >&2;}
5457    { (exit 1); exit 1; }; };;
5458 esac
5459 build=$ac_cv_build
5460 ac_save_IFS=$IFS; IFS='-'
5461 set x $ac_cv_build
5462 shift
5463 build_cpu=$1
5464 build_vendor=$2
5465 shift; shift
5466 # Remember, the first character of IFS is used to create $*,
5467 # except with old shells:
5468 build_os=$*
5469 IFS=$ac_save_IFS
5470 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5471
5472
5473 { echo "$as_me:$LINENO: checking host system type" >&5
5474 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5475 if test "${ac_cv_host+set}" = set; then
5476   echo $ECHO_N "(cached) $ECHO_C" >&6
5477 else
5478   if test "x$host_alias" = x; then
5479   ac_cv_host=$ac_cv_build
5480 else
5481   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5482     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5483 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5484    { (exit 1); exit 1; }; }
5485 fi
5486
5487 fi
5488 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5489 echo "${ECHO_T}$ac_cv_host" >&6; }
5490 case $ac_cv_host in
5491 *-*-*) ;;
5492 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5493 echo "$as_me: error: invalid value of canonical host" >&2;}
5494    { (exit 1); exit 1; }; };;
5495 esac
5496 host=$ac_cv_host
5497 ac_save_IFS=$IFS; IFS='-'
5498 set x $ac_cv_host
5499 shift
5500 host_cpu=$1
5501 host_vendor=$2
5502 shift; shift
5503 # Remember, the first character of IFS is used to create $*,
5504 # except with old shells:
5505 host_os=$*
5506 IFS=$ac_save_IFS
5507 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5508
5509
5510 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5511 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5512 if test "${ac_cv_path_SED+set}" = set; then
5513   echo $ECHO_N "(cached) $ECHO_C" >&6
5514 else
5515             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5516      for ac_i in 1 2 3 4 5 6 7; do
5517        ac_script="$ac_script$as_nl$ac_script"
5518      done
5519      echo "$ac_script" | sed 99q >conftest.sed
5520      $as_unset ac_script || ac_script=
5521      # Extract the first word of "sed gsed" to use in msg output
5522 if test -z "$SED"; then
5523 set dummy sed gsed; ac_prog_name=$2
5524 if test "${ac_cv_path_SED+set}" = set; then
5525   echo $ECHO_N "(cached) $ECHO_C" >&6
5526 else
5527   ac_path_SED_found=false
5528 # Loop through the user's path and test for each of PROGNAME-LIST
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5531 do
5532   IFS=$as_save_IFS
5533   test -z "$as_dir" && as_dir=.
5534   for ac_prog in sed gsed; do
5535   for ac_exec_ext in '' $ac_executable_extensions; do
5536     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5537     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5538     # Check for GNU ac_path_SED and select it if it is found.
5539   # Check for GNU $ac_path_SED
5540 case `"$ac_path_SED" --version 2>&1` in
5541 *GNU*)
5542   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5543 *)
5544   ac_count=0
5545   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5546   while :
5547   do
5548     cat "conftest.in" "conftest.in" >"conftest.tmp"
5549     mv "conftest.tmp" "conftest.in"
5550     cp "conftest.in" "conftest.nl"
5551     echo '' >> "conftest.nl"
5552     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5553     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5554     ac_count=`expr $ac_count + 1`
5555     if test $ac_count -gt ${ac_path_SED_max-0}; then
5556       # Best one so far, save it but keep looking for a better one
5557       ac_cv_path_SED="$ac_path_SED"
5558       ac_path_SED_max=$ac_count
5559     fi
5560     # 10*(2^10) chars as input seems more than enough
5561     test $ac_count -gt 10 && break
5562   done
5563   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5564 esac
5565
5566
5567     $ac_path_SED_found && break 3
5568   done
5569 done
5570
5571 done
5572 IFS=$as_save_IFS
5573
5574
5575 fi
5576
5577 SED="$ac_cv_path_SED"
5578 if test -z "$SED"; then
5579   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5580 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5581    { (exit 1); exit 1; }; }
5582 fi
5583
5584 else
5585   ac_cv_path_SED=$SED
5586 fi
5587
5588 fi
5589 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5590 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5591  SED="$ac_cv_path_SED"
5592   rm -f conftest.sed
5593
5594 test -z "$SED" && SED=sed
5595 Xsed="$SED -e 1s/^X//"
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607 { echo "$as_me:$LINENO: checking for fgrep" >&5
5608 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5609 if test "${ac_cv_path_FGREP+set}" = set; then
5610   echo $ECHO_N "(cached) $ECHO_C" >&6
5611 else
5612   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5613    then ac_cv_path_FGREP="$GREP -F"
5614    else
5615      # Extract the first word of "fgrep" to use in msg output
5616 if test -z "$FGREP"; then
5617 set dummy fgrep; ac_prog_name=$2
5618 if test "${ac_cv_path_FGREP+set}" = set; then
5619   echo $ECHO_N "(cached) $ECHO_C" >&6
5620 else
5621   ac_path_FGREP_found=false
5622 # Loop through the user's path and test for each of PROGNAME-LIST
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5625 do
5626   IFS=$as_save_IFS
5627   test -z "$as_dir" && as_dir=.
5628   for ac_prog in fgrep; do
5629   for ac_exec_ext in '' $ac_executable_extensions; do
5630     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5631     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5632     # Check for GNU ac_path_FGREP and select it if it is found.
5633   # Check for GNU $ac_path_FGREP
5634 case `"$ac_path_FGREP" --version 2>&1` in
5635 *GNU*)
5636   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5637 *)
5638   ac_count=0
5639   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5640   while :
5641   do
5642     cat "conftest.in" "conftest.in" >"conftest.tmp"
5643     mv "conftest.tmp" "conftest.in"
5644     cp "conftest.in" "conftest.nl"
5645     echo 'FGREP' >> "conftest.nl"
5646     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5647     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5648     ac_count=`expr $ac_count + 1`
5649     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5650       # Best one so far, save it but keep looking for a better one
5651       ac_cv_path_FGREP="$ac_path_FGREP"
5652       ac_path_FGREP_max=$ac_count
5653     fi
5654     # 10*(2^10) chars as input seems more than enough
5655     test $ac_count -gt 10 && break
5656   done
5657   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5658 esac
5659
5660
5661     $ac_path_FGREP_found && break 3
5662   done
5663 done
5664
5665 done
5666 IFS=$as_save_IFS
5667
5668
5669 fi
5670
5671 FGREP="$ac_cv_path_FGREP"
5672 if test -z "$FGREP"; then
5673   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5674 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5675    { (exit 1); exit 1; }; }
5676 fi
5677
5678 else
5679   ac_cv_path_FGREP=$FGREP
5680 fi
5681
5682
5683    fi
5684 fi
5685 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5686 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5687  FGREP="$ac_cv_path_FGREP"
5688
5689
5690 test -z "$GREP" && GREP=grep
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710 # Check whether --with-gnu-ld was given.
5711 if test "${with_gnu_ld+set}" = set; then
5712   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5713 else
5714   with_gnu_ld=no
5715 fi
5716
5717 ac_prog=ld
5718 if test "$GCC" = yes; then
5719   # Check if gcc -print-prog-name=ld gives a path.
5720   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5721 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5722   case $host in
5723   *-*-mingw*)
5724     # gcc leaves a trailing carriage return which upsets mingw
5725     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5726   *)
5727     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5728   esac
5729   case $ac_prog in
5730     # Accept absolute paths.
5731     [\\/]* | ?:[\\/]*)
5732       re_direlt='/[^/][^/]*/\.\./'
5733       # Canonicalize the pathname of ld
5734       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5735       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5736         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5737       done
5738       test -z "$LD" && LD="$ac_prog"
5739       ;;
5740   "")
5741     # If it fails, then pretend we aren't using GCC.
5742     ac_prog=ld
5743     ;;
5744   *)
5745     # If it is relative, then search for the first ld in PATH.
5746     with_gnu_ld=unknown
5747     ;;
5748   esac
5749 elif test "$with_gnu_ld" = yes; then
5750   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5751 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5752 else
5753   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5754 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5755 fi
5756 if test "${lt_cv_path_LD+set}" = set; then
5757   echo $ECHO_N "(cached) $ECHO_C" >&6
5758 else
5759   if test -z "$LD"; then
5760   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5761   for ac_dir in $PATH; do
5762     IFS="$lt_save_ifs"
5763     test -z "$ac_dir" && ac_dir=.
5764     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5765       lt_cv_path_LD="$ac_dir/$ac_prog"
5766       # Check to see if the program is GNU ld.  I'd rather use --version,
5767       # but apparently some variants of GNU ld only accept -v.
5768       # Break only if it was the GNU/non-GNU ld that we prefer.
5769       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5770       *GNU* | *'with BFD'*)
5771         test "$with_gnu_ld" != no && break
5772         ;;
5773       *)
5774         test "$with_gnu_ld" != yes && break
5775         ;;
5776       esac
5777     fi
5778   done
5779   IFS="$lt_save_ifs"
5780 else
5781   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5782 fi
5783 fi
5784
5785 LD="$lt_cv_path_LD"
5786 if test -n "$LD"; then
5787   { echo "$as_me:$LINENO: result: $LD" >&5
5788 echo "${ECHO_T}$LD" >&6; }
5789 else
5790   { echo "$as_me:$LINENO: result: no" >&5
5791 echo "${ECHO_T}no" >&6; }
5792 fi
5793 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5794 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5795    { (exit 1); exit 1; }; }
5796 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5797 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5798 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5799   echo $ECHO_N "(cached) $ECHO_C" >&6
5800 else
5801   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5802 case `$LD -v 2>&1 </dev/null` in
5803 *GNU* | *'with BFD'*)
5804   lt_cv_prog_gnu_ld=yes
5805   ;;
5806 *)
5807   lt_cv_prog_gnu_ld=no
5808   ;;
5809 esac
5810 fi
5811 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5812 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5813 with_gnu_ld=$lt_cv_prog_gnu_ld
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5824 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5825 if test "${lt_cv_path_NM+set}" = set; then
5826   echo $ECHO_N "(cached) $ECHO_C" >&6
5827 else
5828   if test -n "$NM"; then
5829   # Let the user override the test.
5830   lt_cv_path_NM="$NM"
5831 else
5832   lt_nm_to_check="${ac_tool_prefix}nm"
5833   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5834     lt_nm_to_check="$lt_nm_to_check nm"
5835   fi
5836   for lt_tmp_nm in $lt_nm_to_check; do
5837     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5838     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5839       IFS="$lt_save_ifs"
5840       test -z "$ac_dir" && ac_dir=.
5841       tmp_nm="$ac_dir/$lt_tmp_nm"
5842       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5843         # Check to see if the nm accepts a BSD-compat flag.
5844         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5845         #   nm: unknown option "B" ignored
5846         # Tru64's nm complains that /dev/null is an invalid object file
5847         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5848         */dev/null* | *'Invalid file or object type'*)
5849           lt_cv_path_NM="$tmp_nm -B"
5850           break
5851           ;;
5852         *)
5853           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5854           */dev/null*)
5855             lt_cv_path_NM="$tmp_nm -p"
5856             break
5857             ;;
5858           *)
5859             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5860             continue # so that we can try to find one that supports BSD flags
5861             ;;
5862           esac
5863           ;;
5864         esac
5865       fi
5866     done
5867     IFS="$lt_save_ifs"
5868   done
5869   : ${lt_cv_path_NM=no}
5870 fi
5871 fi
5872 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5873 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5874 if test "$lt_cv_path_NM" != "no"; then
5875   NM="$lt_cv_path_NM"
5876 else
5877   # Didn't find any BSD compatible name lister, look for dumpbin.
5878   if test -n "$ac_tool_prefix"; then
5879   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5880   do
5881     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5882 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5885 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5886   echo $ECHO_N "(cached) $ECHO_C" >&6
5887 else
5888   if test -n "$DUMPBIN"; then
5889   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5890 else
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 for as_dir in $PATH
5893 do
5894   IFS=$as_save_IFS
5895   test -z "$as_dir" && as_dir=.
5896   for ac_exec_ext in '' $ac_executable_extensions; do
5897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5898     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5900     break 2
5901   fi
5902 done
5903 done
5904 IFS=$as_save_IFS
5905
5906 fi
5907 fi
5908 DUMPBIN=$ac_cv_prog_DUMPBIN
5909 if test -n "$DUMPBIN"; then
5910   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5911 echo "${ECHO_T}$DUMPBIN" >&6; }
5912 else
5913   { echo "$as_me:$LINENO: result: no" >&5
5914 echo "${ECHO_T}no" >&6; }
5915 fi
5916
5917
5918     test -n "$DUMPBIN" && break
5919   done
5920 fi
5921 if test -z "$DUMPBIN"; then
5922   ac_ct_DUMPBIN=$DUMPBIN
5923   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5924 do
5925   # Extract the first word of "$ac_prog", so it can be a program name with args.
5926 set dummy $ac_prog; ac_word=$2
5927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5929 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5930   echo $ECHO_N "(cached) $ECHO_C" >&6
5931 else
5932   if test -n "$ac_ct_DUMPBIN"; then
5933   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5934 else
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5937 do
5938   IFS=$as_save_IFS
5939   test -z "$as_dir" && as_dir=.
5940   for ac_exec_ext in '' $ac_executable_extensions; do
5941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5944     break 2
5945   fi
5946 done
5947 done
5948 IFS=$as_save_IFS
5949
5950 fi
5951 fi
5952 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5953 if test -n "$ac_ct_DUMPBIN"; then
5954   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5955 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5956 else
5957   { echo "$as_me:$LINENO: result: no" >&5
5958 echo "${ECHO_T}no" >&6; }
5959 fi
5960
5961
5962   test -n "$ac_ct_DUMPBIN" && break
5963 done
5964
5965   if test "x$ac_ct_DUMPBIN" = x; then
5966     DUMPBIN=":"
5967   else
5968     case $cross_compiling:$ac_tool_warned in
5969 yes:)
5970 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5971 whose name does not start with the host triplet.  If you think this
5972 configuration is useful to you, please write to autoconf@gnu.org." >&5
5973 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5974 whose name does not start with the host triplet.  If you think this
5975 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5976 ac_tool_warned=yes ;;
5977 esac
5978     DUMPBIN=$ac_ct_DUMPBIN
5979   fi
5980 fi
5981
5982
5983   if test "$DUMPBIN" != ":"; then
5984     NM="$DUMPBIN"
5985   fi
5986 fi
5987 test -z "$NM" && NM=nm
5988
5989
5990
5991
5992
5993
5994 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5995 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5996 if test "${lt_cv_nm_interface+set}" = set; then
5997   echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999   lt_cv_nm_interface="BSD nm"
6000   echo "int some_variable = 0;" > conftest.$ac_ext
6001   (eval echo "\"\$as_me:6001: $ac_compile\"" >&5)
6002   (eval "$ac_compile" 2>conftest.err)
6003   cat conftest.err >&5
6004   (eval echo "\"\$as_me:6004: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6005   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6006   cat conftest.err >&5
6007   (eval echo "\"\$as_me:6007: output\"" >&5)
6008   cat conftest.out >&5
6009   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6010     lt_cv_nm_interface="MS dumpbin"
6011   fi
6012   rm -f conftest*
6013 fi
6014 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6015 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6016
6017 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6018 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6019 LN_S=$as_ln_s
6020 if test "$LN_S" = "ln -s"; then
6021   { echo "$as_me:$LINENO: result: yes" >&5
6022 echo "${ECHO_T}yes" >&6; }
6023 else
6024   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6025 echo "${ECHO_T}no, using $LN_S" >&6; }
6026 fi
6027
6028 # find the maximum length of command line arguments
6029 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6030 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6031 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6032   echo $ECHO_N "(cached) $ECHO_C" >&6
6033 else
6034     i=0
6035   teststring="ABCD"
6036
6037   case $build_os in
6038   msdosdjgpp*)
6039     # On DJGPP, this test can blow up pretty badly due to problems in libc
6040     # (any single argument exceeding 2000 bytes causes a buffer overrun
6041     # during glob expansion).  Even if it were fixed, the result of this
6042     # check would be larger than it should be.
6043     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6044     ;;
6045
6046   gnu*)
6047     # Under GNU Hurd, this test is not required because there is
6048     # no limit to the length of command line arguments.
6049     # Libtool will interpret -1 as no limit whatsoever
6050     lt_cv_sys_max_cmd_len=-1;
6051     ;;
6052
6053   cygwin* | mingw* | cegcc*)
6054     # On Win9x/ME, this test blows up -- it succeeds, but takes
6055     # about 5 minutes as the teststring grows exponentially.
6056     # Worse, since 9x/ME are not pre-emptively multitasking,
6057     # you end up with a "frozen" computer, even though with patience
6058     # the test eventually succeeds (with a max line length of 256k).
6059     # Instead, let's just punt: use the minimum linelength reported by
6060     # all of the supported platforms: 8192 (on NT/2K/XP).
6061     lt_cv_sys_max_cmd_len=8192;
6062     ;;
6063
6064   amigaos*)
6065     # On AmigaOS with pdksh, this test takes hours, literally.
6066     # So we just punt and use a minimum line length of 8192.
6067     lt_cv_sys_max_cmd_len=8192;
6068     ;;
6069
6070   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6071     # This has been around since 386BSD, at least.  Likely further.
6072     if test -x /sbin/sysctl; then
6073       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6074     elif test -x /usr/sbin/sysctl; then
6075       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6076     else
6077       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6078     fi
6079     # And add a safety zone
6080     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6081     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6082     ;;
6083
6084   interix*)
6085     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6086     lt_cv_sys_max_cmd_len=196608
6087     ;;
6088
6089   osf*)
6090     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6091     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6092     # nice to cause kernel panics so lets avoid the loop below.
6093     # First set a reasonable default.
6094     lt_cv_sys_max_cmd_len=16384
6095     #
6096     if test -x /sbin/sysconfig; then
6097       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6098         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6099       esac
6100     fi
6101     ;;
6102   sco3.2v5*)
6103     lt_cv_sys_max_cmd_len=102400
6104     ;;
6105   sysv5* | sco5v6* | sysv4.2uw2*)
6106     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6107     if test -n "$kargmax"; then
6108       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6109     else
6110       lt_cv_sys_max_cmd_len=32768
6111     fi
6112     ;;
6113   *)
6114     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6115     if test -n "$lt_cv_sys_max_cmd_len"; then
6116       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6117       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6118     else
6119       # Make teststring a little bigger before we do anything with it.
6120       # a 1K string should be a reasonable start.
6121       for i in 1 2 3 4 5 6 7 8 ; do
6122         teststring=$teststring$teststring
6123       done
6124       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6125       # If test is not a shell built-in, we'll probably end up computing a
6126       # maximum length that is only half of the actual maximum length, but
6127       # we can't tell.
6128       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6129                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6130               test $i != 17 # 1/2 MB should be enough
6131       do
6132         i=`expr $i + 1`
6133         teststring=$teststring$teststring
6134       done
6135       # Only check the string length outside the loop.
6136       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6137       teststring=
6138       # Add a significant safety factor because C++ compilers can tack on
6139       # massive amounts of additional arguments before passing them to the
6140       # linker.  It appears as though 1/2 is a usable value.
6141       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6142     fi
6143     ;;
6144   esac
6145
6146 fi
6147
6148 if test -n $lt_cv_sys_max_cmd_len ; then
6149   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6150 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6151 else
6152   { echo "$as_me:$LINENO: result: none" >&5
6153 echo "${ECHO_T}none" >&6; }
6154 fi
6155 max_cmd_len=$lt_cv_sys_max_cmd_len
6156
6157
6158
6159
6160
6161
6162 : ${CP="cp -f"}
6163 : ${MV="mv -f"}
6164 : ${RM="rm -f"}
6165
6166 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6167 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6168 # Try some XSI features
6169 xsi_shell=no
6170 ( _lt_dummy="a/b/c"
6171   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6172       = c,a/b,, \
6173     && eval 'test $(( 1 + 1 )) -eq 2 \
6174     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6175   && xsi_shell=yes
6176 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6177 echo "${ECHO_T}$xsi_shell" >&6; }
6178
6179
6180 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6181 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6182 lt_shell_append=no
6183 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6184     >/dev/null 2>&1 \
6185   && lt_shell_append=yes
6186 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6187 echo "${ECHO_T}$lt_shell_append" >&6; }
6188
6189
6190 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6191   lt_unset=unset
6192 else
6193   lt_unset=false
6194 fi
6195
6196
6197
6198
6199
6200 # test EBCDIC or ASCII
6201 case `echo X|tr X '\101'` in
6202  A) # ASCII based system
6203     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6204   lt_SP2NL='tr \040 \012'
6205   lt_NL2SP='tr \015\012 \040\040'
6206   ;;
6207  *) # EBCDIC based system
6208   lt_SP2NL='tr \100 \n'
6209   lt_NL2SP='tr \r\n \100\100'
6210   ;;
6211 esac
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6222 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6223 if test "${lt_cv_ld_reload_flag+set}" = set; then
6224   echo $ECHO_N "(cached) $ECHO_C" >&6
6225 else
6226   lt_cv_ld_reload_flag='-r'
6227 fi
6228 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6229 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6230 reload_flag=$lt_cv_ld_reload_flag
6231 case $reload_flag in
6232 "" | " "*) ;;
6233 *) reload_flag=" $reload_flag" ;;
6234 esac
6235 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6236 case $host_os in
6237   darwin*)
6238     if test "$GCC" = yes; then
6239       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6240     else
6241       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6242     fi
6243     ;;
6244 esac
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254 if test -n "$ac_tool_prefix"; then
6255   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6256 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6259 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6260   echo $ECHO_N "(cached) $ECHO_C" >&6
6261 else
6262   if test -n "$OBJDUMP"; then
6263   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6264 else
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 for as_dir in $PATH
6267 do
6268   IFS=$as_save_IFS
6269   test -z "$as_dir" && as_dir=.
6270   for ac_exec_ext in '' $ac_executable_extensions; do
6271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6272     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6274     break 2
6275   fi
6276 done
6277 done
6278 IFS=$as_save_IFS
6279
6280 fi
6281 fi
6282 OBJDUMP=$ac_cv_prog_OBJDUMP
6283 if test -n "$OBJDUMP"; then
6284   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6285 echo "${ECHO_T}$OBJDUMP" >&6; }
6286 else
6287   { echo "$as_me:$LINENO: result: no" >&5
6288 echo "${ECHO_T}no" >&6; }
6289 fi
6290
6291
6292 fi
6293 if test -z "$ac_cv_prog_OBJDUMP"; then
6294   ac_ct_OBJDUMP=$OBJDUMP
6295   # Extract the first word of "objdump", so it can be a program name with args.
6296 set dummy objdump; ac_word=$2
6297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6299 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6300   echo $ECHO_N "(cached) $ECHO_C" >&6
6301 else
6302   if test -n "$ac_ct_OBJDUMP"; then
6303   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6304 else
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 for as_dir in $PATH
6307 do
6308   IFS=$as_save_IFS
6309   test -z "$as_dir" && as_dir=.
6310   for ac_exec_ext in '' $ac_executable_extensions; do
6311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6312     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6314     break 2
6315   fi
6316 done
6317 done
6318 IFS=$as_save_IFS
6319
6320 fi
6321 fi
6322 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6323 if test -n "$ac_ct_OBJDUMP"; then
6324   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6325 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6326 else
6327   { echo "$as_me:$LINENO: result: no" >&5
6328 echo "${ECHO_T}no" >&6; }
6329 fi
6330
6331   if test "x$ac_ct_OBJDUMP" = x; then
6332     OBJDUMP="false"
6333   else
6334     case $cross_compiling:$ac_tool_warned in
6335 yes:)
6336 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6337 whose name does not start with the host triplet.  If you think this
6338 configuration is useful to you, please write to autoconf@gnu.org." >&5
6339 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6340 whose name does not start with the host triplet.  If you think this
6341 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6342 ac_tool_warned=yes ;;
6343 esac
6344     OBJDUMP=$ac_ct_OBJDUMP
6345   fi
6346 else
6347   OBJDUMP="$ac_cv_prog_OBJDUMP"
6348 fi
6349
6350 test -z "$OBJDUMP" && OBJDUMP=objdump
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6361 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6362 if test "${lt_cv_deplibs_check_method+set}" = set; then
6363   echo $ECHO_N "(cached) $ECHO_C" >&6
6364 else
6365   lt_cv_file_magic_cmd='$MAGIC_CMD'
6366 lt_cv_file_magic_test_file=
6367 lt_cv_deplibs_check_method='unknown'
6368 # Need to set the preceding variable on all platforms that support
6369 # interlibrary dependencies.
6370 # 'none' -- dependencies not supported.
6371 # `unknown' -- same as none, but documents that we really don't know.
6372 # 'pass_all' -- all dependencies passed with no checks.
6373 # 'test_compile' -- check by making test program.
6374 # 'file_magic [[regex]]' -- check by looking for files in library path
6375 # which responds to the $file_magic_cmd with a given extended regex.
6376 # If you have `file' or equivalent on your system and you're not sure
6377 # whether `pass_all' will *always* work, you probably want this one.
6378
6379 case $host_os in
6380 aix[4-9]*)
6381   lt_cv_deplibs_check_method=pass_all
6382   ;;
6383
6384 beos*)
6385   lt_cv_deplibs_check_method=pass_all
6386   ;;
6387
6388 bsdi[45]*)
6389   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6390   lt_cv_file_magic_cmd='/usr/bin/file -L'
6391   lt_cv_file_magic_test_file=/shlib/libc.so
6392   ;;
6393
6394 cygwin*)
6395   # func_win32_libid is a shell function defined in ltmain.sh
6396   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6397   lt_cv_file_magic_cmd='func_win32_libid'
6398   ;;
6399
6400 mingw* | pw32*)
6401   # Base MSYS/MinGW do not provide the 'file' command needed by
6402   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6403   # unless we find 'file', for example because we are cross-compiling.
6404   if ( file / ) >/dev/null 2>&1; then
6405     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6406     lt_cv_file_magic_cmd='func_win32_libid'
6407   else
6408     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6409     lt_cv_file_magic_cmd='$OBJDUMP -f'
6410   fi
6411   ;;
6412
6413 cegcc)
6414   # use the weaker test based on 'objdump'. See mingw*.
6415   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6416   lt_cv_file_magic_cmd='$OBJDUMP -f'
6417   ;;
6418
6419 darwin* | rhapsody*)
6420   lt_cv_deplibs_check_method=pass_all
6421   ;;
6422
6423 freebsd* | dragonfly*)
6424   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6425     case $host_cpu in
6426     i*86 )
6427       # Not sure whether the presence of OpenBSD here was a mistake.
6428       # Let's accept both of them until this is cleared up.
6429       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6430       lt_cv_file_magic_cmd=/usr/bin/file
6431       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6432       ;;
6433     esac
6434   else
6435     lt_cv_deplibs_check_method=pass_all
6436   fi
6437   ;;
6438
6439 gnu*)
6440   lt_cv_deplibs_check_method=pass_all
6441   ;;
6442
6443 hpux10.20* | hpux11*)
6444   lt_cv_file_magic_cmd=/usr/bin/file
6445   case $host_cpu in
6446   ia64*)
6447     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6448     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6449     ;;
6450   hppa*64*)
6451     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]'
6452     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6453     ;;
6454   *)
6455     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6456     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6457     ;;
6458   esac
6459   ;;
6460
6461 interix[3-9]*)
6462   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6463   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6464   ;;
6465
6466 irix5* | irix6* | nonstopux*)
6467   case $LD in
6468   *-32|*"-32 ") libmagic=32-bit;;
6469   *-n32|*"-n32 ") libmagic=N32;;
6470   *-64|*"-64 ") libmagic=64-bit;;
6471   *) libmagic=never-match;;
6472   esac
6473   lt_cv_deplibs_check_method=pass_all
6474   ;;
6475
6476 # This must be Linux ELF.
6477 linux* | k*bsd*-gnu)
6478   lt_cv_deplibs_check_method=pass_all
6479   ;;
6480
6481 netbsd*)
6482   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6483     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6484   else
6485     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6486   fi
6487   ;;
6488
6489 newos6*)
6490   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6491   lt_cv_file_magic_cmd=/usr/bin/file
6492   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6493   ;;
6494
6495 *nto* | *qnx*)
6496   lt_cv_deplibs_check_method=pass_all
6497   ;;
6498
6499 openbsd*)
6500   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6501     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6502   else
6503     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6504   fi
6505   ;;
6506
6507 osf3* | osf4* | osf5*)
6508   lt_cv_deplibs_check_method=pass_all
6509   ;;
6510
6511 rdos*)
6512   lt_cv_deplibs_check_method=pass_all
6513   ;;
6514
6515 solaris*)
6516   lt_cv_deplibs_check_method=pass_all
6517   ;;
6518
6519 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6520   lt_cv_deplibs_check_method=pass_all
6521   ;;
6522
6523 sysv4 | sysv4.3*)
6524   case $host_vendor in
6525   motorola)
6526     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]'
6527     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6528     ;;
6529   ncr)
6530     lt_cv_deplibs_check_method=pass_all
6531     ;;
6532   sequent)
6533     lt_cv_file_magic_cmd='/bin/file'
6534     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6535     ;;
6536   sni)
6537     lt_cv_file_magic_cmd='/bin/file'
6538     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6539     lt_cv_file_magic_test_file=/lib/libc.so
6540     ;;
6541   siemens)
6542     lt_cv_deplibs_check_method=pass_all
6543     ;;
6544   pc)
6545     lt_cv_deplibs_check_method=pass_all
6546     ;;
6547   esac
6548   ;;
6549
6550 tpf*)
6551   lt_cv_deplibs_check_method=pass_all
6552   ;;
6553 esac
6554
6555 fi
6556 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6557 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6558 file_magic_cmd=$lt_cv_file_magic_cmd
6559 deplibs_check_method=$lt_cv_deplibs_check_method
6560 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573 if test -n "$ac_tool_prefix"; then
6574   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6575 set dummy ${ac_tool_prefix}ar; ac_word=$2
6576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6578 if test "${ac_cv_prog_AR+set}" = set; then
6579   echo $ECHO_N "(cached) $ECHO_C" >&6
6580 else
6581   if test -n "$AR"; then
6582   ac_cv_prog_AR="$AR" # Let the user override the test.
6583 else
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6586 do
6587   IFS=$as_save_IFS
6588   test -z "$as_dir" && as_dir=.
6589   for ac_exec_ext in '' $ac_executable_extensions; do
6590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6591     ac_cv_prog_AR="${ac_tool_prefix}ar"
6592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6593     break 2
6594   fi
6595 done
6596 done
6597 IFS=$as_save_IFS
6598
6599 fi
6600 fi
6601 AR=$ac_cv_prog_AR
6602 if test -n "$AR"; then
6603   { echo "$as_me:$LINENO: result: $AR" >&5
6604 echo "${ECHO_T}$AR" >&6; }
6605 else
6606   { echo "$as_me:$LINENO: result: no" >&5
6607 echo "${ECHO_T}no" >&6; }
6608 fi
6609
6610
6611 fi
6612 if test -z "$ac_cv_prog_AR"; then
6613   ac_ct_AR=$AR
6614   # Extract the first word of "ar", so it can be a program name with args.
6615 set dummy ar; ac_word=$2
6616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6618 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6619   echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621   if test -n "$ac_ct_AR"; then
6622   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6623 else
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625 for as_dir in $PATH
6626 do
6627   IFS=$as_save_IFS
6628   test -z "$as_dir" && as_dir=.
6629   for ac_exec_ext in '' $ac_executable_extensions; do
6630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6631     ac_cv_prog_ac_ct_AR="ar"
6632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6633     break 2
6634   fi
6635 done
6636 done
6637 IFS=$as_save_IFS
6638
6639 fi
6640 fi
6641 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6642 if test -n "$ac_ct_AR"; then
6643   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6644 echo "${ECHO_T}$ac_ct_AR" >&6; }
6645 else
6646   { echo "$as_me:$LINENO: result: no" >&5
6647 echo "${ECHO_T}no" >&6; }
6648 fi
6649
6650   if test "x$ac_ct_AR" = x; then
6651     AR="false"
6652   else
6653     case $cross_compiling:$ac_tool_warned in
6654 yes:)
6655 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6656 whose name does not start with the host triplet.  If you think this
6657 configuration is useful to you, please write to autoconf@gnu.org." >&5
6658 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6659 whose name does not start with the host triplet.  If you think this
6660 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6661 ac_tool_warned=yes ;;
6662 esac
6663     AR=$ac_ct_AR
6664   fi
6665 else
6666   AR="$ac_cv_prog_AR"
6667 fi
6668
6669 test -z "$AR" && AR=ar
6670 test -z "$AR_FLAGS" && AR_FLAGS=cru
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682 if test -n "$ac_tool_prefix"; then
6683   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6684 set dummy ${ac_tool_prefix}strip; ac_word=$2
6685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6687 if test "${ac_cv_prog_STRIP+set}" = set; then
6688   echo $ECHO_N "(cached) $ECHO_C" >&6
6689 else
6690   if test -n "$STRIP"; then
6691   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6692 else
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 for as_dir in $PATH
6695 do
6696   IFS=$as_save_IFS
6697   test -z "$as_dir" && as_dir=.
6698   for ac_exec_ext in '' $ac_executable_extensions; do
6699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6700     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6702     break 2
6703   fi
6704 done
6705 done
6706 IFS=$as_save_IFS
6707
6708 fi
6709 fi
6710 STRIP=$ac_cv_prog_STRIP
6711 if test -n "$STRIP"; then
6712   { echo "$as_me:$LINENO: result: $STRIP" >&5
6713 echo "${ECHO_T}$STRIP" >&6; }
6714 else
6715   { echo "$as_me:$LINENO: result: no" >&5
6716 echo "${ECHO_T}no" >&6; }
6717 fi
6718
6719
6720 fi
6721 if test -z "$ac_cv_prog_STRIP"; then
6722   ac_ct_STRIP=$STRIP
6723   # Extract the first word of "strip", so it can be a program name with args.
6724 set dummy strip; ac_word=$2
6725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6728   echo $ECHO_N "(cached) $ECHO_C" >&6
6729 else
6730   if test -n "$ac_ct_STRIP"; then
6731   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6732 else
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6735 do
6736   IFS=$as_save_IFS
6737   test -z "$as_dir" && as_dir=.
6738   for ac_exec_ext in '' $ac_executable_extensions; do
6739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740     ac_cv_prog_ac_ct_STRIP="strip"
6741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742     break 2
6743   fi
6744 done
6745 done
6746 IFS=$as_save_IFS
6747
6748 fi
6749 fi
6750 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6751 if test -n "$ac_ct_STRIP"; then
6752   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6753 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6754 else
6755   { echo "$as_me:$LINENO: result: no" >&5
6756 echo "${ECHO_T}no" >&6; }
6757 fi
6758
6759   if test "x$ac_ct_STRIP" = x; then
6760     STRIP=":"
6761   else
6762     case $cross_compiling:$ac_tool_warned in
6763 yes:)
6764 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6765 whose name does not start with the host triplet.  If you think this
6766 configuration is useful to you, please write to autoconf@gnu.org." >&5
6767 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6768 whose name does not start with the host triplet.  If you think this
6769 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6770 ac_tool_warned=yes ;;
6771 esac
6772     STRIP=$ac_ct_STRIP
6773   fi
6774 else
6775   STRIP="$ac_cv_prog_STRIP"
6776 fi
6777
6778 test -z "$STRIP" && STRIP=:
6779
6780
6781
6782
6783
6784
6785 if test -n "$ac_tool_prefix"; then
6786   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6787 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790 if test "${ac_cv_prog_RANLIB+set}" = set; then
6791   echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793   if test -n "$RANLIB"; then
6794   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6795 else
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 for as_dir in $PATH
6798 do
6799   IFS=$as_save_IFS
6800   test -z "$as_dir" && as_dir=.
6801   for ac_exec_ext in '' $ac_executable_extensions; do
6802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6803     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805     break 2
6806   fi
6807 done
6808 done
6809 IFS=$as_save_IFS
6810
6811 fi
6812 fi
6813 RANLIB=$ac_cv_prog_RANLIB
6814 if test -n "$RANLIB"; then
6815   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6816 echo "${ECHO_T}$RANLIB" >&6; }
6817 else
6818   { echo "$as_me:$LINENO: result: no" >&5
6819 echo "${ECHO_T}no" >&6; }
6820 fi
6821
6822
6823 fi
6824 if test -z "$ac_cv_prog_RANLIB"; then
6825   ac_ct_RANLIB=$RANLIB
6826   # Extract the first word of "ranlib", so it can be a program name with args.
6827 set dummy ranlib; ac_word=$2
6828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6830 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6831   echo $ECHO_N "(cached) $ECHO_C" >&6
6832 else
6833   if test -n "$ac_ct_RANLIB"; then
6834   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6835 else
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 for as_dir in $PATH
6838 do
6839   IFS=$as_save_IFS
6840   test -z "$as_dir" && as_dir=.
6841   for ac_exec_ext in '' $ac_executable_extensions; do
6842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6843     ac_cv_prog_ac_ct_RANLIB="ranlib"
6844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6845     break 2
6846   fi
6847 done
6848 done
6849 IFS=$as_save_IFS
6850
6851 fi
6852 fi
6853 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6854 if test -n "$ac_ct_RANLIB"; then
6855   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6856 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6857 else
6858   { echo "$as_me:$LINENO: result: no" >&5
6859 echo "${ECHO_T}no" >&6; }
6860 fi
6861
6862   if test "x$ac_ct_RANLIB" = x; then
6863     RANLIB=":"
6864   else
6865     case $cross_compiling:$ac_tool_warned in
6866 yes:)
6867 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6868 whose name does not start with the host triplet.  If you think this
6869 configuration is useful to you, please write to autoconf@gnu.org." >&5
6870 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6871 whose name does not start with the host triplet.  If you think this
6872 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6873 ac_tool_warned=yes ;;
6874 esac
6875     RANLIB=$ac_ct_RANLIB
6876   fi
6877 else
6878   RANLIB="$ac_cv_prog_RANLIB"
6879 fi
6880
6881 test -z "$RANLIB" && RANLIB=:
6882
6883
6884
6885
6886
6887
6888 # Determine commands to create old-style static archives.
6889 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6890 old_postinstall_cmds='chmod 644 $oldlib'
6891 old_postuninstall_cmds=
6892
6893 if test -n "$RANLIB"; then
6894   case $host_os in
6895   openbsd*)
6896     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6897     ;;
6898   *)
6899     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6900     ;;
6901   esac
6902   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6903 fi
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938 # If no C compiler was specified, use CC.
6939 LTCC=${LTCC-"$CC"}
6940
6941 # If no C compiler flags were specified, use CFLAGS.
6942 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6943
6944 # Allow CC to be a program name with arguments.
6945 compiler=$CC
6946
6947
6948 # Check for command to grab the raw symbol name followed by C symbol from nm.
6949 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6950 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6951 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6952   echo $ECHO_N "(cached) $ECHO_C" >&6
6953 else
6954
6955 # These are sane defaults that work on at least a few old systems.
6956 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6957
6958 # Character class describing NM global symbol codes.
6959 symcode='[BCDEGRST]'
6960
6961 # Regexp to match symbols that can be accessed directly from C.
6962 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6963
6964 # Define system-specific variables.
6965 case $host_os in
6966 aix*)
6967   symcode='[BCDT]'
6968   ;;
6969 cygwin* | mingw* | pw32* | cegcc*)
6970   symcode='[ABCDGISTW]'
6971   ;;
6972 hpux*)
6973   if test "$host_cpu" = ia64; then
6974     symcode='[ABCDEGRST]'
6975   fi
6976   ;;
6977 irix* | nonstopux*)
6978   symcode='[BCDEGRST]'
6979   ;;
6980 osf*)
6981   symcode='[BCDEGQRST]'
6982   ;;
6983 solaris*)
6984   symcode='[BDRT]'
6985   ;;
6986 sco3.2v5*)
6987   symcode='[DT]'
6988   ;;
6989 sysv4.2uw2*)
6990   symcode='[DT]'
6991   ;;
6992 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6993   symcode='[ABDT]'
6994   ;;
6995 sysv4)
6996   symcode='[DFNSTU]'
6997   ;;
6998 esac
6999
7000 # If we're using GNU nm, then use its standard symbol codes.
7001 case `$NM -V 2>&1` in
7002 *GNU* | *'with BFD'*)
7003   symcode='[ABCDGIRSTW]' ;;
7004 esac
7005
7006 # Transform an extracted symbol line into a proper C declaration.
7007 # Some systems (esp. on ia64) link data and code symbols differently,
7008 # so use this general approach.
7009 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7010
7011 # Transform an extracted symbol line into symbol name and symbol address
7012 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7013 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'"
7014
7015 # Handle CRLF in mingw tool chain
7016 opt_cr=
7017 case $build_os in
7018 mingw*)
7019   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7020   ;;
7021 esac
7022
7023 # Try without a prefix underscore, then with it.
7024 for ac_symprfx in "" "_"; do
7025
7026   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7027   symxfrm="\\1 $ac_symprfx\\2 \\2"
7028
7029   # Write the raw and C identifiers.
7030   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7031     # Fake it for dumpbin and say T for any non-static function
7032     # and D for any global variable.
7033     # Also find C++ and __fastcall symbols from MSVC++,
7034     # which start with @ or ?.
7035     lt_cv_sys_global_symbol_pipe="$AWK '"\
7036 "     {last_section=section; section=\$ 3};"\
7037 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7038 "     \$ 0!~/External *\|/{next};"\
7039 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7040 "     {if(hide[section]) next};"\
7041 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7042 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7043 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7044 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7045 "     ' prfx=^$ac_symprfx"
7046   else
7047     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7048   fi
7049
7050   # Check to see that the pipe works correctly.
7051   pipe_works=no
7052
7053   rm -f conftest*
7054   cat > conftest.$ac_ext <<_LT_EOF
7055 #ifdef __cplusplus
7056 extern "C" {
7057 #endif
7058 char nm_test_var;
7059 void nm_test_func(void);
7060 void nm_test_func(void){}
7061 #ifdef __cplusplus
7062 }
7063 #endif
7064 int main(){nm_test_var='a';nm_test_func();return(0);}
7065 _LT_EOF
7066
7067   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7068   (eval $ac_compile) 2>&5
7069   ac_status=$?
7070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071   (exit $ac_status); }; then
7072     # Now try to grab the symbols.
7073     nlist=conftest.nm
7074     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7075   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7076   ac_status=$?
7077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078   (exit $ac_status); } && test -s "$nlist"; then
7079       # Try sorting and uniquifying the output.
7080       if sort "$nlist" | uniq > "$nlist"T; then
7081         mv -f "$nlist"T "$nlist"
7082       else
7083         rm -f "$nlist"T
7084       fi
7085
7086       # Make sure that we snagged all the symbols we need.
7087       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7088         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7089           cat <<_LT_EOF > conftest.$ac_ext
7090 #ifdef __cplusplus
7091 extern "C" {
7092 #endif
7093
7094 _LT_EOF
7095           # Now generate the symbol file.
7096           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7097
7098           cat <<_LT_EOF >> conftest.$ac_ext
7099
7100 /* The mapping between symbol names and symbols.  */
7101 const struct {
7102   const char *name;
7103   void       *address;
7104 }
7105 lt__PROGRAM__LTX_preloaded_symbols[] =
7106 {
7107   { "@PROGRAM@", (void *) 0 },
7108 _LT_EOF
7109           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7110           cat <<\_LT_EOF >> conftest.$ac_ext
7111   {0, (void *) 0}
7112 };
7113
7114 /* This works around a problem in FreeBSD linker */
7115 #ifdef FREEBSD_WORKAROUND
7116 static const void *lt_preloaded_setup() {
7117   return lt__PROGRAM__LTX_preloaded_symbols;
7118 }
7119 #endif
7120
7121 #ifdef __cplusplus
7122 }
7123 #endif
7124 _LT_EOF
7125           # Now try linking the two files.
7126           mv conftest.$ac_objext conftstm.$ac_objext
7127           lt_save_LIBS="$LIBS"
7128           lt_save_CFLAGS="$CFLAGS"
7129           LIBS="conftstm.$ac_objext"
7130           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7131           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7132   (eval $ac_link) 2>&5
7133   ac_status=$?
7134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7136             pipe_works=yes
7137           fi
7138           LIBS="$lt_save_LIBS"
7139           CFLAGS="$lt_save_CFLAGS"
7140         else
7141           echo "cannot find nm_test_func in $nlist" >&5
7142         fi
7143       else
7144         echo "cannot find nm_test_var in $nlist" >&5
7145       fi
7146     else
7147       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7148     fi
7149   else
7150     echo "$progname: failed program was:" >&5
7151     cat conftest.$ac_ext >&5
7152   fi
7153   rm -rf conftest* conftst*
7154
7155   # Do not use the global_symbol_pipe unless it works.
7156   if test "$pipe_works" = yes; then
7157     break
7158   else
7159     lt_cv_sys_global_symbol_pipe=
7160   fi
7161 done
7162
7163 fi
7164
7165 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7166   lt_cv_sys_global_symbol_to_cdecl=
7167 fi
7168 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7169   { echo "$as_me:$LINENO: result: failed" >&5
7170 echo "${ECHO_T}failed" >&6; }
7171 else
7172   { echo "$as_me:$LINENO: result: ok" >&5
7173 echo "${ECHO_T}ok" >&6; }
7174 fi
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197 # Check whether --enable-libtool-lock was given.
7198 if test "${enable_libtool_lock+set}" = set; then
7199   enableval=$enable_libtool_lock;
7200 fi
7201
7202 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7203
7204 # Some flags need to be propagated to the compiler or linker for good
7205 # libtool support.
7206 case $host in
7207 ia64-*-hpux*)
7208   # Find out which ABI we are using.
7209   echo 'int i;' > conftest.$ac_ext
7210   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7211   (eval $ac_compile) 2>&5
7212   ac_status=$?
7213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214   (exit $ac_status); }; then
7215     case `/usr/bin/file conftest.$ac_objext` in
7216       *ELF-32*)
7217         HPUX_IA64_MODE="32"
7218         ;;
7219       *ELF-64*)
7220         HPUX_IA64_MODE="64"
7221         ;;
7222     esac
7223   fi
7224   rm -rf conftest*
7225   ;;
7226 *-*-irix6*)
7227   # Find out which ABI we are using.
7228   echo '#line 7228 "configure"' > conftest.$ac_ext
7229   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7230   (eval $ac_compile) 2>&5
7231   ac_status=$?
7232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233   (exit $ac_status); }; then
7234     if test "$lt_cv_prog_gnu_ld" = yes; then
7235       case `/usr/bin/file conftest.$ac_objext` in
7236         *32-bit*)
7237           LD="${LD-ld} -melf32bsmip"
7238           ;;
7239         *N32*)
7240           LD="${LD-ld} -melf32bmipn32"
7241           ;;
7242         *64-bit*)
7243           LD="${LD-ld} -melf64bmip"
7244         ;;
7245       esac
7246     else
7247       case `/usr/bin/file conftest.$ac_objext` in
7248         *32-bit*)
7249           LD="${LD-ld} -32"
7250           ;;
7251         *N32*)
7252           LD="${LD-ld} -n32"
7253           ;;
7254         *64-bit*)
7255           LD="${LD-ld} -64"
7256           ;;
7257       esac
7258     fi
7259   fi
7260   rm -rf conftest*
7261   ;;
7262
7263 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7264 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7265   # Find out which ABI we are using.
7266   echo 'int i;' > conftest.$ac_ext
7267   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7268   (eval $ac_compile) 2>&5
7269   ac_status=$?
7270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271   (exit $ac_status); }; then
7272     case `/usr/bin/file conftest.o` in
7273       *32-bit*)
7274         case $host in
7275           x86_64-*kfreebsd*-gnu)
7276             LD="${LD-ld} -m elf_i386_fbsd"
7277             ;;
7278           x86_64-*linux*)
7279             LD="${LD-ld} -m elf_i386"
7280             ;;
7281           ppc64-*linux*|powerpc64-*linux*)
7282             LD="${LD-ld} -m elf32ppclinux"
7283             ;;
7284           s390x-*linux*)
7285             LD="${LD-ld} -m elf_s390"
7286             ;;
7287           sparc64-*linux*)
7288             LD="${LD-ld} -m elf32_sparc"
7289             ;;
7290         esac
7291         ;;
7292       *64-bit*)
7293         case $host in
7294           x86_64-*kfreebsd*-gnu)
7295             LD="${LD-ld} -m elf_x86_64_fbsd"
7296             ;;
7297           x86_64-*linux*)
7298             LD="${LD-ld} -m elf_x86_64"
7299             ;;
7300           ppc*-*linux*|powerpc*-*linux*)
7301             LD="${LD-ld} -m elf64ppc"
7302             ;;
7303           s390*-*linux*|s390*-*tpf*)
7304             LD="${LD-ld} -m elf64_s390"
7305             ;;
7306           sparc*-*linux*)
7307             LD="${LD-ld} -m elf64_sparc"
7308             ;;
7309         esac
7310         ;;
7311     esac
7312   fi
7313   rm -rf conftest*
7314   ;;
7315
7316 *-*-sco3.2v5*)
7317   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7318   SAVE_CFLAGS="$CFLAGS"
7319   CFLAGS="$CFLAGS -belf"
7320   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7321 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7322 if test "${lt_cv_cc_needs_belf+set}" = set; then
7323   echo $ECHO_N "(cached) $ECHO_C" >&6
7324 else
7325   ac_ext=c
7326 ac_cpp='$CPP $CPPFLAGS'
7327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7330
7331      cat >conftest.$ac_ext <<_ACEOF
7332 /* confdefs.h.  */
7333 _ACEOF
7334 cat confdefs.h >>conftest.$ac_ext
7335 cat >>conftest.$ac_ext <<_ACEOF
7336 /* end confdefs.h.  */
7337
7338 int
7339 main ()
7340 {
7341
7342   ;
7343   return 0;
7344 }
7345 _ACEOF
7346 rm -f conftest.$ac_objext conftest$ac_exeext
7347 if { (ac_try="$ac_link"
7348 case "(($ac_try" in
7349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7350   *) ac_try_echo=$ac_try;;
7351 esac
7352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7353   (eval "$ac_link") 2>conftest.er1
7354   ac_status=$?
7355   grep -v '^ *+' conftest.er1 >conftest.err
7356   rm -f conftest.er1
7357   cat conftest.err >&5
7358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359   (exit $ac_status); } && {
7360          test -z "$ac_c_werror_flag" ||
7361          test ! -s conftest.err
7362        } && test -s conftest$ac_exeext &&
7363        $as_test_x conftest$ac_exeext; then
7364   lt_cv_cc_needs_belf=yes
7365 else
7366   echo "$as_me: failed program was:" >&5
7367 sed 's/^/| /' conftest.$ac_ext >&5
7368
7369         lt_cv_cc_needs_belf=no
7370 fi
7371
7372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7373       conftest$ac_exeext conftest.$ac_ext
7374      ac_ext=c
7375 ac_cpp='$CPP $CPPFLAGS'
7376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7379
7380 fi
7381 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7382 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7383   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7384     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7385     CFLAGS="$SAVE_CFLAGS"
7386   fi
7387   ;;
7388 sparc*-*solaris*)
7389   # Find out which ABI we are using.
7390   echo 'int i;' > conftest.$ac_ext
7391   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7392   (eval $ac_compile) 2>&5
7393   ac_status=$?
7394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395   (exit $ac_status); }; then
7396     case `/usr/bin/file conftest.o` in
7397     *64-bit*)
7398       case $lt_cv_prog_gnu_ld in
7399       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7400       *)
7401         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7402           LD="${LD-ld} -64"
7403         fi
7404         ;;
7405       esac
7406       ;;
7407     esac
7408   fi
7409   rm -rf conftest*
7410   ;;
7411 esac
7412
7413 need_locks="$enable_libtool_lock"
7414
7415
7416   case $host_os in
7417     rhapsody* | darwin*)
7418     if test -n "$ac_tool_prefix"; then
7419   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7420 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7423 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7424   echo $ECHO_N "(cached) $ECHO_C" >&6
7425 else
7426   if test -n "$DSYMUTIL"; then
7427   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7428 else
7429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 for as_dir in $PATH
7431 do
7432   IFS=$as_save_IFS
7433   test -z "$as_dir" && as_dir=.
7434   for ac_exec_ext in '' $ac_executable_extensions; do
7435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7436     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7438     break 2
7439   fi
7440 done
7441 done
7442 IFS=$as_save_IFS
7443
7444 fi
7445 fi
7446 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7447 if test -n "$DSYMUTIL"; then
7448   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7449 echo "${ECHO_T}$DSYMUTIL" >&6; }
7450 else
7451   { echo "$as_me:$LINENO: result: no" >&5
7452 echo "${ECHO_T}no" >&6; }
7453 fi
7454
7455
7456 fi
7457 if test -z "$ac_cv_prog_DSYMUTIL"; then
7458   ac_ct_DSYMUTIL=$DSYMUTIL
7459   # Extract the first word of "dsymutil", so it can be a program name with args.
7460 set dummy dsymutil; ac_word=$2
7461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7463 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7464   echo $ECHO_N "(cached) $ECHO_C" >&6
7465 else
7466   if test -n "$ac_ct_DSYMUTIL"; then
7467   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7468 else
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 for as_dir in $PATH
7471 do
7472   IFS=$as_save_IFS
7473   test -z "$as_dir" && as_dir=.
7474   for ac_exec_ext in '' $ac_executable_extensions; do
7475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7476     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7478     break 2
7479   fi
7480 done
7481 done
7482 IFS=$as_save_IFS
7483
7484 fi
7485 fi
7486 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7487 if test -n "$ac_ct_DSYMUTIL"; then
7488   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7489 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7490 else
7491   { echo "$as_me:$LINENO: result: no" >&5
7492 echo "${ECHO_T}no" >&6; }
7493 fi
7494
7495   if test "x$ac_ct_DSYMUTIL" = x; then
7496     DSYMUTIL=":"
7497   else
7498     case $cross_compiling:$ac_tool_warned in
7499 yes:)
7500 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7501 whose name does not start with the host triplet.  If you think this
7502 configuration is useful to you, please write to autoconf@gnu.org." >&5
7503 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7504 whose name does not start with the host triplet.  If you think this
7505 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7506 ac_tool_warned=yes ;;
7507 esac
7508     DSYMUTIL=$ac_ct_DSYMUTIL
7509   fi
7510 else
7511   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7512 fi
7513
7514     if test -n "$ac_tool_prefix"; then
7515   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7516 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7519 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7520   echo $ECHO_N "(cached) $ECHO_C" >&6
7521 else
7522   if test -n "$NMEDIT"; then
7523   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7524 else
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 for as_dir in $PATH
7527 do
7528   IFS=$as_save_IFS
7529   test -z "$as_dir" && as_dir=.
7530   for ac_exec_ext in '' $ac_executable_extensions; do
7531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7532     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7534     break 2
7535   fi
7536 done
7537 done
7538 IFS=$as_save_IFS
7539
7540 fi
7541 fi
7542 NMEDIT=$ac_cv_prog_NMEDIT
7543 if test -n "$NMEDIT"; then
7544   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7545 echo "${ECHO_T}$NMEDIT" >&6; }
7546 else
7547   { echo "$as_me:$LINENO: result: no" >&5
7548 echo "${ECHO_T}no" >&6; }
7549 fi
7550
7551
7552 fi
7553 if test -z "$ac_cv_prog_NMEDIT"; then
7554   ac_ct_NMEDIT=$NMEDIT
7555   # Extract the first word of "nmedit", so it can be a program name with args.
7556 set dummy nmedit; ac_word=$2
7557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7559 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7560   echo $ECHO_N "(cached) $ECHO_C" >&6
7561 else
7562   if test -n "$ac_ct_NMEDIT"; then
7563   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7564 else
7565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 for as_dir in $PATH
7567 do
7568   IFS=$as_save_IFS
7569   test -z "$as_dir" && as_dir=.
7570   for ac_exec_ext in '' $ac_executable_extensions; do
7571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7572     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7574     break 2
7575   fi
7576 done
7577 done
7578 IFS=$as_save_IFS
7579
7580 fi
7581 fi
7582 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7583 if test -n "$ac_ct_NMEDIT"; then
7584   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7585 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7586 else
7587   { echo "$as_me:$LINENO: result: no" >&5
7588 echo "${ECHO_T}no" >&6; }
7589 fi
7590
7591   if test "x$ac_ct_NMEDIT" = x; then
7592     NMEDIT=":"
7593   else
7594     case $cross_compiling:$ac_tool_warned in
7595 yes:)
7596 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7597 whose name does not start with the host triplet.  If you think this
7598 configuration is useful to you, please write to autoconf@gnu.org." >&5
7599 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7600 whose name does not start with the host triplet.  If you think this
7601 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7602 ac_tool_warned=yes ;;
7603 esac
7604     NMEDIT=$ac_ct_NMEDIT
7605   fi
7606 else
7607   NMEDIT="$ac_cv_prog_NMEDIT"
7608 fi
7609
7610     if test -n "$ac_tool_prefix"; then
7611   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7612 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7615 if test "${ac_cv_prog_LIPO+set}" = set; then
7616   echo $ECHO_N "(cached) $ECHO_C" >&6
7617 else
7618   if test -n "$LIPO"; then
7619   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7620 else
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 for as_dir in $PATH
7623 do
7624   IFS=$as_save_IFS
7625   test -z "$as_dir" && as_dir=.
7626   for ac_exec_ext in '' $ac_executable_extensions; do
7627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7628     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7630     break 2
7631   fi
7632 done
7633 done
7634 IFS=$as_save_IFS
7635
7636 fi
7637 fi
7638 LIPO=$ac_cv_prog_LIPO
7639 if test -n "$LIPO"; then
7640   { echo "$as_me:$LINENO: result: $LIPO" >&5
7641 echo "${ECHO_T}$LIPO" >&6; }
7642 else
7643   { echo "$as_me:$LINENO: result: no" >&5
7644 echo "${ECHO_T}no" >&6; }
7645 fi
7646
7647
7648 fi
7649 if test -z "$ac_cv_prog_LIPO"; then
7650   ac_ct_LIPO=$LIPO
7651   # Extract the first word of "lipo", so it can be a program name with args.
7652 set dummy lipo; ac_word=$2
7653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7655 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7656   echo $ECHO_N "(cached) $ECHO_C" >&6
7657 else
7658   if test -n "$ac_ct_LIPO"; then
7659   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7660 else
7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662 for as_dir in $PATH
7663 do
7664   IFS=$as_save_IFS
7665   test -z "$as_dir" && as_dir=.
7666   for ac_exec_ext in '' $ac_executable_extensions; do
7667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7668     ac_cv_prog_ac_ct_LIPO="lipo"
7669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7670     break 2
7671   fi
7672 done
7673 done
7674 IFS=$as_save_IFS
7675
7676 fi
7677 fi
7678 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7679 if test -n "$ac_ct_LIPO"; then
7680   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7681 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7682 else
7683   { echo "$as_me:$LINENO: result: no" >&5
7684 echo "${ECHO_T}no" >&6; }
7685 fi
7686
7687   if test "x$ac_ct_LIPO" = x; then
7688     LIPO=":"
7689   else
7690     case $cross_compiling:$ac_tool_warned in
7691 yes:)
7692 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7693 whose name does not start with the host triplet.  If you think this
7694 configuration is useful to you, please write to autoconf@gnu.org." >&5
7695 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7696 whose name does not start with the host triplet.  If you think this
7697 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7698 ac_tool_warned=yes ;;
7699 esac
7700     LIPO=$ac_ct_LIPO
7701   fi
7702 else
7703   LIPO="$ac_cv_prog_LIPO"
7704 fi
7705
7706     if test -n "$ac_tool_prefix"; then
7707   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7708 set dummy ${ac_tool_prefix}otool; ac_word=$2
7709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7711 if test "${ac_cv_prog_OTOOL+set}" = set; then
7712   echo $ECHO_N "(cached) $ECHO_C" >&6
7713 else
7714   if test -n "$OTOOL"; then
7715   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7716 else
7717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 for as_dir in $PATH
7719 do
7720   IFS=$as_save_IFS
7721   test -z "$as_dir" && as_dir=.
7722   for ac_exec_ext in '' $ac_executable_extensions; do
7723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7724     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7726     break 2
7727   fi
7728 done
7729 done
7730 IFS=$as_save_IFS
7731
7732 fi
7733 fi
7734 OTOOL=$ac_cv_prog_OTOOL
7735 if test -n "$OTOOL"; then
7736   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7737 echo "${ECHO_T}$OTOOL" >&6; }
7738 else
7739   { echo "$as_me:$LINENO: result: no" >&5
7740 echo "${ECHO_T}no" >&6; }
7741 fi
7742
7743
7744 fi
7745 if test -z "$ac_cv_prog_OTOOL"; then
7746   ac_ct_OTOOL=$OTOOL
7747   # Extract the first word of "otool", so it can be a program name with args.
7748 set dummy otool; ac_word=$2
7749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7751 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7752   echo $ECHO_N "(cached) $ECHO_C" >&6
7753 else
7754   if test -n "$ac_ct_OTOOL"; then
7755   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7756 else
7757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 for as_dir in $PATH
7759 do
7760   IFS=$as_save_IFS
7761   test -z "$as_dir" && as_dir=.
7762   for ac_exec_ext in '' $ac_executable_extensions; do
7763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7764     ac_cv_prog_ac_ct_OTOOL="otool"
7765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7766     break 2
7767   fi
7768 done
7769 done
7770 IFS=$as_save_IFS
7771
7772 fi
7773 fi
7774 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7775 if test -n "$ac_ct_OTOOL"; then
7776   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7777 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7778 else
7779   { echo "$as_me:$LINENO: result: no" >&5
7780 echo "${ECHO_T}no" >&6; }
7781 fi
7782
7783   if test "x$ac_ct_OTOOL" = x; then
7784     OTOOL=":"
7785   else
7786     case $cross_compiling:$ac_tool_warned in
7787 yes:)
7788 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7789 whose name does not start with the host triplet.  If you think this
7790 configuration is useful to you, please write to autoconf@gnu.org." >&5
7791 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7792 whose name does not start with the host triplet.  If you think this
7793 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7794 ac_tool_warned=yes ;;
7795 esac
7796     OTOOL=$ac_ct_OTOOL
7797   fi
7798 else
7799   OTOOL="$ac_cv_prog_OTOOL"
7800 fi
7801
7802     if test -n "$ac_tool_prefix"; then
7803   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7804 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7807 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7808   echo $ECHO_N "(cached) $ECHO_C" >&6
7809 else
7810   if test -n "$OTOOL64"; then
7811   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7812 else
7813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 for as_dir in $PATH
7815 do
7816   IFS=$as_save_IFS
7817   test -z "$as_dir" && as_dir=.
7818   for ac_exec_ext in '' $ac_executable_extensions; do
7819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7820     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7822     break 2
7823   fi
7824 done
7825 done
7826 IFS=$as_save_IFS
7827
7828 fi
7829 fi
7830 OTOOL64=$ac_cv_prog_OTOOL64
7831 if test -n "$OTOOL64"; then
7832   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7833 echo "${ECHO_T}$OTOOL64" >&6; }
7834 else
7835   { echo "$as_me:$LINENO: result: no" >&5
7836 echo "${ECHO_T}no" >&6; }
7837 fi
7838
7839
7840 fi
7841 if test -z "$ac_cv_prog_OTOOL64"; then
7842   ac_ct_OTOOL64=$OTOOL64
7843   # Extract the first word of "otool64", so it can be a program name with args.
7844 set dummy otool64; ac_word=$2
7845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7847 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7848   echo $ECHO_N "(cached) $ECHO_C" >&6
7849 else
7850   if test -n "$ac_ct_OTOOL64"; then
7851   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7852 else
7853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854 for as_dir in $PATH
7855 do
7856   IFS=$as_save_IFS
7857   test -z "$as_dir" && as_dir=.
7858   for ac_exec_ext in '' $ac_executable_extensions; do
7859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7860     ac_cv_prog_ac_ct_OTOOL64="otool64"
7861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7862     break 2
7863   fi
7864 done
7865 done
7866 IFS=$as_save_IFS
7867
7868 fi
7869 fi
7870 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7871 if test -n "$ac_ct_OTOOL64"; then
7872   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7873 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7874 else
7875   { echo "$as_me:$LINENO: result: no" >&5
7876 echo "${ECHO_T}no" >&6; }
7877 fi
7878
7879   if test "x$ac_ct_OTOOL64" = x; then
7880     OTOOL64=":"
7881   else
7882     case $cross_compiling:$ac_tool_warned in
7883 yes:)
7884 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7885 whose name does not start with the host triplet.  If you think this
7886 configuration is useful to you, please write to autoconf@gnu.org." >&5
7887 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7888 whose name does not start with the host triplet.  If you think this
7889 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7890 ac_tool_warned=yes ;;
7891 esac
7892     OTOOL64=$ac_ct_OTOOL64
7893   fi
7894 else
7895   OTOOL64="$ac_cv_prog_OTOOL64"
7896 fi
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7925 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7926 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7927   echo $ECHO_N "(cached) $ECHO_C" >&6
7928 else
7929   lt_cv_apple_cc_single_mod=no
7930       if test -z "${LT_MULTI_MODULE}"; then
7931         # By default we will add the -single_module flag. You can override
7932         # by either setting the environment variable LT_MULTI_MODULE
7933         # non-empty at configure time, or by adding -multi_module to the
7934         # link flags.
7935         rm -rf libconftest.dylib*
7936         echo "int foo(void){return 1;}" > conftest.c
7937         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7938 -dynamiclib -Wl,-single_module conftest.c" >&5
7939         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7940           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7941         _lt_result=$?
7942         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7943           lt_cv_apple_cc_single_mod=yes
7944         else
7945           cat conftest.err >&5
7946         fi
7947         rm -rf libconftest.dylib*
7948         rm -f conftest.*
7949       fi
7950 fi
7951 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7952 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7953     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7954 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7955 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7956   echo $ECHO_N "(cached) $ECHO_C" >&6
7957 else
7958   lt_cv_ld_exported_symbols_list=no
7959       save_LDFLAGS=$LDFLAGS
7960       echo "_main" > conftest.sym
7961       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7962       cat >conftest.$ac_ext <<_ACEOF
7963 /* confdefs.h.  */
7964 _ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h.  */
7968
7969 int
7970 main ()
7971 {
7972
7973   ;
7974   return 0;
7975 }
7976 _ACEOF
7977 rm -f conftest.$ac_objext conftest$ac_exeext
7978 if { (ac_try="$ac_link"
7979 case "(($ac_try" in
7980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981   *) ac_try_echo=$ac_try;;
7982 esac
7983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984   (eval "$ac_link") 2>conftest.er1
7985   ac_status=$?
7986   grep -v '^ *+' conftest.er1 >conftest.err
7987   rm -f conftest.er1
7988   cat conftest.err >&5
7989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990   (exit $ac_status); } && {
7991          test -z "$ac_c_werror_flag" ||
7992          test ! -s conftest.err
7993        } && test -s conftest$ac_exeext &&
7994        $as_test_x conftest$ac_exeext; then
7995   lt_cv_ld_exported_symbols_list=yes
7996 else
7997   echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
7999
8000         lt_cv_ld_exported_symbols_list=no
8001 fi
8002
8003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8004       conftest$ac_exeext conftest.$ac_ext
8005         LDFLAGS="$save_LDFLAGS"
8006
8007 fi
8008 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8009 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8010     case $host_os in
8011     rhapsody* | darwin1.[012])
8012       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8013     darwin1.*)
8014       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8015     darwin*) # darwin 5.x on
8016       # if running on 10.5 or later, the deployment target defaults
8017       # to the OS version, if on x86, and 10.4, the deployment
8018       # target defaults to 10.4. Don't you love it?
8019       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8020         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8021           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8022         10.[012]*)
8023           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8024         10.*)
8025           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8026       esac
8027     ;;
8028   esac
8029     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8030       _lt_dar_single_mod='$single_module'
8031     fi
8032     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8033       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8034     else
8035       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8036     fi
8037     if test "$DSYMUTIL" != ":"; then
8038       _lt_dsymutil='~$DSYMUTIL $lib || :'
8039     else
8040       _lt_dsymutil=
8041     fi
8042     ;;
8043   esac
8044
8045 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8046 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8047 if test "${ac_cv_header_stdc+set}" = set; then
8048   echo $ECHO_N "(cached) $ECHO_C" >&6
8049 else
8050   cat >conftest.$ac_ext <<_ACEOF
8051 /* confdefs.h.  */
8052 _ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h.  */
8056 #include <stdlib.h>
8057 #include <stdarg.h>
8058 #include <string.h>
8059 #include <float.h>
8060
8061 int
8062 main ()
8063 {
8064
8065   ;
8066   return 0;
8067 }
8068 _ACEOF
8069 rm -f conftest.$ac_objext
8070 if { (ac_try="$ac_compile"
8071 case "(($ac_try" in
8072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073   *) ac_try_echo=$ac_try;;
8074 esac
8075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076   (eval "$ac_compile") 2>conftest.er1
8077   ac_status=$?
8078   grep -v '^ *+' conftest.er1 >conftest.err
8079   rm -f conftest.er1
8080   cat conftest.err >&5
8081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082   (exit $ac_status); } && {
8083          test -z "$ac_c_werror_flag" ||
8084          test ! -s conftest.err
8085        } && test -s conftest.$ac_objext; then
8086   ac_cv_header_stdc=yes
8087 else
8088   echo "$as_me: failed program was:" >&5
8089 sed 's/^/| /' conftest.$ac_ext >&5
8090
8091         ac_cv_header_stdc=no
8092 fi
8093
8094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8095
8096 if test $ac_cv_header_stdc = yes; then
8097   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8098   cat >conftest.$ac_ext <<_ACEOF
8099 /* confdefs.h.  */
8100 _ACEOF
8101 cat confdefs.h >>conftest.$ac_ext
8102 cat >>conftest.$ac_ext <<_ACEOF
8103 /* end confdefs.h.  */
8104 #include <string.h>
8105
8106 _ACEOF
8107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8108   $EGREP "memchr" >/dev/null 2>&1; then
8109   :
8110 else
8111   ac_cv_header_stdc=no
8112 fi
8113 rm -f conftest*
8114
8115 fi
8116
8117 if test $ac_cv_header_stdc = yes; then
8118   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8119   cat >conftest.$ac_ext <<_ACEOF
8120 /* confdefs.h.  */
8121 _ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h.  */
8125 #include <stdlib.h>
8126
8127 _ACEOF
8128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8129   $EGREP "free" >/dev/null 2>&1; then
8130   :
8131 else
8132   ac_cv_header_stdc=no
8133 fi
8134 rm -f conftest*
8135
8136 fi
8137
8138 if test $ac_cv_header_stdc = yes; then
8139   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8140   if test "$cross_compiling" = yes; then
8141   :
8142 else
8143   cat >conftest.$ac_ext <<_ACEOF
8144 /* confdefs.h.  */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h.  */
8149 #include <ctype.h>
8150 #include <stdlib.h>
8151 #if ((' ' & 0x0FF) == 0x020)
8152 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8153 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8154 #else
8155 # define ISLOWER(c) \
8156                    (('a' <= (c) && (c) <= 'i') \
8157                      || ('j' <= (c) && (c) <= 'r') \
8158                      || ('s' <= (c) && (c) <= 'z'))
8159 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8160 #endif
8161
8162 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8163 int
8164 main ()
8165 {
8166   int i;
8167   for (i = 0; i < 256; i++)
8168     if (XOR (islower (i), ISLOWER (i))
8169         || toupper (i) != TOUPPER (i))
8170       return 2;
8171   return 0;
8172 }
8173 _ACEOF
8174 rm -f conftest$ac_exeext
8175 if { (ac_try="$ac_link"
8176 case "(($ac_try" in
8177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8178   *) ac_try_echo=$ac_try;;
8179 esac
8180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8181   (eval "$ac_link") 2>&5
8182   ac_status=$?
8183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8185   { (case "(($ac_try" in
8186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187   *) ac_try_echo=$ac_try;;
8188 esac
8189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8190   (eval "$ac_try") 2>&5
8191   ac_status=$?
8192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193   (exit $ac_status); }; }; then
8194   :
8195 else
8196   echo "$as_me: program exited with status $ac_status" >&5
8197 echo "$as_me: failed program was:" >&5
8198 sed 's/^/| /' conftest.$ac_ext >&5
8199
8200 ( exit $ac_status )
8201 ac_cv_header_stdc=no
8202 fi
8203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8204 fi
8205
8206
8207 fi
8208 fi
8209 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8210 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8211 if test $ac_cv_header_stdc = yes; then
8212
8213 cat >>confdefs.h <<\_ACEOF
8214 #define STDC_HEADERS 1
8215 _ACEOF
8216
8217 fi
8218
8219 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8230                   inttypes.h stdint.h unistd.h
8231 do
8232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8236   echo $ECHO_N "(cached) $ECHO_C" >&6
8237 else
8238   cat >conftest.$ac_ext <<_ACEOF
8239 /* confdefs.h.  */
8240 _ACEOF
8241 cat confdefs.h >>conftest.$ac_ext
8242 cat >>conftest.$ac_ext <<_ACEOF
8243 /* end confdefs.h.  */
8244 $ac_includes_default
8245
8246 #include <$ac_header>
8247 _ACEOF
8248 rm -f conftest.$ac_objext
8249 if { (ac_try="$ac_compile"
8250 case "(($ac_try" in
8251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8252   *) ac_try_echo=$ac_try;;
8253 esac
8254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8255   (eval "$ac_compile") 2>conftest.er1
8256   ac_status=$?
8257   grep -v '^ *+' conftest.er1 >conftest.err
8258   rm -f conftest.er1
8259   cat conftest.err >&5
8260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261   (exit $ac_status); } && {
8262          test -z "$ac_c_werror_flag" ||
8263          test ! -s conftest.err
8264        } && test -s conftest.$ac_objext; then
8265   eval "$as_ac_Header=yes"
8266 else
8267   echo "$as_me: failed program was:" >&5
8268 sed 's/^/| /' conftest.$ac_ext >&5
8269
8270         eval "$as_ac_Header=no"
8271 fi
8272
8273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8274 fi
8275 ac_res=`eval echo '${'$as_ac_Header'}'`
8276                { echo "$as_me:$LINENO: result: $ac_res" >&5
8277 echo "${ECHO_T}$ac_res" >&6; }
8278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8279   cat >>confdefs.h <<_ACEOF
8280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8281 _ACEOF
8282
8283 fi
8284
8285 done
8286
8287
8288
8289 for ac_header in dlfcn.h
8290 do
8291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8292 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8295   echo $ECHO_N "(cached) $ECHO_C" >&6
8296 else
8297   cat >conftest.$ac_ext <<_ACEOF
8298 /* confdefs.h.  */
8299 _ACEOF
8300 cat confdefs.h >>conftest.$ac_ext
8301 cat >>conftest.$ac_ext <<_ACEOF
8302 /* end confdefs.h.  */
8303 $ac_includes_default
8304
8305 #include <$ac_header>
8306 _ACEOF
8307 rm -f conftest.$ac_objext
8308 if { (ac_try="$ac_compile"
8309 case "(($ac_try" in
8310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311   *) ac_try_echo=$ac_try;;
8312 esac
8313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314   (eval "$ac_compile") 2>conftest.er1
8315   ac_status=$?
8316   grep -v '^ *+' conftest.er1 >conftest.err
8317   rm -f conftest.er1
8318   cat conftest.err >&5
8319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320   (exit $ac_status); } && {
8321          test -z "$ac_c_werror_flag" ||
8322          test ! -s conftest.err
8323        } && test -s conftest.$ac_objext; then
8324   eval "$as_ac_Header=yes"
8325 else
8326   echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8328
8329         eval "$as_ac_Header=no"
8330 fi
8331
8332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8333 fi
8334 ac_res=`eval echo '${'$as_ac_Header'}'`
8335                { echo "$as_me:$LINENO: result: $ac_res" >&5
8336 echo "${ECHO_T}$ac_res" >&6; }
8337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8338   cat >>confdefs.h <<_ACEOF
8339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8340 _ACEOF
8341
8342 fi
8343
8344 done
8345
8346
8347
8348 ac_ext=cpp
8349 ac_cpp='$CXXCPP $CPPFLAGS'
8350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8353 if test -z "$CXX"; then
8354   if test -n "$CCC"; then
8355     CXX=$CCC
8356   else
8357     if test -n "$ac_tool_prefix"; then
8358   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8359   do
8360     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8361 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8364 if test "${ac_cv_prog_CXX+set}" = set; then
8365   echo $ECHO_N "(cached) $ECHO_C" >&6
8366 else
8367   if test -n "$CXX"; then
8368   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8369 else
8370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371 for as_dir in $PATH
8372 do
8373   IFS=$as_save_IFS
8374   test -z "$as_dir" && as_dir=.
8375   for ac_exec_ext in '' $ac_executable_extensions; do
8376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8377     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8379     break 2
8380   fi
8381 done
8382 done
8383 IFS=$as_save_IFS
8384
8385 fi
8386 fi
8387 CXX=$ac_cv_prog_CXX
8388 if test -n "$CXX"; then
8389   { echo "$as_me:$LINENO: result: $CXX" >&5
8390 echo "${ECHO_T}$CXX" >&6; }
8391 else
8392   { echo "$as_me:$LINENO: result: no" >&5
8393 echo "${ECHO_T}no" >&6; }
8394 fi
8395
8396
8397     test -n "$CXX" && break
8398   done
8399 fi
8400 if test -z "$CXX"; then
8401   ac_ct_CXX=$CXX
8402   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8403 do
8404   # Extract the first word of "$ac_prog", so it can be a program name with args.
8405 set dummy $ac_prog; ac_word=$2
8406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8408 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8409   echo $ECHO_N "(cached) $ECHO_C" >&6
8410 else
8411   if test -n "$ac_ct_CXX"; then
8412   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8413 else
8414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415 for as_dir in $PATH
8416 do
8417   IFS=$as_save_IFS
8418   test -z "$as_dir" && as_dir=.
8419   for ac_exec_ext in '' $ac_executable_extensions; do
8420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8421     ac_cv_prog_ac_ct_CXX="$ac_prog"
8422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8423     break 2
8424   fi
8425 done
8426 done
8427 IFS=$as_save_IFS
8428
8429 fi
8430 fi
8431 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8432 if test -n "$ac_ct_CXX"; then
8433   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8434 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8435 else
8436   { echo "$as_me:$LINENO: result: no" >&5
8437 echo "${ECHO_T}no" >&6; }
8438 fi
8439
8440
8441   test -n "$ac_ct_CXX" && break
8442 done
8443
8444   if test "x$ac_ct_CXX" = x; then
8445     CXX="g++"
8446   else
8447     case $cross_compiling:$ac_tool_warned in
8448 yes:)
8449 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8450 whose name does not start with the host triplet.  If you think this
8451 configuration is useful to you, please write to autoconf@gnu.org." >&5
8452 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8453 whose name does not start with the host triplet.  If you think this
8454 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8455 ac_tool_warned=yes ;;
8456 esac
8457     CXX=$ac_ct_CXX
8458   fi
8459 fi
8460
8461   fi
8462 fi
8463 # Provide some information about the compiler.
8464 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8465 ac_compiler=`set X $ac_compile; echo $2`
8466 { (ac_try="$ac_compiler --version >&5"
8467 case "(($ac_try" in
8468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8469   *) ac_try_echo=$ac_try;;
8470 esac
8471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8472   (eval "$ac_compiler --version >&5") 2>&5
8473   ac_status=$?
8474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475   (exit $ac_status); }
8476 { (ac_try="$ac_compiler -v >&5"
8477 case "(($ac_try" in
8478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8479   *) ac_try_echo=$ac_try;;
8480 esac
8481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8482   (eval "$ac_compiler -v >&5") 2>&5
8483   ac_status=$?
8484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485   (exit $ac_status); }
8486 { (ac_try="$ac_compiler -V >&5"
8487 case "(($ac_try" in
8488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489   *) ac_try_echo=$ac_try;;
8490 esac
8491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492   (eval "$ac_compiler -V >&5") 2>&5
8493   ac_status=$?
8494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495   (exit $ac_status); }
8496
8497 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8498 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8499 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8500   echo $ECHO_N "(cached) $ECHO_C" >&6
8501 else
8502   cat >conftest.$ac_ext <<_ACEOF
8503 /* confdefs.h.  */
8504 _ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h.  */
8508
8509 int
8510 main ()
8511 {
8512 #ifndef __GNUC__
8513        choke me
8514 #endif
8515
8516   ;
8517   return 0;
8518 }
8519 _ACEOF
8520 rm -f conftest.$ac_objext
8521 if { (ac_try="$ac_compile"
8522 case "(($ac_try" in
8523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8524   *) ac_try_echo=$ac_try;;
8525 esac
8526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8527   (eval "$ac_compile") 2>conftest.er1
8528   ac_status=$?
8529   grep -v '^ *+' conftest.er1 >conftest.err
8530   rm -f conftest.er1
8531   cat conftest.err >&5
8532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533   (exit $ac_status); } && {
8534          test -z "$ac_cxx_werror_flag" ||
8535          test ! -s conftest.err
8536        } && test -s conftest.$ac_objext; then
8537   ac_compiler_gnu=yes
8538 else
8539   echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.$ac_ext >&5
8541
8542         ac_compiler_gnu=no
8543 fi
8544
8545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8546 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8547
8548 fi
8549 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8550 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8551 GXX=`test $ac_compiler_gnu = yes && echo yes`
8552 ac_test_CXXFLAGS=${CXXFLAGS+set}
8553 ac_save_CXXFLAGS=$CXXFLAGS
8554 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8555 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8556 if test "${ac_cv_prog_cxx_g+set}" = set; then
8557   echo $ECHO_N "(cached) $ECHO_C" >&6
8558 else
8559   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8560    ac_cxx_werror_flag=yes
8561    ac_cv_prog_cxx_g=no
8562    CXXFLAGS="-g"
8563    cat >conftest.$ac_ext <<_ACEOF
8564 /* confdefs.h.  */
8565 _ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h.  */
8569
8570 int
8571 main ()
8572 {
8573
8574   ;
8575   return 0;
8576 }
8577 _ACEOF
8578 rm -f conftest.$ac_objext
8579 if { (ac_try="$ac_compile"
8580 case "(($ac_try" in
8581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8582   *) ac_try_echo=$ac_try;;
8583 esac
8584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8585   (eval "$ac_compile") 2>conftest.er1
8586   ac_status=$?
8587   grep -v '^ *+' conftest.er1 >conftest.err
8588   rm -f conftest.er1
8589   cat conftest.err >&5
8590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591   (exit $ac_status); } && {
8592          test -z "$ac_cxx_werror_flag" ||
8593          test ! -s conftest.err
8594        } && test -s conftest.$ac_objext; then
8595   ac_cv_prog_cxx_g=yes
8596 else
8597   echo "$as_me: failed program was:" >&5
8598 sed 's/^/| /' conftest.$ac_ext >&5
8599
8600         CXXFLAGS=""
8601       cat >conftest.$ac_ext <<_ACEOF
8602 /* confdefs.h.  */
8603 _ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h.  */
8607
8608 int
8609 main ()
8610 {
8611
8612   ;
8613   return 0;
8614 }
8615 _ACEOF
8616 rm -f conftest.$ac_objext
8617 if { (ac_try="$ac_compile"
8618 case "(($ac_try" in
8619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620   *) ac_try_echo=$ac_try;;
8621 esac
8622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623   (eval "$ac_compile") 2>conftest.er1
8624   ac_status=$?
8625   grep -v '^ *+' conftest.er1 >conftest.err
8626   rm -f conftest.er1
8627   cat conftest.err >&5
8628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629   (exit $ac_status); } && {
8630          test -z "$ac_cxx_werror_flag" ||
8631          test ! -s conftest.err
8632        } && test -s conftest.$ac_objext; then
8633   :
8634 else
8635   echo "$as_me: failed program was:" >&5
8636 sed 's/^/| /' conftest.$ac_ext >&5
8637
8638         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8639          CXXFLAGS="-g"
8640          cat >conftest.$ac_ext <<_ACEOF
8641 /* confdefs.h.  */
8642 _ACEOF
8643 cat confdefs.h >>conftest.$ac_ext
8644 cat >>conftest.$ac_ext <<_ACEOF
8645 /* end confdefs.h.  */
8646
8647 int
8648 main ()
8649 {
8650
8651   ;
8652   return 0;
8653 }
8654 _ACEOF
8655 rm -f conftest.$ac_objext
8656 if { (ac_try="$ac_compile"
8657 case "(($ac_try" in
8658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8659   *) ac_try_echo=$ac_try;;
8660 esac
8661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8662   (eval "$ac_compile") 2>conftest.er1
8663   ac_status=$?
8664   grep -v '^ *+' conftest.er1 >conftest.err
8665   rm -f conftest.er1
8666   cat conftest.err >&5
8667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668   (exit $ac_status); } && {
8669          test -z "$ac_cxx_werror_flag" ||
8670          test ! -s conftest.err
8671        } && test -s conftest.$ac_objext; then
8672   ac_cv_prog_cxx_g=yes
8673 else
8674   echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8676
8677
8678 fi
8679
8680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681 fi
8682
8683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8684 fi
8685
8686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8687    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8688 fi
8689 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8690 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8691 if test "$ac_test_CXXFLAGS" = set; then
8692   CXXFLAGS=$ac_save_CXXFLAGS
8693 elif test $ac_cv_prog_cxx_g = yes; then
8694   if test "$GXX" = yes; then
8695     CXXFLAGS="-g -O2"
8696   else
8697     CXXFLAGS="-g"
8698   fi
8699 else
8700   if test "$GXX" = yes; then
8701     CXXFLAGS="-O2"
8702   else
8703     CXXFLAGS=
8704   fi
8705 fi
8706 ac_ext=cpp
8707 ac_cpp='$CXXCPP $CPPFLAGS'
8708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8711
8712 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8713     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8714     (test "X$CXX" != "Xg++"))) ; then
8715   ac_ext=cpp
8716 ac_cpp='$CXXCPP $CPPFLAGS'
8717 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8718 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8719 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8720 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8721 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8722 if test -z "$CXXCPP"; then
8723   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8724   echo $ECHO_N "(cached) $ECHO_C" >&6
8725 else
8726       # Double quotes because CXXCPP needs to be expanded
8727     for CXXCPP in "$CXX -E" "/lib/cpp"
8728     do
8729       ac_preproc_ok=false
8730 for ac_cxx_preproc_warn_flag in '' yes
8731 do
8732   # Use a header file that comes with gcc, so configuring glibc
8733   # with a fresh cross-compiler works.
8734   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8735   # <limits.h> exists even on freestanding compilers.
8736   # On the NeXT, cc -E runs the code through the compiler's parser,
8737   # not just through cpp. "Syntax error" is here to catch this case.
8738   cat >conftest.$ac_ext <<_ACEOF
8739 /* confdefs.h.  */
8740 _ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h.  */
8744 #ifdef __STDC__
8745 # include <limits.h>
8746 #else
8747 # include <assert.h>
8748 #endif
8749                      Syntax error
8750 _ACEOF
8751 if { (ac_try="$ac_cpp conftest.$ac_ext"
8752 case "(($ac_try" in
8753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754   *) ac_try_echo=$ac_try;;
8755 esac
8756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8757   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8758   ac_status=$?
8759   grep -v '^ *+' conftest.er1 >conftest.err
8760   rm -f conftest.er1
8761   cat conftest.err >&5
8762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763   (exit $ac_status); } >/dev/null && {
8764          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8765          test ! -s conftest.err
8766        }; then
8767   :
8768 else
8769   echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8771
8772   # Broken: fails on valid input.
8773 continue
8774 fi
8775
8776 rm -f conftest.err conftest.$ac_ext
8777
8778   # OK, works on sane cases.  Now check whether nonexistent headers
8779   # can be detected and how.
8780   cat >conftest.$ac_ext <<_ACEOF
8781 /* confdefs.h.  */
8782 _ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h.  */
8786 #include <ac_nonexistent.h>
8787 _ACEOF
8788 if { (ac_try="$ac_cpp conftest.$ac_ext"
8789 case "(($ac_try" in
8790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8791   *) ac_try_echo=$ac_try;;
8792 esac
8793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8794   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8795   ac_status=$?
8796   grep -v '^ *+' conftest.er1 >conftest.err
8797   rm -f conftest.er1
8798   cat conftest.err >&5
8799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800   (exit $ac_status); } >/dev/null && {
8801          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8802          test ! -s conftest.err
8803        }; then
8804   # Broken: success on invalid input.
8805 continue
8806 else
8807   echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8809
8810   # Passes both tests.
8811 ac_preproc_ok=:
8812 break
8813 fi
8814
8815 rm -f conftest.err conftest.$ac_ext
8816
8817 done
8818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8819 rm -f conftest.err conftest.$ac_ext
8820 if $ac_preproc_ok; then
8821   break
8822 fi
8823
8824     done
8825     ac_cv_prog_CXXCPP=$CXXCPP
8826
8827 fi
8828   CXXCPP=$ac_cv_prog_CXXCPP
8829 else
8830   ac_cv_prog_CXXCPP=$CXXCPP
8831 fi
8832 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8833 echo "${ECHO_T}$CXXCPP" >&6; }
8834 ac_preproc_ok=false
8835 for ac_cxx_preproc_warn_flag in '' yes
8836 do
8837   # Use a header file that comes with gcc, so configuring glibc
8838   # with a fresh cross-compiler works.
8839   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8840   # <limits.h> exists even on freestanding compilers.
8841   # On the NeXT, cc -E runs the code through the compiler's parser,
8842   # not just through cpp. "Syntax error" is here to catch this case.
8843   cat >conftest.$ac_ext <<_ACEOF
8844 /* confdefs.h.  */
8845 _ACEOF
8846 cat confdefs.h >>conftest.$ac_ext
8847 cat >>conftest.$ac_ext <<_ACEOF
8848 /* end confdefs.h.  */
8849 #ifdef __STDC__
8850 # include <limits.h>
8851 #else
8852 # include <assert.h>
8853 #endif
8854                      Syntax error
8855 _ACEOF
8856 if { (ac_try="$ac_cpp conftest.$ac_ext"
8857 case "(($ac_try" in
8858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859   *) ac_try_echo=$ac_try;;
8860 esac
8861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8862   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8863   ac_status=$?
8864   grep -v '^ *+' conftest.er1 >conftest.err
8865   rm -f conftest.er1
8866   cat conftest.err >&5
8867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868   (exit $ac_status); } >/dev/null && {
8869          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8870          test ! -s conftest.err
8871        }; then
8872   :
8873 else
8874   echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8876
8877   # Broken: fails on valid input.
8878 continue
8879 fi
8880
8881 rm -f conftest.err conftest.$ac_ext
8882
8883   # OK, works on sane cases.  Now check whether nonexistent headers
8884   # can be detected and how.
8885   cat >conftest.$ac_ext <<_ACEOF
8886 /* confdefs.h.  */
8887 _ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h.  */
8891 #include <ac_nonexistent.h>
8892 _ACEOF
8893 if { (ac_try="$ac_cpp conftest.$ac_ext"
8894 case "(($ac_try" in
8895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8896   *) ac_try_echo=$ac_try;;
8897 esac
8898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8899   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8900   ac_status=$?
8901   grep -v '^ *+' conftest.er1 >conftest.err
8902   rm -f conftest.er1
8903   cat conftest.err >&5
8904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905   (exit $ac_status); } >/dev/null && {
8906          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8907          test ! -s conftest.err
8908        }; then
8909   # Broken: success on invalid input.
8910 continue
8911 else
8912   echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.$ac_ext >&5
8914
8915   # Passes both tests.
8916 ac_preproc_ok=:
8917 break
8918 fi
8919
8920 rm -f conftest.err conftest.$ac_ext
8921
8922 done
8923 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8924 rm -f conftest.err conftest.$ac_ext
8925 if $ac_preproc_ok; then
8926   :
8927 else
8928   _lt_caught_CXX_error=yes
8929 fi
8930
8931 ac_ext=cpp
8932 ac_cpp='$CXXCPP $CPPFLAGS'
8933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8936
8937 else
8938   _lt_caught_CXX_error=yes
8939 fi
8940
8941
8942
8943
8944
8945 # Set options
8946 # Check whether --enable-shared was given.
8947 if test "${enable_shared+set}" = set; then
8948   enableval=$enable_shared; p=${PACKAGE-default}
8949     case $enableval in
8950     yes) enable_shared=yes ;;
8951     no) enable_shared=no ;;
8952     *)
8953       enable_shared=no
8954       # Look at the argument we got.  We use all the common list separators.
8955       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8956       for pkg in $enableval; do
8957         IFS="$lt_save_ifs"
8958         if test "X$pkg" = "X$p"; then
8959           enable_shared=yes
8960         fi
8961       done
8962       IFS="$lt_save_ifs"
8963       ;;
8964     esac
8965 else
8966   enable_shared=yes
8967 fi
8968
8969
8970
8971
8972
8973
8974
8975 # Check whether --enable-static was given.
8976 if test "${enable_static+set}" = set; then
8977   enableval=$enable_static; p=${PACKAGE-default}
8978     case $enableval in
8979     yes) enable_static=yes ;;
8980     no) enable_static=no ;;
8981     *)
8982      enable_static=no
8983       # Look at the argument we got.  We use all the common list separators.
8984       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8985       for pkg in $enableval; do
8986         IFS="$lt_save_ifs"
8987         if test "X$pkg" = "X$p"; then
8988           enable_static=yes
8989         fi
8990       done
8991       IFS="$lt_save_ifs"
8992       ;;
8993     esac
8994 else
8995   enable_static=no
8996 fi
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007         enable_dlopen=no
9008
9009
9010   enable_win32_dll=no
9011
9012
9013
9014
9015
9016 # Check whether --with-pic was given.
9017 if test "${with_pic+set}" = set; then
9018   withval=$with_pic; pic_mode="$withval"
9019 else
9020   pic_mode=default
9021 fi
9022
9023
9024 test -z "$pic_mode" && pic_mode=default
9025
9026
9027
9028
9029
9030
9031
9032   # Check whether --enable-fast-install was given.
9033 if test "${enable_fast_install+set}" = set; then
9034   enableval=$enable_fast_install; p=${PACKAGE-default}
9035     case $enableval in
9036     yes) enable_fast_install=yes ;;
9037     no) enable_fast_install=no ;;
9038     *)
9039       enable_fast_install=no
9040       # Look at the argument we got.  We use all the common list separators.
9041       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9042       for pkg in $enableval; do
9043         IFS="$lt_save_ifs"
9044         if test "X$pkg" = "X$p"; then
9045           enable_fast_install=yes
9046         fi
9047       done
9048       IFS="$lt_save_ifs"
9049       ;;
9050     esac
9051 else
9052   enable_fast_install=yes
9053 fi
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065 # This can be used to rebuild libtool when needed
9066 LIBTOOL_DEPS="$ltmain"
9067
9068 # Always use our own libtool.
9069 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095 test -z "$LN_S" && LN_S="ln -s"
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110 if test -n "${ZSH_VERSION+set}" ; then
9111    setopt NO_GLOB_SUBST
9112 fi
9113
9114 { echo "$as_me:$LINENO: checking for objdir" >&5
9115 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9116 if test "${lt_cv_objdir+set}" = set; then
9117   echo $ECHO_N "(cached) $ECHO_C" >&6
9118 else
9119   rm -f .libs 2>/dev/null
9120 mkdir .libs 2>/dev/null
9121 if test -d .libs; then
9122   lt_cv_objdir=.libs
9123 else
9124   # MS-DOS does not allow filenames that begin with a dot.
9125   lt_cv_objdir=_libs
9126 fi
9127 rmdir .libs 2>/dev/null
9128 fi
9129 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9130 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9131 objdir=$lt_cv_objdir
9132
9133
9134
9135
9136
9137 cat >>confdefs.h <<_ACEOF
9138 #define LT_OBJDIR "$lt_cv_objdir/"
9139 _ACEOF
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157 case $host_os in
9158 aix3*)
9159   # AIX sometimes has problems with the GCC collect2 program.  For some
9160   # reason, if we set the COLLECT_NAMES environment variable, the problems
9161   # vanish in a puff of smoke.
9162   if test "X${COLLECT_NAMES+set}" != Xset; then
9163     COLLECT_NAMES=
9164     export COLLECT_NAMES
9165   fi
9166   ;;
9167 esac
9168
9169 # Sed substitution that helps us do robust quoting.  It backslashifies
9170 # metacharacters that are still active within double-quoted strings.
9171 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9172
9173 # Same as above, but do not quote variable references.
9174 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9175
9176 # Sed substitution to delay expansion of an escaped shell variable in a
9177 # double_quote_subst'ed string.
9178 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9179
9180 # Sed substitution to delay expansion of an escaped single quote.
9181 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9182
9183 # Sed substitution to avoid accidental globbing in evaled expressions
9184 no_glob_subst='s/\*/\\\*/g'
9185
9186 # Global variables:
9187 ofile=libtool
9188 can_build_shared=yes
9189
9190 # All known linkers require a `.a' archive for static linking (except MSVC,
9191 # which needs '.lib').
9192 libext=a
9193
9194 with_gnu_ld="$lt_cv_prog_gnu_ld"
9195
9196 old_CC="$CC"
9197 old_CFLAGS="$CFLAGS"
9198
9199 # Set sane defaults for various variables
9200 test -z "$CC" && CC=cc
9201 test -z "$LTCC" && LTCC=$CC
9202 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9203 test -z "$LD" && LD=ld
9204 test -z "$ac_objext" && ac_objext=o
9205
9206 for cc_temp in $compiler""; do
9207   case $cc_temp in
9208     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9209     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9210     \-*) ;;
9211     *) break;;
9212   esac
9213 done
9214 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9215
9216
9217 # Only perform the check for file, if the check method requires it
9218 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9219 case $deplibs_check_method in
9220 file_magic*)
9221   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9222     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9223 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9224 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9225   echo $ECHO_N "(cached) $ECHO_C" >&6
9226 else
9227   case $MAGIC_CMD in
9228 [\\/*] |  ?:[\\/]*)
9229   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9230   ;;
9231 *)
9232   lt_save_MAGIC_CMD="$MAGIC_CMD"
9233   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9234   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9235   for ac_dir in $ac_dummy; do
9236     IFS="$lt_save_ifs"
9237     test -z "$ac_dir" && ac_dir=.
9238     if test -f $ac_dir/${ac_tool_prefix}file; then
9239       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9240       if test -n "$file_magic_test_file"; then
9241         case $deplibs_check_method in
9242         "file_magic "*)
9243           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9244           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9245           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9246             $EGREP "$file_magic_regex" > /dev/null; then
9247             :
9248           else
9249             cat <<_LT_EOF 1>&2
9250
9251 *** Warning: the command libtool uses to detect shared libraries,
9252 *** $file_magic_cmd, produces output that libtool cannot recognize.
9253 *** The result is that libtool may fail to recognize shared libraries
9254 *** as such.  This will affect the creation of libtool libraries that
9255 *** depend on shared libraries, but programs linked with such libtool
9256 *** libraries will work regardless of this problem.  Nevertheless, you
9257 *** may want to report the problem to your system manager and/or to
9258 *** bug-libtool@gnu.org
9259
9260 _LT_EOF
9261           fi ;;
9262         esac
9263       fi
9264       break
9265     fi
9266   done
9267   IFS="$lt_save_ifs"
9268   MAGIC_CMD="$lt_save_MAGIC_CMD"
9269   ;;
9270 esac
9271 fi
9272
9273 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9274 if test -n "$MAGIC_CMD"; then
9275   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9276 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9277 else
9278   { echo "$as_me:$LINENO: result: no" >&5
9279 echo "${ECHO_T}no" >&6; }
9280 fi
9281
9282
9283
9284
9285
9286 if test -z "$lt_cv_path_MAGIC_CMD"; then
9287   if test -n "$ac_tool_prefix"; then
9288     { echo "$as_me:$LINENO: checking for file" >&5
9289 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9290 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9291   echo $ECHO_N "(cached) $ECHO_C" >&6
9292 else
9293   case $MAGIC_CMD in
9294 [\\/*] |  ?:[\\/]*)
9295   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9296   ;;
9297 *)
9298   lt_save_MAGIC_CMD="$MAGIC_CMD"
9299   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9300   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9301   for ac_dir in $ac_dummy; do
9302     IFS="$lt_save_ifs"
9303     test -z "$ac_dir" && ac_dir=.
9304     if test -f $ac_dir/file; then
9305       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9306       if test -n "$file_magic_test_file"; then
9307         case $deplibs_check_method in
9308         "file_magic "*)
9309           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9310           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9311           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9312             $EGREP "$file_magic_regex" > /dev/null; then
9313             :
9314           else
9315             cat <<_LT_EOF 1>&2
9316
9317 *** Warning: the command libtool uses to detect shared libraries,
9318 *** $file_magic_cmd, produces output that libtool cannot recognize.
9319 *** The result is that libtool may fail to recognize shared libraries
9320 *** as such.  This will affect the creation of libtool libraries that
9321 *** depend on shared libraries, but programs linked with such libtool
9322 *** libraries will work regardless of this problem.  Nevertheless, you
9323 *** may want to report the problem to your system manager and/or to
9324 *** bug-libtool@gnu.org
9325
9326 _LT_EOF
9327           fi ;;
9328         esac
9329       fi
9330       break
9331     fi
9332   done
9333   IFS="$lt_save_ifs"
9334   MAGIC_CMD="$lt_save_MAGIC_CMD"
9335   ;;
9336 esac
9337 fi
9338
9339 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9340 if test -n "$MAGIC_CMD"; then
9341   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9342 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9343 else
9344   { echo "$as_me:$LINENO: result: no" >&5
9345 echo "${ECHO_T}no" >&6; }
9346 fi
9347
9348
9349   else
9350     MAGIC_CMD=:
9351   fi
9352 fi
9353
9354   fi
9355   ;;
9356 esac
9357
9358 # Use C for the default configuration in the libtool script
9359
9360 lt_save_CC="$CC"
9361 ac_ext=c
9362 ac_cpp='$CPP $CPPFLAGS'
9363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9366
9367
9368 # Source file extension for C test sources.
9369 ac_ext=c
9370
9371 # Object file extension for compiled C test sources.
9372 objext=o
9373 objext=$objext
9374
9375 # Code to be used in simple compile tests
9376 lt_simple_compile_test_code="int some_variable = 0;"
9377
9378 # Code to be used in simple link tests
9379 lt_simple_link_test_code='int main(){return(0);}'
9380
9381
9382
9383
9384
9385
9386
9387 # If no C compiler was specified, use CC.
9388 LTCC=${LTCC-"$CC"}
9389
9390 # If no C compiler flags were specified, use CFLAGS.
9391 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9392
9393 # Allow CC to be a program name with arguments.
9394 compiler=$CC
9395
9396 # Save the default compiler, since it gets overwritten when the other
9397 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9398 compiler_DEFAULT=$CC
9399
9400 # save warnings/boilerplate of simple test code
9401 ac_outfile=conftest.$ac_objext
9402 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9403 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9404 _lt_compiler_boilerplate=`cat conftest.err`
9405 $RM conftest*
9406
9407 ac_outfile=conftest.$ac_objext
9408 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9409 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9410 _lt_linker_boilerplate=`cat conftest.err`
9411 $RM -r conftest*
9412
9413
9414 ## CAVEAT EMPTOR:
9415 ## There is no encapsulation within the following macros, do not change
9416 ## the running order or otherwise move them around unless you know exactly
9417 ## what you are doing...
9418 if test -n "$compiler"; then
9419
9420 lt_prog_compiler_no_builtin_flag=
9421
9422 if test "$GCC" = yes; then
9423   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9424
9425   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9426 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9427 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9428   echo $ECHO_N "(cached) $ECHO_C" >&6
9429 else
9430   lt_cv_prog_compiler_rtti_exceptions=no
9431    ac_outfile=conftest.$ac_objext
9432    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9433    lt_compiler_flag="-fno-rtti -fno-exceptions"
9434    # Insert the option either (1) after the last *FLAGS variable, or
9435    # (2) before a word containing "conftest.", or (3) at the end.
9436    # Note that $ac_compile itself does not contain backslashes and begins
9437    # with a dollar sign (not a hyphen), so the echo should work correctly.
9438    # The option is referenced via a variable to avoid confusing sed.
9439    lt_compile=`echo "$ac_compile" | $SED \
9440    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9441    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9442    -e 's:$: $lt_compiler_flag:'`
9443    (eval echo "\"\$as_me:9443: $lt_compile\"" >&5)
9444    (eval "$lt_compile" 2>conftest.err)
9445    ac_status=$?
9446    cat conftest.err >&5
9447    echo "$as_me:9447: \$? = $ac_status" >&5
9448    if (exit $ac_status) && test -s "$ac_outfile"; then
9449      # The compiler can only warn and ignore the option if not recognized
9450      # So say no if there are warnings other than the usual output.
9451      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9452      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9453      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9454        lt_cv_prog_compiler_rtti_exceptions=yes
9455      fi
9456    fi
9457    $RM conftest*
9458
9459 fi
9460 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9461 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9462
9463 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9464     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9465 else
9466     :
9467 fi
9468
9469 fi
9470
9471
9472
9473
9474
9475
9476   lt_prog_compiler_wl=
9477 lt_prog_compiler_pic=
9478 lt_prog_compiler_static=
9479
9480 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9481 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9482
9483   if test "$GCC" = yes; then
9484     lt_prog_compiler_wl='-Wl,'
9485     lt_prog_compiler_static='-static'
9486
9487     case $host_os in
9488       aix*)
9489       # All AIX code is PIC.
9490       if test "$host_cpu" = ia64; then
9491         # AIX 5 now supports IA64 processor
9492         lt_prog_compiler_static='-Bstatic'
9493       fi
9494       ;;
9495
9496     amigaos*)
9497       case $host_cpu in
9498       powerpc)
9499             # see comment about AmigaOS4 .so support
9500             lt_prog_compiler_pic='-fPIC'
9501         ;;
9502       m68k)
9503             # FIXME: we need at least 68020 code to build shared libraries, but
9504             # adding the `-m68020' flag to GCC prevents building anything better,
9505             # like `-m68040'.
9506             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9507         ;;
9508       esac
9509       ;;
9510
9511     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9512       # PIC is the default for these OSes.
9513       ;;
9514
9515     mingw* | cygwin* | pw32* | os2* | cegcc*)
9516       # This hack is so that the source file can tell whether it is being
9517       # built for inclusion in a dll (and should export symbols for example).
9518       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9519       # (--disable-auto-import) libraries
9520       lt_prog_compiler_pic='-DDLL_EXPORT'
9521       ;;
9522
9523     darwin* | rhapsody*)
9524       # PIC is the default on this platform
9525       # Common symbols not allowed in MH_DYLIB files
9526       lt_prog_compiler_pic='-fno-common'
9527       ;;
9528
9529     hpux*)
9530       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9531       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9532       # sets the default TLS model and affects inlining.
9533       case $host_cpu in
9534       hppa*64*)
9535         # +Z the default
9536         ;;
9537       *)
9538         lt_prog_compiler_pic='-fPIC'
9539         ;;
9540       esac
9541       ;;
9542
9543     interix[3-9]*)
9544       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9545       # Instead, we relocate shared libraries at runtime.
9546       ;;
9547
9548     msdosdjgpp*)
9549       # Just because we use GCC doesn't mean we suddenly get shared libraries
9550       # on systems that don't support them.
9551       lt_prog_compiler_can_build_shared=no
9552       enable_shared=no
9553       ;;
9554
9555     *nto* | *qnx*)
9556       # QNX uses GNU C++, but need to define -shared option too, otherwise
9557       # it will coredump.
9558       lt_prog_compiler_pic='-fPIC -shared'
9559       ;;
9560
9561     sysv4*MP*)
9562       if test -d /usr/nec; then
9563         lt_prog_compiler_pic=-Kconform_pic
9564       fi
9565       ;;
9566
9567     *)
9568       lt_prog_compiler_pic='-fPIC'
9569       ;;
9570     esac
9571   else
9572     # PORTME Check for flag to pass linker flags through the system compiler.
9573     case $host_os in
9574     aix*)
9575       lt_prog_compiler_wl='-Wl,'
9576       if test "$host_cpu" = ia64; then
9577         # AIX 5 now supports IA64 processor
9578         lt_prog_compiler_static='-Bstatic'
9579       else
9580         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9581       fi
9582       ;;
9583
9584     mingw* | cygwin* | pw32* | os2* | cegcc*)
9585       # This hack is so that the source file can tell whether it is being
9586       # built for inclusion in a dll (and should export symbols for example).
9587       lt_prog_compiler_pic='-DDLL_EXPORT'
9588       ;;
9589
9590     hpux9* | hpux10* | hpux11*)
9591       lt_prog_compiler_wl='-Wl,'
9592       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9593       # not for PA HP-UX.
9594       case $host_cpu in
9595       hppa*64*|ia64*)
9596         # +Z the default
9597         ;;
9598       *)
9599         lt_prog_compiler_pic='+Z'
9600         ;;
9601       esac
9602       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9603       lt_prog_compiler_static='${wl}-a ${wl}archive'
9604       ;;
9605
9606     irix5* | irix6* | nonstopux*)
9607       lt_prog_compiler_wl='-Wl,'
9608       # PIC (with -KPIC) is the default.
9609       lt_prog_compiler_static='-non_shared'
9610       ;;
9611
9612     linux* | k*bsd*-gnu)
9613       case $cc_basename in
9614       # old Intel for x86_64 which still supported -KPIC.
9615       ecc*)
9616         lt_prog_compiler_wl='-Wl,'
9617         lt_prog_compiler_pic='-KPIC'
9618         lt_prog_compiler_static='-static'
9619         ;;
9620       # icc used to be incompatible with GCC.
9621       # ICC 10 doesn't accept -KPIC any more.
9622       icc* | ifort*)
9623         lt_prog_compiler_wl='-Wl,'
9624         lt_prog_compiler_pic='-fPIC'
9625         lt_prog_compiler_static='-static'
9626         ;;
9627       # Lahey Fortran 8.1.
9628       lf95*)
9629         lt_prog_compiler_wl='-Wl,'
9630         lt_prog_compiler_pic='--shared'
9631         lt_prog_compiler_static='--static'
9632         ;;
9633       pgcc* | pgf77* | pgf90* | pgf95*)
9634         # Portland Group compilers (*not* the Pentium gcc compiler,
9635         # which looks to be a dead project)
9636         lt_prog_compiler_wl='-Wl,'
9637         lt_prog_compiler_pic='-fpic'
9638         lt_prog_compiler_static='-Bstatic'
9639         ;;
9640       ccc*)
9641         lt_prog_compiler_wl='-Wl,'
9642         # All Alpha code is PIC.
9643         lt_prog_compiler_static='-non_shared'
9644         ;;
9645       xl*)
9646         # IBM XL C 8.0/Fortran 10.1 on PPC
9647         lt_prog_compiler_wl='-Wl,'
9648         lt_prog_compiler_pic='-qpic'
9649         lt_prog_compiler_static='-qstaticlink'
9650         ;;
9651       *)
9652         case `$CC -V 2>&1 | sed 5q` in
9653         *Sun\ C*)
9654           # Sun C 5.9
9655           lt_prog_compiler_pic='-KPIC'
9656           lt_prog_compiler_static='-Bstatic'
9657           lt_prog_compiler_wl='-Wl,'
9658           ;;
9659         *Sun\ F*)
9660           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9661           lt_prog_compiler_pic='-KPIC'
9662           lt_prog_compiler_static='-Bstatic'
9663           lt_prog_compiler_wl=''
9664           ;;
9665         esac
9666         ;;
9667       esac
9668       ;;
9669
9670     newsos6)
9671       lt_prog_compiler_pic='-KPIC'
9672       lt_prog_compiler_static='-Bstatic'
9673       ;;
9674
9675     *nto* | *qnx*)
9676       # QNX uses GNU C++, but need to define -shared option too, otherwise
9677       # it will coredump.
9678       lt_prog_compiler_pic='-fPIC -shared'
9679       ;;
9680
9681     osf3* | osf4* | osf5*)
9682       lt_prog_compiler_wl='-Wl,'
9683       # All OSF/1 code is PIC.
9684       lt_prog_compiler_static='-non_shared'
9685       ;;
9686
9687     rdos*)
9688       lt_prog_compiler_static='-non_shared'
9689       ;;
9690
9691     solaris*)
9692       lt_prog_compiler_pic='-KPIC'
9693       lt_prog_compiler_static='-Bstatic'
9694       case $cc_basename in
9695       f77* | f90* | f95*)
9696         lt_prog_compiler_wl='-Qoption ld ';;
9697       *)
9698         lt_prog_compiler_wl='-Wl,';;
9699       esac
9700       ;;
9701
9702     sunos4*)
9703       lt_prog_compiler_wl='-Qoption ld '
9704       lt_prog_compiler_pic='-PIC'
9705       lt_prog_compiler_static='-Bstatic'
9706       ;;
9707
9708     sysv4 | sysv4.2uw2* | sysv4.3*)
9709       lt_prog_compiler_wl='-Wl,'
9710       lt_prog_compiler_pic='-KPIC'
9711       lt_prog_compiler_static='-Bstatic'
9712       ;;
9713
9714     sysv4*MP*)
9715       if test -d /usr/nec ;then
9716         lt_prog_compiler_pic='-Kconform_pic'
9717         lt_prog_compiler_static='-Bstatic'
9718       fi
9719       ;;
9720
9721     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9722       lt_prog_compiler_wl='-Wl,'
9723       lt_prog_compiler_pic='-KPIC'
9724       lt_prog_compiler_static='-Bstatic'
9725       ;;
9726
9727     unicos*)
9728       lt_prog_compiler_wl='-Wl,'
9729       lt_prog_compiler_can_build_shared=no
9730       ;;
9731
9732     uts4*)
9733       lt_prog_compiler_pic='-pic'
9734       lt_prog_compiler_static='-Bstatic'
9735       ;;
9736
9737     *)
9738       lt_prog_compiler_can_build_shared=no
9739       ;;
9740     esac
9741   fi
9742
9743 case $host_os in
9744   # For platforms which do not support PIC, -DPIC is meaningless:
9745   *djgpp*)
9746     lt_prog_compiler_pic=
9747     ;;
9748   *)
9749     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9750     ;;
9751 esac
9752 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9753 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9754
9755
9756
9757
9758
9759
9760 #
9761 # Check to make sure the PIC flag actually works.
9762 #
9763 if test -n "$lt_prog_compiler_pic"; then
9764   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9765 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9766 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9767   echo $ECHO_N "(cached) $ECHO_C" >&6
9768 else
9769   lt_cv_prog_compiler_pic_works=no
9770    ac_outfile=conftest.$ac_objext
9771    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9772    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9773    # Insert the option either (1) after the last *FLAGS variable, or
9774    # (2) before a word containing "conftest.", or (3) at the end.
9775    # Note that $ac_compile itself does not contain backslashes and begins
9776    # with a dollar sign (not a hyphen), so the echo should work correctly.
9777    # The option is referenced via a variable to avoid confusing sed.
9778    lt_compile=`echo "$ac_compile" | $SED \
9779    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9780    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9781    -e 's:$: $lt_compiler_flag:'`
9782    (eval echo "\"\$as_me:9782: $lt_compile\"" >&5)
9783    (eval "$lt_compile" 2>conftest.err)
9784    ac_status=$?
9785    cat conftest.err >&5
9786    echo "$as_me:9786: \$? = $ac_status" >&5
9787    if (exit $ac_status) && test -s "$ac_outfile"; then
9788      # The compiler can only warn and ignore the option if not recognized
9789      # So say no if there are warnings other than the usual output.
9790      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9791      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9792      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9793        lt_cv_prog_compiler_pic_works=yes
9794      fi
9795    fi
9796    $RM conftest*
9797
9798 fi
9799 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9800 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9801
9802 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9803     case $lt_prog_compiler_pic in
9804      "" | " "*) ;;
9805      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9806      esac
9807 else
9808     lt_prog_compiler_pic=
9809      lt_prog_compiler_can_build_shared=no
9810 fi
9811
9812 fi
9813
9814
9815
9816
9817
9818
9819 #
9820 # Check to make sure the static flag actually works.
9821 #
9822 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9823 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9824 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9825 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9826   echo $ECHO_N "(cached) $ECHO_C" >&6
9827 else
9828   lt_cv_prog_compiler_static_works=no
9829    save_LDFLAGS="$LDFLAGS"
9830    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9831    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9832    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9833      # The linker can only warn and ignore the option if not recognized
9834      # So say no if there are warnings
9835      if test -s conftest.err; then
9836        # Append any errors to the config.log.
9837        cat conftest.err 1>&5
9838        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9839        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9840        if diff conftest.exp conftest.er2 >/dev/null; then
9841          lt_cv_prog_compiler_static_works=yes
9842        fi
9843      else
9844        lt_cv_prog_compiler_static_works=yes
9845      fi
9846    fi
9847    $RM -r conftest*
9848    LDFLAGS="$save_LDFLAGS"
9849
9850 fi
9851 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9852 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9853
9854 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9855     :
9856 else
9857     lt_prog_compiler_static=
9858 fi
9859
9860
9861
9862
9863
9864
9865
9866   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9867 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9868 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9869   echo $ECHO_N "(cached) $ECHO_C" >&6
9870 else
9871   lt_cv_prog_compiler_c_o=no
9872    $RM -r conftest 2>/dev/null
9873    mkdir conftest
9874    cd conftest
9875    mkdir out
9876    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9877
9878    lt_compiler_flag="-o out/conftest2.$ac_objext"
9879    # Insert the option either (1) after the last *FLAGS variable, or
9880    # (2) before a word containing "conftest.", or (3) at the end.
9881    # Note that $ac_compile itself does not contain backslashes and begins
9882    # with a dollar sign (not a hyphen), so the echo should work correctly.
9883    lt_compile=`echo "$ac_compile" | $SED \
9884    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9885    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9886    -e 's:$: $lt_compiler_flag:'`
9887    (eval echo "\"\$as_me:9887: $lt_compile\"" >&5)
9888    (eval "$lt_compile" 2>out/conftest.err)
9889    ac_status=$?
9890    cat out/conftest.err >&5
9891    echo "$as_me:9891: \$? = $ac_status" >&5
9892    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9893    then
9894      # The compiler can only warn and ignore the option if not recognized
9895      # So say no if there are warnings
9896      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9897      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9898      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9899        lt_cv_prog_compiler_c_o=yes
9900      fi
9901    fi
9902    chmod u+w . 2>&5
9903    $RM conftest*
9904    # SGI C++ compiler will create directory out/ii_files/ for
9905    # template instantiation
9906    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9907    $RM out/* && rmdir out
9908    cd ..
9909    $RM -r conftest
9910    $RM conftest*
9911
9912 fi
9913 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9914 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9915
9916
9917
9918
9919
9920
9921   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9922 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9923 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9924   echo $ECHO_N "(cached) $ECHO_C" >&6
9925 else
9926   lt_cv_prog_compiler_c_o=no
9927    $RM -r conftest 2>/dev/null
9928    mkdir conftest
9929    cd conftest
9930    mkdir out
9931    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9932
9933    lt_compiler_flag="-o out/conftest2.$ac_objext"
9934    # Insert the option either (1) after the last *FLAGS variable, or
9935    # (2) before a word containing "conftest.", or (3) at the end.
9936    # Note that $ac_compile itself does not contain backslashes and begins
9937    # with a dollar sign (not a hyphen), so the echo should work correctly.
9938    lt_compile=`echo "$ac_compile" | $SED \
9939    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9940    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9941    -e 's:$: $lt_compiler_flag:'`
9942    (eval echo "\"\$as_me:9942: $lt_compile\"" >&5)
9943    (eval "$lt_compile" 2>out/conftest.err)
9944    ac_status=$?
9945    cat out/conftest.err >&5
9946    echo "$as_me:9946: \$? = $ac_status" >&5
9947    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9948    then
9949      # The compiler can only warn and ignore the option if not recognized
9950      # So say no if there are warnings
9951      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9952      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9953      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9954        lt_cv_prog_compiler_c_o=yes
9955      fi
9956    fi
9957    chmod u+w . 2>&5
9958    $RM conftest*
9959    # SGI C++ compiler will create directory out/ii_files/ for
9960    # template instantiation
9961    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9962    $RM out/* && rmdir out
9963    cd ..
9964    $RM -r conftest
9965    $RM conftest*
9966
9967 fi
9968 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9969 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9970
9971
9972
9973
9974 hard_links="nottested"
9975 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9976   # do not overwrite the value of need_locks provided by the user
9977   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9978 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9979   hard_links=yes
9980   $RM conftest*
9981   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9982   touch conftest.a
9983   ln conftest.a conftest.b 2>&5 || hard_links=no
9984   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9985   { echo "$as_me:$LINENO: result: $hard_links" >&5
9986 echo "${ECHO_T}$hard_links" >&6; }
9987   if test "$hard_links" = no; then
9988     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9989 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9990     need_locks=warn
9991   fi
9992 else
9993   need_locks=no
9994 fi
9995
9996
9997
9998
9999
10000
10001   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10002 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10003
10004   runpath_var=
10005   allow_undefined_flag=
10006   always_export_symbols=no
10007   archive_cmds=
10008   archive_expsym_cmds=
10009   compiler_needs_object=no
10010   enable_shared_with_static_runtimes=no
10011   export_dynamic_flag_spec=
10012   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10013   hardcode_automatic=no
10014   hardcode_direct=no
10015   hardcode_direct_absolute=no
10016   hardcode_libdir_flag_spec=
10017   hardcode_libdir_flag_spec_ld=
10018   hardcode_libdir_separator=
10019   hardcode_minus_L=no
10020   hardcode_shlibpath_var=unsupported
10021   inherit_rpath=no
10022   link_all_deplibs=unknown
10023   module_cmds=
10024   module_expsym_cmds=
10025   old_archive_from_new_cmds=
10026   old_archive_from_expsyms_cmds=
10027   thread_safe_flag_spec=
10028   whole_archive_flag_spec=
10029   # include_expsyms should be a list of space-separated symbols to be *always*
10030   # included in the symbol list
10031   include_expsyms=
10032   # exclude_expsyms can be an extended regexp of symbols to exclude
10033   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10034   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10035   # as well as any symbol that contains `d'.
10036   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10037   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10038   # platforms (ab)use it in PIC code, but their linkers get confused if
10039   # the symbol is explicitly referenced.  Since portable code cannot
10040   # rely on this symbol name, it's probably fine to never include it in
10041   # preloaded symbol tables.
10042   # Exclude shared library initialization/finalization symbols.
10043   extract_expsyms_cmds=
10044
10045   case $host_os in
10046   cygwin* | mingw* | pw32* | cegcc*)
10047     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10048     # When not using gcc, we currently assume that we are using
10049     # Microsoft Visual C++.
10050     if test "$GCC" != yes; then
10051       with_gnu_ld=no
10052     fi
10053     ;;
10054   interix*)
10055     # we just hope/assume this is gcc and not c89 (= MSVC++)
10056     with_gnu_ld=yes
10057     ;;
10058   openbsd*)
10059     with_gnu_ld=no
10060     ;;
10061   esac
10062
10063   ld_shlibs=yes
10064   if test "$with_gnu_ld" = yes; then
10065     # If archive_cmds runs LD, not CC, wlarc should be empty
10066     wlarc='${wl}'
10067
10068     # Set some defaults for GNU ld with shared library support. These
10069     # are reset later if shared libraries are not supported. Putting them
10070     # here allows them to be overridden if necessary.
10071     runpath_var=LD_RUN_PATH
10072     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10073     export_dynamic_flag_spec='${wl}--export-dynamic'
10074     # ancient GNU ld didn't support --whole-archive et. al.
10075     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10076       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10077     else
10078       whole_archive_flag_spec=
10079     fi
10080     supports_anon_versioning=no
10081     case `$LD -v 2>&1` in
10082       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10083       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10084       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10085       *\ 2.11.*) ;; # other 2.11 versions
10086       *) supports_anon_versioning=yes ;;
10087     esac
10088
10089     # See if GNU ld supports shared libraries.
10090     case $host_os in
10091     aix[3-9]*)
10092       # On AIX/PPC, the GNU linker is very broken
10093       if test "$host_cpu" != ia64; then
10094         ld_shlibs=no
10095         cat <<_LT_EOF 1>&2
10096
10097 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10098 *** to be unable to reliably create shared libraries on AIX.
10099 *** Therefore, libtool is disabling shared libraries support.  If you
10100 *** really care for shared libraries, you may want to modify your PATH
10101 *** so that a non-GNU linker is found, and then restart.
10102
10103 _LT_EOF
10104       fi
10105       ;;
10106
10107     amigaos*)
10108       case $host_cpu in
10109       powerpc)
10110             # see comment about AmigaOS4 .so support
10111             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10112             archive_expsym_cmds=''
10113         ;;
10114       m68k)
10115             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)'
10116             hardcode_libdir_flag_spec='-L$libdir'
10117             hardcode_minus_L=yes
10118         ;;
10119       esac
10120       ;;
10121
10122     beos*)
10123       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10124         allow_undefined_flag=unsupported
10125         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10126         # support --undefined.  This deserves some investigation.  FIXME
10127         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10128       else
10129         ld_shlibs=no
10130       fi
10131       ;;
10132
10133     cygwin* | mingw* | pw32* | cegcc*)
10134       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10135       # as there is no search path for DLLs.
10136       hardcode_libdir_flag_spec='-L$libdir'
10137       allow_undefined_flag=unsupported
10138       always_export_symbols=no
10139       enable_shared_with_static_runtimes=yes
10140       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10141
10142       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10143         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10144         # If the export-symbols file already is a .def file (1st line
10145         # is EXPORTS), use it as is; otherwise, prepend...
10146         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10147           cp $export_symbols $output_objdir/$soname.def;
10148         else
10149           echo EXPORTS > $output_objdir/$soname.def;
10150           cat $export_symbols >> $output_objdir/$soname.def;
10151         fi~
10152         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10153       else
10154         ld_shlibs=no
10155       fi
10156       ;;
10157
10158     interix[3-9]*)
10159       hardcode_direct=no
10160       hardcode_shlibpath_var=no
10161       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10162       export_dynamic_flag_spec='${wl}-E'
10163       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10164       # Instead, shared libraries are loaded at an image base (0x10000000 by
10165       # default) and relocated if they conflict, which is a slow very memory
10166       # consuming and fragmenting process.  To avoid this, we pick a random,
10167       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10168       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10169       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10170       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'
10171       ;;
10172
10173     gnu* | linux* | tpf* | k*bsd*-gnu)
10174       tmp_diet=no
10175       if test "$host_os" = linux-dietlibc; then
10176         case $cc_basename in
10177           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10178         esac
10179       fi
10180       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10181          && test "$tmp_diet" = no
10182       then
10183         tmp_addflag=
10184         tmp_sharedflag='-shared'
10185         case $cc_basename,$host_cpu in
10186         pgcc*)                          # Portland Group C compiler
10187           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'
10188           tmp_addflag=' $pic_flag'
10189           ;;
10190         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10191           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'
10192           tmp_addflag=' $pic_flag -Mnomain' ;;
10193         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10194           tmp_addflag=' -i_dynamic' ;;
10195         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10196           tmp_addflag=' -i_dynamic -nofor_main' ;;
10197         ifc* | ifort*)                  # Intel Fortran compiler
10198           tmp_addflag=' -nofor_main' ;;
10199         lf95*)                          # Lahey Fortran 8.1
10200           whole_archive_flag_spec=
10201           tmp_sharedflag='--shared' ;;
10202         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10203           tmp_sharedflag='-qmkshrobj'
10204           tmp_addflag= ;;
10205         esac
10206         case `$CC -V 2>&1 | sed 5q` in
10207         *Sun\ C*)                       # Sun C 5.9
10208           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'
10209           compiler_needs_object=yes
10210           tmp_sharedflag='-G' ;;
10211         *Sun\ F*)                       # Sun Fortran 8.3
10212           tmp_sharedflag='-G' ;;
10213         esac
10214         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10215
10216         if test "x$supports_anon_versioning" = xyes; then
10217           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10218             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10219             echo "local: *; };" >> $output_objdir/$libname.ver~
10220             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10221         fi
10222
10223         case $cc_basename in
10224         xlf*)
10225           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10226           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10227           hardcode_libdir_flag_spec=
10228           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10229           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10230           if test "x$supports_anon_versioning" = xyes; then
10231             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10232               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10233               echo "local: *; };" >> $output_objdir/$libname.ver~
10234               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10235           fi
10236           ;;
10237         esac
10238       else
10239         ld_shlibs=no
10240       fi
10241       ;;
10242
10243     netbsd*)
10244       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10245         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10246         wlarc=
10247       else
10248         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10249         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10250       fi
10251       ;;
10252
10253     solaris*)
10254       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10255         ld_shlibs=no
10256         cat <<_LT_EOF 1>&2
10257
10258 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10259 *** create shared libraries on Solaris systems.  Therefore, libtool
10260 *** is disabling shared libraries support.  We urge you to upgrade GNU
10261 *** binutils to release 2.9.1 or newer.  Another option is to modify
10262 *** your PATH or compiler configuration so that the native linker is
10263 *** used, and then restart.
10264
10265 _LT_EOF
10266       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10267         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10268         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10269       else
10270         ld_shlibs=no
10271       fi
10272       ;;
10273
10274     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10275       case `$LD -v 2>&1` in
10276         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10277         ld_shlibs=no
10278         cat <<_LT_EOF 1>&2
10279
10280 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10281 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10282 *** is disabling shared libraries support.  We urge you to upgrade GNU
10283 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10284 *** your PATH or compiler configuration so that the native linker is
10285 *** used, and then restart.
10286
10287 _LT_EOF
10288         ;;
10289         *)
10290           # For security reasons, it is highly recommended that you always
10291           # use absolute paths for naming shared libraries, and exclude the
10292           # DT_RUNPATH tag from executables and libraries.  But doing so
10293           # requires that you compile everything twice, which is a pain.
10294           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10295             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10296             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10297             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10298           else
10299             ld_shlibs=no
10300           fi
10301         ;;
10302       esac
10303       ;;
10304
10305     sunos4*)
10306       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10307       wlarc=
10308       hardcode_direct=yes
10309       hardcode_shlibpath_var=no
10310       ;;
10311
10312     *)
10313       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10314         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10315         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10316       else
10317         ld_shlibs=no
10318       fi
10319       ;;
10320     esac
10321
10322     if test "$ld_shlibs" = no; then
10323       runpath_var=
10324       hardcode_libdir_flag_spec=
10325       export_dynamic_flag_spec=
10326       whole_archive_flag_spec=
10327     fi
10328   else
10329     # PORTME fill in a description of your system's linker (not GNU ld)
10330     case $host_os in
10331     aix3*)
10332       allow_undefined_flag=unsupported
10333       always_export_symbols=yes
10334       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'
10335       # Note: this linker hardcodes the directories in LIBPATH if there
10336       # are no directories specified by -L.
10337       hardcode_minus_L=yes
10338       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10339         # Neither direct hardcoding nor static linking is supported with a
10340         # broken collect2.
10341         hardcode_direct=unsupported
10342       fi
10343       ;;
10344
10345     aix[4-9]*)
10346       if test "$host_cpu" = ia64; then
10347         # On IA64, the linker does run time linking by default, so we don't
10348         # have to do anything special.
10349         aix_use_runtimelinking=no
10350         exp_sym_flag='-Bexport'
10351         no_entry_flag=""
10352       else
10353         # If we're using GNU nm, then we don't want the "-C" option.
10354         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10355         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10356           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'
10357         else
10358           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'
10359         fi
10360         aix_use_runtimelinking=no
10361
10362         # Test if we are trying to use run time linking or normal
10363         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10364         # need to do runtime linking.
10365         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10366           for ld_flag in $LDFLAGS; do
10367           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10368             aix_use_runtimelinking=yes
10369             break
10370           fi
10371           done
10372           ;;
10373         esac
10374
10375         exp_sym_flag='-bexport'
10376         no_entry_flag='-bnoentry'
10377       fi
10378
10379       # When large executables or shared objects are built, AIX ld can
10380       # have problems creating the table of contents.  If linking a library
10381       # or program results in "error TOC overflow" add -mminimal-toc to
10382       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10383       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10384
10385       archive_cmds=''
10386       hardcode_direct=yes
10387       hardcode_direct_absolute=yes
10388       hardcode_libdir_separator=':'
10389       link_all_deplibs=yes
10390       file_list_spec='${wl}-f,'
10391
10392       if test "$GCC" = yes; then
10393         case $host_os in aix4.[012]|aix4.[012].*)
10394         # We only want to do this on AIX 4.2 and lower, the check
10395         # below for broken collect2 doesn't work under 4.3+
10396           collect2name=`${CC} -print-prog-name=collect2`
10397           if test -f "$collect2name" &&
10398            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10399           then
10400           # We have reworked collect2
10401           :
10402           else
10403           # We have old collect2
10404           hardcode_direct=unsupported
10405           # It fails to find uninstalled libraries when the uninstalled
10406           # path is not listed in the libpath.  Setting hardcode_minus_L
10407           # to unsupported forces relinking
10408           hardcode_minus_L=yes
10409           hardcode_libdir_flag_spec='-L$libdir'
10410           hardcode_libdir_separator=
10411           fi
10412           ;;
10413         esac
10414         shared_flag='-shared'
10415         if test "$aix_use_runtimelinking" = yes; then
10416           shared_flag="$shared_flag "'${wl}-G'
10417         fi
10418       else
10419         # not using gcc
10420         if test "$host_cpu" = ia64; then
10421         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10422         # chokes on -Wl,-G. The following line is correct:
10423           shared_flag='-G'
10424         else
10425           if test "$aix_use_runtimelinking" = yes; then
10426             shared_flag='${wl}-G'
10427           else
10428             shared_flag='${wl}-bM:SRE'
10429           fi
10430         fi
10431       fi
10432
10433       export_dynamic_flag_spec='${wl}-bexpall'
10434       # It seems that -bexpall does not export symbols beginning with
10435       # underscore (_), so it is better to generate a list of symbols to export.
10436       always_export_symbols=yes
10437       if test "$aix_use_runtimelinking" = yes; then
10438         # Warning - without using the other runtime loading flags (-brtl),
10439         # -berok will link without error, but may produce a broken library.
10440         allow_undefined_flag='-berok'
10441         # Determine the default libpath from the value encoded in an
10442         # empty executable.
10443         cat >conftest.$ac_ext <<_ACEOF
10444 /* confdefs.h.  */
10445 _ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h.  */
10449
10450 int
10451 main ()
10452 {
10453
10454   ;
10455   return 0;
10456 }
10457 _ACEOF
10458 rm -f conftest.$ac_objext conftest$ac_exeext
10459 if { (ac_try="$ac_link"
10460 case "(($ac_try" in
10461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462   *) ac_try_echo=$ac_try;;
10463 esac
10464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465   (eval "$ac_link") 2>conftest.er1
10466   ac_status=$?
10467   grep -v '^ *+' conftest.er1 >conftest.err
10468   rm -f conftest.er1
10469   cat conftest.err >&5
10470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471   (exit $ac_status); } && {
10472          test -z "$ac_c_werror_flag" ||
10473          test ! -s conftest.err
10474        } && test -s conftest$ac_exeext &&
10475        $as_test_x conftest$ac_exeext; then
10476
10477 lt_aix_libpath_sed='
10478     /Import File Strings/,/^$/ {
10479         /^0/ {
10480             s/^0  *\(.*\)$/\1/
10481             p
10482         }
10483     }'
10484 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10485 # Check for a 64-bit object if we didn't find anything.
10486 if test -z "$aix_libpath"; then
10487   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10488 fi
10489 else
10490   echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10492
10493
10494 fi
10495
10496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10497       conftest$ac_exeext conftest.$ac_ext
10498 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10499
10500         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10501         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"
10502       else
10503         if test "$host_cpu" = ia64; then
10504           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10505           allow_undefined_flag="-z nodefs"
10506           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"
10507         else
10508          # Determine the default libpath from the value encoded in an
10509          # empty executable.
10510          cat >conftest.$ac_ext <<_ACEOF
10511 /* confdefs.h.  */
10512 _ACEOF
10513 cat confdefs.h >>conftest.$ac_ext
10514 cat >>conftest.$ac_ext <<_ACEOF
10515 /* end confdefs.h.  */
10516
10517 int
10518 main ()
10519 {
10520
10521   ;
10522   return 0;
10523 }
10524 _ACEOF
10525 rm -f conftest.$ac_objext conftest$ac_exeext
10526 if { (ac_try="$ac_link"
10527 case "(($ac_try" in
10528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10529   *) ac_try_echo=$ac_try;;
10530 esac
10531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10532   (eval "$ac_link") 2>conftest.er1
10533   ac_status=$?
10534   grep -v '^ *+' conftest.er1 >conftest.err
10535   rm -f conftest.er1
10536   cat conftest.err >&5
10537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538   (exit $ac_status); } && {
10539          test -z "$ac_c_werror_flag" ||
10540          test ! -s conftest.err
10541        } && test -s conftest$ac_exeext &&
10542        $as_test_x conftest$ac_exeext; then
10543
10544 lt_aix_libpath_sed='
10545     /Import File Strings/,/^$/ {
10546         /^0/ {
10547             s/^0  *\(.*\)$/\1/
10548             p
10549         }
10550     }'
10551 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10552 # Check for a 64-bit object if we didn't find anything.
10553 if test -z "$aix_libpath"; then
10554   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10555 fi
10556 else
10557   echo "$as_me: failed program was:" >&5
10558 sed 's/^/| /' conftest.$ac_ext >&5
10559
10560
10561 fi
10562
10563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10564       conftest$ac_exeext conftest.$ac_ext
10565 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10566
10567          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10568           # Warning - without using the other run time loading flags,
10569           # -berok will link without error, but may produce a broken library.
10570           no_undefined_flag=' ${wl}-bernotok'
10571           allow_undefined_flag=' ${wl}-berok'
10572           # Exported symbols can be pulled into shared objects from archives
10573           whole_archive_flag_spec='$convenience'
10574           archive_cmds_need_lc=yes
10575           # This is similar to how AIX traditionally builds its shared libraries.
10576           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'
10577         fi
10578       fi
10579       ;;
10580
10581     amigaos*)
10582       case $host_cpu in
10583       powerpc)
10584             # see comment about AmigaOS4 .so support
10585             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10586             archive_expsym_cmds=''
10587         ;;
10588       m68k)
10589             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)'
10590             hardcode_libdir_flag_spec='-L$libdir'
10591             hardcode_minus_L=yes
10592         ;;
10593       esac
10594       ;;
10595
10596     bsdi[45]*)
10597       export_dynamic_flag_spec=-rdynamic
10598       ;;
10599
10600     cygwin* | mingw* | pw32* | cegcc*)
10601       # When not using gcc, we currently assume that we are using
10602       # Microsoft Visual C++.
10603       # hardcode_libdir_flag_spec is actually meaningless, as there is
10604       # no search path for DLLs.
10605       hardcode_libdir_flag_spec=' '
10606       allow_undefined_flag=unsupported
10607       # Tell ltmain to make .lib files, not .a files.
10608       libext=lib
10609       # Tell ltmain to make .dll files, not .so files.
10610       shrext_cmds=".dll"
10611       # FIXME: Setting linknames here is a bad hack.
10612       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10613       # The linker will automatically build a .lib file if we build a DLL.
10614       old_archive_from_new_cmds='true'
10615       # FIXME: Should let the user specify the lib program.
10616       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10617       fix_srcfile_path='`cygpath -w "$srcfile"`'
10618       enable_shared_with_static_runtimes=yes
10619       ;;
10620
10621     darwin* | rhapsody*)
10622
10623
10624   archive_cmds_need_lc=no
10625   hardcode_direct=no
10626   hardcode_automatic=yes
10627   hardcode_shlibpath_var=unsupported
10628   whole_archive_flag_spec=''
10629   link_all_deplibs=yes
10630   allow_undefined_flag="$_lt_dar_allow_undefined"
10631   case $cc_basename in
10632      ifort*) _lt_dar_can_shared=yes ;;
10633      *) _lt_dar_can_shared=$GCC ;;
10634   esac
10635   if test "$_lt_dar_can_shared" = "yes"; then
10636     output_verbose_link_cmd=echo
10637     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10638     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10639     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}"
10640     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}"
10641
10642   else
10643   ld_shlibs=no
10644   fi
10645
10646       ;;
10647
10648     dgux*)
10649       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10650       hardcode_libdir_flag_spec='-L$libdir'
10651       hardcode_shlibpath_var=no
10652       ;;
10653
10654     freebsd1*)
10655       ld_shlibs=no
10656       ;;
10657
10658     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10659     # support.  Future versions do this automatically, but an explicit c++rt0.o
10660     # does not break anything, and helps significantly (at the cost of a little
10661     # extra space).
10662     freebsd2.2*)
10663       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10664       hardcode_libdir_flag_spec='-R$libdir'
10665       hardcode_direct=yes
10666       hardcode_shlibpath_var=no
10667       ;;
10668
10669     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10670     freebsd2*)
10671       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10672       hardcode_direct=yes
10673       hardcode_minus_L=yes
10674       hardcode_shlibpath_var=no
10675       ;;
10676
10677     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10678     freebsd* | dragonfly*)
10679       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10680       hardcode_libdir_flag_spec='-R$libdir'
10681       hardcode_direct=yes
10682       hardcode_shlibpath_var=no
10683       ;;
10684
10685     hpux9*)
10686       if test "$GCC" = yes; then
10687         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'
10688       else
10689         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'
10690       fi
10691       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10692       hardcode_libdir_separator=:
10693       hardcode_direct=yes
10694
10695       # hardcode_minus_L: Not really in the search PATH,
10696       # but as the default location of the library.
10697       hardcode_minus_L=yes
10698       export_dynamic_flag_spec='${wl}-E'
10699       ;;
10700
10701     hpux10*)
10702       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10703         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10704       else
10705         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10706       fi
10707       if test "$with_gnu_ld" = no; then
10708         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10709         hardcode_libdir_flag_spec_ld='+b $libdir'
10710         hardcode_libdir_separator=:
10711         hardcode_direct=yes
10712         hardcode_direct_absolute=yes
10713         export_dynamic_flag_spec='${wl}-E'
10714         # hardcode_minus_L: Not really in the search PATH,
10715         # but as the default location of the library.
10716         hardcode_minus_L=yes
10717       fi
10718       ;;
10719
10720     hpux11*)
10721       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10722         case $host_cpu in
10723         hppa*64*)
10724           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10725           ;;
10726         ia64*)
10727           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10728           ;;
10729         *)
10730           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10731           ;;
10732         esac
10733       else
10734         case $host_cpu in
10735         hppa*64*)
10736           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10737           ;;
10738         ia64*)
10739           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10740           ;;
10741         *)
10742           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10743           ;;
10744         esac
10745       fi
10746       if test "$with_gnu_ld" = no; then
10747         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10748         hardcode_libdir_separator=:
10749
10750         case $host_cpu in
10751         hppa*64*|ia64*)
10752           hardcode_direct=no
10753           hardcode_shlibpath_var=no
10754           ;;
10755         *)
10756           hardcode_direct=yes
10757           hardcode_direct_absolute=yes
10758           export_dynamic_flag_spec='${wl}-E'
10759
10760           # hardcode_minus_L: Not really in the search PATH,
10761           # but as the default location of the library.
10762           hardcode_minus_L=yes
10763           ;;
10764         esac
10765       fi
10766       ;;
10767
10768     irix5* | irix6* | nonstopux*)
10769       if test "$GCC" = yes; then
10770         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'
10771         # Try to use the -exported_symbol ld option, if it does not
10772         # work, assume that -exports_file does not work either and
10773         # implicitly export all symbols.
10774         save_LDFLAGS="$LDFLAGS"
10775         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10776         cat >conftest.$ac_ext <<_ACEOF
10777 int foo(void) {}
10778 _ACEOF
10779 rm -f conftest.$ac_objext conftest$ac_exeext
10780 if { (ac_try="$ac_link"
10781 case "(($ac_try" in
10782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783   *) ac_try_echo=$ac_try;;
10784 esac
10785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786   (eval "$ac_link") 2>conftest.er1
10787   ac_status=$?
10788   grep -v '^ *+' conftest.er1 >conftest.err
10789   rm -f conftest.er1
10790   cat conftest.err >&5
10791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792   (exit $ac_status); } && {
10793          test -z "$ac_c_werror_flag" ||
10794          test ! -s conftest.err
10795        } && test -s conftest$ac_exeext &&
10796        $as_test_x conftest$ac_exeext; then
10797   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'
10798
10799 else
10800   echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10802
10803
10804 fi
10805
10806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10807       conftest$ac_exeext conftest.$ac_ext
10808         LDFLAGS="$save_LDFLAGS"
10809       else
10810         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'
10811         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'
10812       fi
10813       archive_cmds_need_lc='no'
10814       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10815       hardcode_libdir_separator=:
10816       inherit_rpath=yes
10817       link_all_deplibs=yes
10818       ;;
10819
10820     netbsd*)
10821       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10822         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10823       else
10824         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10825       fi
10826       hardcode_libdir_flag_spec='-R$libdir'
10827       hardcode_direct=yes
10828       hardcode_shlibpath_var=no
10829       ;;
10830
10831     newsos6)
10832       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10833       hardcode_direct=yes
10834       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10835       hardcode_libdir_separator=:
10836       hardcode_shlibpath_var=no
10837       ;;
10838
10839     *nto* | *qnx*)
10840       ;;
10841
10842     openbsd*)
10843       if test -f /usr/libexec/ld.so; then
10844         hardcode_direct=yes
10845         hardcode_shlibpath_var=no
10846         hardcode_direct_absolute=yes
10847         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10848           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10849           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10850           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10851           export_dynamic_flag_spec='${wl}-E'
10852         else
10853           case $host_os in
10854            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10855              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10856              hardcode_libdir_flag_spec='-R$libdir'
10857              ;;
10858            *)
10859              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10860              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10861              ;;
10862           esac
10863         fi
10864       else
10865         ld_shlibs=no
10866       fi
10867       ;;
10868
10869     os2*)
10870       hardcode_libdir_flag_spec='-L$libdir'
10871       hardcode_minus_L=yes
10872       allow_undefined_flag=unsupported
10873       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'
10874       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10875       ;;
10876
10877     osf3*)
10878       if test "$GCC" = yes; then
10879         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10880         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'
10881       else
10882         allow_undefined_flag=' -expect_unresolved \*'
10883         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'
10884       fi
10885       archive_cmds_need_lc='no'
10886       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10887       hardcode_libdir_separator=:
10888       ;;
10889
10890     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10891       if test "$GCC" = yes; then
10892         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10893         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'
10894         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10895       else
10896         allow_undefined_flag=' -expect_unresolved \*'
10897         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'
10898         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~
10899         $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'
10900
10901         # Both c and cxx compiler support -rpath directly
10902         hardcode_libdir_flag_spec='-rpath $libdir'
10903       fi
10904       archive_cmds_need_lc='no'
10905       hardcode_libdir_separator=:
10906       ;;
10907
10908     solaris*)
10909       no_undefined_flag=' -z defs'
10910       if test "$GCC" = yes; then
10911         wlarc='${wl}'
10912         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10913         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10914           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10915       else
10916         case `$CC -V 2>&1` in
10917         *"Compilers 5.0"*)
10918           wlarc=''
10919           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10920           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10921           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10922           ;;
10923         *)
10924           wlarc='${wl}'
10925           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10926           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10927           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10928           ;;
10929         esac
10930       fi
10931       hardcode_libdir_flag_spec='-R$libdir'
10932       hardcode_shlibpath_var=no
10933       case $host_os in
10934       solaris2.[0-5] | solaris2.[0-5].*) ;;
10935       *)
10936         # The compiler driver will combine and reorder linker options,
10937         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10938         # but is careful enough not to reorder.
10939         # Supported since Solaris 2.6 (maybe 2.5.1?)
10940         if test "$GCC" = yes; then
10941           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10942         else
10943           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10944         fi
10945         ;;
10946       esac
10947       link_all_deplibs=yes
10948       ;;
10949
10950     sunos4*)
10951       if test "x$host_vendor" = xsequent; then
10952         # Use $CC to link under sequent, because it throws in some extra .o
10953         # files that make .init and .fini sections work.
10954         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10955       else
10956         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10957       fi
10958       hardcode_libdir_flag_spec='-L$libdir'
10959       hardcode_direct=yes
10960       hardcode_minus_L=yes
10961       hardcode_shlibpath_var=no
10962       ;;
10963
10964     sysv4)
10965       case $host_vendor in
10966         sni)
10967           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10968           hardcode_direct=yes # is this really true???
10969         ;;
10970         siemens)
10971           ## LD is ld it makes a PLAMLIB
10972           ## CC just makes a GrossModule.
10973           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10974           reload_cmds='$CC -r -o $output$reload_objs'
10975           hardcode_direct=no
10976         ;;
10977         motorola)
10978           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10979           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10980         ;;
10981       esac
10982       runpath_var='LD_RUN_PATH'
10983       hardcode_shlibpath_var=no
10984       ;;
10985
10986     sysv4.3*)
10987       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10988       hardcode_shlibpath_var=no
10989       export_dynamic_flag_spec='-Bexport'
10990       ;;
10991
10992     sysv4*MP*)
10993       if test -d /usr/nec; then
10994         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10995         hardcode_shlibpath_var=no
10996         runpath_var=LD_RUN_PATH
10997         hardcode_runpath_var=yes
10998         ld_shlibs=yes
10999       fi
11000       ;;
11001
11002     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11003       no_undefined_flag='${wl}-z,text'
11004       archive_cmds_need_lc=no
11005       hardcode_shlibpath_var=no
11006       runpath_var='LD_RUN_PATH'
11007
11008       if test "$GCC" = yes; then
11009         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11010         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11011       else
11012         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11013         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11014       fi
11015       ;;
11016
11017     sysv5* | sco3.2v5* | sco5v6*)
11018       # Note: We can NOT use -z defs as we might desire, because we do not
11019       # link with -lc, and that would cause any symbols used from libc to
11020       # always be unresolved, which means just about no library would
11021       # ever link correctly.  If we're not using GNU ld we use -z text
11022       # though, which does catch some bad symbols but isn't as heavy-handed
11023       # as -z defs.
11024       no_undefined_flag='${wl}-z,text'
11025       allow_undefined_flag='${wl}-z,nodefs'
11026       archive_cmds_need_lc=no
11027       hardcode_shlibpath_var=no
11028       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11029       hardcode_libdir_separator=':'
11030       link_all_deplibs=yes
11031       export_dynamic_flag_spec='${wl}-Bexport'
11032       runpath_var='LD_RUN_PATH'
11033
11034       if test "$GCC" = yes; then
11035         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11036         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11037       else
11038         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11039         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11040       fi
11041       ;;
11042
11043     uts4*)
11044       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11045       hardcode_libdir_flag_spec='-L$libdir'
11046       hardcode_shlibpath_var=no
11047       ;;
11048
11049     *)
11050       ld_shlibs=no
11051       ;;
11052     esac
11053
11054     if test x$host_vendor = xsni; then
11055       case $host in
11056       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11057         export_dynamic_flag_spec='${wl}-Blargedynsym'
11058         ;;
11059       esac
11060     fi
11061   fi
11062
11063 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11064 echo "${ECHO_T}$ld_shlibs" >&6; }
11065 test "$ld_shlibs" = no && can_build_shared=no
11066
11067 with_gnu_ld=$with_gnu_ld
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083 #
11084 # Do we need to explicitly link libc?
11085 #
11086 case "x$archive_cmds_need_lc" in
11087 x|xyes)
11088   # Assume -lc should be added
11089   archive_cmds_need_lc=yes
11090
11091   if test "$enable_shared" = yes && test "$GCC" = yes; then
11092     case $archive_cmds in
11093     *'~'*)
11094       # FIXME: we may have to deal with multi-command sequences.
11095       ;;
11096     '$CC '*)
11097       # Test whether the compiler implicitly links with -lc since on some
11098       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11099       # to ld, don't add -lc before -lgcc.
11100       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11101 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11102       $RM conftest*
11103       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11104
11105       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11106   (eval $ac_compile) 2>&5
11107   ac_status=$?
11108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109   (exit $ac_status); } 2>conftest.err; then
11110         soname=conftest
11111         lib=conftest
11112         libobjs=conftest.$ac_objext
11113         deplibs=
11114         wl=$lt_prog_compiler_wl
11115         pic_flag=$lt_prog_compiler_pic
11116         compiler_flags=-v
11117         linker_flags=-v
11118         verstring=
11119         output_objdir=.
11120         libname=conftest
11121         lt_save_allow_undefined_flag=$allow_undefined_flag
11122         allow_undefined_flag=
11123         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11124   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11125   ac_status=$?
11126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127   (exit $ac_status); }
11128         then
11129           archive_cmds_need_lc=no
11130         else
11131           archive_cmds_need_lc=yes
11132         fi
11133         allow_undefined_flag=$lt_save_allow_undefined_flag
11134       else
11135         cat conftest.err 1>&5
11136       fi
11137       $RM conftest*
11138       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11139 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11140       ;;
11141     esac
11142   fi
11143   ;;
11144 esac
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11303 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11304
11305 if test "$GCC" = yes; then
11306   case $host_os in
11307     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11308     *) lt_awk_arg="/^libraries:/" ;;
11309   esac
11310   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11311   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11312     # if the path contains ";" then we assume it to be the separator
11313     # otherwise default to the standard path separator (i.e. ":") - it is
11314     # assumed that no part of a normal pathname contains ";" but that should
11315     # okay in the real world where ";" in dirpaths is itself problematic.
11316     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11317   else
11318     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11319   fi
11320   # Ok, now we have the path, separated by spaces, we can step through it
11321   # and add multilib dir if necessary.
11322   lt_tmp_lt_search_path_spec=
11323   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11324   for lt_sys_path in $lt_search_path_spec; do
11325     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11326       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11327     else
11328       test -d "$lt_sys_path" && \
11329         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11330     fi
11331   done
11332   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11333 BEGIN {RS=" "; FS="/|\n";} {
11334   lt_foo="";
11335   lt_count=0;
11336   for (lt_i = NF; lt_i > 0; lt_i--) {
11337     if ($lt_i != "" && $lt_i != ".") {
11338       if ($lt_i == "..") {
11339         lt_count++;
11340       } else {
11341         if (lt_count == 0) {
11342           lt_foo="/" $lt_i lt_foo;
11343         } else {
11344           lt_count--;
11345         }
11346       }
11347     }
11348   }
11349   if (lt_foo != "") { lt_freq[lt_foo]++; }
11350   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11351 }'`
11352   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11353 else
11354   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11355 fi
11356 library_names_spec=
11357 libname_spec='lib$name'
11358 soname_spec=
11359 shrext_cmds=".so"
11360 postinstall_cmds=
11361 postuninstall_cmds=
11362 finish_cmds=
11363 finish_eval=
11364 shlibpath_var=
11365 shlibpath_overrides_runpath=unknown
11366 version_type=none
11367 dynamic_linker="$host_os ld.so"
11368 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11369 need_lib_prefix=unknown
11370 hardcode_into_libs=no
11371
11372 # when you set need_version to no, make sure it does not cause -set_version
11373 # flags to be left without arguments
11374 need_version=unknown
11375
11376 case $host_os in
11377 aix3*)
11378   version_type=linux
11379   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11380   shlibpath_var=LIBPATH
11381
11382   # AIX 3 has no versioning support, so we append a major version to the name.
11383   soname_spec='${libname}${release}${shared_ext}$major'
11384   ;;
11385
11386 aix[4-9]*)
11387   version_type=linux
11388   need_lib_prefix=no
11389   need_version=no
11390   hardcode_into_libs=yes
11391   if test "$host_cpu" = ia64; then
11392     # AIX 5 supports IA64
11393     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11394     shlibpath_var=LD_LIBRARY_PATH
11395   else
11396     # With GCC up to 2.95.x, collect2 would create an import file
11397     # for dependence libraries.  The import file would start with
11398     # the line `#! .'.  This would cause the generated library to
11399     # depend on `.', always an invalid library.  This was fixed in
11400     # development snapshots of GCC prior to 3.0.
11401     case $host_os in
11402       aix4 | aix4.[01] | aix4.[01].*)
11403       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11404            echo ' yes '
11405            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11406         :
11407       else
11408         can_build_shared=no
11409       fi
11410       ;;
11411     esac
11412     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11413     # soname into executable. Probably we can add versioning support to
11414     # collect2, so additional links can be useful in future.
11415     if test "$aix_use_runtimelinking" = yes; then
11416       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11417       # instead of lib<name>.a to let people know that these are not
11418       # typical AIX shared libraries.
11419       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11420     else
11421       # We preserve .a as extension for shared libraries through AIX4.2
11422       # and later when we are not doing run time linking.
11423       library_names_spec='${libname}${release}.a $libname.a'
11424       soname_spec='${libname}${release}${shared_ext}$major'
11425     fi
11426     shlibpath_var=LIBPATH
11427   fi
11428   ;;
11429
11430 amigaos*)
11431   case $host_cpu in
11432   powerpc)
11433     # Since July 2007 AmigaOS4 officially supports .so libraries.
11434     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11435     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11436     ;;
11437   m68k)
11438     library_names_spec='$libname.ixlibrary $libname.a'
11439     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11440     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'
11441     ;;
11442   esac
11443   ;;
11444
11445 beos*)
11446   library_names_spec='${libname}${shared_ext}'
11447   dynamic_linker="$host_os ld.so"
11448   shlibpath_var=LIBRARY_PATH
11449   ;;
11450
11451 bsdi[45]*)
11452   version_type=linux
11453   need_version=no
11454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11455   soname_spec='${libname}${release}${shared_ext}$major'
11456   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11457   shlibpath_var=LD_LIBRARY_PATH
11458   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11459   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11460   # the default ld.so.conf also contains /usr/contrib/lib and
11461   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11462   # libtool to hard-code these into programs
11463   ;;
11464
11465 cygwin* | mingw* | pw32* | cegcc*)
11466   version_type=windows
11467   shrext_cmds=".dll"
11468   need_version=no
11469   need_lib_prefix=no
11470
11471   case $GCC,$host_os in
11472   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11473     library_names_spec='$libname.dll.a'
11474     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11475     postinstall_cmds='base_file=`basename \${file}`~
11476       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11477       dldir=$destdir/`dirname \$dlpath`~
11478       test -d \$dldir || mkdir -p \$dldir~
11479       $install_prog $dir/$dlname \$dldir/$dlname~
11480       chmod a+x \$dldir/$dlname~
11481       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11482         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11483       fi'
11484     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11485       dlpath=$dir/\$dldll~
11486        $RM \$dlpath'
11487     shlibpath_overrides_runpath=yes
11488
11489     case $host_os in
11490     cygwin*)
11491       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11492       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11493       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11494       ;;
11495     mingw* | cegcc*)
11496       # MinGW DLLs use traditional 'lib' prefix
11497       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11498       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11499       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11500         # It is most probably a Windows format PATH printed by
11501         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11502         # path with ; separators, and with drive letters. We can handle the
11503         # drive letters (cygwin fileutils understands them), so leave them,
11504         # especially as we might pass files found there to a mingw objdump,
11505         # which wouldn't understand a cygwinified path. Ahh.
11506         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11507       else
11508         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11509       fi
11510       ;;
11511     pw32*)
11512       # pw32 DLLs use 'pw' prefix rather than 'lib'
11513       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11514       ;;
11515     esac
11516     ;;
11517
11518   *)
11519     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11520     ;;
11521   esac
11522   dynamic_linker='Win32 ld.exe'
11523   # FIXME: first we should search . and the directory the executable is in
11524   shlibpath_var=PATH
11525   ;;
11526
11527 darwin* | rhapsody*)
11528   dynamic_linker="$host_os dyld"
11529   version_type=darwin
11530   need_lib_prefix=no
11531   need_version=no
11532   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11533   soname_spec='${libname}${release}${major}$shared_ext'
11534   shlibpath_overrides_runpath=yes
11535   shlibpath_var=DYLD_LIBRARY_PATH
11536   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11537
11538   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11539   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11540   ;;
11541
11542 dgux*)
11543   version_type=linux
11544   need_lib_prefix=no
11545   need_version=no
11546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11547   soname_spec='${libname}${release}${shared_ext}$major'
11548   shlibpath_var=LD_LIBRARY_PATH
11549   ;;
11550
11551 freebsd1*)
11552   dynamic_linker=no
11553   ;;
11554
11555 freebsd* | dragonfly*)
11556   # DragonFly does not have aout.  When/if they implement a new
11557   # versioning mechanism, adjust this.
11558   if test -x /usr/bin/objformat; then
11559     objformat=`/usr/bin/objformat`
11560   else
11561     case $host_os in
11562     freebsd[123]*) objformat=aout ;;
11563     *) objformat=elf ;;
11564     esac
11565   fi
11566   version_type=freebsd-$objformat
11567   case $version_type in
11568     freebsd-elf*)
11569       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11570       need_version=no
11571       need_lib_prefix=no
11572       ;;
11573     freebsd-*)
11574       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11575       need_version=yes
11576       ;;
11577   esac
11578   shlibpath_var=LD_LIBRARY_PATH
11579   case $host_os in
11580   freebsd2*)
11581     shlibpath_overrides_runpath=yes
11582     ;;
11583   freebsd3.[01]* | freebsdelf3.[01]*)
11584     shlibpath_overrides_runpath=yes
11585     hardcode_into_libs=yes
11586     ;;
11587   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11588   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11589     shlibpath_overrides_runpath=no
11590     hardcode_into_libs=yes
11591     ;;
11592   *) # from 4.6 on, and DragonFly
11593     shlibpath_overrides_runpath=yes
11594     hardcode_into_libs=yes
11595     ;;
11596   esac
11597   ;;
11598
11599 gnu*)
11600   version_type=linux
11601   need_lib_prefix=no
11602   need_version=no
11603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11604   soname_spec='${libname}${release}${shared_ext}$major'
11605   shlibpath_var=LD_LIBRARY_PATH
11606   hardcode_into_libs=yes
11607   ;;
11608
11609 hpux9* | hpux10* | hpux11*)
11610   # Give a soname corresponding to the major version so that dld.sl refuses to
11611   # link against other versions.
11612   version_type=sunos
11613   need_lib_prefix=no
11614   need_version=no
11615   case $host_cpu in
11616   ia64*)
11617     shrext_cmds='.so'
11618     hardcode_into_libs=yes
11619     dynamic_linker="$host_os dld.so"
11620     shlibpath_var=LD_LIBRARY_PATH
11621     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11622     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11623     soname_spec='${libname}${release}${shared_ext}$major'
11624     if test "X$HPUX_IA64_MODE" = X32; then
11625       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11626     else
11627       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11628     fi
11629     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11630     ;;
11631   hppa*64*)
11632     shrext_cmds='.sl'
11633     hardcode_into_libs=yes
11634     dynamic_linker="$host_os dld.sl"
11635     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11636     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11637     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11638     soname_spec='${libname}${release}${shared_ext}$major'
11639     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11640     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11641     ;;
11642   *)
11643     shrext_cmds='.sl'
11644     dynamic_linker="$host_os dld.sl"
11645     shlibpath_var=SHLIB_PATH
11646     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11647     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11648     soname_spec='${libname}${release}${shared_ext}$major'
11649     ;;
11650   esac
11651   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11652   postinstall_cmds='chmod 555 $lib'
11653   ;;
11654
11655 interix[3-9]*)
11656   version_type=linux
11657   need_lib_prefix=no
11658   need_version=no
11659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11660   soname_spec='${libname}${release}${shared_ext}$major'
11661   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11662   shlibpath_var=LD_LIBRARY_PATH
11663   shlibpath_overrides_runpath=no
11664   hardcode_into_libs=yes
11665   ;;
11666
11667 irix5* | irix6* | nonstopux*)
11668   case $host_os in
11669     nonstopux*) version_type=nonstopux ;;
11670     *)
11671         if test "$lt_cv_prog_gnu_ld" = yes; then
11672                 version_type=linux
11673         else
11674                 version_type=irix
11675         fi ;;
11676   esac
11677   need_lib_prefix=no
11678   need_version=no
11679   soname_spec='${libname}${release}${shared_ext}$major'
11680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11681   case $host_os in
11682   irix5* | nonstopux*)
11683     libsuff= shlibsuff=
11684     ;;
11685   *)
11686     case $LD in # libtool.m4 will add one of these switches to LD
11687     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11688       libsuff= shlibsuff= libmagic=32-bit;;
11689     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11690       libsuff=32 shlibsuff=N32 libmagic=N32;;
11691     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11692       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11693     *) libsuff= shlibsuff= libmagic=never-match;;
11694     esac
11695     ;;
11696   esac
11697   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11698   shlibpath_overrides_runpath=no
11699   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11700   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11701   hardcode_into_libs=yes
11702   ;;
11703
11704 # No shared lib support for Linux oldld, aout, or coff.
11705 linux*oldld* | linux*aout* | linux*coff*)
11706   dynamic_linker=no
11707   ;;
11708
11709 # This must be Linux ELF.
11710 linux* | k*bsd*-gnu)
11711   version_type=linux
11712   need_lib_prefix=no
11713   need_version=no
11714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11715   soname_spec='${libname}${release}${shared_ext}$major'
11716   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11717   shlibpath_var=LD_LIBRARY_PATH
11718   shlibpath_overrides_runpath=no
11719   # Some binutils ld are patched to set DT_RUNPATH
11720   save_LDFLAGS=$LDFLAGS
11721   save_libdir=$libdir
11722   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11723        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11724   cat >conftest.$ac_ext <<_ACEOF
11725 /* confdefs.h.  */
11726 _ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h.  */
11730
11731 int
11732 main ()
11733 {
11734
11735   ;
11736   return 0;
11737 }
11738 _ACEOF
11739 rm -f conftest.$ac_objext conftest$ac_exeext
11740 if { (ac_try="$ac_link"
11741 case "(($ac_try" in
11742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11743   *) ac_try_echo=$ac_try;;
11744 esac
11745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11746   (eval "$ac_link") 2>conftest.er1
11747   ac_status=$?
11748   grep -v '^ *+' conftest.er1 >conftest.err
11749   rm -f conftest.er1
11750   cat conftest.err >&5
11751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752   (exit $ac_status); } && {
11753          test -z "$ac_c_werror_flag" ||
11754          test ! -s conftest.err
11755        } && test -s conftest$ac_exeext &&
11756        $as_test_x conftest$ac_exeext; then
11757   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11758   shlibpath_overrides_runpath=yes
11759 fi
11760
11761 else
11762   echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.$ac_ext >&5
11764
11765
11766 fi
11767
11768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11769       conftest$ac_exeext conftest.$ac_ext
11770   LDFLAGS=$save_LDFLAGS
11771   libdir=$save_libdir
11772
11773   # This implies no fast_install, which is unacceptable.
11774   # Some rework will be needed to allow for fast_install
11775   # before this can be enabled.
11776   hardcode_into_libs=yes
11777
11778   # Append ld.so.conf contents to the search path
11779   if test -f /etc/ld.so.conf; then
11780     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' ' '`
11781     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11782   fi
11783
11784   # We used to test for /lib/ld.so.1 and disable shared libraries on
11785   # powerpc, because MkLinux only supported shared libraries with the
11786   # GNU dynamic linker.  Since this was broken with cross compilers,
11787   # most powerpc-linux boxes support dynamic linking these days and
11788   # people can always --disable-shared, the test was removed, and we
11789   # assume the GNU/Linux dynamic linker is in use.
11790   dynamic_linker='GNU/Linux ld.so'
11791   ;;
11792
11793 netbsd*)
11794   version_type=sunos
11795   need_lib_prefix=no
11796   need_version=no
11797   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11798     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11799     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11800     dynamic_linker='NetBSD (a.out) ld.so'
11801   else
11802     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11803     soname_spec='${libname}${release}${shared_ext}$major'
11804     dynamic_linker='NetBSD ld.elf_so'
11805   fi
11806   shlibpath_var=LD_LIBRARY_PATH
11807   shlibpath_overrides_runpath=yes
11808   hardcode_into_libs=yes
11809   ;;
11810
11811 newsos6)
11812   version_type=linux
11813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11814   shlibpath_var=LD_LIBRARY_PATH
11815   shlibpath_overrides_runpath=yes
11816   ;;
11817
11818 *nto* | *qnx*)
11819   version_type=qnx
11820   need_lib_prefix=no
11821   need_version=no
11822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11823   soname_spec='${libname}${release}${shared_ext}$major'
11824   shlibpath_var=LD_LIBRARY_PATH
11825   shlibpath_overrides_runpath=no
11826   hardcode_into_libs=yes
11827   dynamic_linker='ldqnx.so'
11828   ;;
11829
11830 openbsd*)
11831   version_type=sunos
11832   sys_lib_dlsearch_path_spec="/usr/lib"
11833   need_lib_prefix=no
11834   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11835   case $host_os in
11836     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11837     *)                          need_version=no  ;;
11838   esac
11839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11840   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11841   shlibpath_var=LD_LIBRARY_PATH
11842   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11843     case $host_os in
11844       openbsd2.[89] | openbsd2.[89].*)
11845         shlibpath_overrides_runpath=no
11846         ;;
11847       *)
11848         shlibpath_overrides_runpath=yes
11849         ;;
11850       esac
11851   else
11852     shlibpath_overrides_runpath=yes
11853   fi
11854   ;;
11855
11856 os2*)
11857   libname_spec='$name'
11858   shrext_cmds=".dll"
11859   need_lib_prefix=no
11860   library_names_spec='$libname${shared_ext} $libname.a'
11861   dynamic_linker='OS/2 ld.exe'
11862   shlibpath_var=LIBPATH
11863   ;;
11864
11865 osf3* | osf4* | osf5*)
11866   version_type=osf
11867   need_lib_prefix=no
11868   need_version=no
11869   soname_spec='${libname}${release}${shared_ext}$major'
11870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11871   shlibpath_var=LD_LIBRARY_PATH
11872   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11873   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11874   ;;
11875
11876 rdos*)
11877   dynamic_linker=no
11878   ;;
11879
11880 solaris*)
11881   version_type=linux
11882   need_lib_prefix=no
11883   need_version=no
11884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11885   soname_spec='${libname}${release}${shared_ext}$major'
11886   shlibpath_var=LD_LIBRARY_PATH
11887   shlibpath_overrides_runpath=yes
11888   hardcode_into_libs=yes
11889   # ldd complains unless libraries are executable
11890   postinstall_cmds='chmod +x $lib'
11891   ;;
11892
11893 sunos4*)
11894   version_type=sunos
11895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11896   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11897   shlibpath_var=LD_LIBRARY_PATH
11898   shlibpath_overrides_runpath=yes
11899   if test "$with_gnu_ld" = yes; then
11900     need_lib_prefix=no
11901   fi
11902   need_version=yes
11903   ;;
11904
11905 sysv4 | sysv4.3*)
11906   version_type=linux
11907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11908   soname_spec='${libname}${release}${shared_ext}$major'
11909   shlibpath_var=LD_LIBRARY_PATH
11910   case $host_vendor in
11911     sni)
11912       shlibpath_overrides_runpath=no
11913       need_lib_prefix=no
11914       runpath_var=LD_RUN_PATH
11915       ;;
11916     siemens)
11917       need_lib_prefix=no
11918       ;;
11919     motorola)
11920       need_lib_prefix=no
11921       need_version=no
11922       shlibpath_overrides_runpath=no
11923       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11924       ;;
11925   esac
11926   ;;
11927
11928 sysv4*MP*)
11929   if test -d /usr/nec ;then
11930     version_type=linux
11931     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11932     soname_spec='$libname${shared_ext}.$major'
11933     shlibpath_var=LD_LIBRARY_PATH
11934   fi
11935   ;;
11936
11937 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11938   version_type=freebsd-elf
11939   need_lib_prefix=no
11940   need_version=no
11941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11942   soname_spec='${libname}${release}${shared_ext}$major'
11943   shlibpath_var=LD_LIBRARY_PATH
11944   shlibpath_overrides_runpath=yes
11945   hardcode_into_libs=yes
11946   if test "$with_gnu_ld" = yes; then
11947     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11948   else
11949     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11950     case $host_os in
11951       sco3.2v5*)
11952         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11953         ;;
11954     esac
11955   fi
11956   sys_lib_dlsearch_path_spec='/usr/lib'
11957   ;;
11958
11959 tpf*)
11960   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11961   version_type=linux
11962   need_lib_prefix=no
11963   need_version=no
11964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11965   shlibpath_var=LD_LIBRARY_PATH
11966   shlibpath_overrides_runpath=no
11967   hardcode_into_libs=yes
11968   ;;
11969
11970 uts4*)
11971   version_type=linux
11972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11973   soname_spec='${libname}${release}${shared_ext}$major'
11974   shlibpath_var=LD_LIBRARY_PATH
11975   ;;
11976
11977 *)
11978   dynamic_linker=no
11979   ;;
11980 esac
11981 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11982 echo "${ECHO_T}$dynamic_linker" >&6; }
11983 test "$dynamic_linker" = no && can_build_shared=no
11984
11985 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11986 if test "$GCC" = yes; then
11987   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11988 fi
11989
11990 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11991   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11992 fi
11993 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11994   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11995 fi
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
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12084 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12085 hardcode_action=
12086 if test -n "$hardcode_libdir_flag_spec" ||
12087    test -n "$runpath_var" ||
12088    test "X$hardcode_automatic" = "Xyes" ; then
12089
12090   # We can hardcode non-existent directories.
12091   if test "$hardcode_direct" != no &&
12092      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12093      # have to relink, otherwise we might link with an installed library
12094      # when we should be linking with a yet-to-be-installed one
12095      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12096      test "$hardcode_minus_L" != no; then
12097     # Linking always hardcodes the temporary library directory.
12098     hardcode_action=relink
12099   else
12100     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12101     hardcode_action=immediate
12102   fi
12103 else
12104   # We cannot hardcode anything, or else we can only hardcode existing
12105   # directories.
12106   hardcode_action=unsupported
12107 fi
12108 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12109 echo "${ECHO_T}$hardcode_action" >&6; }
12110
12111 if test "$hardcode_action" = relink ||
12112    test "$inherit_rpath" = yes; then
12113   # Fast installation is not supported
12114   enable_fast_install=no
12115 elif test "$shlibpath_overrides_runpath" = yes ||
12116      test "$enable_shared" = no; then
12117   # Fast installation is not necessary
12118   enable_fast_install=needless
12119 fi
12120
12121
12122
12123
12124
12125
12126   if test "x$enable_dlopen" != xyes; then
12127   enable_dlopen=unknown
12128   enable_dlopen_self=unknown
12129   enable_dlopen_self_static=unknown
12130 else
12131   lt_cv_dlopen=no
12132   lt_cv_dlopen_libs=
12133
12134   case $host_os in
12135   beos*)
12136     lt_cv_dlopen="load_add_on"
12137     lt_cv_dlopen_libs=
12138     lt_cv_dlopen_self=yes
12139     ;;
12140
12141   mingw* | pw32* | cegcc*)
12142     lt_cv_dlopen="LoadLibrary"
12143     lt_cv_dlopen_libs=
12144     ;;
12145
12146   cygwin*)
12147     lt_cv_dlopen="dlopen"
12148     lt_cv_dlopen_libs=
12149     ;;
12150
12151   darwin*)
12152   # if libdl is installed we need to link against it
12153     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12154 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12155 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12156   echo $ECHO_N "(cached) $ECHO_C" >&6
12157 else
12158   ac_check_lib_save_LIBS=$LIBS
12159 LIBS="-ldl  $LIBS"
12160 cat >conftest.$ac_ext <<_ACEOF
12161 /* confdefs.h.  */
12162 _ACEOF
12163 cat confdefs.h >>conftest.$ac_ext
12164 cat >>conftest.$ac_ext <<_ACEOF
12165 /* end confdefs.h.  */
12166
12167 /* Override any GCC internal prototype to avoid an error.
12168    Use char because int might match the return type of a GCC
12169    builtin and then its argument prototype would still apply.  */
12170 #ifdef __cplusplus
12171 extern "C"
12172 #endif
12173 char dlopen ();
12174 int
12175 main ()
12176 {
12177 return dlopen ();
12178   ;
12179   return 0;
12180 }
12181 _ACEOF
12182 rm -f conftest.$ac_objext conftest$ac_exeext
12183 if { (ac_try="$ac_link"
12184 case "(($ac_try" in
12185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186   *) ac_try_echo=$ac_try;;
12187 esac
12188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12189   (eval "$ac_link") 2>conftest.er1
12190   ac_status=$?
12191   grep -v '^ *+' conftest.er1 >conftest.err
12192   rm -f conftest.er1
12193   cat conftest.err >&5
12194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195   (exit $ac_status); } && {
12196          test -z "$ac_c_werror_flag" ||
12197          test ! -s conftest.err
12198        } && test -s conftest$ac_exeext &&
12199        $as_test_x conftest$ac_exeext; then
12200   ac_cv_lib_dl_dlopen=yes
12201 else
12202   echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.$ac_ext >&5
12204
12205         ac_cv_lib_dl_dlopen=no
12206 fi
12207
12208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12209       conftest$ac_exeext conftest.$ac_ext
12210 LIBS=$ac_check_lib_save_LIBS
12211 fi
12212 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12213 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12214 if test $ac_cv_lib_dl_dlopen = yes; then
12215   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12216 else
12217
12218     lt_cv_dlopen="dyld"
12219     lt_cv_dlopen_libs=
12220     lt_cv_dlopen_self=yes
12221
12222 fi
12223
12224     ;;
12225
12226   *)
12227     { echo "$as_me:$LINENO: checking for shl_load" >&5
12228 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12229 if test "${ac_cv_func_shl_load+set}" = set; then
12230   echo $ECHO_N "(cached) $ECHO_C" >&6
12231 else
12232   cat >conftest.$ac_ext <<_ACEOF
12233 /* confdefs.h.  */
12234 _ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h.  */
12238 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12239    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12240 #define shl_load innocuous_shl_load
12241
12242 /* System header to define __stub macros and hopefully few prototypes,
12243     which can conflict with char shl_load (); below.
12244     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12245     <limits.h> exists even on freestanding compilers.  */
12246
12247 #ifdef __STDC__
12248 # include <limits.h>
12249 #else
12250 # include <assert.h>
12251 #endif
12252
12253 #undef shl_load
12254
12255 /* Override any GCC internal prototype to avoid an error.
12256    Use char because int might match the return type of a GCC
12257    builtin and then its argument prototype would still apply.  */
12258 #ifdef __cplusplus
12259 extern "C"
12260 #endif
12261 char shl_load ();
12262 /* The GNU C library defines this for functions which it implements
12263     to always fail with ENOSYS.  Some functions are actually named
12264     something starting with __ and the normal name is an alias.  */
12265 #if defined __stub_shl_load || defined __stub___shl_load
12266 choke me
12267 #endif
12268
12269 int
12270 main ()
12271 {
12272 return shl_load ();
12273   ;
12274   return 0;
12275 }
12276 _ACEOF
12277 rm -f conftest.$ac_objext conftest$ac_exeext
12278 if { (ac_try="$ac_link"
12279 case "(($ac_try" in
12280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12281   *) ac_try_echo=$ac_try;;
12282 esac
12283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12284   (eval "$ac_link") 2>conftest.er1
12285   ac_status=$?
12286   grep -v '^ *+' conftest.er1 >conftest.err
12287   rm -f conftest.er1
12288   cat conftest.err >&5
12289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290   (exit $ac_status); } && {
12291          test -z "$ac_c_werror_flag" ||
12292          test ! -s conftest.err
12293        } && test -s conftest$ac_exeext &&
12294        $as_test_x conftest$ac_exeext; then
12295   ac_cv_func_shl_load=yes
12296 else
12297   echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.$ac_ext >&5
12299
12300         ac_cv_func_shl_load=no
12301 fi
12302
12303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12304       conftest$ac_exeext conftest.$ac_ext
12305 fi
12306 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12307 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12308 if test $ac_cv_func_shl_load = yes; then
12309   lt_cv_dlopen="shl_load"
12310 else
12311   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12312 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12313 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12314   echo $ECHO_N "(cached) $ECHO_C" >&6
12315 else
12316   ac_check_lib_save_LIBS=$LIBS
12317 LIBS="-ldld  $LIBS"
12318 cat >conftest.$ac_ext <<_ACEOF
12319 /* confdefs.h.  */
12320 _ACEOF
12321 cat confdefs.h >>conftest.$ac_ext
12322 cat >>conftest.$ac_ext <<_ACEOF
12323 /* end confdefs.h.  */
12324
12325 /* Override any GCC internal prototype to avoid an error.
12326    Use char because int might match the return type of a GCC
12327    builtin and then its argument prototype would still apply.  */
12328 #ifdef __cplusplus
12329 extern "C"
12330 #endif
12331 char shl_load ();
12332 int
12333 main ()
12334 {
12335 return shl_load ();
12336   ;
12337   return 0;
12338 }
12339 _ACEOF
12340 rm -f conftest.$ac_objext conftest$ac_exeext
12341 if { (ac_try="$ac_link"
12342 case "(($ac_try" in
12343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12344   *) ac_try_echo=$ac_try;;
12345 esac
12346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12347   (eval "$ac_link") 2>conftest.er1
12348   ac_status=$?
12349   grep -v '^ *+' conftest.er1 >conftest.err
12350   rm -f conftest.er1
12351   cat conftest.err >&5
12352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353   (exit $ac_status); } && {
12354          test -z "$ac_c_werror_flag" ||
12355          test ! -s conftest.err
12356        } && test -s conftest$ac_exeext &&
12357        $as_test_x conftest$ac_exeext; then
12358   ac_cv_lib_dld_shl_load=yes
12359 else
12360   echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.$ac_ext >&5
12362
12363         ac_cv_lib_dld_shl_load=no
12364 fi
12365
12366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12367       conftest$ac_exeext conftest.$ac_ext
12368 LIBS=$ac_check_lib_save_LIBS
12369 fi
12370 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12371 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12372 if test $ac_cv_lib_dld_shl_load = yes; then
12373   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12374 else
12375   { echo "$as_me:$LINENO: checking for dlopen" >&5
12376 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12377 if test "${ac_cv_func_dlopen+set}" = set; then
12378   echo $ECHO_N "(cached) $ECHO_C" >&6
12379 else
12380   cat >conftest.$ac_ext <<_ACEOF
12381 /* confdefs.h.  */
12382 _ACEOF
12383 cat confdefs.h >>conftest.$ac_ext
12384 cat >>conftest.$ac_ext <<_ACEOF
12385 /* end confdefs.h.  */
12386 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12387    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12388 #define dlopen innocuous_dlopen
12389
12390 /* System header to define __stub macros and hopefully few prototypes,
12391     which can conflict with char dlopen (); below.
12392     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12393     <limits.h> exists even on freestanding compilers.  */
12394
12395 #ifdef __STDC__
12396 # include <limits.h>
12397 #else
12398 # include <assert.h>
12399 #endif
12400
12401 #undef dlopen
12402
12403 /* Override any GCC internal prototype to avoid an error.
12404    Use char because int might match the return type of a GCC
12405    builtin and then its argument prototype would still apply.  */
12406 #ifdef __cplusplus
12407 extern "C"
12408 #endif
12409 char dlopen ();
12410 /* The GNU C library defines this for functions which it implements
12411     to always fail with ENOSYS.  Some functions are actually named
12412     something starting with __ and the normal name is an alias.  */
12413 #if defined __stub_dlopen || defined __stub___dlopen
12414 choke me
12415 #endif
12416
12417 int
12418 main ()
12419 {
12420 return dlopen ();
12421   ;
12422   return 0;
12423 }
12424 _ACEOF
12425 rm -f conftest.$ac_objext conftest$ac_exeext
12426 if { (ac_try="$ac_link"
12427 case "(($ac_try" in
12428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429   *) ac_try_echo=$ac_try;;
12430 esac
12431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432   (eval "$ac_link") 2>conftest.er1
12433   ac_status=$?
12434   grep -v '^ *+' conftest.er1 >conftest.err
12435   rm -f conftest.er1
12436   cat conftest.err >&5
12437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438   (exit $ac_status); } && {
12439          test -z "$ac_c_werror_flag" ||
12440          test ! -s conftest.err
12441        } && test -s conftest$ac_exeext &&
12442        $as_test_x conftest$ac_exeext; then
12443   ac_cv_func_dlopen=yes
12444 else
12445   echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12447
12448         ac_cv_func_dlopen=no
12449 fi
12450
12451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12452       conftest$ac_exeext conftest.$ac_ext
12453 fi
12454 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12455 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12456 if test $ac_cv_func_dlopen = yes; then
12457   lt_cv_dlopen="dlopen"
12458 else
12459   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12460 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12461 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12462   echo $ECHO_N "(cached) $ECHO_C" >&6
12463 else
12464   ac_check_lib_save_LIBS=$LIBS
12465 LIBS="-ldl  $LIBS"
12466 cat >conftest.$ac_ext <<_ACEOF
12467 /* confdefs.h.  */
12468 _ACEOF
12469 cat confdefs.h >>conftest.$ac_ext
12470 cat >>conftest.$ac_ext <<_ACEOF
12471 /* end confdefs.h.  */
12472
12473 /* Override any GCC internal prototype to avoid an error.
12474    Use char because int might match the return type of a GCC
12475    builtin and then its argument prototype would still apply.  */
12476 #ifdef __cplusplus
12477 extern "C"
12478 #endif
12479 char dlopen ();
12480 int
12481 main ()
12482 {
12483 return dlopen ();
12484   ;
12485   return 0;
12486 }
12487 _ACEOF
12488 rm -f conftest.$ac_objext conftest$ac_exeext
12489 if { (ac_try="$ac_link"
12490 case "(($ac_try" in
12491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492   *) ac_try_echo=$ac_try;;
12493 esac
12494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495   (eval "$ac_link") 2>conftest.er1
12496   ac_status=$?
12497   grep -v '^ *+' conftest.er1 >conftest.err
12498   rm -f conftest.er1
12499   cat conftest.err >&5
12500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501   (exit $ac_status); } && {
12502          test -z "$ac_c_werror_flag" ||
12503          test ! -s conftest.err
12504        } && test -s conftest$ac_exeext &&
12505        $as_test_x conftest$ac_exeext; then
12506   ac_cv_lib_dl_dlopen=yes
12507 else
12508   echo "$as_me: failed program was:" >&5
12509 sed 's/^/| /' conftest.$ac_ext >&5
12510
12511         ac_cv_lib_dl_dlopen=no
12512 fi
12513
12514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12515       conftest$ac_exeext conftest.$ac_ext
12516 LIBS=$ac_check_lib_save_LIBS
12517 fi
12518 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12519 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12520 if test $ac_cv_lib_dl_dlopen = yes; then
12521   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12522 else
12523   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12524 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12525 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12526   echo $ECHO_N "(cached) $ECHO_C" >&6
12527 else
12528   ac_check_lib_save_LIBS=$LIBS
12529 LIBS="-lsvld  $LIBS"
12530 cat >conftest.$ac_ext <<_ACEOF
12531 /* confdefs.h.  */
12532 _ACEOF
12533 cat confdefs.h >>conftest.$ac_ext
12534 cat >>conftest.$ac_ext <<_ACEOF
12535 /* end confdefs.h.  */
12536
12537 /* Override any GCC internal prototype to avoid an error.
12538    Use char because int might match the return type of a GCC
12539    builtin and then its argument prototype would still apply.  */
12540 #ifdef __cplusplus
12541 extern "C"
12542 #endif
12543 char dlopen ();
12544 int
12545 main ()
12546 {
12547 return dlopen ();
12548   ;
12549   return 0;
12550 }
12551 _ACEOF
12552 rm -f conftest.$ac_objext conftest$ac_exeext
12553 if { (ac_try="$ac_link"
12554 case "(($ac_try" in
12555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12556   *) ac_try_echo=$ac_try;;
12557 esac
12558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12559   (eval "$ac_link") 2>conftest.er1
12560   ac_status=$?
12561   grep -v '^ *+' conftest.er1 >conftest.err
12562   rm -f conftest.er1
12563   cat conftest.err >&5
12564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565   (exit $ac_status); } && {
12566          test -z "$ac_c_werror_flag" ||
12567          test ! -s conftest.err
12568        } && test -s conftest$ac_exeext &&
12569        $as_test_x conftest$ac_exeext; then
12570   ac_cv_lib_svld_dlopen=yes
12571 else
12572   echo "$as_me: failed program was:" >&5
12573 sed 's/^/| /' conftest.$ac_ext >&5
12574
12575         ac_cv_lib_svld_dlopen=no
12576 fi
12577
12578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12579       conftest$ac_exeext conftest.$ac_ext
12580 LIBS=$ac_check_lib_save_LIBS
12581 fi
12582 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12583 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12584 if test $ac_cv_lib_svld_dlopen = yes; then
12585   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12586 else
12587   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12588 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12589 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12590   echo $ECHO_N "(cached) $ECHO_C" >&6
12591 else
12592   ac_check_lib_save_LIBS=$LIBS
12593 LIBS="-ldld  $LIBS"
12594 cat >conftest.$ac_ext <<_ACEOF
12595 /* confdefs.h.  */
12596 _ACEOF
12597 cat confdefs.h >>conftest.$ac_ext
12598 cat >>conftest.$ac_ext <<_ACEOF
12599 /* end confdefs.h.  */
12600
12601 /* Override any GCC internal prototype to avoid an error.
12602    Use char because int might match the return type of a GCC
12603    builtin and then its argument prototype would still apply.  */
12604 #ifdef __cplusplus
12605 extern "C"
12606 #endif
12607 char dld_link ();
12608 int
12609 main ()
12610 {
12611 return dld_link ();
12612   ;
12613   return 0;
12614 }
12615 _ACEOF
12616 rm -f conftest.$ac_objext conftest$ac_exeext
12617 if { (ac_try="$ac_link"
12618 case "(($ac_try" in
12619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620   *) ac_try_echo=$ac_try;;
12621 esac
12622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623   (eval "$ac_link") 2>conftest.er1
12624   ac_status=$?
12625   grep -v '^ *+' conftest.er1 >conftest.err
12626   rm -f conftest.er1
12627   cat conftest.err >&5
12628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629   (exit $ac_status); } && {
12630          test -z "$ac_c_werror_flag" ||
12631          test ! -s conftest.err
12632        } && test -s conftest$ac_exeext &&
12633        $as_test_x conftest$ac_exeext; then
12634   ac_cv_lib_dld_dld_link=yes
12635 else
12636   echo "$as_me: failed program was:" >&5
12637 sed 's/^/| /' conftest.$ac_ext >&5
12638
12639         ac_cv_lib_dld_dld_link=no
12640 fi
12641
12642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12643       conftest$ac_exeext conftest.$ac_ext
12644 LIBS=$ac_check_lib_save_LIBS
12645 fi
12646 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12647 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12648 if test $ac_cv_lib_dld_dld_link = yes; then
12649   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12650 fi
12651
12652
12653 fi
12654
12655
12656 fi
12657
12658
12659 fi
12660
12661
12662 fi
12663
12664
12665 fi
12666
12667     ;;
12668   esac
12669
12670   if test "x$lt_cv_dlopen" != xno; then
12671     enable_dlopen=yes
12672   else
12673     enable_dlopen=no
12674   fi
12675
12676   case $lt_cv_dlopen in
12677   dlopen)
12678     save_CPPFLAGS="$CPPFLAGS"
12679     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12680
12681     save_LDFLAGS="$LDFLAGS"
12682     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12683
12684     save_LIBS="$LIBS"
12685     LIBS="$lt_cv_dlopen_libs $LIBS"
12686
12687     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12688 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12689 if test "${lt_cv_dlopen_self+set}" = set; then
12690   echo $ECHO_N "(cached) $ECHO_C" >&6
12691 else
12692           if test "$cross_compiling" = yes; then :
12693   lt_cv_dlopen_self=cross
12694 else
12695   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12696   lt_status=$lt_dlunknown
12697   cat > conftest.$ac_ext <<_LT_EOF
12698 #line 12698 "configure"
12699 #include "confdefs.h"
12700
12701 #if HAVE_DLFCN_H
12702 #include <dlfcn.h>
12703 #endif
12704
12705 #include <stdio.h>
12706
12707 #ifdef RTLD_GLOBAL
12708 #  define LT_DLGLOBAL           RTLD_GLOBAL
12709 #else
12710 #  ifdef DL_GLOBAL
12711 #    define LT_DLGLOBAL         DL_GLOBAL
12712 #  else
12713 #    define LT_DLGLOBAL         0
12714 #  endif
12715 #endif
12716
12717 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12718    find out it does not work in some platform. */
12719 #ifndef LT_DLLAZY_OR_NOW
12720 #  ifdef RTLD_LAZY
12721 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12722 #  else
12723 #    ifdef DL_LAZY
12724 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12725 #    else
12726 #      ifdef RTLD_NOW
12727 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12728 #      else
12729 #        ifdef DL_NOW
12730 #          define LT_DLLAZY_OR_NOW      DL_NOW
12731 #        else
12732 #          define LT_DLLAZY_OR_NOW      0
12733 #        endif
12734 #      endif
12735 #    endif
12736 #  endif
12737 #endif
12738
12739 void fnord() { int i=42;}
12740 int main ()
12741 {
12742   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12743   int status = $lt_dlunknown;
12744
12745   if (self)
12746     {
12747       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12748       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12749       /* dlclose (self); */
12750     }
12751   else
12752     puts (dlerror ());
12753
12754   return status;
12755 }
12756 _LT_EOF
12757   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12758   (eval $ac_link) 2>&5
12759   ac_status=$?
12760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12762     (./conftest; exit; ) >&5 2>/dev/null
12763     lt_status=$?
12764     case x$lt_status in
12765       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12766       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12767       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12768     esac
12769   else :
12770     # compilation failed
12771     lt_cv_dlopen_self=no
12772   fi
12773 fi
12774 rm -fr conftest*
12775
12776
12777 fi
12778 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12779 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12780
12781     if test "x$lt_cv_dlopen_self" = xyes; then
12782       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12783       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12784 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12785 if test "${lt_cv_dlopen_self_static+set}" = set; then
12786   echo $ECHO_N "(cached) $ECHO_C" >&6
12787 else
12788           if test "$cross_compiling" = yes; then :
12789   lt_cv_dlopen_self_static=cross
12790 else
12791   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12792   lt_status=$lt_dlunknown
12793   cat > conftest.$ac_ext <<_LT_EOF
12794 #line 12794 "configure"
12795 #include "confdefs.h"
12796
12797 #if HAVE_DLFCN_H
12798 #include <dlfcn.h>
12799 #endif
12800
12801 #include <stdio.h>
12802
12803 #ifdef RTLD_GLOBAL
12804 #  define LT_DLGLOBAL           RTLD_GLOBAL
12805 #else
12806 #  ifdef DL_GLOBAL
12807 #    define LT_DLGLOBAL         DL_GLOBAL
12808 #  else
12809 #    define LT_DLGLOBAL         0
12810 #  endif
12811 #endif
12812
12813 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12814    find out it does not work in some platform. */
12815 #ifndef LT_DLLAZY_OR_NOW
12816 #  ifdef RTLD_LAZY
12817 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12818 #  else
12819 #    ifdef DL_LAZY
12820 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12821 #    else
12822 #      ifdef RTLD_NOW
12823 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12824 #      else
12825 #        ifdef DL_NOW
12826 #          define LT_DLLAZY_OR_NOW      DL_NOW
12827 #        else
12828 #          define LT_DLLAZY_OR_NOW      0
12829 #        endif
12830 #      endif
12831 #    endif
12832 #  endif
12833 #endif
12834
12835 void fnord() { int i=42;}
12836 int main ()
12837 {
12838   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12839   int status = $lt_dlunknown;
12840
12841   if (self)
12842     {
12843       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12844       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12845       /* dlclose (self); */
12846     }
12847   else
12848     puts (dlerror ());
12849
12850   return status;
12851 }
12852 _LT_EOF
12853   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12854   (eval $ac_link) 2>&5
12855   ac_status=$?
12856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12858     (./conftest; exit; ) >&5 2>/dev/null
12859     lt_status=$?
12860     case x$lt_status in
12861       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12862       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12863       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12864     esac
12865   else :
12866     # compilation failed
12867     lt_cv_dlopen_self_static=no
12868   fi
12869 fi
12870 rm -fr conftest*
12871
12872
12873 fi
12874 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12875 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12876     fi
12877
12878     CPPFLAGS="$save_CPPFLAGS"
12879     LDFLAGS="$save_LDFLAGS"
12880     LIBS="$save_LIBS"
12881     ;;
12882   esac
12883
12884   case $lt_cv_dlopen_self in
12885   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12886   *) enable_dlopen_self=unknown ;;
12887   esac
12888
12889   case $lt_cv_dlopen_self_static in
12890   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12891   *) enable_dlopen_self_static=unknown ;;
12892   esac
12893 fi
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911 striplib=
12912 old_striplib=
12913 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12914 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12915 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12916   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12917   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12918   { echo "$as_me:$LINENO: result: yes" >&5
12919 echo "${ECHO_T}yes" >&6; }
12920 else
12921 # FIXME - insert some real tests, host_os isn't really good enough
12922   case $host_os in
12923   darwin*)
12924     if test -n "$STRIP" ; then
12925       striplib="$STRIP -x"
12926       old_striplib="$STRIP -S"
12927       { echo "$as_me:$LINENO: result: yes" >&5
12928 echo "${ECHO_T}yes" >&6; }
12929     else
12930       { echo "$as_me:$LINENO: result: no" >&5
12931 echo "${ECHO_T}no" >&6; }
12932     fi
12933     ;;
12934   *)
12935     { echo "$as_me:$LINENO: result: no" >&5
12936 echo "${ECHO_T}no" >&6; }
12937     ;;
12938   esac
12939 fi
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952   # Report which library types will actually be built
12953   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12954 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12955   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12956 echo "${ECHO_T}$can_build_shared" >&6; }
12957
12958   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12959 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12960   test "$can_build_shared" = "no" && enable_shared=no
12961
12962   # On AIX, shared libraries and static libraries use the same namespace, and
12963   # are all built from PIC.
12964   case $host_os in
12965   aix3*)
12966     test "$enable_shared" = yes && enable_static=no
12967     if test -n "$RANLIB"; then
12968       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12969       postinstall_cmds='$RANLIB $lib'
12970     fi
12971     ;;
12972
12973   aix[4-9]*)
12974     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12975       test "$enable_shared" = yes && enable_static=no
12976     fi
12977     ;;
12978   esac
12979   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12980 echo "${ECHO_T}$enable_shared" >&6; }
12981
12982   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12983 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12984   # Make sure either enable_shared or enable_static is yes.
12985   test "$enable_shared" = yes || enable_static=yes
12986   { echo "$as_me:$LINENO: result: $enable_static" >&5
12987 echo "${ECHO_T}$enable_static" >&6; }
12988
12989
12990
12991
12992 fi
12993 ac_ext=cpp
12994 ac_cpp='$CXXCPP $CPPFLAGS'
12995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12998
12999 CC="$lt_save_CC"
13000
13001
13002 ac_ext=cpp
13003 ac_cpp='$CXXCPP $CPPFLAGS'
13004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13007
13008 archive_cmds_need_lc_CXX=no
13009 allow_undefined_flag_CXX=
13010 always_export_symbols_CXX=no
13011 archive_expsym_cmds_CXX=
13012 compiler_needs_object_CXX=no
13013 export_dynamic_flag_spec_CXX=
13014 hardcode_direct_CXX=no
13015 hardcode_direct_absolute_CXX=no
13016 hardcode_libdir_flag_spec_CXX=
13017 hardcode_libdir_flag_spec_ld_CXX=
13018 hardcode_libdir_separator_CXX=
13019 hardcode_minus_L_CXX=no
13020 hardcode_shlibpath_var_CXX=unsupported
13021 hardcode_automatic_CXX=no
13022 inherit_rpath_CXX=no
13023 module_cmds_CXX=
13024 module_expsym_cmds_CXX=
13025 link_all_deplibs_CXX=unknown
13026 old_archive_cmds_CXX=$old_archive_cmds
13027 no_undefined_flag_CXX=
13028 whole_archive_flag_spec_CXX=
13029 enable_shared_with_static_runtimes_CXX=no
13030
13031 # Source file extension for C++ test sources.
13032 ac_ext=cpp
13033
13034 # Object file extension for compiled C++ test sources.
13035 objext=o
13036 objext_CXX=$objext
13037
13038 # No sense in running all these tests if we already determined that
13039 # the CXX compiler isn't working.  Some variables (like enable_shared)
13040 # are currently assumed to apply to all compilers on this platform,
13041 # and will be corrupted by setting them based on a non-working compiler.
13042 if test "$_lt_caught_CXX_error" != yes; then
13043   # Code to be used in simple compile tests
13044   lt_simple_compile_test_code="int some_variable = 0;"
13045
13046   # Code to be used in simple link tests
13047   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13048
13049   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13050
13051
13052
13053
13054
13055
13056 # If no C compiler was specified, use CC.
13057 LTCC=${LTCC-"$CC"}
13058
13059 # If no C compiler flags were specified, use CFLAGS.
13060 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13061
13062 # Allow CC to be a program name with arguments.
13063 compiler=$CC
13064
13065
13066   # save warnings/boilerplate of simple test code
13067   ac_outfile=conftest.$ac_objext
13068 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13069 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13070 _lt_compiler_boilerplate=`cat conftest.err`
13071 $RM conftest*
13072
13073   ac_outfile=conftest.$ac_objext
13074 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13075 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13076 _lt_linker_boilerplate=`cat conftest.err`
13077 $RM -r conftest*
13078
13079
13080   # Allow CC to be a program name with arguments.
13081   lt_save_CC=$CC
13082   lt_save_LD=$LD
13083   lt_save_GCC=$GCC
13084   GCC=$GXX
13085   lt_save_with_gnu_ld=$with_gnu_ld
13086   lt_save_path_LD=$lt_cv_path_LD
13087   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13088     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13089   else
13090     $as_unset lt_cv_prog_gnu_ld
13091   fi
13092   if test -n "${lt_cv_path_LDCXX+set}"; then
13093     lt_cv_path_LD=$lt_cv_path_LDCXX
13094   else
13095     $as_unset lt_cv_path_LD
13096   fi
13097   test -z "${LDCXX+set}" || LD=$LDCXX
13098   CC=${CXX-"c++"}
13099   compiler=$CC
13100   compiler_CXX=$CC
13101   for cc_temp in $compiler""; do
13102   case $cc_temp in
13103     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13104     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13105     \-*) ;;
13106     *) break;;
13107   esac
13108 done
13109 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13110
13111
13112   if test -n "$compiler"; then
13113     # We don't want -fno-exception when compiling C++ code, so set the
13114     # no_builtin_flag separately
13115     if test "$GXX" = yes; then
13116       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13117     else
13118       lt_prog_compiler_no_builtin_flag_CXX=
13119     fi
13120
13121     if test "$GXX" = yes; then
13122       # Set up default GNU C++ configuration
13123
13124
13125
13126 # Check whether --with-gnu-ld was given.
13127 if test "${with_gnu_ld+set}" = set; then
13128   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13129 else
13130   with_gnu_ld=no
13131 fi
13132
13133 ac_prog=ld
13134 if test "$GCC" = yes; then
13135   # Check if gcc -print-prog-name=ld gives a path.
13136   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13137 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13138   case $host in
13139   *-*-mingw*)
13140     # gcc leaves a trailing carriage return which upsets mingw
13141     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13142   *)
13143     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13144   esac
13145   case $ac_prog in
13146     # Accept absolute paths.
13147     [\\/]* | ?:[\\/]*)
13148       re_direlt='/[^/][^/]*/\.\./'
13149       # Canonicalize the pathname of ld
13150       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13151       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13152         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13153       done
13154       test -z "$LD" && LD="$ac_prog"
13155       ;;
13156   "")
13157     # If it fails, then pretend we aren't using GCC.
13158     ac_prog=ld
13159     ;;
13160   *)
13161     # If it is relative, then search for the first ld in PATH.
13162     with_gnu_ld=unknown
13163     ;;
13164   esac
13165 elif test "$with_gnu_ld" = yes; then
13166   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13167 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13168 else
13169   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13170 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13171 fi
13172 if test "${lt_cv_path_LD+set}" = set; then
13173   echo $ECHO_N "(cached) $ECHO_C" >&6
13174 else
13175   if test -z "$LD"; then
13176   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13177   for ac_dir in $PATH; do
13178     IFS="$lt_save_ifs"
13179     test -z "$ac_dir" && ac_dir=.
13180     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13181       lt_cv_path_LD="$ac_dir/$ac_prog"
13182       # Check to see if the program is GNU ld.  I'd rather use --version,
13183       # but apparently some variants of GNU ld only accept -v.
13184       # Break only if it was the GNU/non-GNU ld that we prefer.
13185       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13186       *GNU* | *'with BFD'*)
13187         test "$with_gnu_ld" != no && break
13188         ;;
13189       *)
13190         test "$with_gnu_ld" != yes && break
13191         ;;
13192       esac
13193     fi
13194   done
13195   IFS="$lt_save_ifs"
13196 else
13197   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13198 fi
13199 fi
13200
13201 LD="$lt_cv_path_LD"
13202 if test -n "$LD"; then
13203   { echo "$as_me:$LINENO: result: $LD" >&5
13204 echo "${ECHO_T}$LD" >&6; }
13205 else
13206   { echo "$as_me:$LINENO: result: no" >&5
13207 echo "${ECHO_T}no" >&6; }
13208 fi
13209 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13210 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13211    { (exit 1); exit 1; }; }
13212 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13213 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13214 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13215   echo $ECHO_N "(cached) $ECHO_C" >&6
13216 else
13217   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13218 case `$LD -v 2>&1 </dev/null` in
13219 *GNU* | *'with BFD'*)
13220   lt_cv_prog_gnu_ld=yes
13221   ;;
13222 *)
13223   lt_cv_prog_gnu_ld=no
13224   ;;
13225 esac
13226 fi
13227 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13228 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13229 with_gnu_ld=$lt_cv_prog_gnu_ld
13230
13231
13232
13233
13234
13235
13236
13237       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13238       # archiving commands below assume that GNU ld is being used.
13239       if test "$with_gnu_ld" = yes; then
13240         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13241         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'
13242
13243         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13244         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13245
13246         # If archive_cmds runs LD, not CC, wlarc should be empty
13247         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13248         #     investigate it a little bit more. (MM)
13249         wlarc='${wl}'
13250
13251         # ancient GNU ld didn't support --whole-archive et. al.
13252         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13253           $GREP 'no-whole-archive' > /dev/null; then
13254           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13255         else
13256           whole_archive_flag_spec_CXX=
13257         fi
13258       else
13259         with_gnu_ld=no
13260         wlarc=
13261
13262         # A generic and very simple default shared library creation
13263         # command for GNU C++ for the case where it uses the native
13264         # linker, instead of GNU ld.  If possible, this setting should
13265         # overridden to take advantage of the native linker features on
13266         # the platform it is being used on.
13267         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13268       fi
13269
13270       # Commands to make compiler produce verbose output that lists
13271       # what "hidden" libraries, object files and flags are used when
13272       # linking a shared library.
13273       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13274
13275     else
13276       GXX=no
13277       with_gnu_ld=no
13278       wlarc=
13279     fi
13280
13281     # PORTME: fill in a description of your system's C++ link characteristics
13282     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13283 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13284     ld_shlibs_CXX=yes
13285     case $host_os in
13286       aix3*)
13287         # FIXME: insert proper C++ library support
13288         ld_shlibs_CXX=no
13289         ;;
13290       aix[4-9]*)
13291         if test "$host_cpu" = ia64; then
13292           # On IA64, the linker does run time linking by default, so we don't
13293           # have to do anything special.
13294           aix_use_runtimelinking=no
13295           exp_sym_flag='-Bexport'
13296           no_entry_flag=""
13297         else
13298           aix_use_runtimelinking=no
13299
13300           # Test if we are trying to use run time linking or normal
13301           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13302           # need to do runtime linking.
13303           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13304             for ld_flag in $LDFLAGS; do
13305               case $ld_flag in
13306               *-brtl*)
13307                 aix_use_runtimelinking=yes
13308                 break
13309                 ;;
13310               esac
13311             done
13312             ;;
13313           esac
13314
13315           exp_sym_flag='-bexport'
13316           no_entry_flag='-bnoentry'
13317         fi
13318
13319         # When large executables or shared objects are built, AIX ld can
13320         # have problems creating the table of contents.  If linking a library
13321         # or program results in "error TOC overflow" add -mminimal-toc to
13322         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13323         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13324
13325         archive_cmds_CXX=''
13326         hardcode_direct_CXX=yes
13327         hardcode_direct_absolute_CXX=yes
13328         hardcode_libdir_separator_CXX=':'
13329         link_all_deplibs_CXX=yes
13330         file_list_spec_CXX='${wl}-f,'
13331
13332         if test "$GXX" = yes; then
13333           case $host_os in aix4.[012]|aix4.[012].*)
13334           # We only want to do this on AIX 4.2 and lower, the check
13335           # below for broken collect2 doesn't work under 4.3+
13336           collect2name=`${CC} -print-prog-name=collect2`
13337           if test -f "$collect2name" &&
13338              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13339           then
13340             # We have reworked collect2
13341             :
13342           else
13343             # We have old collect2
13344             hardcode_direct_CXX=unsupported
13345             # It fails to find uninstalled libraries when the uninstalled
13346             # path is not listed in the libpath.  Setting hardcode_minus_L
13347             # to unsupported forces relinking
13348             hardcode_minus_L_CXX=yes
13349             hardcode_libdir_flag_spec_CXX='-L$libdir'
13350             hardcode_libdir_separator_CXX=
13351           fi
13352           esac
13353           shared_flag='-shared'
13354           if test "$aix_use_runtimelinking" = yes; then
13355             shared_flag="$shared_flag "'${wl}-G'
13356           fi
13357         else
13358           # not using gcc
13359           if test "$host_cpu" = ia64; then
13360           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13361           # chokes on -Wl,-G. The following line is correct:
13362           shared_flag='-G'
13363           else
13364             if test "$aix_use_runtimelinking" = yes; then
13365               shared_flag='${wl}-G'
13366             else
13367               shared_flag='${wl}-bM:SRE'
13368             fi
13369           fi
13370         fi
13371
13372         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13373         # It seems that -bexpall does not export symbols beginning with
13374         # underscore (_), so it is better to generate a list of symbols to
13375         # export.
13376         always_export_symbols_CXX=yes
13377         if test "$aix_use_runtimelinking" = yes; then
13378           # Warning - without using the other runtime loading flags (-brtl),
13379           # -berok will link without error, but may produce a broken library.
13380           allow_undefined_flag_CXX='-berok'
13381           # Determine the default libpath from the value encoded in an empty
13382           # executable.
13383           cat >conftest.$ac_ext <<_ACEOF
13384 /* confdefs.h.  */
13385 _ACEOF
13386 cat confdefs.h >>conftest.$ac_ext
13387 cat >>conftest.$ac_ext <<_ACEOF
13388 /* end confdefs.h.  */
13389
13390 int
13391 main ()
13392 {
13393
13394   ;
13395   return 0;
13396 }
13397 _ACEOF
13398 rm -f conftest.$ac_objext conftest$ac_exeext
13399 if { (ac_try="$ac_link"
13400 case "(($ac_try" in
13401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402   *) ac_try_echo=$ac_try;;
13403 esac
13404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13405   (eval "$ac_link") 2>conftest.er1
13406   ac_status=$?
13407   grep -v '^ *+' conftest.er1 >conftest.err
13408   rm -f conftest.er1
13409   cat conftest.err >&5
13410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411   (exit $ac_status); } && {
13412          test -z "$ac_cxx_werror_flag" ||
13413          test ! -s conftest.err
13414        } && test -s conftest$ac_exeext &&
13415        $as_test_x conftest$ac_exeext; then
13416
13417 lt_aix_libpath_sed='
13418     /Import File Strings/,/^$/ {
13419         /^0/ {
13420             s/^0  *\(.*\)$/\1/
13421             p
13422         }
13423     }'
13424 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13425 # Check for a 64-bit object if we didn't find anything.
13426 if test -z "$aix_libpath"; then
13427   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13428 fi
13429 else
13430   echo "$as_me: failed program was:" >&5
13431 sed 's/^/| /' conftest.$ac_ext >&5
13432
13433
13434 fi
13435
13436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13437       conftest$ac_exeext conftest.$ac_ext
13438 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13439
13440           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13441
13442           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"
13443         else
13444           if test "$host_cpu" = ia64; then
13445             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13446             allow_undefined_flag_CXX="-z nodefs"
13447             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"
13448           else
13449             # Determine the default libpath from the value encoded in an
13450             # empty executable.
13451             cat >conftest.$ac_ext <<_ACEOF
13452 /* confdefs.h.  */
13453 _ACEOF
13454 cat confdefs.h >>conftest.$ac_ext
13455 cat >>conftest.$ac_ext <<_ACEOF
13456 /* end confdefs.h.  */
13457
13458 int
13459 main ()
13460 {
13461
13462   ;
13463   return 0;
13464 }
13465 _ACEOF
13466 rm -f conftest.$ac_objext conftest$ac_exeext
13467 if { (ac_try="$ac_link"
13468 case "(($ac_try" in
13469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13470   *) ac_try_echo=$ac_try;;
13471 esac
13472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13473   (eval "$ac_link") 2>conftest.er1
13474   ac_status=$?
13475   grep -v '^ *+' conftest.er1 >conftest.err
13476   rm -f conftest.er1
13477   cat conftest.err >&5
13478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479   (exit $ac_status); } && {
13480          test -z "$ac_cxx_werror_flag" ||
13481          test ! -s conftest.err
13482        } && test -s conftest$ac_exeext &&
13483        $as_test_x conftest$ac_exeext; then
13484
13485 lt_aix_libpath_sed='
13486     /Import File Strings/,/^$/ {
13487         /^0/ {
13488             s/^0  *\(.*\)$/\1/
13489             p
13490         }
13491     }'
13492 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13493 # Check for a 64-bit object if we didn't find anything.
13494 if test -z "$aix_libpath"; then
13495   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13496 fi
13497 else
13498   echo "$as_me: failed program was:" >&5
13499 sed 's/^/| /' conftest.$ac_ext >&5
13500
13501
13502 fi
13503
13504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13505       conftest$ac_exeext conftest.$ac_ext
13506 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13507
13508             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13509             # Warning - without using the other run time loading flags,
13510             # -berok will link without error, but may produce a broken library.
13511             no_undefined_flag_CXX=' ${wl}-bernotok'
13512             allow_undefined_flag_CXX=' ${wl}-berok'
13513             # Exported symbols can be pulled into shared objects from archives
13514             whole_archive_flag_spec_CXX='$convenience'
13515             archive_cmds_need_lc_CXX=yes
13516             # This is similar to how AIX traditionally builds its shared
13517             # libraries.
13518             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'
13519           fi
13520         fi
13521         ;;
13522
13523       beos*)
13524         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13525           allow_undefined_flag_CXX=unsupported
13526           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13527           # support --undefined.  This deserves some investigation.  FIXME
13528           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13529         else
13530           ld_shlibs_CXX=no
13531         fi
13532         ;;
13533
13534       chorus*)
13535         case $cc_basename in
13536           *)
13537           # FIXME: insert proper C++ library support
13538           ld_shlibs_CXX=no
13539           ;;
13540         esac
13541         ;;
13542
13543       cygwin* | mingw* | pw32* | cegcc*)
13544         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13545         # as there is no search path for DLLs.
13546         hardcode_libdir_flag_spec_CXX='-L$libdir'
13547         allow_undefined_flag_CXX=unsupported
13548         always_export_symbols_CXX=no
13549         enable_shared_with_static_runtimes_CXX=yes
13550
13551         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13552           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'
13553           # If the export-symbols file already is a .def file (1st line
13554           # is EXPORTS), use it as is; otherwise, prepend...
13555           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13556             cp $export_symbols $output_objdir/$soname.def;
13557           else
13558             echo EXPORTS > $output_objdir/$soname.def;
13559             cat $export_symbols >> $output_objdir/$soname.def;
13560           fi~
13561           $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'
13562         else
13563           ld_shlibs_CXX=no
13564         fi
13565         ;;
13566       darwin* | rhapsody*)
13567
13568
13569   archive_cmds_need_lc_CXX=no
13570   hardcode_direct_CXX=no
13571   hardcode_automatic_CXX=yes
13572   hardcode_shlibpath_var_CXX=unsupported
13573   whole_archive_flag_spec_CXX=''
13574   link_all_deplibs_CXX=yes
13575   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13576   case $cc_basename in
13577      ifort*) _lt_dar_can_shared=yes ;;
13578      *) _lt_dar_can_shared=$GCC ;;
13579   esac
13580   if test "$_lt_dar_can_shared" = "yes"; then
13581     output_verbose_link_cmd=echo
13582     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}"
13583     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13584     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}"
13585     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}"
13586        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13587       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}"
13588       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}"
13589     fi
13590
13591   else
13592   ld_shlibs_CXX=no
13593   fi
13594
13595         ;;
13596
13597       dgux*)
13598         case $cc_basename in
13599           ec++*)
13600             # FIXME: insert proper C++ library support
13601             ld_shlibs_CXX=no
13602             ;;
13603           ghcx*)
13604             # Green Hills C++ Compiler
13605             # FIXME: insert proper C++ library support
13606             ld_shlibs_CXX=no
13607             ;;
13608           *)
13609             # FIXME: insert proper C++ library support
13610             ld_shlibs_CXX=no
13611             ;;
13612         esac
13613         ;;
13614
13615       freebsd[12]*)
13616         # C++ shared libraries reported to be fairly broken before
13617         # switch to ELF
13618         ld_shlibs_CXX=no
13619         ;;
13620
13621       freebsd-elf*)
13622         archive_cmds_need_lc_CXX=no
13623         ;;
13624
13625       freebsd* | dragonfly*)
13626         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13627         # conventions
13628         ld_shlibs_CXX=yes
13629         ;;
13630
13631       gnu*)
13632         ;;
13633
13634       hpux9*)
13635         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13636         hardcode_libdir_separator_CXX=:
13637         export_dynamic_flag_spec_CXX='${wl}-E'
13638         hardcode_direct_CXX=yes
13639         hardcode_minus_L_CXX=yes # Not in the search PATH,
13640                                              # but as the default
13641                                              # location of the library.
13642
13643         case $cc_basename in
13644           CC*)
13645             # FIXME: insert proper C++ library support
13646             ld_shlibs_CXX=no
13647             ;;
13648           aCC*)
13649             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'
13650             # Commands to make compiler produce verbose output that lists
13651             # what "hidden" libraries, object files and flags are used when
13652             # linking a shared library.
13653             #
13654             # There doesn't appear to be a way to prevent this compiler from
13655             # explicitly linking system object files so we need to strip them
13656             # from the output so that they don't get included in the library
13657             # dependencies.
13658             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'
13659             ;;
13660           *)
13661             if test "$GXX" = yes; then
13662               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'
13663             else
13664               # FIXME: insert proper C++ library support
13665               ld_shlibs_CXX=no
13666             fi
13667             ;;
13668         esac
13669         ;;
13670
13671       hpux10*|hpux11*)
13672         if test $with_gnu_ld = no; then
13673           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13674           hardcode_libdir_separator_CXX=:
13675
13676           case $host_cpu in
13677             hppa*64*|ia64*)
13678               ;;
13679             *)
13680               export_dynamic_flag_spec_CXX='${wl}-E'
13681               ;;
13682           esac
13683         fi
13684         case $host_cpu in
13685           hppa*64*|ia64*)
13686             hardcode_direct_CXX=no
13687             hardcode_shlibpath_var_CXX=no
13688             ;;
13689           *)
13690             hardcode_direct_CXX=yes
13691             hardcode_direct_absolute_CXX=yes
13692             hardcode_minus_L_CXX=yes # Not in the search PATH,
13693                                                  # but as the default
13694                                                  # location of the library.
13695             ;;
13696         esac
13697
13698         case $cc_basename in
13699           CC*)
13700             # FIXME: insert proper C++ library support
13701             ld_shlibs_CXX=no
13702             ;;
13703           aCC*)
13704             case $host_cpu in
13705               hppa*64*)
13706                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13707                 ;;
13708               ia64*)
13709                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13710                 ;;
13711               *)
13712                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13713                 ;;
13714             esac
13715             # Commands to make compiler produce verbose output that lists
13716             # what "hidden" libraries, object files and flags are used when
13717             # linking a shared library.
13718             #
13719             # There doesn't appear to be a way to prevent this compiler from
13720             # explicitly linking system object files so we need to strip them
13721             # from the output so that they don't get included in the library
13722             # dependencies.
13723             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'
13724             ;;
13725           *)
13726             if test "$GXX" = yes; then
13727               if test $with_gnu_ld = no; then
13728                 case $host_cpu in
13729                   hppa*64*)
13730                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13731                     ;;
13732                   ia64*)
13733                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13734                     ;;
13735                   *)
13736                     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'
13737                     ;;
13738                 esac
13739               fi
13740             else
13741               # FIXME: insert proper C++ library support
13742               ld_shlibs_CXX=no
13743             fi
13744             ;;
13745         esac
13746         ;;
13747
13748       interix[3-9]*)
13749         hardcode_direct_CXX=no
13750         hardcode_shlibpath_var_CXX=no
13751         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13752         export_dynamic_flag_spec_CXX='${wl}-E'
13753         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13754         # Instead, shared libraries are loaded at an image base (0x10000000 by
13755         # default) and relocated if they conflict, which is a slow very memory
13756         # consuming and fragmenting process.  To avoid this, we pick a random,
13757         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13758         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13759         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'
13760         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'
13761         ;;
13762       irix5* | irix6*)
13763         case $cc_basename in
13764           CC*)
13765             # SGI C++
13766             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'
13767
13768             # Archives containing C++ object files must be created using
13769             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13770             # necessary to make sure instantiated templates are included
13771             # in the archive.
13772             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13773             ;;
13774           *)
13775             if test "$GXX" = yes; then
13776               if test "$with_gnu_ld" = no; then
13777                 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'
13778               else
13779                 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'
13780               fi
13781             fi
13782             link_all_deplibs_CXX=yes
13783             ;;
13784         esac
13785         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13786         hardcode_libdir_separator_CXX=:
13787         inherit_rpath_CXX=yes
13788         ;;
13789
13790       linux* | k*bsd*-gnu)
13791         case $cc_basename in
13792           KCC*)
13793             # Kuck and Associates, Inc. (KAI) C++ Compiler
13794
13795             # KCC will only create a shared library if the output file
13796             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13797             # to its proper name (with version) after linking.
13798             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'
13799             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'
13800             # Commands to make compiler produce verbose output that lists
13801             # what "hidden" libraries, object files and flags are used when
13802             # linking a shared library.
13803             #
13804             # There doesn't appear to be a way to prevent this compiler from
13805             # explicitly linking system object files so we need to strip them
13806             # from the output so that they don't get included in the library
13807             # dependencies.
13808             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'
13809
13810             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13811             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13812
13813             # Archives containing C++ object files must be created using
13814             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13815             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13816             ;;
13817           icpc* | ecpc* )
13818             # Intel C++
13819             with_gnu_ld=yes
13820             # version 8.0 and above of icpc choke on multiply defined symbols
13821             # if we add $predep_objects and $postdep_objects, however 7.1 and
13822             # earlier do not add the objects themselves.
13823             case `$CC -V 2>&1` in
13824               *"Version 7."*)
13825                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13826                 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'
13827                 ;;
13828               *)  # Version 8.0 or newer
13829                 tmp_idyn=
13830                 case $host_cpu in
13831                   ia64*) tmp_idyn=' -i_dynamic';;
13832                 esac
13833                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13834                 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'
13835                 ;;
13836             esac
13837             archive_cmds_need_lc_CXX=no
13838             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13839             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13840             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13841             ;;
13842           pgCC* | pgcpp*)
13843             # Portland Group C++ compiler
13844             case `$CC -V` in
13845             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13846               prelink_cmds_CXX='tpldir=Template.dir~
13847                 rm -rf $tpldir~
13848                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13849                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13850               old_archive_cmds_CXX='tpldir=Template.dir~
13851                 rm -rf $tpldir~
13852                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13853                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13854                 $RANLIB $oldlib'
13855               archive_cmds_CXX='tpldir=Template.dir~
13856                 rm -rf $tpldir~
13857                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13858                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13859               archive_expsym_cmds_CXX='tpldir=Template.dir~
13860                 rm -rf $tpldir~
13861                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13862                 $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'
13863               ;;
13864             *) # Version 6 will use weak symbols
13865               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13866               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'
13867               ;;
13868             esac
13869
13870             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13871             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13872             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'
13873             ;;
13874           cxx*)
13875             # Compaq C++
13876             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13877             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'
13878
13879             runpath_var=LD_RUN_PATH
13880             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13881             hardcode_libdir_separator_CXX=:
13882
13883             # Commands to make compiler produce verbose output that lists
13884             # what "hidden" libraries, object files and flags are used when
13885             # linking a shared library.
13886             #
13887             # There doesn't appear to be a way to prevent this compiler from
13888             # explicitly linking system object files so we need to strip them
13889             # from the output so that they don't get included in the library
13890             # dependencies.
13891             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'
13892             ;;
13893           xl*)
13894             # IBM XL 8.0 on PPC, with GNU ld
13895             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13896             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13897             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13898             if test "x$supports_anon_versioning" = xyes; then
13899               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13900                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13901                 echo "local: *; };" >> $output_objdir/$libname.ver~
13902                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13903             fi
13904             ;;
13905           *)
13906             case `$CC -V 2>&1 | sed 5q` in
13907             *Sun\ C*)
13908               # Sun C++ 5.9
13909               no_undefined_flag_CXX=' -zdefs'
13910               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13911               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'
13912               hardcode_libdir_flag_spec_CXX='-R$libdir'
13913               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'
13914               compiler_needs_object_CXX=yes
13915
13916               # Not sure whether something based on
13917               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13918               # would be better.
13919               output_verbose_link_cmd='echo'
13920
13921               # Archives containing C++ object files must be created using
13922               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13923               # necessary to make sure instantiated templates are included
13924               # in the archive.
13925               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13926               ;;
13927             esac
13928             ;;
13929         esac
13930         ;;
13931
13932       lynxos*)
13933         # FIXME: insert proper C++ library support
13934         ld_shlibs_CXX=no
13935         ;;
13936
13937       m88k*)
13938         # FIXME: insert proper C++ library support
13939         ld_shlibs_CXX=no
13940         ;;
13941
13942       mvs*)
13943         case $cc_basename in
13944           cxx*)
13945             # FIXME: insert proper C++ library support
13946             ld_shlibs_CXX=no
13947             ;;
13948           *)
13949             # FIXME: insert proper C++ library support
13950             ld_shlibs_CXX=no
13951             ;;
13952         esac
13953         ;;
13954
13955       netbsd*)
13956         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13957           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13958           wlarc=
13959           hardcode_libdir_flag_spec_CXX='-R$libdir'
13960           hardcode_direct_CXX=yes
13961           hardcode_shlibpath_var_CXX=no
13962         fi
13963         # Workaround some broken pre-1.5 toolchains
13964         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13965         ;;
13966
13967       *nto* | *qnx*)
13968         ld_shlibs_CXX=yes
13969         ;;
13970
13971       openbsd2*)
13972         # C++ shared libraries are fairly broken
13973         ld_shlibs_CXX=no
13974         ;;
13975
13976       openbsd*)
13977         if test -f /usr/libexec/ld.so; then
13978           hardcode_direct_CXX=yes
13979           hardcode_shlibpath_var_CXX=no
13980           hardcode_direct_absolute_CXX=yes
13981           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13982           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13983           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13984             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13985             export_dynamic_flag_spec_CXX='${wl}-E'
13986             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13987           fi
13988           output_verbose_link_cmd=echo
13989         else
13990           ld_shlibs_CXX=no
13991         fi
13992         ;;
13993
13994       osf3* | osf4* | osf5*)
13995         case $cc_basename in
13996           KCC*)
13997             # Kuck and Associates, Inc. (KAI) C++ Compiler
13998
13999             # KCC will only create a shared library if the output file
14000             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14001             # to its proper name (with version) after linking.
14002             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'
14003
14004             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14005             hardcode_libdir_separator_CXX=:
14006
14007             # Archives containing C++ object files must be created using
14008             # the KAI C++ compiler.
14009             case $host in
14010               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14011               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14012             esac
14013             ;;
14014           RCC*)
14015             # Rational C++ 2.4.1
14016             # FIXME: insert proper C++ library support
14017             ld_shlibs_CXX=no
14018             ;;
14019           cxx*)
14020             case $host in
14021               osf3*)
14022                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14023                 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'
14024                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14025                 ;;
14026               *)
14027                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14028                 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'
14029                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14030                   echo "-hidden">> $lib.exp~
14031                   $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~
14032                   $RM $lib.exp'
14033                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14034                 ;;
14035             esac
14036
14037             hardcode_libdir_separator_CXX=:
14038
14039             # Commands to make compiler produce verbose output that lists
14040             # what "hidden" libraries, object files and flags are used when
14041             # linking a shared library.
14042             #
14043             # There doesn't appear to be a way to prevent this compiler from
14044             # explicitly linking system object files so we need to strip them
14045             # from the output so that they don't get included in the library
14046             # dependencies.
14047             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'
14048             ;;
14049           *)
14050             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14051               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14052               case $host in
14053                 osf3*)
14054                   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'
14055                   ;;
14056                 *)
14057                   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'
14058                   ;;
14059               esac
14060
14061               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14062               hardcode_libdir_separator_CXX=:
14063
14064               # Commands to make compiler produce verbose output that lists
14065               # what "hidden" libraries, object files and flags are used when
14066               # linking a shared library.
14067               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14068
14069             else
14070               # FIXME: insert proper C++ library support
14071               ld_shlibs_CXX=no
14072             fi
14073             ;;
14074         esac
14075         ;;
14076
14077       psos*)
14078         # FIXME: insert proper C++ library support
14079         ld_shlibs_CXX=no
14080         ;;
14081
14082       sunos4*)
14083         case $cc_basename in
14084           CC*)
14085             # Sun C++ 4.x
14086             # FIXME: insert proper C++ library support
14087             ld_shlibs_CXX=no
14088             ;;
14089           lcc*)
14090             # Lucid
14091             # FIXME: insert proper C++ library support
14092             ld_shlibs_CXX=no
14093             ;;
14094           *)
14095             # FIXME: insert proper C++ library support
14096             ld_shlibs_CXX=no
14097             ;;
14098         esac
14099         ;;
14100
14101       solaris*)
14102         case $cc_basename in
14103           CC*)
14104             # Sun C++ 4.2, 5.x and Centerline C++
14105             archive_cmds_need_lc_CXX=yes
14106             no_undefined_flag_CXX=' -zdefs'
14107             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14108             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14109               $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'
14110
14111             hardcode_libdir_flag_spec_CXX='-R$libdir'
14112             hardcode_shlibpath_var_CXX=no
14113             case $host_os in
14114               solaris2.[0-5] | solaris2.[0-5].*) ;;
14115               *)
14116                 # The compiler driver will combine and reorder linker options,
14117                 # but understands `-z linker_flag'.
14118                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14119                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14120                 ;;
14121             esac
14122             link_all_deplibs_CXX=yes
14123
14124             output_verbose_link_cmd='echo'
14125
14126             # Archives containing C++ object files must be created using
14127             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14128             # necessary to make sure instantiated templates are included
14129             # in the archive.
14130             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14131             ;;
14132           gcx*)
14133             # Green Hills C++ Compiler
14134             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14135
14136             # The C++ compiler must be used to create the archive.
14137             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14138             ;;
14139           *)
14140             # GNU C++ compiler with Solaris linker
14141             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14142               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14143               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14144                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14145                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14146                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14147
14148                 # Commands to make compiler produce verbose output that lists
14149                 # what "hidden" libraries, object files and flags are used when
14150                 # linking a shared library.
14151                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14152               else
14153                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14154                 # platform.
14155                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14156                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14157                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14158
14159                 # Commands to make compiler produce verbose output that lists
14160                 # what "hidden" libraries, object files and flags are used when
14161                 # linking a shared library.
14162                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14163               fi
14164
14165               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14166               case $host_os in
14167                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14168                 *)
14169                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14170                   ;;
14171               esac
14172             fi
14173             ;;
14174         esac
14175         ;;
14176
14177     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14178       no_undefined_flag_CXX='${wl}-z,text'
14179       archive_cmds_need_lc_CXX=no
14180       hardcode_shlibpath_var_CXX=no
14181       runpath_var='LD_RUN_PATH'
14182
14183       case $cc_basename in
14184         CC*)
14185           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14186           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14187           ;;
14188         *)
14189           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14190           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14191           ;;
14192       esac
14193       ;;
14194
14195       sysv5* | sco3.2v5* | sco5v6*)
14196         # Note: We can NOT use -z defs as we might desire, because we do not
14197         # link with -lc, and that would cause any symbols used from libc to
14198         # always be unresolved, which means just about no library would
14199         # ever link correctly.  If we're not using GNU ld we use -z text
14200         # though, which does catch some bad symbols but isn't as heavy-handed
14201         # as -z defs.
14202         no_undefined_flag_CXX='${wl}-z,text'
14203         allow_undefined_flag_CXX='${wl}-z,nodefs'
14204         archive_cmds_need_lc_CXX=no
14205         hardcode_shlibpath_var_CXX=no
14206         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14207         hardcode_libdir_separator_CXX=':'
14208         link_all_deplibs_CXX=yes
14209         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14210         runpath_var='LD_RUN_PATH'
14211
14212         case $cc_basename in
14213           CC*)
14214             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14215             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14216             ;;
14217           *)
14218             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14219             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14220             ;;
14221         esac
14222       ;;
14223
14224       tandem*)
14225         case $cc_basename in
14226           NCC*)
14227             # NonStop-UX NCC 3.20
14228             # FIXME: insert proper C++ library support
14229             ld_shlibs_CXX=no
14230             ;;
14231           *)
14232             # FIXME: insert proper C++ library support
14233             ld_shlibs_CXX=no
14234             ;;
14235         esac
14236         ;;
14237
14238       vxworks*)
14239         # FIXME: insert proper C++ library support
14240         ld_shlibs_CXX=no
14241         ;;
14242
14243       *)
14244         # FIXME: insert proper C++ library support
14245         ld_shlibs_CXX=no
14246         ;;
14247     esac
14248
14249     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14250 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14251     test "$ld_shlibs_CXX" = no && can_build_shared=no
14252
14253     GCC_CXX="$GXX"
14254     LD_CXX="$LD"
14255
14256     ## CAVEAT EMPTOR:
14257     ## There is no encapsulation within the following macros, do not change
14258     ## the running order or otherwise move them around unless you know exactly
14259     ## what you are doing...
14260     # Dependencies to place before and after the object being linked:
14261 predep_objects_CXX=
14262 postdep_objects_CXX=
14263 predeps_CXX=
14264 postdeps_CXX=
14265 compiler_lib_search_path_CXX=
14266
14267 cat > conftest.$ac_ext <<_LT_EOF
14268 class Foo
14269 {
14270 public:
14271   Foo (void) { a = 0; }
14272 private:
14273   int a;
14274 };
14275 _LT_EOF
14276
14277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14278   (eval $ac_compile) 2>&5
14279   ac_status=$?
14280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281   (exit $ac_status); }; then
14282   # Parse the compiler output and extract the necessary
14283   # objects, libraries and library flags.
14284
14285   # Sentinel used to keep track of whether or not we are before
14286   # the conftest object file.
14287   pre_test_object_deps_done=no
14288
14289   for p in `eval "$output_verbose_link_cmd"`; do
14290     case $p in
14291
14292     -L* | -R* | -l*)
14293        # Some compilers place space between "-{L,R}" and the path.
14294        # Remove the space.
14295        if test $p = "-L" ||
14296           test $p = "-R"; then
14297          prev=$p
14298          continue
14299        else
14300          prev=
14301        fi
14302
14303        if test "$pre_test_object_deps_done" = no; then
14304          case $p in
14305          -L* | -R*)
14306            # Internal compiler library paths should come after those
14307            # provided the user.  The postdeps already come after the
14308            # user supplied libs so there is no need to process them.
14309            if test -z "$compiler_lib_search_path_CXX"; then
14310              compiler_lib_search_path_CXX="${prev}${p}"
14311            else
14312              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14313            fi
14314            ;;
14315          # The "-l" case would never come before the object being
14316          # linked, so don't bother handling this case.
14317          esac
14318        else
14319          if test -z "$postdeps_CXX"; then
14320            postdeps_CXX="${prev}${p}"
14321          else
14322            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14323          fi
14324        fi
14325        ;;
14326
14327     *.$objext)
14328        # This assumes that the test object file only shows up
14329        # once in the compiler output.
14330        if test "$p" = "conftest.$objext"; then
14331          pre_test_object_deps_done=yes
14332          continue
14333        fi
14334
14335        if test "$pre_test_object_deps_done" = no; then
14336          if test -z "$predep_objects_CXX"; then
14337            predep_objects_CXX="$p"
14338          else
14339            predep_objects_CXX="$predep_objects_CXX $p"
14340          fi
14341        else
14342          if test -z "$postdep_objects_CXX"; then
14343            postdep_objects_CXX="$p"
14344          else
14345            postdep_objects_CXX="$postdep_objects_CXX $p"
14346          fi
14347        fi
14348        ;;
14349
14350     *) ;; # Ignore the rest.
14351
14352     esac
14353   done
14354
14355   # Clean up.
14356   rm -f a.out a.exe
14357 else
14358   echo "libtool.m4: error: problem compiling CXX test program"
14359 fi
14360
14361 $RM -f confest.$objext
14362
14363 # PORTME: override above test on systems where it is broken
14364 case $host_os in
14365 interix[3-9]*)
14366   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14367   # hack all around it, let's just trust "g++" to DTRT.
14368   predep_objects_CXX=
14369   postdep_objects_CXX=
14370   postdeps_CXX=
14371   ;;
14372
14373 linux*)
14374   case `$CC -V 2>&1 | sed 5q` in
14375   *Sun\ C*)
14376     # Sun C++ 5.9
14377
14378     # The more standards-conforming stlport4 library is
14379     # incompatible with the Cstd library. Avoid specifying
14380     # it if it's in CXXFLAGS. Ignore libCrun as
14381     # -library=stlport4 depends on it.
14382     case " $CXX $CXXFLAGS " in
14383     *" -library=stlport4 "*)
14384       solaris_use_stlport4=yes
14385       ;;
14386     esac
14387
14388     if test "$solaris_use_stlport4" != yes; then
14389       postdeps_CXX='-library=Cstd -library=Crun'
14390     fi
14391     ;;
14392   esac
14393   ;;
14394
14395 solaris*)
14396   case $cc_basename in
14397   CC*)
14398     # The more standards-conforming stlport4 library is
14399     # incompatible with the Cstd library. Avoid specifying
14400     # it if it's in CXXFLAGS. Ignore libCrun as
14401     # -library=stlport4 depends on it.
14402     case " $CXX $CXXFLAGS " in
14403     *" -library=stlport4 "*)
14404       solaris_use_stlport4=yes
14405       ;;
14406     esac
14407
14408     # Adding this requires a known-good setup of shared libraries for
14409     # Sun compiler versions before 5.6, else PIC objects from an old
14410     # archive will be linked into the output, leading to subtle bugs.
14411     if test "$solaris_use_stlport4" != yes; then
14412       postdeps_CXX='-library=Cstd -library=Crun'
14413     fi
14414     ;;
14415   esac
14416   ;;
14417 esac
14418
14419
14420 case " $postdeps_CXX " in
14421 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14422 esac
14423  compiler_lib_search_dirs_CXX=
14424 if test -n "${compiler_lib_search_path_CXX}"; then
14425  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14426 fi
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458     lt_prog_compiler_wl_CXX=
14459 lt_prog_compiler_pic_CXX=
14460 lt_prog_compiler_static_CXX=
14461
14462 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14463 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14464
14465   # C++ specific cases for pic, static, wl, etc.
14466   if test "$GXX" = yes; then
14467     lt_prog_compiler_wl_CXX='-Wl,'
14468     lt_prog_compiler_static_CXX='-static'
14469
14470     case $host_os in
14471     aix*)
14472       # All AIX code is PIC.
14473       if test "$host_cpu" = ia64; then
14474         # AIX 5 now supports IA64 processor
14475         lt_prog_compiler_static_CXX='-Bstatic'
14476       fi
14477       ;;
14478
14479     amigaos*)
14480       case $host_cpu in
14481       powerpc)
14482             # see comment about AmigaOS4 .so support
14483             lt_prog_compiler_pic_CXX='-fPIC'
14484         ;;
14485       m68k)
14486             # FIXME: we need at least 68020 code to build shared libraries, but
14487             # adding the `-m68020' flag to GCC prevents building anything better,
14488             # like `-m68040'.
14489             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14490         ;;
14491       esac
14492       ;;
14493
14494     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14495       # PIC is the default for these OSes.
14496       ;;
14497     mingw* | cygwin* | os2* | pw32* | cegcc*)
14498       # This hack is so that the source file can tell whether it is being
14499       # built for inclusion in a dll (and should export symbols for example).
14500       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14501       # (--disable-auto-import) libraries
14502       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14503       ;;
14504     darwin* | rhapsody*)
14505       # PIC is the default on this platform
14506       # Common symbols not allowed in MH_DYLIB files
14507       lt_prog_compiler_pic_CXX='-fno-common'
14508       ;;
14509     *djgpp*)
14510       # DJGPP does not support shared libraries at all
14511       lt_prog_compiler_pic_CXX=
14512       ;;
14513     interix[3-9]*)
14514       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14515       # Instead, we relocate shared libraries at runtime.
14516       ;;
14517     sysv4*MP*)
14518       if test -d /usr/nec; then
14519         lt_prog_compiler_pic_CXX=-Kconform_pic
14520       fi
14521       ;;
14522     hpux*)
14523       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14524       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14525       # sets the default TLS model and affects inlining.
14526       case $host_cpu in
14527       hppa*64*)
14528         ;;
14529       *)
14530         lt_prog_compiler_pic_CXX='-fPIC'
14531         ;;
14532       esac
14533       ;;
14534     *qnx* | *nto*)
14535       # QNX uses GNU C++, but need to define -shared option too, otherwise
14536       # it will coredump.
14537       lt_prog_compiler_pic_CXX='-fPIC -shared'
14538       ;;
14539     *)
14540       lt_prog_compiler_pic_CXX='-fPIC'
14541       ;;
14542     esac
14543   else
14544     case $host_os in
14545       aix[4-9]*)
14546         # All AIX code is PIC.
14547         if test "$host_cpu" = ia64; then
14548           # AIX 5 now supports IA64 processor
14549           lt_prog_compiler_static_CXX='-Bstatic'
14550         else
14551           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14552         fi
14553         ;;
14554       chorus*)
14555         case $cc_basename in
14556         cxch68*)
14557           # Green Hills C++ Compiler
14558           # _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"
14559           ;;
14560         esac
14561         ;;
14562       dgux*)
14563         case $cc_basename in
14564           ec++*)
14565             lt_prog_compiler_pic_CXX='-KPIC'
14566             ;;
14567           ghcx*)
14568             # Green Hills C++ Compiler
14569             lt_prog_compiler_pic_CXX='-pic'
14570             ;;
14571           *)
14572             ;;
14573         esac
14574         ;;
14575       freebsd* | dragonfly*)
14576         # FreeBSD uses GNU C++
14577         ;;
14578       hpux9* | hpux10* | hpux11*)
14579         case $cc_basename in
14580           CC*)
14581             lt_prog_compiler_wl_CXX='-Wl,'
14582             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14583             if test "$host_cpu" != ia64; then
14584               lt_prog_compiler_pic_CXX='+Z'
14585             fi
14586             ;;
14587           aCC*)
14588             lt_prog_compiler_wl_CXX='-Wl,'
14589             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14590             case $host_cpu in
14591             hppa*64*|ia64*)
14592               # +Z the default
14593               ;;
14594             *)
14595               lt_prog_compiler_pic_CXX='+Z'
14596               ;;
14597             esac
14598             ;;
14599           *)
14600             ;;
14601         esac
14602         ;;
14603       interix*)
14604         # This is c89, which is MS Visual C++ (no shared libs)
14605         # Anyone wants to do a port?
14606         ;;
14607       irix5* | irix6* | nonstopux*)
14608         case $cc_basename in
14609           CC*)
14610             lt_prog_compiler_wl_CXX='-Wl,'
14611             lt_prog_compiler_static_CXX='-non_shared'
14612             # CC pic flag -KPIC is the default.
14613             ;;
14614           *)
14615             ;;
14616         esac
14617         ;;
14618       linux* | k*bsd*-gnu)
14619         case $cc_basename in
14620           KCC*)
14621             # KAI C++ Compiler
14622             lt_prog_compiler_wl_CXX='--backend -Wl,'
14623             lt_prog_compiler_pic_CXX='-fPIC'
14624             ;;
14625           ecpc* )
14626             # old Intel C++ for x86_64 which still supported -KPIC.
14627             lt_prog_compiler_wl_CXX='-Wl,'
14628             lt_prog_compiler_pic_CXX='-KPIC'
14629             lt_prog_compiler_static_CXX='-static'
14630             ;;
14631           icpc* )
14632             # Intel C++, used to be incompatible with GCC.
14633             # ICC 10 doesn't accept -KPIC any more.
14634             lt_prog_compiler_wl_CXX='-Wl,'
14635             lt_prog_compiler_pic_CXX='-fPIC'
14636             lt_prog_compiler_static_CXX='-static'
14637             ;;
14638           pgCC* | pgcpp*)
14639             # Portland Group C++ compiler
14640             lt_prog_compiler_wl_CXX='-Wl,'
14641             lt_prog_compiler_pic_CXX='-fpic'
14642             lt_prog_compiler_static_CXX='-Bstatic'
14643             ;;
14644           cxx*)
14645             # Compaq C++
14646             # Make sure the PIC flag is empty.  It appears that all Alpha
14647             # Linux and Compaq Tru64 Unix objects are PIC.
14648             lt_prog_compiler_pic_CXX=
14649             lt_prog_compiler_static_CXX='-non_shared'
14650             ;;
14651           xlc* | xlC*)
14652             # IBM XL 8.0 on PPC
14653             lt_prog_compiler_wl_CXX='-Wl,'
14654             lt_prog_compiler_pic_CXX='-qpic'
14655             lt_prog_compiler_static_CXX='-qstaticlink'
14656             ;;
14657           *)
14658             case `$CC -V 2>&1 | sed 5q` in
14659             *Sun\ C*)
14660               # Sun C++ 5.9
14661               lt_prog_compiler_pic_CXX='-KPIC'
14662               lt_prog_compiler_static_CXX='-Bstatic'
14663               lt_prog_compiler_wl_CXX='-Qoption ld '
14664               ;;
14665             esac
14666             ;;
14667         esac
14668         ;;
14669       lynxos*)
14670         ;;
14671       m88k*)
14672         ;;
14673       mvs*)
14674         case $cc_basename in
14675           cxx*)
14676             lt_prog_compiler_pic_CXX='-W c,exportall'
14677             ;;
14678           *)
14679             ;;
14680         esac
14681         ;;
14682       netbsd*)
14683         ;;
14684       *qnx* | *nto*)
14685         # QNX uses GNU C++, but need to define -shared option too, otherwise
14686         # it will coredump.
14687         lt_prog_compiler_pic_CXX='-fPIC -shared'
14688         ;;
14689       osf3* | osf4* | osf5*)
14690         case $cc_basename in
14691           KCC*)
14692             lt_prog_compiler_wl_CXX='--backend -Wl,'
14693             ;;
14694           RCC*)
14695             # Rational C++ 2.4.1
14696             lt_prog_compiler_pic_CXX='-pic'
14697             ;;
14698           cxx*)
14699             # Digital/Compaq C++
14700             lt_prog_compiler_wl_CXX='-Wl,'
14701             # Make sure the PIC flag is empty.  It appears that all Alpha
14702             # Linux and Compaq Tru64 Unix objects are PIC.
14703             lt_prog_compiler_pic_CXX=
14704             lt_prog_compiler_static_CXX='-non_shared'
14705             ;;
14706           *)
14707             ;;
14708         esac
14709         ;;
14710       psos*)
14711         ;;
14712       solaris*)
14713         case $cc_basename in
14714           CC*)
14715             # Sun C++ 4.2, 5.x and Centerline C++
14716             lt_prog_compiler_pic_CXX='-KPIC'
14717             lt_prog_compiler_static_CXX='-Bstatic'
14718             lt_prog_compiler_wl_CXX='-Qoption ld '
14719             ;;
14720           gcx*)
14721             # Green Hills C++ Compiler
14722             lt_prog_compiler_pic_CXX='-PIC'
14723             ;;
14724           *)
14725             ;;
14726         esac
14727         ;;
14728       sunos4*)
14729         case $cc_basename in
14730           CC*)
14731             # Sun C++ 4.x
14732             lt_prog_compiler_pic_CXX='-pic'
14733             lt_prog_compiler_static_CXX='-Bstatic'
14734             ;;
14735           lcc*)
14736             # Lucid
14737             lt_prog_compiler_pic_CXX='-pic'
14738             ;;
14739           *)
14740             ;;
14741         esac
14742         ;;
14743       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14744         case $cc_basename in
14745           CC*)
14746             lt_prog_compiler_wl_CXX='-Wl,'
14747             lt_prog_compiler_pic_CXX='-KPIC'
14748             lt_prog_compiler_static_CXX='-Bstatic'
14749             ;;
14750         esac
14751         ;;
14752       tandem*)
14753         case $cc_basename in
14754           NCC*)
14755             # NonStop-UX NCC 3.20
14756             lt_prog_compiler_pic_CXX='-KPIC'
14757             ;;
14758           *)
14759             ;;
14760         esac
14761         ;;
14762       vxworks*)
14763         ;;
14764       *)
14765         lt_prog_compiler_can_build_shared_CXX=no
14766         ;;
14767     esac
14768   fi
14769
14770 case $host_os in
14771   # For platforms which do not support PIC, -DPIC is meaningless:
14772   *djgpp*)
14773     lt_prog_compiler_pic_CXX=
14774     ;;
14775   *)
14776     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14777     ;;
14778 esac
14779 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14780 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14781
14782
14783
14784 #
14785 # Check to make sure the PIC flag actually works.
14786 #
14787 if test -n "$lt_prog_compiler_pic_CXX"; then
14788   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14789 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14790 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14791   echo $ECHO_N "(cached) $ECHO_C" >&6
14792 else
14793   lt_cv_prog_compiler_pic_works_CXX=no
14794    ac_outfile=conftest.$ac_objext
14795    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14796    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14797    # Insert the option either (1) after the last *FLAGS variable, or
14798    # (2) before a word containing "conftest.", or (3) at the end.
14799    # Note that $ac_compile itself does not contain backslashes and begins
14800    # with a dollar sign (not a hyphen), so the echo should work correctly.
14801    # The option is referenced via a variable to avoid confusing sed.
14802    lt_compile=`echo "$ac_compile" | $SED \
14803    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14804    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14805    -e 's:$: $lt_compiler_flag:'`
14806    (eval echo "\"\$as_me:14806: $lt_compile\"" >&5)
14807    (eval "$lt_compile" 2>conftest.err)
14808    ac_status=$?
14809    cat conftest.err >&5
14810    echo "$as_me:14810: \$? = $ac_status" >&5
14811    if (exit $ac_status) && test -s "$ac_outfile"; then
14812      # The compiler can only warn and ignore the option if not recognized
14813      # So say no if there are warnings other than the usual output.
14814      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14815      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14816      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14817        lt_cv_prog_compiler_pic_works_CXX=yes
14818      fi
14819    fi
14820    $RM conftest*
14821
14822 fi
14823 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14824 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14825
14826 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14827     case $lt_prog_compiler_pic_CXX in
14828      "" | " "*) ;;
14829      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14830      esac
14831 else
14832     lt_prog_compiler_pic_CXX=
14833      lt_prog_compiler_can_build_shared_CXX=no
14834 fi
14835
14836 fi
14837
14838
14839
14840 #
14841 # Check to make sure the static flag actually works.
14842 #
14843 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14844 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14845 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14846 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14847   echo $ECHO_N "(cached) $ECHO_C" >&6
14848 else
14849   lt_cv_prog_compiler_static_works_CXX=no
14850    save_LDFLAGS="$LDFLAGS"
14851    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14852    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14853    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14854      # The linker can only warn and ignore the option if not recognized
14855      # So say no if there are warnings
14856      if test -s conftest.err; then
14857        # Append any errors to the config.log.
14858        cat conftest.err 1>&5
14859        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14860        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14861        if diff conftest.exp conftest.er2 >/dev/null; then
14862          lt_cv_prog_compiler_static_works_CXX=yes
14863        fi
14864      else
14865        lt_cv_prog_compiler_static_works_CXX=yes
14866      fi
14867    fi
14868    $RM -r conftest*
14869    LDFLAGS="$save_LDFLAGS"
14870
14871 fi
14872 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14873 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14874
14875 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14876     :
14877 else
14878     lt_prog_compiler_static_CXX=
14879 fi
14880
14881
14882
14883
14884     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14885 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14886 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14887   echo $ECHO_N "(cached) $ECHO_C" >&6
14888 else
14889   lt_cv_prog_compiler_c_o_CXX=no
14890    $RM -r conftest 2>/dev/null
14891    mkdir conftest
14892    cd conftest
14893    mkdir out
14894    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14895
14896    lt_compiler_flag="-o out/conftest2.$ac_objext"
14897    # Insert the option either (1) after the last *FLAGS variable, or
14898    # (2) before a word containing "conftest.", or (3) at the end.
14899    # Note that $ac_compile itself does not contain backslashes and begins
14900    # with a dollar sign (not a hyphen), so the echo should work correctly.
14901    lt_compile=`echo "$ac_compile" | $SED \
14902    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14903    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14904    -e 's:$: $lt_compiler_flag:'`
14905    (eval echo "\"\$as_me:14905: $lt_compile\"" >&5)
14906    (eval "$lt_compile" 2>out/conftest.err)
14907    ac_status=$?
14908    cat out/conftest.err >&5
14909    echo "$as_me:14909: \$? = $ac_status" >&5
14910    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14911    then
14912      # The compiler can only warn and ignore the option if not recognized
14913      # So say no if there are warnings
14914      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14915      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14916      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14917        lt_cv_prog_compiler_c_o_CXX=yes
14918      fi
14919    fi
14920    chmod u+w . 2>&5
14921    $RM conftest*
14922    # SGI C++ compiler will create directory out/ii_files/ for
14923    # template instantiation
14924    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14925    $RM out/* && rmdir out
14926    cd ..
14927    $RM -r conftest
14928    $RM conftest*
14929
14930 fi
14931 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14932 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14933
14934
14935
14936     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14937 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14938 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14939   echo $ECHO_N "(cached) $ECHO_C" >&6
14940 else
14941   lt_cv_prog_compiler_c_o_CXX=no
14942    $RM -r conftest 2>/dev/null
14943    mkdir conftest
14944    cd conftest
14945    mkdir out
14946    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14947
14948    lt_compiler_flag="-o out/conftest2.$ac_objext"
14949    # Insert the option either (1) after the last *FLAGS variable, or
14950    # (2) before a word containing "conftest.", or (3) at the end.
14951    # Note that $ac_compile itself does not contain backslashes and begins
14952    # with a dollar sign (not a hyphen), so the echo should work correctly.
14953    lt_compile=`echo "$ac_compile" | $SED \
14954    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14955    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14956    -e 's:$: $lt_compiler_flag:'`
14957    (eval echo "\"\$as_me:14957: $lt_compile\"" >&5)
14958    (eval "$lt_compile" 2>out/conftest.err)
14959    ac_status=$?
14960    cat out/conftest.err >&5
14961    echo "$as_me:14961: \$? = $ac_status" >&5
14962    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14963    then
14964      # The compiler can only warn and ignore the option if not recognized
14965      # So say no if there are warnings
14966      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14967      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14968      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14969        lt_cv_prog_compiler_c_o_CXX=yes
14970      fi
14971    fi
14972    chmod u+w . 2>&5
14973    $RM conftest*
14974    # SGI C++ compiler will create directory out/ii_files/ for
14975    # template instantiation
14976    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14977    $RM out/* && rmdir out
14978    cd ..
14979    $RM -r conftest
14980    $RM conftest*
14981
14982 fi
14983 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14984 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14985
14986
14987
14988
14989 hard_links="nottested"
14990 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14991   # do not overwrite the value of need_locks provided by the user
14992   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14993 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14994   hard_links=yes
14995   $RM conftest*
14996   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14997   touch conftest.a
14998   ln conftest.a conftest.b 2>&5 || hard_links=no
14999   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15000   { echo "$as_me:$LINENO: result: $hard_links" >&5
15001 echo "${ECHO_T}$hard_links" >&6; }
15002   if test "$hard_links" = no; then
15003     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15004 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15005     need_locks=warn
15006   fi
15007 else
15008   need_locks=no
15009 fi
15010
15011
15012
15013     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15014 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15015
15016   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15017   case $host_os in
15018   aix[4-9]*)
15019     # If we're using GNU nm, then we don't want the "-C" option.
15020     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15021     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15022       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'
15023     else
15024       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'
15025     fi
15026     ;;
15027   pw32*)
15028     export_symbols_cmds_CXX="$ltdll_cmds"
15029   ;;
15030   cygwin* | mingw* | cegcc*)
15031     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'
15032   ;;
15033   *)
15034     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15035   ;;
15036   esac
15037   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15038
15039 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15040 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15041 test "$ld_shlibs_CXX" = no && can_build_shared=no
15042
15043 with_gnu_ld_CXX=$with_gnu_ld
15044
15045
15046
15047
15048
15049
15050 #
15051 # Do we need to explicitly link libc?
15052 #
15053 case "x$archive_cmds_need_lc_CXX" in
15054 x|xyes)
15055   # Assume -lc should be added
15056   archive_cmds_need_lc_CXX=yes
15057
15058   if test "$enable_shared" = yes && test "$GCC" = yes; then
15059     case $archive_cmds_CXX in
15060     *'~'*)
15061       # FIXME: we may have to deal with multi-command sequences.
15062       ;;
15063     '$CC '*)
15064       # Test whether the compiler implicitly links with -lc since on some
15065       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15066       # to ld, don't add -lc before -lgcc.
15067       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15068 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15069       $RM conftest*
15070       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15071
15072       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15073   (eval $ac_compile) 2>&5
15074   ac_status=$?
15075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076   (exit $ac_status); } 2>conftest.err; then
15077         soname=conftest
15078         lib=conftest
15079         libobjs=conftest.$ac_objext
15080         deplibs=
15081         wl=$lt_prog_compiler_wl_CXX
15082         pic_flag=$lt_prog_compiler_pic_CXX
15083         compiler_flags=-v
15084         linker_flags=-v
15085         verstring=
15086         output_objdir=.
15087         libname=conftest
15088         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15089         allow_undefined_flag_CXX=
15090         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15091   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15092   ac_status=$?
15093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094   (exit $ac_status); }
15095         then
15096           archive_cmds_need_lc_CXX=no
15097         else
15098           archive_cmds_need_lc_CXX=yes
15099         fi
15100         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15101       else
15102         cat conftest.err 1>&5
15103       fi
15104       $RM conftest*
15105       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15106 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15107       ;;
15108     esac
15109   fi
15110   ;;
15111 esac
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15177 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15178
15179 library_names_spec=
15180 libname_spec='lib$name'
15181 soname_spec=
15182 shrext_cmds=".so"
15183 postinstall_cmds=
15184 postuninstall_cmds=
15185 finish_cmds=
15186 finish_eval=
15187 shlibpath_var=
15188 shlibpath_overrides_runpath=unknown
15189 version_type=none
15190 dynamic_linker="$host_os ld.so"
15191 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15192 need_lib_prefix=unknown
15193 hardcode_into_libs=no
15194
15195 # when you set need_version to no, make sure it does not cause -set_version
15196 # flags to be left without arguments
15197 need_version=unknown
15198
15199 case $host_os in
15200 aix3*)
15201   version_type=linux
15202   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15203   shlibpath_var=LIBPATH
15204
15205   # AIX 3 has no versioning support, so we append a major version to the name.
15206   soname_spec='${libname}${release}${shared_ext}$major'
15207   ;;
15208
15209 aix[4-9]*)
15210   version_type=linux
15211   need_lib_prefix=no
15212   need_version=no
15213   hardcode_into_libs=yes
15214   if test "$host_cpu" = ia64; then
15215     # AIX 5 supports IA64
15216     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15217     shlibpath_var=LD_LIBRARY_PATH
15218   else
15219     # With GCC up to 2.95.x, collect2 would create an import file
15220     # for dependence libraries.  The import file would start with
15221     # the line `#! .'.  This would cause the generated library to
15222     # depend on `.', always an invalid library.  This was fixed in
15223     # development snapshots of GCC prior to 3.0.
15224     case $host_os in
15225       aix4 | aix4.[01] | aix4.[01].*)
15226       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15227            echo ' yes '
15228            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15229         :
15230       else
15231         can_build_shared=no
15232       fi
15233       ;;
15234     esac
15235     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15236     # soname into executable. Probably we can add versioning support to
15237     # collect2, so additional links can be useful in future.
15238     if test "$aix_use_runtimelinking" = yes; then
15239       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15240       # instead of lib<name>.a to let people know that these are not
15241       # typical AIX shared libraries.
15242       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15243     else
15244       # We preserve .a as extension for shared libraries through AIX4.2
15245       # and later when we are not doing run time linking.
15246       library_names_spec='${libname}${release}.a $libname.a'
15247       soname_spec='${libname}${release}${shared_ext}$major'
15248     fi
15249     shlibpath_var=LIBPATH
15250   fi
15251   ;;
15252
15253 amigaos*)
15254   case $host_cpu in
15255   powerpc)
15256     # Since July 2007 AmigaOS4 officially supports .so libraries.
15257     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15258     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15259     ;;
15260   m68k)
15261     library_names_spec='$libname.ixlibrary $libname.a'
15262     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15263     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'
15264     ;;
15265   esac
15266   ;;
15267
15268 beos*)
15269   library_names_spec='${libname}${shared_ext}'
15270   dynamic_linker="$host_os ld.so"
15271   shlibpath_var=LIBRARY_PATH
15272   ;;
15273
15274 bsdi[45]*)
15275   version_type=linux
15276   need_version=no
15277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15278   soname_spec='${libname}${release}${shared_ext}$major'
15279   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15280   shlibpath_var=LD_LIBRARY_PATH
15281   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15282   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15283   # the default ld.so.conf also contains /usr/contrib/lib and
15284   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15285   # libtool to hard-code these into programs
15286   ;;
15287
15288 cygwin* | mingw* | pw32* | cegcc*)
15289   version_type=windows
15290   shrext_cmds=".dll"
15291   need_version=no
15292   need_lib_prefix=no
15293
15294   case $GCC,$host_os in
15295   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15296     library_names_spec='$libname.dll.a'
15297     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15298     postinstall_cmds='base_file=`basename \${file}`~
15299       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15300       dldir=$destdir/`dirname \$dlpath`~
15301       test -d \$dldir || mkdir -p \$dldir~
15302       $install_prog $dir/$dlname \$dldir/$dlname~
15303       chmod a+x \$dldir/$dlname~
15304       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15305         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15306       fi'
15307     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15308       dlpath=$dir/\$dldll~
15309        $RM \$dlpath'
15310     shlibpath_overrides_runpath=yes
15311
15312     case $host_os in
15313     cygwin*)
15314       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15315       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15316       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15317       ;;
15318     mingw* | cegcc*)
15319       # MinGW DLLs use traditional 'lib' prefix
15320       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15321       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15322       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15323         # It is most probably a Windows format PATH printed by
15324         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15325         # path with ; separators, and with drive letters. We can handle the
15326         # drive letters (cygwin fileutils understands them), so leave them,
15327         # especially as we might pass files found there to a mingw objdump,
15328         # which wouldn't understand a cygwinified path. Ahh.
15329         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15330       else
15331         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15332       fi
15333       ;;
15334     pw32*)
15335       # pw32 DLLs use 'pw' prefix rather than 'lib'
15336       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15337       ;;
15338     esac
15339     ;;
15340
15341   *)
15342     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15343     ;;
15344   esac
15345   dynamic_linker='Win32 ld.exe'
15346   # FIXME: first we should search . and the directory the executable is in
15347   shlibpath_var=PATH
15348   ;;
15349
15350 darwin* | rhapsody*)
15351   dynamic_linker="$host_os dyld"
15352   version_type=darwin
15353   need_lib_prefix=no
15354   need_version=no
15355   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15356   soname_spec='${libname}${release}${major}$shared_ext'
15357   shlibpath_overrides_runpath=yes
15358   shlibpath_var=DYLD_LIBRARY_PATH
15359   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15360
15361   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15362   ;;
15363
15364 dgux*)
15365   version_type=linux
15366   need_lib_prefix=no
15367   need_version=no
15368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15369   soname_spec='${libname}${release}${shared_ext}$major'
15370   shlibpath_var=LD_LIBRARY_PATH
15371   ;;
15372
15373 freebsd1*)
15374   dynamic_linker=no
15375   ;;
15376
15377 freebsd* | dragonfly*)
15378   # DragonFly does not have aout.  When/if they implement a new
15379   # versioning mechanism, adjust this.
15380   if test -x /usr/bin/objformat; then
15381     objformat=`/usr/bin/objformat`
15382   else
15383     case $host_os in
15384     freebsd[123]*) objformat=aout ;;
15385     *) objformat=elf ;;
15386     esac
15387   fi
15388   version_type=freebsd-$objformat
15389   case $version_type in
15390     freebsd-elf*)
15391       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15392       need_version=no
15393       need_lib_prefix=no
15394       ;;
15395     freebsd-*)
15396       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15397       need_version=yes
15398       ;;
15399   esac
15400   shlibpath_var=LD_LIBRARY_PATH
15401   case $host_os in
15402   freebsd2*)
15403     shlibpath_overrides_runpath=yes
15404     ;;
15405   freebsd3.[01]* | freebsdelf3.[01]*)
15406     shlibpath_overrides_runpath=yes
15407     hardcode_into_libs=yes
15408     ;;
15409   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15410   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15411     shlibpath_overrides_runpath=no
15412     hardcode_into_libs=yes
15413     ;;
15414   *) # from 4.6 on, and DragonFly
15415     shlibpath_overrides_runpath=yes
15416     hardcode_into_libs=yes
15417     ;;
15418   esac
15419   ;;
15420
15421 gnu*)
15422   version_type=linux
15423   need_lib_prefix=no
15424   need_version=no
15425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15426   soname_spec='${libname}${release}${shared_ext}$major'
15427   shlibpath_var=LD_LIBRARY_PATH
15428   hardcode_into_libs=yes
15429   ;;
15430
15431 hpux9* | hpux10* | hpux11*)
15432   # Give a soname corresponding to the major version so that dld.sl refuses to
15433   # link against other versions.
15434   version_type=sunos
15435   need_lib_prefix=no
15436   need_version=no
15437   case $host_cpu in
15438   ia64*)
15439     shrext_cmds='.so'
15440     hardcode_into_libs=yes
15441     dynamic_linker="$host_os dld.so"
15442     shlibpath_var=LD_LIBRARY_PATH
15443     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15444     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15445     soname_spec='${libname}${release}${shared_ext}$major'
15446     if test "X$HPUX_IA64_MODE" = X32; then
15447       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15448     else
15449       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15450     fi
15451     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15452     ;;
15453   hppa*64*)
15454     shrext_cmds='.sl'
15455     hardcode_into_libs=yes
15456     dynamic_linker="$host_os dld.sl"
15457     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15458     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15459     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15460     soname_spec='${libname}${release}${shared_ext}$major'
15461     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15462     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15463     ;;
15464   *)
15465     shrext_cmds='.sl'
15466     dynamic_linker="$host_os dld.sl"
15467     shlibpath_var=SHLIB_PATH
15468     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15469     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15470     soname_spec='${libname}${release}${shared_ext}$major'
15471     ;;
15472   esac
15473   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15474   postinstall_cmds='chmod 555 $lib'
15475   ;;
15476
15477 interix[3-9]*)
15478   version_type=linux
15479   need_lib_prefix=no
15480   need_version=no
15481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15482   soname_spec='${libname}${release}${shared_ext}$major'
15483   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15484   shlibpath_var=LD_LIBRARY_PATH
15485   shlibpath_overrides_runpath=no
15486   hardcode_into_libs=yes
15487   ;;
15488
15489 irix5* | irix6* | nonstopux*)
15490   case $host_os in
15491     nonstopux*) version_type=nonstopux ;;
15492     *)
15493         if test "$lt_cv_prog_gnu_ld" = yes; then
15494                 version_type=linux
15495         else
15496                 version_type=irix
15497         fi ;;
15498   esac
15499   need_lib_prefix=no
15500   need_version=no
15501   soname_spec='${libname}${release}${shared_ext}$major'
15502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15503   case $host_os in
15504   irix5* | nonstopux*)
15505     libsuff= shlibsuff=
15506     ;;
15507   *)
15508     case $LD in # libtool.m4 will add one of these switches to LD
15509     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15510       libsuff= shlibsuff= libmagic=32-bit;;
15511     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15512       libsuff=32 shlibsuff=N32 libmagic=N32;;
15513     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15514       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15515     *) libsuff= shlibsuff= libmagic=never-match;;
15516     esac
15517     ;;
15518   esac
15519   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15520   shlibpath_overrides_runpath=no
15521   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15522   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15523   hardcode_into_libs=yes
15524   ;;
15525
15526 # No shared lib support for Linux oldld, aout, or coff.
15527 linux*oldld* | linux*aout* | linux*coff*)
15528   dynamic_linker=no
15529   ;;
15530
15531 # This must be Linux ELF.
15532 linux* | k*bsd*-gnu)
15533   version_type=linux
15534   need_lib_prefix=no
15535   need_version=no
15536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15537   soname_spec='${libname}${release}${shared_ext}$major'
15538   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15539   shlibpath_var=LD_LIBRARY_PATH
15540   shlibpath_overrides_runpath=no
15541   # Some binutils ld are patched to set DT_RUNPATH
15542   save_LDFLAGS=$LDFLAGS
15543   save_libdir=$libdir
15544   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15545        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15546   cat >conftest.$ac_ext <<_ACEOF
15547 /* confdefs.h.  */
15548 _ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h.  */
15552
15553 int
15554 main ()
15555 {
15556
15557   ;
15558   return 0;
15559 }
15560 _ACEOF
15561 rm -f conftest.$ac_objext conftest$ac_exeext
15562 if { (ac_try="$ac_link"
15563 case "(($ac_try" in
15564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15565   *) ac_try_echo=$ac_try;;
15566 esac
15567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15568   (eval "$ac_link") 2>conftest.er1
15569   ac_status=$?
15570   grep -v '^ *+' conftest.er1 >conftest.err
15571   rm -f conftest.er1
15572   cat conftest.err >&5
15573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574   (exit $ac_status); } && {
15575          test -z "$ac_cxx_werror_flag" ||
15576          test ! -s conftest.err
15577        } && test -s conftest$ac_exeext &&
15578        $as_test_x conftest$ac_exeext; then
15579   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15580   shlibpath_overrides_runpath=yes
15581 fi
15582
15583 else
15584   echo "$as_me: failed program was:" >&5
15585 sed 's/^/| /' conftest.$ac_ext >&5
15586
15587
15588 fi
15589
15590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15591       conftest$ac_exeext conftest.$ac_ext
15592   LDFLAGS=$save_LDFLAGS
15593   libdir=$save_libdir
15594
15595   # This implies no fast_install, which is unacceptable.
15596   # Some rework will be needed to allow for fast_install
15597   # before this can be enabled.
15598   hardcode_into_libs=yes
15599
15600   # Append ld.so.conf contents to the search path
15601   if test -f /etc/ld.so.conf; then
15602     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' ' '`
15603     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15604   fi
15605
15606   # We used to test for /lib/ld.so.1 and disable shared libraries on
15607   # powerpc, because MkLinux only supported shared libraries with the
15608   # GNU dynamic linker.  Since this was broken with cross compilers,
15609   # most powerpc-linux boxes support dynamic linking these days and
15610   # people can always --disable-shared, the test was removed, and we
15611   # assume the GNU/Linux dynamic linker is in use.
15612   dynamic_linker='GNU/Linux ld.so'
15613   ;;
15614
15615 netbsd*)
15616   version_type=sunos
15617   need_lib_prefix=no
15618   need_version=no
15619   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15620     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15621     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15622     dynamic_linker='NetBSD (a.out) ld.so'
15623   else
15624     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15625     soname_spec='${libname}${release}${shared_ext}$major'
15626     dynamic_linker='NetBSD ld.elf_so'
15627   fi
15628   shlibpath_var=LD_LIBRARY_PATH
15629   shlibpath_overrides_runpath=yes
15630   hardcode_into_libs=yes
15631   ;;
15632
15633 newsos6)
15634   version_type=linux
15635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15636   shlibpath_var=LD_LIBRARY_PATH
15637   shlibpath_overrides_runpath=yes
15638   ;;
15639
15640 *nto* | *qnx*)
15641   version_type=qnx
15642   need_lib_prefix=no
15643   need_version=no
15644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645   soname_spec='${libname}${release}${shared_ext}$major'
15646   shlibpath_var=LD_LIBRARY_PATH
15647   shlibpath_overrides_runpath=no
15648   hardcode_into_libs=yes
15649   dynamic_linker='ldqnx.so'
15650   ;;
15651
15652 openbsd*)
15653   version_type=sunos
15654   sys_lib_dlsearch_path_spec="/usr/lib"
15655   need_lib_prefix=no
15656   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15657   case $host_os in
15658     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15659     *)                          need_version=no  ;;
15660   esac
15661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15662   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15663   shlibpath_var=LD_LIBRARY_PATH
15664   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15665     case $host_os in
15666       openbsd2.[89] | openbsd2.[89].*)
15667         shlibpath_overrides_runpath=no
15668         ;;
15669       *)
15670         shlibpath_overrides_runpath=yes
15671         ;;
15672       esac
15673   else
15674     shlibpath_overrides_runpath=yes
15675   fi
15676   ;;
15677
15678 os2*)
15679   libname_spec='$name'
15680   shrext_cmds=".dll"
15681   need_lib_prefix=no
15682   library_names_spec='$libname${shared_ext} $libname.a'
15683   dynamic_linker='OS/2 ld.exe'
15684   shlibpath_var=LIBPATH
15685   ;;
15686
15687 osf3* | osf4* | osf5*)
15688   version_type=osf
15689   need_lib_prefix=no
15690   need_version=no
15691   soname_spec='${libname}${release}${shared_ext}$major'
15692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15693   shlibpath_var=LD_LIBRARY_PATH
15694   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15695   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15696   ;;
15697
15698 rdos*)
15699   dynamic_linker=no
15700   ;;
15701
15702 solaris*)
15703   version_type=linux
15704   need_lib_prefix=no
15705   need_version=no
15706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15707   soname_spec='${libname}${release}${shared_ext}$major'
15708   shlibpath_var=LD_LIBRARY_PATH
15709   shlibpath_overrides_runpath=yes
15710   hardcode_into_libs=yes
15711   # ldd complains unless libraries are executable
15712   postinstall_cmds='chmod +x $lib'
15713   ;;
15714
15715 sunos4*)
15716   version_type=sunos
15717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15718   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15719   shlibpath_var=LD_LIBRARY_PATH
15720   shlibpath_overrides_runpath=yes
15721   if test "$with_gnu_ld" = yes; then
15722     need_lib_prefix=no
15723   fi
15724   need_version=yes
15725   ;;
15726
15727 sysv4 | sysv4.3*)
15728   version_type=linux
15729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15730   soname_spec='${libname}${release}${shared_ext}$major'
15731   shlibpath_var=LD_LIBRARY_PATH
15732   case $host_vendor in
15733     sni)
15734       shlibpath_overrides_runpath=no
15735       need_lib_prefix=no
15736       runpath_var=LD_RUN_PATH
15737       ;;
15738     siemens)
15739       need_lib_prefix=no
15740       ;;
15741     motorola)
15742       need_lib_prefix=no
15743       need_version=no
15744       shlibpath_overrides_runpath=no
15745       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15746       ;;
15747   esac
15748   ;;
15749
15750 sysv4*MP*)
15751   if test -d /usr/nec ;then
15752     version_type=linux
15753     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15754     soname_spec='$libname${shared_ext}.$major'
15755     shlibpath_var=LD_LIBRARY_PATH
15756   fi
15757   ;;
15758
15759 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15760   version_type=freebsd-elf
15761   need_lib_prefix=no
15762   need_version=no
15763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15764   soname_spec='${libname}${release}${shared_ext}$major'
15765   shlibpath_var=LD_LIBRARY_PATH
15766   shlibpath_overrides_runpath=yes
15767   hardcode_into_libs=yes
15768   if test "$with_gnu_ld" = yes; then
15769     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15770   else
15771     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15772     case $host_os in
15773       sco3.2v5*)
15774         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15775         ;;
15776     esac
15777   fi
15778   sys_lib_dlsearch_path_spec='/usr/lib'
15779   ;;
15780
15781 tpf*)
15782   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15783   version_type=linux
15784   need_lib_prefix=no
15785   need_version=no
15786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15787   shlibpath_var=LD_LIBRARY_PATH
15788   shlibpath_overrides_runpath=no
15789   hardcode_into_libs=yes
15790   ;;
15791
15792 uts4*)
15793   version_type=linux
15794   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15795   soname_spec='${libname}${release}${shared_ext}$major'
15796   shlibpath_var=LD_LIBRARY_PATH
15797   ;;
15798
15799 *)
15800   dynamic_linker=no
15801   ;;
15802 esac
15803 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15804 echo "${ECHO_T}$dynamic_linker" >&6; }
15805 test "$dynamic_linker" = no && can_build_shared=no
15806
15807 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15808 if test "$GCC" = yes; then
15809   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15810 fi
15811
15812 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15813   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15814 fi
15815 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15816   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15817 fi
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15855 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15856 hardcode_action_CXX=
15857 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15858    test -n "$runpath_var_CXX" ||
15859    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15860
15861   # We can hardcode non-existent directories.
15862   if test "$hardcode_direct_CXX" != no &&
15863      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15864      # have to relink, otherwise we might link with an installed library
15865      # when we should be linking with a yet-to-be-installed one
15866      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15867      test "$hardcode_minus_L_CXX" != no; then
15868     # Linking always hardcodes the temporary library directory.
15869     hardcode_action_CXX=relink
15870   else
15871     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15872     hardcode_action_CXX=immediate
15873   fi
15874 else
15875   # We cannot hardcode anything, or else we can only hardcode existing
15876   # directories.
15877   hardcode_action_CXX=unsupported
15878 fi
15879 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15880 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15881
15882 if test "$hardcode_action_CXX" = relink ||
15883    test "$inherit_rpath_CXX" = yes; then
15884   # Fast installation is not supported
15885   enable_fast_install=no
15886 elif test "$shlibpath_overrides_runpath" = yes ||
15887      test "$enable_shared" = no; then
15888   # Fast installation is not necessary
15889   enable_fast_install=needless
15890 fi
15891
15892
15893
15894
15895
15896
15897
15898   fi # test -n "$compiler"
15899
15900   CC=$lt_save_CC
15901   LDCXX=$LD
15902   LD=$lt_save_LD
15903   GCC=$lt_save_GCC
15904   with_gnu_ld=$lt_save_with_gnu_ld
15905   lt_cv_path_LDCXX=$lt_cv_path_LD
15906   lt_cv_path_LD=$lt_save_path_LD
15907   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15908   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15909 fi # test "$_lt_caught_CXX_error" != yes
15910
15911 ac_ext=cpp
15912 ac_cpp='$CXXCPP $CPPFLAGS'
15913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929         ac_config_commands="$ac_config_commands libtool"
15930
15931
15932
15933
15934 # Only expand once:
15935
15936
15937
15938
15939 if test x$use_libtool != xno; then
15940    DEFAULT_OBJECT_TYPE=".lo"
15941    DEFAULT_ARCHIVE_TYPE=".la"
15942    DEFAULT_SHARED_OBJECT_TYPE=".la"
15943    LIBTOOL="\$(LIBTOOL)"
15944    LIBTOOL_INSTALL_TARGET="libtool-install"
15945    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15946    LIBTOOL_CLEAN_TARGET="libtool-clean"
15947    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15948    FD_PLUGIN_DIR="src/plugins/fd"
15949    have_plugins=yes
15950 else
15951    DEFAULT_OBJECT_TYPE=".o"
15952    DEFAULT_ARCHIVE_TYPE=".a"
15953    DEFAULT_SHARED_OBJECT_TYPE=".so"
15954    LIBTOOL="# \$(LIBTOOL)"
15955    LIBTOOL_INSTALL_TARGET=""
15956    LIBTOOL_UNINSTALL_TARGET=""
15957    LIBTOOL_CLEAN_TARGET=""
15958    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15959    FD_PLUGIN_DIR=""
15960    have_plugins=no
15961 fi
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973 # Check whether --enable-includes was given.
15974 if test "${enable_includes+set}" = set; then
15975   enableval=$enable_includes;
15976        if test x$enableval = xyes; then
15977           install_includes=yes
15978        fi
15979
15980
15981 fi
15982
15983
15984
15985 if test x$use_libtool != xno -a x$install_includes = xyes; then
15986    INCLUDE_INSTALL_TARGET="install-includes"
15987    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15988 else
15989    INCLUDE_INSTALL_TARGET=""
15990    INCLUDE_UNINSTALL_TARGET=""
15991 fi
15992
15993
15994
15995
15996 { echo "$as_me:$LINENO: checking host system type" >&5
15997 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15998 if test "${ac_cv_host+set}" = set; then
15999   echo $ECHO_N "(cached) $ECHO_C" >&6
16000 else
16001   if test "x$host_alias" = x; then
16002   ac_cv_host=$ac_cv_build
16003 else
16004   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
16005     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
16006 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
16007    { (exit 1); exit 1; }; }
16008 fi
16009
16010 fi
16011 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16012 echo "${ECHO_T}$ac_cv_host" >&6; }
16013 case $ac_cv_host in
16014 *-*-*) ;;
16015 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16016 echo "$as_me: error: invalid value of canonical host" >&2;}
16017    { (exit 1); exit 1; }; };;
16018 esac
16019 host=$ac_cv_host
16020 ac_save_IFS=$IFS; IFS='-'
16021 set x $ac_cv_host
16022 shift
16023 host_cpu=$1
16024 host_vendor=$2
16025 shift; shift
16026 # Remember, the first character of IFS is used to create $*,
16027 # except with old shells:
16028 host_os=$*
16029 IFS=$ac_save_IFS
16030 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16031
16032
16033 case $host_os in
16034   *cygwin* ) CYGWIN=yes;;
16035          * ) CYGWIN=no;;
16036 esac
16037
16038 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16039 then
16040
16041
16042 if $TRUEPRG; then
16043   HAVE_SUN_OS_TRUE=
16044   HAVE_SUN_OS_FALSE='#'
16045 else
16046   HAVE_SUN_OS_TRUE='#'
16047   HAVE_SUN_OS_FALSE=
16048 fi
16049         cat >>confdefs.h <<\_ACEOF
16050 #define HAVE_SUN_OS 1
16051 _ACEOF
16052
16053 else
16054
16055
16056 if $FALSEPRG; then
16057   HAVE_SUN_OS_TRUE=
16058   HAVE_SUN_OS_FALSE='#'
16059 else
16060   HAVE_SUN_OS_TRUE='#'
16061   HAVE_SUN_OS_FALSE=
16062 fi
16063 fi
16064
16065 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16066 then
16067
16068
16069 if $TRUEPRG; then
16070   HAVE_OSF1_OS_TRUE=
16071   HAVE_OSF1_OS_FALSE='#'
16072 else
16073   HAVE_OSF1_OS_TRUE='#'
16074   HAVE_OSF1_OS_FALSE=
16075 fi
16076         cat >>confdefs.h <<\_ACEOF
16077 #define HAVE_OSF1_OS 1
16078 _ACEOF
16079
16080 else
16081
16082
16083 if $FALSEPRG; then
16084   HAVE_OSF1_OS_TRUE=
16085   HAVE_OSF1_OS_FALSE='#'
16086 else
16087   HAVE_OSF1_OS_TRUE='#'
16088   HAVE_OSF1_OS_FALSE=
16089 fi
16090 fi
16091
16092 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16093 then
16094
16095
16096 if $TRUEPRG; then
16097   HAVE_AIX_OS_TRUE=
16098   HAVE_AIX_OS_FALSE='#'
16099 else
16100   HAVE_AIX_OS_TRUE='#'
16101   HAVE_AIX_OS_FALSE=
16102 fi
16103         cat >>confdefs.h <<\_ACEOF
16104 #define HAVE_AIX_OS 1
16105 _ACEOF
16106
16107 else
16108
16109
16110 if $FALSEPRG; then
16111   HAVE_AIX_OS_TRUE=
16112   HAVE_AIX_OS_FALSE='#'
16113 else
16114   HAVE_AIX_OS_TRUE='#'
16115   HAVE_AIX_OS_FALSE=
16116 fi
16117 fi
16118
16119 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16120 then
16121
16122
16123 if $TRUEPRG; then
16124   HAVE_HPUX_OS_TRUE=
16125   HAVE_HPUX_OS_FALSE='#'
16126 else
16127   HAVE_HPUX_OS_TRUE='#'
16128   HAVE_HPUX_OS_FALSE=
16129 fi
16130         cat >>confdefs.h <<\_ACEOF
16131 #define HAVE_HPUX_OS 1
16132 _ACEOF
16133
16134 else
16135
16136
16137 if $FALSEPRG; then
16138   HAVE_HPUX_OS_TRUE=
16139   HAVE_HPUX_OS_FALSE='#'
16140 else
16141   HAVE_HPUX_OS_TRUE='#'
16142   HAVE_HPUX_OS_FALSE=
16143 fi
16144 fi
16145
16146 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16147 then
16148
16149
16150 if $TRUEPRG; then
16151   HAVE_LINUX_OS_TRUE=
16152   HAVE_LINUX_OS_FALSE='#'
16153 else
16154   HAVE_LINUX_OS_TRUE='#'
16155   HAVE_LINUX_OS_FALSE=
16156 fi
16157         cat >>confdefs.h <<\_ACEOF
16158 #define HAVE_LINUX_OS 1
16159 _ACEOF
16160
16161 else
16162
16163
16164 if $FALSEPRG; then
16165   HAVE_LINUX_OS_TRUE=
16166   HAVE_LINUX_OS_FALSE='#'
16167 else
16168   HAVE_LINUX_OS_TRUE='#'
16169   HAVE_LINUX_OS_FALSE=
16170 fi
16171 fi
16172
16173 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16174 then
16175
16176
16177 if $TRUEPRG; then
16178   HAVE_FREEBSD_OS_TRUE=
16179   HAVE_FREEBSD_OS_FALSE='#'
16180 else
16181   HAVE_FREEBSD_OS_TRUE='#'
16182   HAVE_FREEBSD_OS_FALSE=
16183 fi
16184         cat >>confdefs.h <<\_ACEOF
16185 #define HAVE_FREEBSD_OS 1
16186 _ACEOF
16187
16188 else
16189
16190
16191 if $FALSEPRG; then
16192   HAVE_FREEBSD_OS_TRUE=
16193   HAVE_FREEBSD_OS_FALSE='#'
16194 else
16195   HAVE_FREEBSD_OS_TRUE='#'
16196   HAVE_FREEBSD_OS_FALSE=
16197 fi
16198 fi
16199
16200 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16201 then
16202
16203
16204 if $TRUEPRG; then
16205   HAVE_NETBSD_OS_TRUE=
16206   HAVE_NETBSD_OS_FALSE='#'
16207 else
16208   HAVE_NETBSD_OS_TRUE='#'
16209   HAVE_NETBSD_OS_FALSE=
16210 fi
16211         cat >>confdefs.h <<\_ACEOF
16212 #define HAVE_NETBSD_OS 1
16213 _ACEOF
16214
16215 else
16216
16217
16218 if $FALSEPRG; then
16219   HAVE_NETBSD_OS_TRUE=
16220   HAVE_NETBSD_OS_FALSE='#'
16221 else
16222   HAVE_NETBSD_OS_TRUE='#'
16223   HAVE_NETBSD_OS_FALSE=
16224 fi
16225 fi
16226
16227 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16228 then
16229
16230
16231 if $TRUEPRG; then
16232   HAVE_OPENBSD_OS_TRUE=
16233   HAVE_OPENBSD_OS_FALSE='#'
16234 else
16235   HAVE_OPENBSD_OS_TRUE='#'
16236   HAVE_OPENBSD_OS_FALSE=
16237 fi
16238         cat >>confdefs.h <<\_ACEOF
16239 #define HAVE_OPENBSD_OS 1
16240 _ACEOF
16241
16242 else
16243
16244
16245 if $FALSEPRG; then
16246   HAVE_OPENBSD_OS_TRUE=
16247   HAVE_OPENBSD_OS_FALSE='#'
16248 else
16249   HAVE_OPENBSD_OS_TRUE='#'
16250   HAVE_OPENBSD_OS_FALSE=
16251 fi
16252 fi
16253
16254 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16255 then
16256
16257
16258 if $TRUEPRG; then
16259   HAVE_BSDI_OS_TRUE=
16260   HAVE_BSDI_OS_FALSE='#'
16261 else
16262   HAVE_BSDI_OS_TRUE='#'
16263   HAVE_BSDI_OS_FALSE=
16264 fi
16265         cat >>confdefs.h <<\_ACEOF
16266 #define HAVE_BSDI_OS 1
16267 _ACEOF
16268
16269 else
16270
16271
16272 if $FALSEPRG; then
16273   HAVE_BSDI_OS_TRUE=
16274   HAVE_BSDI_OS_FALSE='#'
16275 else
16276   HAVE_BSDI_OS_TRUE='#'
16277   HAVE_BSDI_OS_FALSE=
16278 fi
16279 fi
16280
16281 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16282 then
16283
16284
16285 if $TRUEPRG; then
16286   HAVE_SGI_OS_TRUE=
16287   HAVE_SGI_OS_FALSE='#'
16288 else
16289   HAVE_SGI_OS_TRUE='#'
16290   HAVE_SGI_OS_FALSE=
16291 fi
16292         cat >>confdefs.h <<\_ACEOF
16293 #define HAVE_SGI_OS 1
16294 _ACEOF
16295
16296 else
16297
16298
16299 if $FALSEPRG; then
16300   HAVE_SGI_OS_TRUE=
16301   HAVE_SGI_OS_FALSE='#'
16302 else
16303   HAVE_SGI_OS_TRUE='#'
16304   HAVE_SGI_OS_FALSE=
16305 fi
16306 fi
16307
16308 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16309 then
16310
16311
16312 if $TRUEPRG; then
16313   HAVE_IRIX_OS_TRUE=
16314   HAVE_IRIX_OS_FALSE='#'
16315 else
16316   HAVE_IRIX_OS_TRUE='#'
16317   HAVE_IRIX_OS_FALSE=
16318 fi
16319         cat >>confdefs.h <<\_ACEOF
16320 #define HAVE_IRIX_OS 1
16321 _ACEOF
16322
16323 else
16324
16325
16326 if $FALSEPRG; then
16327   HAVE_IRIX_OS_TRUE=
16328   HAVE_IRIX_OS_FALSE='#'
16329 else
16330   HAVE_IRIX_OS_TRUE='#'
16331   HAVE_IRIX_OS_FALSE=
16332 fi
16333 fi
16334
16335 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16336 then
16337
16338
16339 if $TRUEPRG; then
16340   HAVE_DARWIN_OS_TRUE=
16341   HAVE_DARWIN_OS_FALSE='#'
16342 else
16343   HAVE_DARWIN_OS_TRUE='#'
16344   HAVE_DARWIN_OS_FALSE=
16345 fi
16346     cat >>confdefs.h <<\_ACEOF
16347 #define HAVE_DARWIN_OS 1
16348 _ACEOF
16349
16350 else
16351
16352
16353 if $FALSEPRG; then
16354   HAVE_DARWIN_OS_TRUE=
16355   HAVE_DARWIN_OS_FALSE='#'
16356 else
16357   HAVE_DARWIN_OS_TRUE='#'
16358   HAVE_DARWIN_OS_FALSE=
16359 fi
16360 fi
16361
16362
16363 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16364 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16365 if test "x$DISTNAME" != "x"
16366 then
16367         echo "distname set to $DISTNAME"
16368 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16369 then
16370         DISTNAME=alpha
16371 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16372 then
16373         DISTNAME=aix
16374 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16375 then
16376         DISTNAME=hpux
16377 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16378 then
16379         DISTNAME=solaris
16380 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16381 then
16382         DISTNAME=freebsd
16383 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16384 then
16385         DISTNAME=netbsd
16386 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16387 then
16388         DISTNAME=openbsd
16389 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16390 then
16391         DISTNAME=irix
16392 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16393 then
16394         DISTNAME=bsdi
16395 elif test -f /etc/SuSE-release
16396 then
16397         DISTNAME=suse
16398 elif test -d /etc/SuSEconfig
16399 then
16400         DISTNAME=suse5
16401 elif test -f /etc/mandrake-release
16402 then
16403         DISTNAME=mandrake
16404 elif test -f /etc/whitebox-release
16405 then
16406        DISTNAME=redhat
16407 elif test -f /etc/redhat-release
16408 then
16409         DISTNAME=redhat
16410 elif test -f /etc/gentoo-release
16411 then
16412         DISTNAME=gentoo
16413 elif test -f /etc/debian_version
16414 then
16415         DISTNAME=debian
16416 elif test -f /etc/slackware-version
16417 then
16418         DISTNAME=slackware
16419 elif test x$host_vendor = xapple
16420 then
16421     DISTNAME=osx
16422 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16423 then
16424     DISTNAME=darwin
16425 elif test -f /etc/engarde-version
16426 then
16427         DISTNAME=engarde
16428 elif test "$CYGWIN" = yes
16429 then
16430         DISTNAME=cygwin
16431         cat >>confdefs.h <<\_ACEOF
16432 #define HAVE_CYGWIN 1
16433 _ACEOF
16434
16435 else
16436         DISTNAME=unknown
16437 fi
16438 { echo "$as_me:$LINENO: result: done" >&5
16439 echo "${ECHO_T}done" >&6; }
16440
16441
16442 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16443 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16444 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16445 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16446   echo $ECHO_N "(cached) $ECHO_C" >&6
16447 else
16448   cat >conftest.make <<\_ACEOF
16449 SHELL = /bin/sh
16450 all:
16451         @echo '@@@%%%=$(MAKE)=@@@%%%'
16452 _ACEOF
16453 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16454 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16455   *@@@%%%=?*=@@@%%%*)
16456     eval ac_cv_prog_make_${ac_make}_set=yes;;
16457   *)
16458     eval ac_cv_prog_make_${ac_make}_set=no;;
16459 esac
16460 rm -f conftest.make
16461 fi
16462 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16463   { echo "$as_me:$LINENO: result: yes" >&5
16464 echo "${ECHO_T}yes" >&6; }
16465   SET_MAKE=
16466 else
16467   { echo "$as_me:$LINENO: result: no" >&5
16468 echo "${ECHO_T}no" >&6; }
16469   SET_MAKE="MAKE=${MAKE-make}"
16470 fi
16471
16472
16473
16474         MKINSTALLDIRS=
16475   if test -n "$ac_aux_dir"; then
16476     case "$ac_aux_dir" in
16477       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16478       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16479     esac
16480   fi
16481   if test -z "$MKINSTALLDIRS"; then
16482     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16483   fi
16484
16485
16486
16487   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16488 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16489     # Check whether --enable-nls was given.
16490 if test "${enable_nls+set}" = set; then
16491   enableval=$enable_nls; USE_NLS=$enableval
16492 else
16493   USE_NLS=yes
16494 fi
16495
16496   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16497 echo "${ECHO_T}$USE_NLS" >&6; }
16498
16499
16500
16501
16502
16503
16504 # Prepare PATH_SEPARATOR.
16505 # The user is always right.
16506 if test "${PATH_SEPARATOR+set}" != set; then
16507   echo "#! /bin/sh" >conf$$.sh
16508   echo  "exit 0"   >>conf$$.sh
16509   chmod +x conf$$.sh
16510   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16511     PATH_SEPARATOR=';'
16512   else
16513     PATH_SEPARATOR=:
16514   fi
16515   rm -f conf$$.sh
16516 fi
16517
16518 # Find out how to test for executable files. Don't use a zero-byte file,
16519 # as systems may use methods other than mode bits to determine executability.
16520 cat >conf$$.file <<_ASEOF
16521 #! /bin/sh
16522 exit 0
16523 _ASEOF
16524 chmod +x conf$$.file
16525 if test -x conf$$.file >/dev/null 2>&1; then
16526   ac_executable_p="test -x"
16527 else
16528   ac_executable_p="test -f"
16529 fi
16530 rm -f conf$$.file
16531
16532 # Extract the first word of "msgfmt", so it can be a program name with args.
16533 set dummy msgfmt; ac_word=$2
16534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16536 if test "${ac_cv_path_MSGFMT+set}" = set; then
16537   echo $ECHO_N "(cached) $ECHO_C" >&6
16538 else
16539   case "$MSGFMT" in
16540   [\\/]* | ?:[\\/]*)
16541     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16542     ;;
16543   *)
16544     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16545     for ac_dir in $PATH; do
16546       IFS="$ac_save_IFS"
16547       test -z "$ac_dir" && ac_dir=.
16548       for ac_exec_ext in '' $ac_executable_extensions; do
16549         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16550           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16551           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16552      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16553             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16554             break 2
16555           fi
16556         fi
16557       done
16558     done
16559     IFS="$ac_save_IFS"
16560   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16561     ;;
16562 esac
16563 fi
16564 MSGFMT="$ac_cv_path_MSGFMT"
16565 if test "$MSGFMT" != ":"; then
16566   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16567 echo "${ECHO_T}$MSGFMT" >&6; }
16568 else
16569   { echo "$as_me:$LINENO: result: no" >&5
16570 echo "${ECHO_T}no" >&6; }
16571 fi
16572
16573   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16574 set dummy gmsgfmt; ac_word=$2
16575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16577 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16578   echo $ECHO_N "(cached) $ECHO_C" >&6
16579 else
16580   case $GMSGFMT in
16581   [\\/]* | ?:[\\/]*)
16582   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16583   ;;
16584   *)
16585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16586 for as_dir in $PATH
16587 do
16588   IFS=$as_save_IFS
16589   test -z "$as_dir" && as_dir=.
16590   for ac_exec_ext in '' $ac_executable_extensions; do
16591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16592     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16594     break 2
16595   fi
16596 done
16597 done
16598 IFS=$as_save_IFS
16599
16600   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16601   ;;
16602 esac
16603 fi
16604 GMSGFMT=$ac_cv_path_GMSGFMT
16605 if test -n "$GMSGFMT"; then
16606   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16607 echo "${ECHO_T}$GMSGFMT" >&6; }
16608 else
16609   { echo "$as_me:$LINENO: result: no" >&5
16610 echo "${ECHO_T}no" >&6; }
16611 fi
16612
16613
16614
16615
16616 # Prepare PATH_SEPARATOR.
16617 # The user is always right.
16618 if test "${PATH_SEPARATOR+set}" != set; then
16619   echo "#! /bin/sh" >conf$$.sh
16620   echo  "exit 0"   >>conf$$.sh
16621   chmod +x conf$$.sh
16622   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16623     PATH_SEPARATOR=';'
16624   else
16625     PATH_SEPARATOR=:
16626   fi
16627   rm -f conf$$.sh
16628 fi
16629
16630 # Find out how to test for executable files. Don't use a zero-byte file,
16631 # as systems may use methods other than mode bits to determine executability.
16632 cat >conf$$.file <<_ASEOF
16633 #! /bin/sh
16634 exit 0
16635 _ASEOF
16636 chmod +x conf$$.file
16637 if test -x conf$$.file >/dev/null 2>&1; then
16638   ac_executable_p="test -x"
16639 else
16640   ac_executable_p="test -f"
16641 fi
16642 rm -f conf$$.file
16643
16644 # Extract the first word of "xgettext", so it can be a program name with args.
16645 set dummy xgettext; ac_word=$2
16646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16648 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16649   echo $ECHO_N "(cached) $ECHO_C" >&6
16650 else
16651   case "$XGETTEXT" in
16652   [\\/]* | ?:[\\/]*)
16653     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16654     ;;
16655   *)
16656     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16657     for ac_dir in $PATH; do
16658       IFS="$ac_save_IFS"
16659       test -z "$ac_dir" && ac_dir=.
16660       for ac_exec_ext in '' $ac_executable_extensions; do
16661         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16662           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16663           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16664      (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
16665             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16666             break 2
16667           fi
16668         fi
16669       done
16670     done
16671     IFS="$ac_save_IFS"
16672   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16673     ;;
16674 esac
16675 fi
16676 XGETTEXT="$ac_cv_path_XGETTEXT"
16677 if test "$XGETTEXT" != ":"; then
16678   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16679 echo "${ECHO_T}$XGETTEXT" >&6; }
16680 else
16681   { echo "$as_me:$LINENO: result: no" >&5
16682 echo "${ECHO_T}no" >&6; }
16683 fi
16684
16685     rm -f messages.po
16686
16687
16688 # Prepare PATH_SEPARATOR.
16689 # The user is always right.
16690 if test "${PATH_SEPARATOR+set}" != set; then
16691   echo "#! /bin/sh" >conf$$.sh
16692   echo  "exit 0"   >>conf$$.sh
16693   chmod +x conf$$.sh
16694   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16695     PATH_SEPARATOR=';'
16696   else
16697     PATH_SEPARATOR=:
16698   fi
16699   rm -f conf$$.sh
16700 fi
16701
16702 # Find out how to test for executable files. Don't use a zero-byte file,
16703 # as systems may use methods other than mode bits to determine executability.
16704 cat >conf$$.file <<_ASEOF
16705 #! /bin/sh
16706 exit 0
16707 _ASEOF
16708 chmod +x conf$$.file
16709 if test -x conf$$.file >/dev/null 2>&1; then
16710   ac_executable_p="test -x"
16711 else
16712   ac_executable_p="test -f"
16713 fi
16714 rm -f conf$$.file
16715
16716 # Extract the first word of "msgmerge", so it can be a program name with args.
16717 set dummy msgmerge; ac_word=$2
16718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16720 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16721   echo $ECHO_N "(cached) $ECHO_C" >&6
16722 else
16723   case "$MSGMERGE" in
16724   [\\/]* | ?:[\\/]*)
16725     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16726     ;;
16727   *)
16728     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16729     for ac_dir in $PATH; do
16730       IFS="$ac_save_IFS"
16731       test -z "$ac_dir" && ac_dir=.
16732       for ac_exec_ext in '' $ac_executable_extensions; do
16733         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16734           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16735           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16736             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16737             break 2
16738           fi
16739         fi
16740       done
16741     done
16742     IFS="$ac_save_IFS"
16743   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16744     ;;
16745 esac
16746 fi
16747 MSGMERGE="$ac_cv_path_MSGMERGE"
16748 if test "$MSGMERGE" != ":"; then
16749   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16750 echo "${ECHO_T}$MSGMERGE" >&6; }
16751 else
16752   { echo "$as_me:$LINENO: result: no" >&5
16753 echo "${ECHO_T}no" >&6; }
16754 fi
16755
16756
16757       if test "$GMSGFMT" != ":"; then
16758             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16759        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16760       : ;
16761     else
16762       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16763       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16764 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16765       GMSGFMT=":"
16766     fi
16767   fi
16768
16769       if test "$XGETTEXT" != ":"; then
16770             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16771        (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
16772       : ;
16773     else
16774       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16775 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16776       XGETTEXT=":"
16777     fi
16778         rm -f messages.po
16779   fi
16780
16781   ac_config_commands="$ac_config_commands default-1"
16782
16783
16784
16785       if test "X$prefix" = "XNONE"; then
16786     acl_final_prefix="$ac_default_prefix"
16787   else
16788     acl_final_prefix="$prefix"
16789   fi
16790   if test "X$exec_prefix" = "XNONE"; then
16791     acl_final_exec_prefix='${prefix}'
16792   else
16793     acl_final_exec_prefix="$exec_prefix"
16794   fi
16795   acl_save_prefix="$prefix"
16796   prefix="$acl_final_prefix"
16797   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16798   prefix="$acl_save_prefix"
16799
16800
16801 # Check whether --with-gnu-ld was given.
16802 if test "${with_gnu_ld+set}" = set; then
16803   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16804 else
16805   with_gnu_ld=no
16806 fi
16807
16808 # Prepare PATH_SEPARATOR.
16809 # The user is always right.
16810 if test "${PATH_SEPARATOR+set}" != set; then
16811   echo "#! /bin/sh" >conf$$.sh
16812   echo  "exit 0"   >>conf$$.sh
16813   chmod +x conf$$.sh
16814   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16815     PATH_SEPARATOR=';'
16816   else
16817     PATH_SEPARATOR=:
16818   fi
16819   rm -f conf$$.sh
16820 fi
16821 ac_prog=ld
16822 if test "$GCC" = yes; then
16823   # Check if gcc -print-prog-name=ld gives a path.
16824   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16825 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16826   case $host in
16827   *-*-mingw*)
16828     # gcc leaves a trailing carriage return which upsets mingw
16829     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16830   *)
16831     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16832   esac
16833   case $ac_prog in
16834     # Accept absolute paths.
16835     [\\/]* | [A-Za-z]:[\\/]*)
16836       re_direlt='/[^/][^/]*/\.\./'
16837       # Canonicalize the path of ld
16838       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16839       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16840         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16841       done
16842       test -z "$LD" && LD="$ac_prog"
16843       ;;
16844   "")
16845     # If it fails, then pretend we aren't using GCC.
16846     ac_prog=ld
16847     ;;
16848   *)
16849     # If it is relative, then search for the first ld in PATH.
16850     with_gnu_ld=unknown
16851     ;;
16852   esac
16853 elif test "$with_gnu_ld" = yes; then
16854   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16855 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16856 else
16857   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16858 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16859 fi
16860 if test "${acl_cv_path_LD+set}" = set; then
16861   echo $ECHO_N "(cached) $ECHO_C" >&6
16862 else
16863   if test -z "$LD"; then
16864   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16865   for ac_dir in $PATH; do
16866     test -z "$ac_dir" && ac_dir=.
16867     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16868       acl_cv_path_LD="$ac_dir/$ac_prog"
16869       # Check to see if the program is GNU ld.  I'd rather use --version,
16870       # but apparently some GNU ld's only accept -v.
16871       # Break only if it was the GNU/non-GNU ld that we prefer.
16872       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16873       *GNU* | *'with BFD'*)
16874         test "$with_gnu_ld" != no && break ;;
16875       *)
16876         test "$with_gnu_ld" != yes && break ;;
16877       esac
16878     fi
16879   done
16880   IFS="$ac_save_ifs"
16881 else
16882   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16883 fi
16884 fi
16885
16886 LD="$acl_cv_path_LD"
16887 if test -n "$LD"; then
16888   { echo "$as_me:$LINENO: result: $LD" >&5
16889 echo "${ECHO_T}$LD" >&6; }
16890 else
16891   { echo "$as_me:$LINENO: result: no" >&5
16892 echo "${ECHO_T}no" >&6; }
16893 fi
16894 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16895 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16896    { (exit 1); exit 1; }; }
16897 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16898 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16899 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16900   echo $ECHO_N "(cached) $ECHO_C" >&6
16901 else
16902   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16903 case `$LD -v 2>&1 </dev/null` in
16904 *GNU* | *'with BFD'*)
16905   acl_cv_prog_gnu_ld=yes ;;
16906 *)
16907   acl_cv_prog_gnu_ld=no ;;
16908 esac
16909 fi
16910 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16911 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16912 with_gnu_ld=$acl_cv_prog_gnu_ld
16913
16914
16915
16916
16917                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16918 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16919 if test "${acl_cv_rpath+set}" = set; then
16920   echo $ECHO_N "(cached) $ECHO_C" >&6
16921 else
16922
16923     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16924     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16925     . ./conftest.sh
16926     rm -f ./conftest.sh
16927     acl_cv_rpath=done
16928
16929 fi
16930 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16931 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16932   wl="$acl_cv_wl"
16933   libext="$acl_cv_libext"
16934   shlibext="$acl_cv_shlibext"
16935   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16936   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16937   hardcode_direct="$acl_cv_hardcode_direct"
16938   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16939     # Check whether --enable-rpath was given.
16940 if test "${enable_rpath+set}" = set; then
16941   enableval=$enable_rpath; :
16942 else
16943   enable_rpath=yes
16944 fi
16945
16946
16947
16948
16949
16950
16951
16952
16953     use_additional=yes
16954
16955   acl_save_prefix="$prefix"
16956   prefix="$acl_final_prefix"
16957   acl_save_exec_prefix="$exec_prefix"
16958   exec_prefix="$acl_final_exec_prefix"
16959
16960     eval additional_includedir=\"$includedir\"
16961     eval additional_libdir=\"$libdir\"
16962
16963   exec_prefix="$acl_save_exec_prefix"
16964   prefix="$acl_save_prefix"
16965
16966
16967 # Check whether --with-libiconv-prefix was given.
16968 if test "${with_libiconv_prefix+set}" = set; then
16969   withval=$with_libiconv_prefix;
16970     if test "X$withval" = "Xno"; then
16971       use_additional=no
16972     else
16973       if test "X$withval" = "X"; then
16974
16975   acl_save_prefix="$prefix"
16976   prefix="$acl_final_prefix"
16977   acl_save_exec_prefix="$exec_prefix"
16978   exec_prefix="$acl_final_exec_prefix"
16979
16980           eval additional_includedir=\"$includedir\"
16981           eval additional_libdir=\"$libdir\"
16982
16983   exec_prefix="$acl_save_exec_prefix"
16984   prefix="$acl_save_prefix"
16985
16986       else
16987         additional_includedir="$withval/include"
16988         additional_libdir="$withval/lib"
16989       fi
16990     fi
16991
16992 fi
16993
16994       LIBICONV=
16995   LTLIBICONV=
16996   INCICONV=
16997   rpathdirs=
16998   ltrpathdirs=
16999   names_already_handled=
17000   names_next_round='iconv '
17001   while test -n "$names_next_round"; do
17002     names_this_round="$names_next_round"
17003     names_next_round=
17004     for name in $names_this_round; do
17005       already_handled=
17006       for n in $names_already_handled; do
17007         if test "$n" = "$name"; then
17008           already_handled=yes
17009           break
17010         fi
17011       done
17012       if test -z "$already_handled"; then
17013         names_already_handled="$names_already_handled $name"
17014                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17015         eval value=\"\$HAVE_LIB$uppername\"
17016         if test -n "$value"; then
17017           if test "$value" = yes; then
17018             eval value=\"\$LIB$uppername\"
17019             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17020             eval value=\"\$LTLIB$uppername\"
17021             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17022           else
17023                                     :
17024           fi
17025         else
17026                               found_dir=
17027           found_la=
17028           found_so=
17029           found_a=
17030           if test $use_additional = yes; then
17031             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17032               found_dir="$additional_libdir"
17033               found_so="$additional_libdir/lib$name.$shlibext"
17034               if test -f "$additional_libdir/lib$name.la"; then
17035                 found_la="$additional_libdir/lib$name.la"
17036               fi
17037             else
17038               if test -f "$additional_libdir/lib$name.$libext"; then
17039                 found_dir="$additional_libdir"
17040                 found_a="$additional_libdir/lib$name.$libext"
17041                 if test -f "$additional_libdir/lib$name.la"; then
17042                   found_la="$additional_libdir/lib$name.la"
17043                 fi
17044               fi
17045             fi
17046           fi
17047           if test "X$found_dir" = "X"; then
17048             for x in $LDFLAGS $LTLIBICONV; do
17049
17050   acl_save_prefix="$prefix"
17051   prefix="$acl_final_prefix"
17052   acl_save_exec_prefix="$exec_prefix"
17053   exec_prefix="$acl_final_exec_prefix"
17054   eval x=\"$x\"
17055   exec_prefix="$acl_save_exec_prefix"
17056   prefix="$acl_save_prefix"
17057
17058               case "$x" in
17059                 -L*)
17060                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17061                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17062                     found_dir="$dir"
17063                     found_so="$dir/lib$name.$shlibext"
17064                     if test -f "$dir/lib$name.la"; then
17065                       found_la="$dir/lib$name.la"
17066                     fi
17067                   else
17068                     if test -f "$dir/lib$name.$libext"; then
17069                       found_dir="$dir"
17070                       found_a="$dir/lib$name.$libext"
17071                       if test -f "$dir/lib$name.la"; then
17072                         found_la="$dir/lib$name.la"
17073                       fi
17074                     fi
17075                   fi
17076                   ;;
17077               esac
17078               if test "X$found_dir" != "X"; then
17079                 break
17080               fi
17081             done
17082           fi
17083           if test "X$found_dir" != "X"; then
17084                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17085             if test "X$found_so" != "X"; then
17086                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17087                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17088               else
17089                                                                                 haveit=
17090                 for x in $ltrpathdirs; do
17091                   if test "X$x" = "X$found_dir"; then
17092                     haveit=yes
17093                     break
17094                   fi
17095                 done
17096                 if test -z "$haveit"; then
17097                   ltrpathdirs="$ltrpathdirs $found_dir"
17098                 fi
17099                                 if test "$hardcode_direct" = yes; then
17100                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17101                 else
17102                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17103                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17104                                                             haveit=
17105                     for x in $rpathdirs; do
17106                       if test "X$x" = "X$found_dir"; then
17107                         haveit=yes
17108                         break
17109                       fi
17110                     done
17111                     if test -z "$haveit"; then
17112                       rpathdirs="$rpathdirs $found_dir"
17113                     fi
17114                   else
17115                                                                                 haveit=
17116                     for x in $LDFLAGS $LIBICONV; do
17117
17118   acl_save_prefix="$prefix"
17119   prefix="$acl_final_prefix"
17120   acl_save_exec_prefix="$exec_prefix"
17121   exec_prefix="$acl_final_exec_prefix"
17122   eval x=\"$x\"
17123   exec_prefix="$acl_save_exec_prefix"
17124   prefix="$acl_save_prefix"
17125
17126                       if test "X$x" = "X-L$found_dir"; then
17127                         haveit=yes
17128                         break
17129                       fi
17130                     done
17131                     if test -z "$haveit"; then
17132                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17133                     fi
17134                     if test "$hardcode_minus_L" != no; then
17135                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17136                     else
17137                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17138                     fi
17139                   fi
17140                 fi
17141               fi
17142             else
17143               if test "X$found_a" != "X"; then
17144                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17145               else
17146                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17147               fi
17148             fi
17149                         additional_includedir=
17150             case "$found_dir" in
17151               */lib | */lib/)
17152                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17153                 additional_includedir="$basedir/include"
17154                 ;;
17155             esac
17156             if test "X$additional_includedir" != "X"; then
17157                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17158                 haveit=
17159                 if test "X$additional_includedir" = "X/usr/local/include"; then
17160                   if test -n "$GCC"; then
17161                     case $host_os in
17162                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17163                     esac
17164                   fi
17165                 fi
17166                 if test -z "$haveit"; then
17167                   for x in $CPPFLAGS $INCICONV; do
17168
17169   acl_save_prefix="$prefix"
17170   prefix="$acl_final_prefix"
17171   acl_save_exec_prefix="$exec_prefix"
17172   exec_prefix="$acl_final_exec_prefix"
17173   eval x=\"$x\"
17174   exec_prefix="$acl_save_exec_prefix"
17175   prefix="$acl_save_prefix"
17176
17177                     if test "X$x" = "X-I$additional_includedir"; then
17178                       haveit=yes
17179                       break
17180                     fi
17181                   done
17182                   if test -z "$haveit"; then
17183                     if test -d "$additional_includedir"; then
17184                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17185                     fi
17186                   fi
17187                 fi
17188               fi
17189             fi
17190                         if test -n "$found_la"; then
17191                                                         save_libdir="$libdir"
17192               case "$found_la" in
17193                 */* | *\\*) . "$found_la" ;;
17194                 *) . "./$found_la" ;;
17195               esac
17196               libdir="$save_libdir"
17197                             for dep in $dependency_libs; do
17198                 case "$dep" in
17199                   -L*)
17200                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17201                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17202                       haveit=
17203                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17204                         if test -n "$GCC"; then
17205                           case $host_os in
17206                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17207                           esac
17208                         fi
17209                       fi
17210                       if test -z "$haveit"; then
17211                         haveit=
17212                         for x in $LDFLAGS $LIBICONV; do
17213
17214   acl_save_prefix="$prefix"
17215   prefix="$acl_final_prefix"
17216   acl_save_exec_prefix="$exec_prefix"
17217   exec_prefix="$acl_final_exec_prefix"
17218   eval x=\"$x\"
17219   exec_prefix="$acl_save_exec_prefix"
17220   prefix="$acl_save_prefix"
17221
17222                           if test "X$x" = "X-L$additional_libdir"; then
17223                             haveit=yes
17224                             break
17225                           fi
17226                         done
17227                         if test -z "$haveit"; then
17228                           if test -d "$additional_libdir"; then
17229                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17230                           fi
17231                         fi
17232                         haveit=
17233                         for x in $LDFLAGS $LTLIBICONV; do
17234
17235   acl_save_prefix="$prefix"
17236   prefix="$acl_final_prefix"
17237   acl_save_exec_prefix="$exec_prefix"
17238   exec_prefix="$acl_final_exec_prefix"
17239   eval x=\"$x\"
17240   exec_prefix="$acl_save_exec_prefix"
17241   prefix="$acl_save_prefix"
17242
17243                           if test "X$x" = "X-L$additional_libdir"; then
17244                             haveit=yes
17245                             break
17246                           fi
17247                         done
17248                         if test -z "$haveit"; then
17249                           if test -d "$additional_libdir"; then
17250                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17251                           fi
17252                         fi
17253                       fi
17254                     fi
17255                     ;;
17256                   -R*)
17257                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17258                     if test "$enable_rpath" != no; then
17259                                                                   haveit=
17260                       for x in $rpathdirs; do
17261                         if test "X$x" = "X$dir"; then
17262                           haveit=yes
17263                           break
17264                         fi
17265                       done
17266                       if test -z "$haveit"; then
17267                         rpathdirs="$rpathdirs $dir"
17268                       fi
17269                                                                   haveit=
17270                       for x in $ltrpathdirs; do
17271                         if test "X$x" = "X$dir"; then
17272                           haveit=yes
17273                           break
17274                         fi
17275                       done
17276                       if test -z "$haveit"; then
17277                         ltrpathdirs="$ltrpathdirs $dir"
17278                       fi
17279                     fi
17280                     ;;
17281                   -l*)
17282                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17283                     ;;
17284                   *.la)
17285                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17286                     ;;
17287                   *)
17288                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17289                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17290                     ;;
17291                 esac
17292               done
17293             fi
17294           else
17295                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17296             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17297           fi
17298         fi
17299       fi
17300     done
17301   done
17302   if test "X$rpathdirs" != "X"; then
17303     if test -n "$hardcode_libdir_separator"; then
17304                         alldirs=
17305       for found_dir in $rpathdirs; do
17306         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17307       done
17308             acl_save_libdir="$libdir"
17309       libdir="$alldirs"
17310       eval flag=\"$hardcode_libdir_flag_spec\"
17311       libdir="$acl_save_libdir"
17312       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17313     else
17314             for found_dir in $rpathdirs; do
17315         acl_save_libdir="$libdir"
17316         libdir="$found_dir"
17317         eval flag=\"$hardcode_libdir_flag_spec\"
17318         libdir="$acl_save_libdir"
17319         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17320       done
17321     fi
17322   fi
17323   if test "X$ltrpathdirs" != "X"; then
17324             for found_dir in $ltrpathdirs; do
17325       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17326     done
17327   fi
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17347 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17348 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17349   echo $ECHO_N "(cached) $ECHO_C" >&6
17350 else
17351   gt_save_CPPFLAGS="$CPPFLAGS"
17352      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17353      gt_save_LIBS="$LIBS"
17354      LIBS="$LIBS -framework CoreFoundation"
17355      cat >conftest.$ac_ext <<_ACEOF
17356 /* confdefs.h.  */
17357 _ACEOF
17358 cat confdefs.h >>conftest.$ac_ext
17359 cat >>conftest.$ac_ext <<_ACEOF
17360 /* end confdefs.h.  */
17361 #include <CFPreferences.h>
17362 int
17363 main ()
17364 {
17365 CFPreferencesCopyAppValue(NULL, NULL)
17366   ;
17367   return 0;
17368 }
17369 _ACEOF
17370 rm -f conftest.$ac_objext conftest$ac_exeext
17371 if { (ac_try="$ac_link"
17372 case "(($ac_try" in
17373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17374   *) ac_try_echo=$ac_try;;
17375 esac
17376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17377   (eval "$ac_link") 2>conftest.er1
17378   ac_status=$?
17379   grep -v '^ *+' conftest.er1 >conftest.err
17380   rm -f conftest.er1
17381   cat conftest.err >&5
17382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383   (exit $ac_status); } && {
17384          test -z "$ac_cxx_werror_flag" ||
17385          test ! -s conftest.err
17386        } && test -s conftest$ac_exeext &&
17387        $as_test_x conftest$ac_exeext; then
17388   gt_cv_func_CFPreferencesCopyAppValue=yes
17389 else
17390   echo "$as_me: failed program was:" >&5
17391 sed 's/^/| /' conftest.$ac_ext >&5
17392
17393         gt_cv_func_CFPreferencesCopyAppValue=no
17394 fi
17395
17396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17397       conftest$ac_exeext conftest.$ac_ext
17398      CPPFLAGS="$gt_save_CPPFLAGS"
17399      LIBS="$gt_save_LIBS"
17400 fi
17401 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17402 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17403   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17404
17405 cat >>confdefs.h <<\_ACEOF
17406 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17407 _ACEOF
17408
17409   fi
17410     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17411 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17412 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17413   echo $ECHO_N "(cached) $ECHO_C" >&6
17414 else
17415   gt_save_CPPFLAGS="$CPPFLAGS"
17416      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17417      gt_save_LIBS="$LIBS"
17418      LIBS="$LIBS -framework CoreFoundation"
17419      cat >conftest.$ac_ext <<_ACEOF
17420 /* confdefs.h.  */
17421 _ACEOF
17422 cat confdefs.h >>conftest.$ac_ext
17423 cat >>conftest.$ac_ext <<_ACEOF
17424 /* end confdefs.h.  */
17425 #include <CFLocale.h>
17426 int
17427 main ()
17428 {
17429 CFLocaleCopyCurrent();
17430   ;
17431   return 0;
17432 }
17433 _ACEOF
17434 rm -f conftest.$ac_objext conftest$ac_exeext
17435 if { (ac_try="$ac_link"
17436 case "(($ac_try" in
17437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438   *) ac_try_echo=$ac_try;;
17439 esac
17440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17441   (eval "$ac_link") 2>conftest.er1
17442   ac_status=$?
17443   grep -v '^ *+' conftest.er1 >conftest.err
17444   rm -f conftest.er1
17445   cat conftest.err >&5
17446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447   (exit $ac_status); } && {
17448          test -z "$ac_cxx_werror_flag" ||
17449          test ! -s conftest.err
17450        } && test -s conftest$ac_exeext &&
17451        $as_test_x conftest$ac_exeext; then
17452   gt_cv_func_CFLocaleCopyCurrent=yes
17453 else
17454   echo "$as_me: failed program was:" >&5
17455 sed 's/^/| /' conftest.$ac_ext >&5
17456
17457         gt_cv_func_CFLocaleCopyCurrent=no
17458 fi
17459
17460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17461       conftest$ac_exeext conftest.$ac_ext
17462      CPPFLAGS="$gt_save_CPPFLAGS"
17463      LIBS="$gt_save_LIBS"
17464 fi
17465 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17466 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17467   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17468
17469 cat >>confdefs.h <<\_ACEOF
17470 #define HAVE_CFLOCALECOPYCURRENT 1
17471 _ACEOF
17472
17473   fi
17474   INTL_MACOSX_LIBS=
17475   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17476     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17477   fi
17478
17479
17480
17481
17482   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17483 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17484     # Check whether --enable-nls was given.
17485 if test "${enable_nls+set}" = set; then
17486   enableval=$enable_nls; USE_NLS=$enableval
17487 else
17488   USE_NLS=yes
17489 fi
17490
17491   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17492 echo "${ECHO_T}$USE_NLS" >&6; }
17493
17494
17495
17496
17497   LIBINTL=
17498   LTLIBINTL=
17499   POSUB=
17500
17501     if test "$USE_NLS" = "yes"; then
17502     gt_use_preinstalled_gnugettext=no
17503
17504
17505
17506
17507
17508
17509         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17510 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17511 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17512   echo $ECHO_N "(cached) $ECHO_C" >&6
17513 else
17514   cat >conftest.$ac_ext <<_ACEOF
17515 /* confdefs.h.  */
17516 _ACEOF
17517 cat confdefs.h >>conftest.$ac_ext
17518 cat >>conftest.$ac_ext <<_ACEOF
17519 /* end confdefs.h.  */
17520 #include <libintl.h>
17521 extern int _nl_msg_cat_cntr;
17522 extern int *_nl_domain_bindings;
17523 int
17524 main ()
17525 {
17526 bindtextdomain ("", "");
17527 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17528   ;
17529   return 0;
17530 }
17531 _ACEOF
17532 rm -f conftest.$ac_objext conftest$ac_exeext
17533 if { (ac_try="$ac_link"
17534 case "(($ac_try" in
17535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536   *) ac_try_echo=$ac_try;;
17537 esac
17538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539   (eval "$ac_link") 2>conftest.er1
17540   ac_status=$?
17541   grep -v '^ *+' conftest.er1 >conftest.err
17542   rm -f conftest.er1
17543   cat conftest.err >&5
17544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545   (exit $ac_status); } && {
17546          test -z "$ac_cxx_werror_flag" ||
17547          test ! -s conftest.err
17548        } && test -s conftest$ac_exeext &&
17549        $as_test_x conftest$ac_exeext; then
17550   gt_cv_func_gnugettext1_libc=yes
17551 else
17552   echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17554
17555         gt_cv_func_gnugettext1_libc=no
17556 fi
17557
17558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17559       conftest$ac_exeext conftest.$ac_ext
17560 fi
17561 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17562 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17563
17564         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17565
17566
17567
17568
17569
17570           am_save_CPPFLAGS="$CPPFLAGS"
17571
17572   for element in $INCICONV; do
17573     haveit=
17574     for x in $CPPFLAGS; do
17575
17576   acl_save_prefix="$prefix"
17577   prefix="$acl_final_prefix"
17578   acl_save_exec_prefix="$exec_prefix"
17579   exec_prefix="$acl_final_exec_prefix"
17580   eval x=\"$x\"
17581   exec_prefix="$acl_save_exec_prefix"
17582   prefix="$acl_save_prefix"
17583
17584       if test "X$x" = "X$element"; then
17585         haveit=yes
17586         break
17587       fi
17588     done
17589     if test -z "$haveit"; then
17590       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17591     fi
17592   done
17593
17594
17595   { echo "$as_me:$LINENO: checking for iconv" >&5
17596 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17597 if test "${am_cv_func_iconv+set}" = set; then
17598   echo $ECHO_N "(cached) $ECHO_C" >&6
17599 else
17600
17601     am_cv_func_iconv="no, consider installing GNU libiconv"
17602     am_cv_lib_iconv=no
17603     cat >conftest.$ac_ext <<_ACEOF
17604 /* confdefs.h.  */
17605 _ACEOF
17606 cat confdefs.h >>conftest.$ac_ext
17607 cat >>conftest.$ac_ext <<_ACEOF
17608 /* end confdefs.h.  */
17609 #include <stdlib.h>
17610 #include <iconv.h>
17611 int
17612 main ()
17613 {
17614 iconv_t cd = iconv_open("","");
17615        iconv(cd,NULL,NULL,NULL,NULL);
17616        iconv_close(cd);
17617   ;
17618   return 0;
17619 }
17620 _ACEOF
17621 rm -f conftest.$ac_objext conftest$ac_exeext
17622 if { (ac_try="$ac_link"
17623 case "(($ac_try" in
17624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625   *) ac_try_echo=$ac_try;;
17626 esac
17627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628   (eval "$ac_link") 2>conftest.er1
17629   ac_status=$?
17630   grep -v '^ *+' conftest.er1 >conftest.err
17631   rm -f conftest.er1
17632   cat conftest.err >&5
17633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634   (exit $ac_status); } && {
17635          test -z "$ac_cxx_werror_flag" ||
17636          test ! -s conftest.err
17637        } && test -s conftest$ac_exeext &&
17638        $as_test_x conftest$ac_exeext; then
17639   am_cv_func_iconv=yes
17640 else
17641   echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17643
17644
17645 fi
17646
17647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17648       conftest$ac_exeext conftest.$ac_ext
17649     if test "$am_cv_func_iconv" != yes; then
17650       am_save_LIBS="$LIBS"
17651       LIBS="$LIBS $LIBICONV"
17652       cat >conftest.$ac_ext <<_ACEOF
17653 /* confdefs.h.  */
17654 _ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h.  */
17658 #include <stdlib.h>
17659 #include <iconv.h>
17660 int
17661 main ()
17662 {
17663 iconv_t cd = iconv_open("","");
17664          iconv(cd,NULL,NULL,NULL,NULL);
17665          iconv_close(cd);
17666   ;
17667   return 0;
17668 }
17669 _ACEOF
17670 rm -f conftest.$ac_objext conftest$ac_exeext
17671 if { (ac_try="$ac_link"
17672 case "(($ac_try" in
17673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674   *) ac_try_echo=$ac_try;;
17675 esac
17676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677   (eval "$ac_link") 2>conftest.er1
17678   ac_status=$?
17679   grep -v '^ *+' conftest.er1 >conftest.err
17680   rm -f conftest.er1
17681   cat conftest.err >&5
17682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683   (exit $ac_status); } && {
17684          test -z "$ac_cxx_werror_flag" ||
17685          test ! -s conftest.err
17686        } && test -s conftest$ac_exeext &&
17687        $as_test_x conftest$ac_exeext; then
17688   am_cv_lib_iconv=yes
17689         am_cv_func_iconv=yes
17690 else
17691   echo "$as_me: failed program was:" >&5
17692 sed 's/^/| /' conftest.$ac_ext >&5
17693
17694
17695 fi
17696
17697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17698       conftest$ac_exeext conftest.$ac_ext
17699       LIBS="$am_save_LIBS"
17700     fi
17701
17702 fi
17703 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17704 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17705   if test "$am_cv_func_iconv" = yes; then
17706
17707 cat >>confdefs.h <<\_ACEOF
17708 #define HAVE_ICONV 1
17709 _ACEOF
17710
17711   fi
17712   if test "$am_cv_lib_iconv" = yes; then
17713     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17714 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17715     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17716 echo "${ECHO_T}$LIBICONV" >&6; }
17717   else
17718             CPPFLAGS="$am_save_CPPFLAGS"
17719     LIBICONV=
17720     LTLIBICONV=
17721   fi
17722
17723
17724
17725
17726
17727
17728     use_additional=yes
17729
17730   acl_save_prefix="$prefix"
17731   prefix="$acl_final_prefix"
17732   acl_save_exec_prefix="$exec_prefix"
17733   exec_prefix="$acl_final_exec_prefix"
17734
17735     eval additional_includedir=\"$includedir\"
17736     eval additional_libdir=\"$libdir\"
17737
17738   exec_prefix="$acl_save_exec_prefix"
17739   prefix="$acl_save_prefix"
17740
17741
17742 # Check whether --with-libintl-prefix was given.
17743 if test "${with_libintl_prefix+set}" = set; then
17744   withval=$with_libintl_prefix;
17745     if test "X$withval" = "Xno"; then
17746       use_additional=no
17747     else
17748       if test "X$withval" = "X"; then
17749
17750   acl_save_prefix="$prefix"
17751   prefix="$acl_final_prefix"
17752   acl_save_exec_prefix="$exec_prefix"
17753   exec_prefix="$acl_final_exec_prefix"
17754
17755           eval additional_includedir=\"$includedir\"
17756           eval additional_libdir=\"$libdir\"
17757
17758   exec_prefix="$acl_save_exec_prefix"
17759   prefix="$acl_save_prefix"
17760
17761       else
17762         additional_includedir="$withval/include"
17763         additional_libdir="$withval/lib"
17764       fi
17765     fi
17766
17767 fi
17768
17769       LIBINTL=
17770   LTLIBINTL=
17771   INCINTL=
17772   rpathdirs=
17773   ltrpathdirs=
17774   names_already_handled=
17775   names_next_round='intl '
17776   while test -n "$names_next_round"; do
17777     names_this_round="$names_next_round"
17778     names_next_round=
17779     for name in $names_this_round; do
17780       already_handled=
17781       for n in $names_already_handled; do
17782         if test "$n" = "$name"; then
17783           already_handled=yes
17784           break
17785         fi
17786       done
17787       if test -z "$already_handled"; then
17788         names_already_handled="$names_already_handled $name"
17789                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17790         eval value=\"\$HAVE_LIB$uppername\"
17791         if test -n "$value"; then
17792           if test "$value" = yes; then
17793             eval value=\"\$LIB$uppername\"
17794             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17795             eval value=\"\$LTLIB$uppername\"
17796             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17797           else
17798                                     :
17799           fi
17800         else
17801                               found_dir=
17802           found_la=
17803           found_so=
17804           found_a=
17805           if test $use_additional = yes; then
17806             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17807               found_dir="$additional_libdir"
17808               found_so="$additional_libdir/lib$name.$shlibext"
17809               if test -f "$additional_libdir/lib$name.la"; then
17810                 found_la="$additional_libdir/lib$name.la"
17811               fi
17812             else
17813               if test -f "$additional_libdir/lib$name.$libext"; then
17814                 found_dir="$additional_libdir"
17815                 found_a="$additional_libdir/lib$name.$libext"
17816                 if test -f "$additional_libdir/lib$name.la"; then
17817                   found_la="$additional_libdir/lib$name.la"
17818                 fi
17819               fi
17820             fi
17821           fi
17822           if test "X$found_dir" = "X"; then
17823             for x in $LDFLAGS $LTLIBINTL; do
17824
17825   acl_save_prefix="$prefix"
17826   prefix="$acl_final_prefix"
17827   acl_save_exec_prefix="$exec_prefix"
17828   exec_prefix="$acl_final_exec_prefix"
17829   eval x=\"$x\"
17830   exec_prefix="$acl_save_exec_prefix"
17831   prefix="$acl_save_prefix"
17832
17833               case "$x" in
17834                 -L*)
17835                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17836                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17837                     found_dir="$dir"
17838                     found_so="$dir/lib$name.$shlibext"
17839                     if test -f "$dir/lib$name.la"; then
17840                       found_la="$dir/lib$name.la"
17841                     fi
17842                   else
17843                     if test -f "$dir/lib$name.$libext"; then
17844                       found_dir="$dir"
17845                       found_a="$dir/lib$name.$libext"
17846                       if test -f "$dir/lib$name.la"; then
17847                         found_la="$dir/lib$name.la"
17848                       fi
17849                     fi
17850                   fi
17851                   ;;
17852               esac
17853               if test "X$found_dir" != "X"; then
17854                 break
17855               fi
17856             done
17857           fi
17858           if test "X$found_dir" != "X"; then
17859                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17860             if test "X$found_so" != "X"; then
17861                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17862                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17863               else
17864                                                                                 haveit=
17865                 for x in $ltrpathdirs; do
17866                   if test "X$x" = "X$found_dir"; then
17867                     haveit=yes
17868                     break
17869                   fi
17870                 done
17871                 if test -z "$haveit"; then
17872                   ltrpathdirs="$ltrpathdirs $found_dir"
17873                 fi
17874                                 if test "$hardcode_direct" = yes; then
17875                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17876                 else
17877                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17878                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17879                                                             haveit=
17880                     for x in $rpathdirs; do
17881                       if test "X$x" = "X$found_dir"; then
17882                         haveit=yes
17883                         break
17884                       fi
17885                     done
17886                     if test -z "$haveit"; then
17887                       rpathdirs="$rpathdirs $found_dir"
17888                     fi
17889                   else
17890                                                                                 haveit=
17891                     for x in $LDFLAGS $LIBINTL; do
17892
17893   acl_save_prefix="$prefix"
17894   prefix="$acl_final_prefix"
17895   acl_save_exec_prefix="$exec_prefix"
17896   exec_prefix="$acl_final_exec_prefix"
17897   eval x=\"$x\"
17898   exec_prefix="$acl_save_exec_prefix"
17899   prefix="$acl_save_prefix"
17900
17901                       if test "X$x" = "X-L$found_dir"; then
17902                         haveit=yes
17903                         break
17904                       fi
17905                     done
17906                     if test -z "$haveit"; then
17907                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17908                     fi
17909                     if test "$hardcode_minus_L" != no; then
17910                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17911                     else
17912                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17913                     fi
17914                   fi
17915                 fi
17916               fi
17917             else
17918               if test "X$found_a" != "X"; then
17919                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17920               else
17921                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17922               fi
17923             fi
17924                         additional_includedir=
17925             case "$found_dir" in
17926               */lib | */lib/)
17927                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17928                 additional_includedir="$basedir/include"
17929                 ;;
17930             esac
17931             if test "X$additional_includedir" != "X"; then
17932                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17933                 haveit=
17934                 if test "X$additional_includedir" = "X/usr/local/include"; then
17935                   if test -n "$GCC"; then
17936                     case $host_os in
17937                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17938                     esac
17939                   fi
17940                 fi
17941                 if test -z "$haveit"; then
17942                   for x in $CPPFLAGS $INCINTL; do
17943
17944   acl_save_prefix="$prefix"
17945   prefix="$acl_final_prefix"
17946   acl_save_exec_prefix="$exec_prefix"
17947   exec_prefix="$acl_final_exec_prefix"
17948   eval x=\"$x\"
17949   exec_prefix="$acl_save_exec_prefix"
17950   prefix="$acl_save_prefix"
17951
17952                     if test "X$x" = "X-I$additional_includedir"; then
17953                       haveit=yes
17954                       break
17955                     fi
17956                   done
17957                   if test -z "$haveit"; then
17958                     if test -d "$additional_includedir"; then
17959                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17960                     fi
17961                   fi
17962                 fi
17963               fi
17964             fi
17965                         if test -n "$found_la"; then
17966                                                         save_libdir="$libdir"
17967               case "$found_la" in
17968                 */* | *\\*) . "$found_la" ;;
17969                 *) . "./$found_la" ;;
17970               esac
17971               libdir="$save_libdir"
17972                             for dep in $dependency_libs; do
17973                 case "$dep" in
17974                   -L*)
17975                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17976                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17977                       haveit=
17978                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17979                         if test -n "$GCC"; then
17980                           case $host_os in
17981                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17982                           esac
17983                         fi
17984                       fi
17985                       if test -z "$haveit"; then
17986                         haveit=
17987                         for x in $LDFLAGS $LIBINTL; do
17988
17989   acl_save_prefix="$prefix"
17990   prefix="$acl_final_prefix"
17991   acl_save_exec_prefix="$exec_prefix"
17992   exec_prefix="$acl_final_exec_prefix"
17993   eval x=\"$x\"
17994   exec_prefix="$acl_save_exec_prefix"
17995   prefix="$acl_save_prefix"
17996
17997                           if test "X$x" = "X-L$additional_libdir"; then
17998                             haveit=yes
17999                             break
18000                           fi
18001                         done
18002                         if test -z "$haveit"; then
18003                           if test -d "$additional_libdir"; then
18004                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18005                           fi
18006                         fi
18007                         haveit=
18008                         for x in $LDFLAGS $LTLIBINTL; do
18009
18010   acl_save_prefix="$prefix"
18011   prefix="$acl_final_prefix"
18012   acl_save_exec_prefix="$exec_prefix"
18013   exec_prefix="$acl_final_exec_prefix"
18014   eval x=\"$x\"
18015   exec_prefix="$acl_save_exec_prefix"
18016   prefix="$acl_save_prefix"
18017
18018                           if test "X$x" = "X-L$additional_libdir"; then
18019                             haveit=yes
18020                             break
18021                           fi
18022                         done
18023                         if test -z "$haveit"; then
18024                           if test -d "$additional_libdir"; then
18025                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18026                           fi
18027                         fi
18028                       fi
18029                     fi
18030                     ;;
18031                   -R*)
18032                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18033                     if test "$enable_rpath" != no; then
18034                                                                   haveit=
18035                       for x in $rpathdirs; do
18036                         if test "X$x" = "X$dir"; then
18037                           haveit=yes
18038                           break
18039                         fi
18040                       done
18041                       if test -z "$haveit"; then
18042                         rpathdirs="$rpathdirs $dir"
18043                       fi
18044                                                                   haveit=
18045                       for x in $ltrpathdirs; do
18046                         if test "X$x" = "X$dir"; then
18047                           haveit=yes
18048                           break
18049                         fi
18050                       done
18051                       if test -z "$haveit"; then
18052                         ltrpathdirs="$ltrpathdirs $dir"
18053                       fi
18054                     fi
18055                     ;;
18056                   -l*)
18057                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18058                     ;;
18059                   *.la)
18060                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18061                     ;;
18062                   *)
18063                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18064                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18065                     ;;
18066                 esac
18067               done
18068             fi
18069           else
18070                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18071             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18072           fi
18073         fi
18074       fi
18075     done
18076   done
18077   if test "X$rpathdirs" != "X"; then
18078     if test -n "$hardcode_libdir_separator"; then
18079                         alldirs=
18080       for found_dir in $rpathdirs; do
18081         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18082       done
18083             acl_save_libdir="$libdir"
18084       libdir="$alldirs"
18085       eval flag=\"$hardcode_libdir_flag_spec\"
18086       libdir="$acl_save_libdir"
18087       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18088     else
18089             for found_dir in $rpathdirs; do
18090         acl_save_libdir="$libdir"
18091         libdir="$found_dir"
18092         eval flag=\"$hardcode_libdir_flag_spec\"
18093         libdir="$acl_save_libdir"
18094         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18095       done
18096     fi
18097   fi
18098   if test "X$ltrpathdirs" != "X"; then
18099             for found_dir in $ltrpathdirs; do
18100       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18101     done
18102   fi
18103
18104           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18105 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18106 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18107   echo $ECHO_N "(cached) $ECHO_C" >&6
18108 else
18109   gt_save_CPPFLAGS="$CPPFLAGS"
18110             CPPFLAGS="$CPPFLAGS $INCINTL"
18111             gt_save_LIBS="$LIBS"
18112             LIBS="$LIBS $LIBINTL"
18113                         cat >conftest.$ac_ext <<_ACEOF
18114 /* confdefs.h.  */
18115 _ACEOF
18116 cat confdefs.h >>conftest.$ac_ext
18117 cat >>conftest.$ac_ext <<_ACEOF
18118 /* end confdefs.h.  */
18119 #include <libintl.h>
18120 extern int _nl_msg_cat_cntr;
18121 extern
18122 #ifdef __cplusplus
18123 "C"
18124 #endif
18125 const char *_nl_expand_alias (const char *);
18126 int
18127 main ()
18128 {
18129 bindtextdomain ("", "");
18130 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18131   ;
18132   return 0;
18133 }
18134 _ACEOF
18135 rm -f conftest.$ac_objext conftest$ac_exeext
18136 if { (ac_try="$ac_link"
18137 case "(($ac_try" in
18138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18139   *) ac_try_echo=$ac_try;;
18140 esac
18141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18142   (eval "$ac_link") 2>conftest.er1
18143   ac_status=$?
18144   grep -v '^ *+' conftest.er1 >conftest.err
18145   rm -f conftest.er1
18146   cat conftest.err >&5
18147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148   (exit $ac_status); } && {
18149          test -z "$ac_cxx_werror_flag" ||
18150          test ! -s conftest.err
18151        } && test -s conftest$ac_exeext &&
18152        $as_test_x conftest$ac_exeext; then
18153   gt_cv_func_gnugettext1_libintl=yes
18154 else
18155   echo "$as_me: failed program was:" >&5
18156 sed 's/^/| /' conftest.$ac_ext >&5
18157
18158         gt_cv_func_gnugettext1_libintl=no
18159 fi
18160
18161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18162       conftest$ac_exeext conftest.$ac_ext
18163                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18164               LIBS="$LIBS $LIBICONV"
18165               cat >conftest.$ac_ext <<_ACEOF
18166 /* confdefs.h.  */
18167 _ACEOF
18168 cat confdefs.h >>conftest.$ac_ext
18169 cat >>conftest.$ac_ext <<_ACEOF
18170 /* end confdefs.h.  */
18171 #include <libintl.h>
18172 extern int _nl_msg_cat_cntr;
18173 extern
18174 #ifdef __cplusplus
18175 "C"
18176 #endif
18177 const char *_nl_expand_alias (const char *);
18178 int
18179 main ()
18180 {
18181 bindtextdomain ("", "");
18182 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18183   ;
18184   return 0;
18185 }
18186 _ACEOF
18187 rm -f conftest.$ac_objext conftest$ac_exeext
18188 if { (ac_try="$ac_link"
18189 case "(($ac_try" in
18190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191   *) ac_try_echo=$ac_try;;
18192 esac
18193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194   (eval "$ac_link") 2>conftest.er1
18195   ac_status=$?
18196   grep -v '^ *+' conftest.er1 >conftest.err
18197   rm -f conftest.er1
18198   cat conftest.err >&5
18199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200   (exit $ac_status); } && {
18201          test -z "$ac_cxx_werror_flag" ||
18202          test ! -s conftest.err
18203        } && test -s conftest$ac_exeext &&
18204        $as_test_x conftest$ac_exeext; then
18205   LIBINTL="$LIBINTL $LIBICONV"
18206                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18207                 gt_cv_func_gnugettext1_libintl=yes
18208
18209 else
18210   echo "$as_me: failed program was:" >&5
18211 sed 's/^/| /' conftest.$ac_ext >&5
18212
18213
18214 fi
18215
18216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18217       conftest$ac_exeext conftest.$ac_ext
18218             fi
18219             CPPFLAGS="$gt_save_CPPFLAGS"
18220             LIBS="$gt_save_LIBS"
18221 fi
18222 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18223 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18224         fi
18225
18226                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18227            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18228                 && test "$PACKAGE" != gettext-runtime \
18229                 && test "$PACKAGE" != gettext-tools; }; then
18230           gt_use_preinstalled_gnugettext=yes
18231         else
18232                     LIBINTL=
18233           LTLIBINTL=
18234           INCINTL=
18235         fi
18236
18237
18238
18239     if test -n "$INTL_MACOSX_LIBS"; then
18240       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18241          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18242                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18243         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18244       fi
18245     fi
18246
18247     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18248        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18249
18250 cat >>confdefs.h <<\_ACEOF
18251 #define ENABLE_NLS 1
18252 _ACEOF
18253
18254     else
18255       USE_NLS=no
18256     fi
18257   fi
18258
18259   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18260 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18261   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18262 echo "${ECHO_T}$USE_NLS" >&6; }
18263   if test "$USE_NLS" = "yes"; then
18264     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18265 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18266     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18267       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18268         gt_source="external libintl"
18269       else
18270         gt_source="libc"
18271       fi
18272     else
18273       gt_source="included intl directory"
18274     fi
18275     { echo "$as_me:$LINENO: result: $gt_source" >&5
18276 echo "${ECHO_T}$gt_source" >&6; }
18277   fi
18278
18279   if test "$USE_NLS" = "yes"; then
18280
18281     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18282       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18283         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18284 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18285         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18286 echo "${ECHO_T}$LIBINTL" >&6; }
18287
18288   for element in $INCINTL; do
18289     haveit=
18290     for x in $CPPFLAGS; do
18291
18292   acl_save_prefix="$prefix"
18293   prefix="$acl_final_prefix"
18294   acl_save_exec_prefix="$exec_prefix"
18295   exec_prefix="$acl_final_exec_prefix"
18296   eval x=\"$x\"
18297   exec_prefix="$acl_save_exec_prefix"
18298   prefix="$acl_save_prefix"
18299
18300       if test "X$x" = "X$element"; then
18301         haveit=yes
18302         break
18303       fi
18304     done
18305     if test -z "$haveit"; then
18306       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18307     fi
18308   done
18309
18310       fi
18311
18312
18313 cat >>confdefs.h <<\_ACEOF
18314 #define HAVE_GETTEXT 1
18315 _ACEOF
18316
18317
18318 cat >>confdefs.h <<\_ACEOF
18319 #define HAVE_DCGETTEXT 1
18320 _ACEOF
18321
18322     fi
18323
18324         POSUB=po
18325   fi
18326
18327
18328
18329     INTLLIBS="$LIBINTL"
18330
18331
18332
18333
18334
18335
18336
18337 os_name=`uname -s 2>/dev/null`
18338 if test x${prefix} = xNONE ; then
18339    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18340       sysconfdir=/etc/bacula
18341    fi
18342
18343    if test `eval echo ${libdir}` = NONE/lib ; then
18344       case ${os_name} in
18345       Linux)
18346          os_processor=`uname -p 2>/dev/null`
18347          case ${os_processor} in
18348          x86_64)
18349             libdir=/usr/lib64
18350             ;;
18351          *)
18352             libdir=/usr/lib
18353             ;;
18354          esac
18355          ;;
18356       *)
18357          libdir=/usr/lib
18358          ;;
18359       esac
18360    fi
18361
18362    if test `eval echo ${includedir}` = NONE/include ; then
18363       includedir=/usr/include
18364    fi
18365
18366    if test `eval echo ${datarootdir}` = NONE/share ; then
18367       datarootdir=/usr/share
18368    fi
18369    prefix=
18370 fi
18371
18372 if test x${exec_prefix} = xNONE ; then
18373    exec_prefix=${prefix}
18374 fi
18375
18376 sysconfdir=`eval echo ${sysconfdir}`
18377 datarootdir=`eval echo ${datarootdir}`
18378 docdir=`eval echo ${docdir}`
18379 htmldir=`eval echo ${htmldir}`
18380 libdir=`eval echo ${libdir}`
18381 includedir=`eval echo ${includedir}`
18382 localedir=`eval echo ${datarootdir}/locale`
18383 cat >>confdefs.h <<_ACEOF
18384 #define SYSCONFDIR "$sysconfdir"
18385 _ACEOF
18386
18387 cat >>confdefs.h <<_ACEOF
18388 #define LOCALEDIR "$localedir"
18389 _ACEOF
18390
18391
18392 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18393    sbindir=${exec_prefix}/sbin
18394 fi
18395 sbindir=`eval echo ${sbindir}`
18396
18397 if test x$mandir = x'${prefix}/man' ; then
18398    mandir=/usr/share/man
18399 fi
18400
18401 if test x$htmldir = x${docdir} ; then
18402    htmldir=`eval echo ${docdir}bacula/html`
18403 fi
18404
18405 if test x$docdir = x'/usr/share/doc/' ; then
18406    docdir=`eval echo ${docdir}bacula`
18407 fi
18408
18409
18410 for ac_prog in msgfmt
18411 do
18412   # Extract the first word of "$ac_prog", so it can be a program name with args.
18413 set dummy $ac_prog; ac_word=$2
18414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18416 if test "${ac_cv_path_MSGFMT+set}" = set; then
18417   echo $ECHO_N "(cached) $ECHO_C" >&6
18418 else
18419   case $MSGFMT in
18420   [\\/]* | ?:[\\/]*)
18421   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18422   ;;
18423   *)
18424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18425 for as_dir in $PATH
18426 do
18427   IFS=$as_save_IFS
18428   test -z "$as_dir" && as_dir=.
18429   for ac_exec_ext in '' $ac_executable_extensions; do
18430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18431     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18433     break 2
18434   fi
18435 done
18436 done
18437 IFS=$as_save_IFS
18438
18439   ;;
18440 esac
18441 fi
18442 MSGFMT=$ac_cv_path_MSGFMT
18443 if test -n "$MSGFMT"; then
18444   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18445 echo "${ECHO_T}$MSGFMT" >&6; }
18446 else
18447   { echo "$as_me:$LINENO: result: no" >&5
18448 echo "${ECHO_T}no" >&6; }
18449 fi
18450
18451
18452   test -n "$MSGFMT" && break
18453 done
18454 test -n "$MSGFMT" || MSGFMT="no"
18455
18456 if test "$MSGFMT" = "no"
18457 then
18458    echo 'msgfmt program not found, disabling NLS !'
18459    USE_NLS=no
18460    USE_INCLUDED_LIBINTL=no
18461 #else
18462
18463
18464     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18465 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18466 if test "${ac_cv_gnu_library_2+set}" = set; then
18467   echo $ECHO_N "(cached) $ECHO_C" >&6
18468 else
18469   cat >conftest.$ac_ext <<_ACEOF
18470 /* confdefs.h.  */
18471 _ACEOF
18472 cat confdefs.h >>conftest.$ac_ext
18473 cat >>conftest.$ac_ext <<_ACEOF
18474 /* end confdefs.h.  */
18475
18476 #include <features.h>
18477 #ifdef __GNU_LIBRARY__
18478  #if (__GLIBC__ >= 2)
18479   Lucky GNU user
18480  #endif
18481 #endif
18482
18483 _ACEOF
18484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18485   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18486   ac_cv_gnu_library_2=yes
18487 else
18488   ac_cv_gnu_library_2=no
18489 fi
18490 rm -f conftest*
18491
18492
18493
18494 fi
18495 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18496 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18497
18498     GLIBC2="$ac_cv_gnu_library_2"
18499
18500
18501 if test -n "$ac_tool_prefix"; then
18502   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18503 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18506 if test "${ac_cv_prog_RANLIB+set}" = set; then
18507   echo $ECHO_N "(cached) $ECHO_C" >&6
18508 else
18509   if test -n "$RANLIB"; then
18510   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18511 else
18512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18513 for as_dir in $PATH
18514 do
18515   IFS=$as_save_IFS
18516   test -z "$as_dir" && as_dir=.
18517   for ac_exec_ext in '' $ac_executable_extensions; do
18518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18519     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18521     break 2
18522   fi
18523 done
18524 done
18525 IFS=$as_save_IFS
18526
18527 fi
18528 fi
18529 RANLIB=$ac_cv_prog_RANLIB
18530 if test -n "$RANLIB"; then
18531   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18532 echo "${ECHO_T}$RANLIB" >&6; }
18533 else
18534   { echo "$as_me:$LINENO: result: no" >&5
18535 echo "${ECHO_T}no" >&6; }
18536 fi
18537
18538
18539 fi
18540 if test -z "$ac_cv_prog_RANLIB"; then
18541   ac_ct_RANLIB=$RANLIB
18542   # Extract the first word of "ranlib", so it can be a program name with args.
18543 set dummy ranlib; ac_word=$2
18544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18546 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18547   echo $ECHO_N "(cached) $ECHO_C" >&6
18548 else
18549   if test -n "$ac_ct_RANLIB"; then
18550   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18551 else
18552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18553 for as_dir in $PATH
18554 do
18555   IFS=$as_save_IFS
18556   test -z "$as_dir" && as_dir=.
18557   for ac_exec_ext in '' $ac_executable_extensions; do
18558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18559     ac_cv_prog_ac_ct_RANLIB="ranlib"
18560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18561     break 2
18562   fi
18563 done
18564 done
18565 IFS=$as_save_IFS
18566
18567 fi
18568 fi
18569 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18570 if test -n "$ac_ct_RANLIB"; then
18571   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18572 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18573 else
18574   { echo "$as_me:$LINENO: result: no" >&5
18575 echo "${ECHO_T}no" >&6; }
18576 fi
18577
18578   if test "x$ac_ct_RANLIB" = x; then
18579     RANLIB=":"
18580   else
18581     case $cross_compiling:$ac_tool_warned in
18582 yes:)
18583 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18584 whose name does not start with the host triplet.  If you think this
18585 configuration is useful to you, please write to autoconf@gnu.org." >&5
18586 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18587 whose name does not start with the host triplet.  If you think this
18588 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18589 ac_tool_warned=yes ;;
18590 esac
18591     RANLIB=$ac_ct_RANLIB
18592   fi
18593 else
18594   RANLIB="$ac_cv_prog_RANLIB"
18595 fi
18596
18597
18598         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18599 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18600 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18601   echo $ECHO_N "(cached) $ECHO_C" >&6
18602 else
18603   ac_check_lib_save_LIBS=$LIBS
18604 LIBS="-lcposix  $LIBS"
18605 cat >conftest.$ac_ext <<_ACEOF
18606 /* confdefs.h.  */
18607 _ACEOF
18608 cat confdefs.h >>conftest.$ac_ext
18609 cat >>conftest.$ac_ext <<_ACEOF
18610 /* end confdefs.h.  */
18611
18612 /* Override any GCC internal prototype to avoid an error.
18613    Use char because int might match the return type of a GCC
18614    builtin and then its argument prototype would still apply.  */
18615 #ifdef __cplusplus
18616 extern "C"
18617 #endif
18618 char strerror ();
18619 int
18620 main ()
18621 {
18622 return strerror ();
18623   ;
18624   return 0;
18625 }
18626 _ACEOF
18627 rm -f conftest.$ac_objext conftest$ac_exeext
18628 if { (ac_try="$ac_link"
18629 case "(($ac_try" in
18630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18631   *) ac_try_echo=$ac_try;;
18632 esac
18633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18634   (eval "$ac_link") 2>conftest.er1
18635   ac_status=$?
18636   grep -v '^ *+' conftest.er1 >conftest.err
18637   rm -f conftest.er1
18638   cat conftest.err >&5
18639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640   (exit $ac_status); } && {
18641          test -z "$ac_cxx_werror_flag" ||
18642          test ! -s conftest.err
18643        } && test -s conftest$ac_exeext &&
18644        $as_test_x conftest$ac_exeext; then
18645   ac_cv_lib_cposix_strerror=yes
18646 else
18647   echo "$as_me: failed program was:" >&5
18648 sed 's/^/| /' conftest.$ac_ext >&5
18649
18650         ac_cv_lib_cposix_strerror=no
18651 fi
18652
18653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18654       conftest$ac_exeext conftest.$ac_ext
18655 LIBS=$ac_check_lib_save_LIBS
18656 fi
18657 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18658 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18659 if test $ac_cv_lib_cposix_strerror = yes; then
18660   LIBS="$LIBS -lcposix"
18661 fi
18662
18663
18664
18665 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18666 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18667 if test "${ac_cv_c_const+set}" = set; then
18668   echo $ECHO_N "(cached) $ECHO_C" >&6
18669 else
18670   cat >conftest.$ac_ext <<_ACEOF
18671 /* confdefs.h.  */
18672 _ACEOF
18673 cat confdefs.h >>conftest.$ac_ext
18674 cat >>conftest.$ac_ext <<_ACEOF
18675 /* end confdefs.h.  */
18676
18677 int
18678 main ()
18679 {
18680 /* FIXME: Include the comments suggested by Paul. */
18681 #ifndef __cplusplus
18682   /* Ultrix mips cc rejects this.  */
18683   typedef int charset[2];
18684   const charset cs;
18685   /* SunOS 4.1.1 cc rejects this.  */
18686   char const *const *pcpcc;
18687   char **ppc;
18688   /* NEC SVR4.0.2 mips cc rejects this.  */
18689   struct point {int x, y;};
18690   static struct point const zero = {0,0};
18691   /* AIX XL C 1.02.0.0 rejects this.
18692      It does not let you subtract one const X* pointer from another in
18693      an arm of an if-expression whose if-part is not a constant
18694      expression */
18695   const char *g = "string";
18696   pcpcc = &g + (g ? g-g : 0);
18697   /* HPUX 7.0 cc rejects these. */
18698   ++pcpcc;
18699   ppc = (char**) pcpcc;
18700   pcpcc = (char const *const *) ppc;
18701   { /* SCO 3.2v4 cc rejects this.  */
18702     char *t;
18703     char const *s = 0 ? (char *) 0 : (char const *) 0;
18704
18705     *t++ = 0;
18706     if (s) return 0;
18707   }
18708   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18709     int x[] = {25, 17};
18710     const int *foo = &x[0];
18711     ++foo;
18712   }
18713   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18714     typedef const int *iptr;
18715     iptr p = 0;
18716     ++p;
18717   }
18718   { /* AIX XL C 1.02.0.0 rejects this saying
18719        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18720     struct s { int j; const int *ap[3]; };
18721     struct s *b; b->j = 5;
18722   }
18723   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18724     const int foo = 10;
18725     if (!foo) return 0;
18726   }
18727   return !cs[0] && !zero.x;
18728 #endif
18729
18730   ;
18731   return 0;
18732 }
18733 _ACEOF
18734 rm -f conftest.$ac_objext
18735 if { (ac_try="$ac_compile"
18736 case "(($ac_try" in
18737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18738   *) ac_try_echo=$ac_try;;
18739 esac
18740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18741   (eval "$ac_compile") 2>conftest.er1
18742   ac_status=$?
18743   grep -v '^ *+' conftest.er1 >conftest.err
18744   rm -f conftest.er1
18745   cat conftest.err >&5
18746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747   (exit $ac_status); } && {
18748          test -z "$ac_cxx_werror_flag" ||
18749          test ! -s conftest.err
18750        } && test -s conftest.$ac_objext; then
18751   ac_cv_c_const=yes
18752 else
18753   echo "$as_me: failed program was:" >&5
18754 sed 's/^/| /' conftest.$ac_ext >&5
18755
18756         ac_cv_c_const=no
18757 fi
18758
18759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18760 fi
18761 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18762 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18763 if test $ac_cv_c_const = no; then
18764
18765 cat >>confdefs.h <<\_ACEOF
18766 #define const
18767 _ACEOF
18768
18769 fi
18770
18771
18772   { echo "$as_me:$LINENO: checking for signed" >&5
18773 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18774 if test "${bh_cv_c_signed+set}" = set; then
18775   echo $ECHO_N "(cached) $ECHO_C" >&6
18776 else
18777   cat >conftest.$ac_ext <<_ACEOF
18778 /* confdefs.h.  */
18779 _ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h.  */
18783
18784 int
18785 main ()
18786 {
18787 signed char x;
18788   ;
18789   return 0;
18790 }
18791 _ACEOF
18792 rm -f conftest.$ac_objext
18793 if { (ac_try="$ac_compile"
18794 case "(($ac_try" in
18795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18796   *) ac_try_echo=$ac_try;;
18797 esac
18798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799   (eval "$ac_compile") 2>conftest.er1
18800   ac_status=$?
18801   grep -v '^ *+' conftest.er1 >conftest.err
18802   rm -f conftest.er1
18803   cat conftest.err >&5
18804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805   (exit $ac_status); } && {
18806          test -z "$ac_cxx_werror_flag" ||
18807          test ! -s conftest.err
18808        } && test -s conftest.$ac_objext; then
18809   bh_cv_c_signed=yes
18810 else
18811   echo "$as_me: failed program was:" >&5
18812 sed 's/^/| /' conftest.$ac_ext >&5
18813
18814         bh_cv_c_signed=no
18815 fi
18816
18817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18818 fi
18819 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18820 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18821   if test $bh_cv_c_signed = no; then
18822
18823 cat >>confdefs.h <<\_ACEOF
18824 #define signed
18825 _ACEOF
18826
18827   fi
18828
18829 { echo "$as_me:$LINENO: checking for inline" >&5
18830 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18831 if test "${ac_cv_c_inline+set}" = set; then
18832   echo $ECHO_N "(cached) $ECHO_C" >&6
18833 else
18834   ac_cv_c_inline=no
18835 for ac_kw in inline __inline__ __inline; do
18836   cat >conftest.$ac_ext <<_ACEOF
18837 /* confdefs.h.  */
18838 _ACEOF
18839 cat confdefs.h >>conftest.$ac_ext
18840 cat >>conftest.$ac_ext <<_ACEOF
18841 /* end confdefs.h.  */
18842 #ifndef __cplusplus
18843 typedef int foo_t;
18844 static $ac_kw foo_t static_foo () {return 0; }
18845 $ac_kw foo_t foo () {return 0; }
18846 #endif
18847
18848 _ACEOF
18849 rm -f conftest.$ac_objext
18850 if { (ac_try="$ac_compile"
18851 case "(($ac_try" in
18852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853   *) ac_try_echo=$ac_try;;
18854 esac
18855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18856   (eval "$ac_compile") 2>conftest.er1
18857   ac_status=$?
18858   grep -v '^ *+' conftest.er1 >conftest.err
18859   rm -f conftest.er1
18860   cat conftest.err >&5
18861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862   (exit $ac_status); } && {
18863          test -z "$ac_cxx_werror_flag" ||
18864          test ! -s conftest.err
18865        } && test -s conftest.$ac_objext; then
18866   ac_cv_c_inline=$ac_kw
18867 else
18868   echo "$as_me: failed program was:" >&5
18869 sed 's/^/| /' conftest.$ac_ext >&5
18870
18871
18872 fi
18873
18874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18875   test "$ac_cv_c_inline" != no && break
18876 done
18877
18878 fi
18879 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18880 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18881
18882
18883 case $ac_cv_c_inline in
18884   inline | yes) ;;
18885   *)
18886     case $ac_cv_c_inline in
18887       no) ac_val=;;
18888       *) ac_val=$ac_cv_c_inline;;
18889     esac
18890     cat >>confdefs.h <<_ACEOF
18891 #ifndef __cplusplus
18892 #define inline $ac_val
18893 #endif
18894 _ACEOF
18895     ;;
18896 esac
18897
18898 { echo "$as_me:$LINENO: checking for off_t" >&5
18899 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18900 if test "${ac_cv_type_off_t+set}" = set; then
18901   echo $ECHO_N "(cached) $ECHO_C" >&6
18902 else
18903   cat >conftest.$ac_ext <<_ACEOF
18904 /* confdefs.h.  */
18905 _ACEOF
18906 cat confdefs.h >>conftest.$ac_ext
18907 cat >>conftest.$ac_ext <<_ACEOF
18908 /* end confdefs.h.  */
18909 $ac_includes_default
18910 typedef off_t ac__type_new_;
18911 int
18912 main ()
18913 {
18914 if ((ac__type_new_ *) 0)
18915   return 0;
18916 if (sizeof (ac__type_new_))
18917   return 0;
18918   ;
18919   return 0;
18920 }
18921 _ACEOF
18922 rm -f conftest.$ac_objext
18923 if { (ac_try="$ac_compile"
18924 case "(($ac_try" in
18925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18926   *) ac_try_echo=$ac_try;;
18927 esac
18928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18929   (eval "$ac_compile") 2>conftest.er1
18930   ac_status=$?
18931   grep -v '^ *+' conftest.er1 >conftest.err
18932   rm -f conftest.er1
18933   cat conftest.err >&5
18934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935   (exit $ac_status); } && {
18936          test -z "$ac_cxx_werror_flag" ||
18937          test ! -s conftest.err
18938        } && test -s conftest.$ac_objext; then
18939   ac_cv_type_off_t=yes
18940 else
18941   echo "$as_me: failed program was:" >&5
18942 sed 's/^/| /' conftest.$ac_ext >&5
18943
18944         ac_cv_type_off_t=no
18945 fi
18946
18947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18948 fi
18949 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18950 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18951 if test $ac_cv_type_off_t = yes; then
18952   :
18953 else
18954
18955 cat >>confdefs.h <<_ACEOF
18956 #define off_t long int
18957 _ACEOF
18958
18959 fi
18960
18961 { echo "$as_me:$LINENO: checking for size_t" >&5
18962 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18963 if test "${ac_cv_type_size_t+set}" = set; then
18964   echo $ECHO_N "(cached) $ECHO_C" >&6
18965 else
18966   cat >conftest.$ac_ext <<_ACEOF
18967 /* confdefs.h.  */
18968 _ACEOF
18969 cat confdefs.h >>conftest.$ac_ext
18970 cat >>conftest.$ac_ext <<_ACEOF
18971 /* end confdefs.h.  */
18972 $ac_includes_default
18973 typedef size_t ac__type_new_;
18974 int
18975 main ()
18976 {
18977 if ((ac__type_new_ *) 0)
18978   return 0;
18979 if (sizeof (ac__type_new_))
18980   return 0;
18981   ;
18982   return 0;
18983 }
18984 _ACEOF
18985 rm -f conftest.$ac_objext
18986 if { (ac_try="$ac_compile"
18987 case "(($ac_try" in
18988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18989   *) ac_try_echo=$ac_try;;
18990 esac
18991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18992   (eval "$ac_compile") 2>conftest.er1
18993   ac_status=$?
18994   grep -v '^ *+' conftest.er1 >conftest.err
18995   rm -f conftest.er1
18996   cat conftest.err >&5
18997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998   (exit $ac_status); } && {
18999          test -z "$ac_cxx_werror_flag" ||
19000          test ! -s conftest.err
19001        } && test -s conftest.$ac_objext; then
19002   ac_cv_type_size_t=yes
19003 else
19004   echo "$as_me: failed program was:" >&5
19005 sed 's/^/| /' conftest.$ac_ext >&5
19006
19007         ac_cv_type_size_t=no
19008 fi
19009
19010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19011 fi
19012 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19013 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
19014 if test $ac_cv_type_size_t = yes; then
19015   :
19016 else
19017
19018 cat >>confdefs.h <<_ACEOF
19019 #define size_t unsigned int
19020 _ACEOF
19021
19022 fi
19023
19024
19025   { echo "$as_me:$LINENO: checking for long long" >&5
19026 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19027 if test "${ac_cv_type_long_long+set}" = set; then
19028   echo $ECHO_N "(cached) $ECHO_C" >&6
19029 else
19030   cat >conftest.$ac_ext <<_ACEOF
19031 /* confdefs.h.  */
19032 _ACEOF
19033 cat confdefs.h >>conftest.$ac_ext
19034 cat >>conftest.$ac_ext <<_ACEOF
19035 /* end confdefs.h.  */
19036 long long ll = 1LL; int i = 63;
19037 int
19038 main ()
19039 {
19040 long long llmax = (long long) -1;
19041      return ll << i | ll >> i | llmax / ll | llmax % ll;
19042   ;
19043   return 0;
19044 }
19045 _ACEOF
19046 rm -f conftest.$ac_objext conftest$ac_exeext
19047 if { (ac_try="$ac_link"
19048 case "(($ac_try" in
19049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050   *) ac_try_echo=$ac_try;;
19051 esac
19052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053   (eval "$ac_link") 2>conftest.er1
19054   ac_status=$?
19055   grep -v '^ *+' conftest.er1 >conftest.err
19056   rm -f conftest.er1
19057   cat conftest.err >&5
19058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059   (exit $ac_status); } && {
19060          test -z "$ac_cxx_werror_flag" ||
19061          test ! -s conftest.err
19062        } && test -s conftest$ac_exeext &&
19063        $as_test_x conftest$ac_exeext; then
19064   ac_cv_type_long_long=yes
19065 else
19066   echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.$ac_ext >&5
19068
19069         ac_cv_type_long_long=no
19070 fi
19071
19072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19073       conftest$ac_exeext conftest.$ac_ext
19074 fi
19075 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19076 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19077   if test $ac_cv_type_long_long = yes; then
19078
19079 cat >>confdefs.h <<\_ACEOF
19080 #define HAVE_LONG_LONG 1
19081 _ACEOF
19082
19083   fi
19084
19085
19086   { echo "$as_me:$LINENO: checking for long double" >&5
19087 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19088 if test "${gt_cv_c_long_double+set}" = set; then
19089   echo $ECHO_N "(cached) $ECHO_C" >&6
19090 else
19091   if test "$GCC" = yes; then
19092        gt_cv_c_long_double=yes
19093      else
19094        cat >conftest.$ac_ext <<_ACEOF
19095 /* confdefs.h.  */
19096 _ACEOF
19097 cat confdefs.h >>conftest.$ac_ext
19098 cat >>conftest.$ac_ext <<_ACEOF
19099 /* end confdefs.h.  */
19100
19101          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19102          long double foo = 0.0;
19103          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19104          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19105
19106 int
19107 main ()
19108 {
19109
19110   ;
19111   return 0;
19112 }
19113 _ACEOF
19114 rm -f conftest.$ac_objext
19115 if { (ac_try="$ac_compile"
19116 case "(($ac_try" in
19117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19118   *) ac_try_echo=$ac_try;;
19119 esac
19120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19121   (eval "$ac_compile") 2>conftest.er1
19122   ac_status=$?
19123   grep -v '^ *+' conftest.er1 >conftest.err
19124   rm -f conftest.er1
19125   cat conftest.err >&5
19126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127   (exit $ac_status); } && {
19128          test -z "$ac_cxx_werror_flag" ||
19129          test ! -s conftest.err
19130        } && test -s conftest.$ac_objext; then
19131   gt_cv_c_long_double=yes
19132 else
19133   echo "$as_me: failed program was:" >&5
19134 sed 's/^/| /' conftest.$ac_ext >&5
19135
19136         gt_cv_c_long_double=no
19137 fi
19138
19139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19140      fi
19141 fi
19142 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19143 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19144   if test $gt_cv_c_long_double = yes; then
19145
19146 cat >>confdefs.h <<\_ACEOF
19147 #define HAVE_LONG_DOUBLE 1
19148 _ACEOF
19149
19150   fi
19151
19152
19153   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19154 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19155 if test "${gt_cv_c_wchar_t+set}" = set; then
19156   echo $ECHO_N "(cached) $ECHO_C" >&6
19157 else
19158   cat >conftest.$ac_ext <<_ACEOF
19159 /* confdefs.h.  */
19160 _ACEOF
19161 cat confdefs.h >>conftest.$ac_ext
19162 cat >>conftest.$ac_ext <<_ACEOF
19163 /* end confdefs.h.  */
19164 #include <stddef.h>
19165        wchar_t foo = (wchar_t)'\0';
19166 int
19167 main ()
19168 {
19169
19170   ;
19171   return 0;
19172 }
19173 _ACEOF
19174 rm -f conftest.$ac_objext
19175 if { (ac_try="$ac_compile"
19176 case "(($ac_try" in
19177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178   *) ac_try_echo=$ac_try;;
19179 esac
19180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19181   (eval "$ac_compile") 2>conftest.er1
19182   ac_status=$?
19183   grep -v '^ *+' conftest.er1 >conftest.err
19184   rm -f conftest.er1
19185   cat conftest.err >&5
19186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187   (exit $ac_status); } && {
19188          test -z "$ac_cxx_werror_flag" ||
19189          test ! -s conftest.err
19190        } && test -s conftest.$ac_objext; then
19191   gt_cv_c_wchar_t=yes
19192 else
19193   echo "$as_me: failed program was:" >&5
19194 sed 's/^/| /' conftest.$ac_ext >&5
19195
19196         gt_cv_c_wchar_t=no
19197 fi
19198
19199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19200 fi
19201 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19202 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19203   if test $gt_cv_c_wchar_t = yes; then
19204
19205 cat >>confdefs.h <<\_ACEOF
19206 #define HAVE_WCHAR_T 1
19207 _ACEOF
19208
19209   fi
19210
19211
19212   { echo "$as_me:$LINENO: checking for wint_t" >&5
19213 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19214 if test "${gt_cv_c_wint_t+set}" = set; then
19215   echo $ECHO_N "(cached) $ECHO_C" >&6
19216 else
19217   cat >conftest.$ac_ext <<_ACEOF
19218 /* confdefs.h.  */
19219 _ACEOF
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h.  */
19223 #include <wchar.h>
19224        wint_t foo = (wchar_t)'\0';
19225 int
19226 main ()
19227 {
19228
19229   ;
19230   return 0;
19231 }
19232 _ACEOF
19233 rm -f conftest.$ac_objext
19234 if { (ac_try="$ac_compile"
19235 case "(($ac_try" in
19236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19237   *) ac_try_echo=$ac_try;;
19238 esac
19239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19240   (eval "$ac_compile") 2>conftest.er1
19241   ac_status=$?
19242   grep -v '^ *+' conftest.er1 >conftest.err
19243   rm -f conftest.er1
19244   cat conftest.err >&5
19245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246   (exit $ac_status); } && {
19247          test -z "$ac_cxx_werror_flag" ||
19248          test ! -s conftest.err
19249        } && test -s conftest.$ac_objext; then
19250   gt_cv_c_wint_t=yes
19251 else
19252   echo "$as_me: failed program was:" >&5
19253 sed 's/^/| /' conftest.$ac_ext >&5
19254
19255         gt_cv_c_wint_t=no
19256 fi
19257
19258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19259 fi
19260 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19261 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19262   if test $gt_cv_c_wint_t = yes; then
19263
19264 cat >>confdefs.h <<\_ACEOF
19265 #define HAVE_WINT_T 1
19266 _ACEOF
19267
19268   fi
19269
19270
19271   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19272 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19273 if test "${gl_cv_header_inttypes_h+set}" = set; then
19274   echo $ECHO_N "(cached) $ECHO_C" >&6
19275 else
19276   cat >conftest.$ac_ext <<_ACEOF
19277 /* confdefs.h.  */
19278 _ACEOF
19279 cat confdefs.h >>conftest.$ac_ext
19280 cat >>conftest.$ac_ext <<_ACEOF
19281 /* end confdefs.h.  */
19282 #include <sys/types.h>
19283 #include <inttypes.h>
19284 int
19285 main ()
19286 {
19287 uintmax_t i = (uintmax_t) -1;
19288   ;
19289   return 0;
19290 }
19291 _ACEOF
19292 rm -f conftest.$ac_objext
19293 if { (ac_try="$ac_compile"
19294 case "(($ac_try" in
19295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19296   *) ac_try_echo=$ac_try;;
19297 esac
19298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19299   (eval "$ac_compile") 2>conftest.er1
19300   ac_status=$?
19301   grep -v '^ *+' conftest.er1 >conftest.err
19302   rm -f conftest.er1
19303   cat conftest.err >&5
19304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305   (exit $ac_status); } && {
19306          test -z "$ac_cxx_werror_flag" ||
19307          test ! -s conftest.err
19308        } && test -s conftest.$ac_objext; then
19309   gl_cv_header_inttypes_h=yes
19310 else
19311   echo "$as_me: failed program was:" >&5
19312 sed 's/^/| /' conftest.$ac_ext >&5
19313
19314         gl_cv_header_inttypes_h=no
19315 fi
19316
19317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19318 fi
19319 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19320 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19321   if test $gl_cv_header_inttypes_h = yes; then
19322
19323 cat >>confdefs.h <<_ACEOF
19324 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19325 _ACEOF
19326
19327   fi
19328
19329
19330   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19331 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19332 if test "${gl_cv_header_stdint_h+set}" = set; then
19333   echo $ECHO_N "(cached) $ECHO_C" >&6
19334 else
19335   cat >conftest.$ac_ext <<_ACEOF
19336 /* confdefs.h.  */
19337 _ACEOF
19338 cat confdefs.h >>conftest.$ac_ext
19339 cat >>conftest.$ac_ext <<_ACEOF
19340 /* end confdefs.h.  */
19341 #include <sys/types.h>
19342 #include <stdint.h>
19343 int
19344 main ()
19345 {
19346 uintmax_t i = (uintmax_t) -1;
19347   ;
19348   return 0;
19349 }
19350 _ACEOF
19351 rm -f conftest.$ac_objext
19352 if { (ac_try="$ac_compile"
19353 case "(($ac_try" in
19354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19355   *) ac_try_echo=$ac_try;;
19356 esac
19357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19358   (eval "$ac_compile") 2>conftest.er1
19359   ac_status=$?
19360   grep -v '^ *+' conftest.er1 >conftest.err
19361   rm -f conftest.er1
19362   cat conftest.err >&5
19363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364   (exit $ac_status); } && {
19365          test -z "$ac_cxx_werror_flag" ||
19366          test ! -s conftest.err
19367        } && test -s conftest.$ac_objext; then
19368   gl_cv_header_stdint_h=yes
19369 else
19370   echo "$as_me: failed program was:" >&5
19371 sed 's/^/| /' conftest.$ac_ext >&5
19372
19373         gl_cv_header_stdint_h=no
19374 fi
19375
19376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19377 fi
19378 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19379 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19380   if test $gl_cv_header_stdint_h = yes; then
19381
19382 cat >>confdefs.h <<_ACEOF
19383 #define HAVE_STDINT_H_WITH_UINTMAX 1
19384 _ACEOF
19385
19386   fi
19387
19388
19389
19390
19391   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19392 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19393 if test "${gt_cv_c_intmax_t+set}" = set; then
19394   echo $ECHO_N "(cached) $ECHO_C" >&6
19395 else
19396   cat >conftest.$ac_ext <<_ACEOF
19397 /* confdefs.h.  */
19398 _ACEOF
19399 cat confdefs.h >>conftest.$ac_ext
19400 cat >>conftest.$ac_ext <<_ACEOF
19401 /* end confdefs.h.  */
19402
19403 #include <stddef.h>
19404 #include <stdlib.h>
19405 #if HAVE_STDINT_H_WITH_UINTMAX
19406 #include <stdint.h>
19407 #endif
19408 #if HAVE_INTTYPES_H_WITH_UINTMAX
19409 #include <inttypes.h>
19410 #endif
19411
19412 int
19413 main ()
19414 {
19415 intmax_t x = -1;
19416   ;
19417   return 0;
19418 }
19419 _ACEOF
19420 rm -f conftest.$ac_objext
19421 if { (ac_try="$ac_compile"
19422 case "(($ac_try" in
19423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424   *) ac_try_echo=$ac_try;;
19425 esac
19426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19427   (eval "$ac_compile") 2>conftest.er1
19428   ac_status=$?
19429   grep -v '^ *+' conftest.er1 >conftest.err
19430   rm -f conftest.er1
19431   cat conftest.err >&5
19432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433   (exit $ac_status); } && {
19434          test -z "$ac_cxx_werror_flag" ||
19435          test ! -s conftest.err
19436        } && test -s conftest.$ac_objext; then
19437   gt_cv_c_intmax_t=yes
19438 else
19439   echo "$as_me: failed program was:" >&5
19440 sed 's/^/| /' conftest.$ac_ext >&5
19441
19442         gt_cv_c_intmax_t=no
19443 fi
19444
19445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19446 fi
19447 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19448 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19449   if test $gt_cv_c_intmax_t = yes; then
19450
19451 cat >>confdefs.h <<\_ACEOF
19452 #define HAVE_INTMAX_T 1
19453 _ACEOF
19454
19455   fi
19456
19457
19458
19459   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19460 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19461 if test "${gt_cv_func_printf_posix+set}" = set; then
19462   echo $ECHO_N "(cached) $ECHO_C" >&6
19463 else
19464
19465       if test "$cross_compiling" = yes; then
19466
19467         cat >conftest.$ac_ext <<_ACEOF
19468 /* confdefs.h.  */
19469 _ACEOF
19470 cat confdefs.h >>conftest.$ac_ext
19471 cat >>conftest.$ac_ext <<_ACEOF
19472 /* end confdefs.h.  */
19473
19474 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19475   notposix
19476 #endif
19477
19478 _ACEOF
19479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19480   $EGREP "notposix" >/dev/null 2>&1; then
19481   gt_cv_func_printf_posix="guessing no"
19482 else
19483   gt_cv_func_printf_posix="guessing yes"
19484 fi
19485 rm -f conftest*
19486
19487
19488 else
19489   cat >conftest.$ac_ext <<_ACEOF
19490 /* confdefs.h.  */
19491 _ACEOF
19492 cat confdefs.h >>conftest.$ac_ext
19493 cat >>conftest.$ac_ext <<_ACEOF
19494 /* end confdefs.h.  */
19495
19496 #include <stdio.h>
19497 #include <string.h>
19498 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19499    dollar expansion (possibly an autoconf bug).  */
19500 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19501 static char buf[100];
19502 int main ()
19503 {
19504   sprintf (buf, format, 33, 55);
19505   return (strcmp (buf, "55 33") != 0);
19506 }
19507 _ACEOF
19508 rm -f conftest$ac_exeext
19509 if { (ac_try="$ac_link"
19510 case "(($ac_try" in
19511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19512   *) ac_try_echo=$ac_try;;
19513 esac
19514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19515   (eval "$ac_link") 2>&5
19516   ac_status=$?
19517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19519   { (case "(($ac_try" in
19520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521   *) ac_try_echo=$ac_try;;
19522 esac
19523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524   (eval "$ac_try") 2>&5
19525   ac_status=$?
19526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527   (exit $ac_status); }; }; then
19528   gt_cv_func_printf_posix=yes
19529 else
19530   echo "$as_me: program exited with status $ac_status" >&5
19531 echo "$as_me: failed program was:" >&5
19532 sed 's/^/| /' conftest.$ac_ext >&5
19533
19534 ( exit $ac_status )
19535 gt_cv_func_printf_posix=no
19536 fi
19537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19538 fi
19539
19540
19541
19542 fi
19543 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19544 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19545   case $gt_cv_func_printf_posix in
19546     *yes)
19547
19548 cat >>confdefs.h <<\_ACEOF
19549 #define HAVE_POSIX_PRINTF 1
19550 _ACEOF
19551
19552       ;;
19553   esac
19554
19555 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19556 # for constant arguments.  Useless!
19557 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19558 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19559 if test "${ac_cv_working_alloca_h+set}" = set; then
19560   echo $ECHO_N "(cached) $ECHO_C" >&6
19561 else
19562   cat >conftest.$ac_ext <<_ACEOF
19563 /* confdefs.h.  */
19564 _ACEOF
19565 cat confdefs.h >>conftest.$ac_ext
19566 cat >>conftest.$ac_ext <<_ACEOF
19567 /* end confdefs.h.  */
19568 #include <alloca.h>
19569 int
19570 main ()
19571 {
19572 char *p = (char *) alloca (2 * sizeof (int));
19573                           if (p) return 0;
19574   ;
19575   return 0;
19576 }
19577 _ACEOF
19578 rm -f conftest.$ac_objext conftest$ac_exeext
19579 if { (ac_try="$ac_link"
19580 case "(($ac_try" in
19581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582   *) ac_try_echo=$ac_try;;
19583 esac
19584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585   (eval "$ac_link") 2>conftest.er1
19586   ac_status=$?
19587   grep -v '^ *+' conftest.er1 >conftest.err
19588   rm -f conftest.er1
19589   cat conftest.err >&5
19590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591   (exit $ac_status); } && {
19592          test -z "$ac_cxx_werror_flag" ||
19593          test ! -s conftest.err
19594        } && test -s conftest$ac_exeext &&
19595        $as_test_x conftest$ac_exeext; then
19596   ac_cv_working_alloca_h=yes
19597 else
19598   echo "$as_me: failed program was:" >&5
19599 sed 's/^/| /' conftest.$ac_ext >&5
19600
19601         ac_cv_working_alloca_h=no
19602 fi
19603
19604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19605       conftest$ac_exeext conftest.$ac_ext
19606 fi
19607 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19608 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19609 if test $ac_cv_working_alloca_h = yes; then
19610
19611 cat >>confdefs.h <<\_ACEOF
19612 #define HAVE_ALLOCA_H 1
19613 _ACEOF
19614
19615 fi
19616
19617 { echo "$as_me:$LINENO: checking for alloca" >&5
19618 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19619 if test "${ac_cv_func_alloca_works+set}" = set; then
19620   echo $ECHO_N "(cached) $ECHO_C" >&6
19621 else
19622   cat >conftest.$ac_ext <<_ACEOF
19623 /* confdefs.h.  */
19624 _ACEOF
19625 cat confdefs.h >>conftest.$ac_ext
19626 cat >>conftest.$ac_ext <<_ACEOF
19627 /* end confdefs.h.  */
19628 #ifdef __GNUC__
19629 # define alloca __builtin_alloca
19630 #else
19631 # ifdef _MSC_VER
19632 #  include <malloc.h>
19633 #  define alloca _alloca
19634 # else
19635 #  ifdef HAVE_ALLOCA_H
19636 #   include <alloca.h>
19637 #  else
19638 #   ifdef _AIX
19639  #pragma alloca
19640 #   else
19641 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19642 char *alloca ();
19643 #    endif
19644 #   endif
19645 #  endif
19646 # endif
19647 #endif
19648
19649 int
19650 main ()
19651 {
19652 char *p = (char *) alloca (1);
19653                                     if (p) return 0;
19654   ;
19655   return 0;
19656 }
19657 _ACEOF
19658 rm -f conftest.$ac_objext conftest$ac_exeext
19659 if { (ac_try="$ac_link"
19660 case "(($ac_try" in
19661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19662   *) ac_try_echo=$ac_try;;
19663 esac
19664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19665   (eval "$ac_link") 2>conftest.er1
19666   ac_status=$?
19667   grep -v '^ *+' conftest.er1 >conftest.err
19668   rm -f conftest.er1
19669   cat conftest.err >&5
19670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671   (exit $ac_status); } && {
19672          test -z "$ac_cxx_werror_flag" ||
19673          test ! -s conftest.err
19674        } && test -s conftest$ac_exeext &&
19675        $as_test_x conftest$ac_exeext; then
19676   ac_cv_func_alloca_works=yes
19677 else
19678   echo "$as_me: failed program was:" >&5
19679 sed 's/^/| /' conftest.$ac_ext >&5
19680
19681         ac_cv_func_alloca_works=no
19682 fi
19683
19684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19685       conftest$ac_exeext conftest.$ac_ext
19686 fi
19687 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19688 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19689
19690 if test $ac_cv_func_alloca_works = yes; then
19691
19692 cat >>confdefs.h <<\_ACEOF
19693 #define HAVE_ALLOCA 1
19694 _ACEOF
19695
19696 else
19697   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19698 # that cause trouble.  Some versions do not even contain alloca or
19699 # contain a buggy version.  If you still want to use their alloca,
19700 # use ar to extract alloca.o from them instead of compiling alloca.c.
19701
19702 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19703
19704 cat >>confdefs.h <<\_ACEOF
19705 #define C_ALLOCA 1
19706 _ACEOF
19707
19708
19709 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19710 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19711 if test "${ac_cv_os_cray+set}" = set; then
19712   echo $ECHO_N "(cached) $ECHO_C" >&6
19713 else
19714   cat >conftest.$ac_ext <<_ACEOF
19715 /* confdefs.h.  */
19716 _ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h.  */
19720 #if defined CRAY && ! defined CRAY2
19721 webecray
19722 #else
19723 wenotbecray
19724 #endif
19725
19726 _ACEOF
19727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19728   $EGREP "webecray" >/dev/null 2>&1; then
19729   ac_cv_os_cray=yes
19730 else
19731   ac_cv_os_cray=no
19732 fi
19733 rm -f conftest*
19734
19735 fi
19736 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19737 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19738 if test $ac_cv_os_cray = yes; then
19739   for ac_func in _getb67 GETB67 getb67; do
19740     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19741 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19744   echo $ECHO_N "(cached) $ECHO_C" >&6
19745 else
19746   cat >conftest.$ac_ext <<_ACEOF
19747 /* confdefs.h.  */
19748 _ACEOF
19749 cat confdefs.h >>conftest.$ac_ext
19750 cat >>conftest.$ac_ext <<_ACEOF
19751 /* end confdefs.h.  */
19752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19753    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19754 #define $ac_func innocuous_$ac_func
19755
19756 /* System header to define __stub macros and hopefully few prototypes,
19757     which can conflict with char $ac_func (); below.
19758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19759     <limits.h> exists even on freestanding compilers.  */
19760
19761 #ifdef __STDC__
19762 # include <limits.h>
19763 #else
19764 # include <assert.h>
19765 #endif
19766
19767 #undef $ac_func
19768
19769 /* Override any GCC internal prototype to avoid an error.
19770    Use char because int might match the return type of a GCC
19771    builtin and then its argument prototype would still apply.  */
19772 #ifdef __cplusplus
19773 extern "C"
19774 #endif
19775 char $ac_func ();
19776 /* The GNU C library defines this for functions which it implements
19777     to always fail with ENOSYS.  Some functions are actually named
19778     something starting with __ and the normal name is an alias.  */
19779 #if defined __stub_$ac_func || defined __stub___$ac_func
19780 choke me
19781 #endif
19782
19783 int
19784 main ()
19785 {
19786 return $ac_func ();
19787   ;
19788   return 0;
19789 }
19790 _ACEOF
19791 rm -f conftest.$ac_objext conftest$ac_exeext
19792 if { (ac_try="$ac_link"
19793 case "(($ac_try" in
19794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19795   *) ac_try_echo=$ac_try;;
19796 esac
19797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19798   (eval "$ac_link") 2>conftest.er1
19799   ac_status=$?
19800   grep -v '^ *+' conftest.er1 >conftest.err
19801   rm -f conftest.er1
19802   cat conftest.err >&5
19803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804   (exit $ac_status); } && {
19805          test -z "$ac_cxx_werror_flag" ||
19806          test ! -s conftest.err
19807        } && test -s conftest$ac_exeext &&
19808        $as_test_x conftest$ac_exeext; then
19809   eval "$as_ac_var=yes"
19810 else
19811   echo "$as_me: failed program was:" >&5
19812 sed 's/^/| /' conftest.$ac_ext >&5
19813
19814         eval "$as_ac_var=no"
19815 fi
19816
19817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19818       conftest$ac_exeext conftest.$ac_ext
19819 fi
19820 ac_res=`eval echo '${'$as_ac_var'}'`
19821                { echo "$as_me:$LINENO: result: $ac_res" >&5
19822 echo "${ECHO_T}$ac_res" >&6; }
19823 if test `eval echo '${'$as_ac_var'}'` = yes; then
19824
19825 cat >>confdefs.h <<_ACEOF
19826 #define CRAY_STACKSEG_END $ac_func
19827 _ACEOF
19828
19829     break
19830 fi
19831
19832   done
19833 fi
19834
19835 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19836 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19837 if test "${ac_cv_c_stack_direction+set}" = set; then
19838   echo $ECHO_N "(cached) $ECHO_C" >&6
19839 else
19840   if test "$cross_compiling" = yes; then
19841   ac_cv_c_stack_direction=0
19842 else
19843   cat >conftest.$ac_ext <<_ACEOF
19844 /* confdefs.h.  */
19845 _ACEOF
19846 cat confdefs.h >>conftest.$ac_ext
19847 cat >>conftest.$ac_ext <<_ACEOF
19848 /* end confdefs.h.  */
19849 $ac_includes_default
19850 int
19851 find_stack_direction ()
19852 {
19853   static char *addr = 0;
19854   auto char dummy;
19855   if (addr == 0)
19856     {
19857       addr = &dummy;
19858       return find_stack_direction ();
19859     }
19860   else
19861     return (&dummy > addr) ? 1 : -1;
19862 }
19863
19864 int
19865 main ()
19866 {
19867   return find_stack_direction () < 0;
19868 }
19869 _ACEOF
19870 rm -f conftest$ac_exeext
19871 if { (ac_try="$ac_link"
19872 case "(($ac_try" in
19873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874   *) ac_try_echo=$ac_try;;
19875 esac
19876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19877   (eval "$ac_link") 2>&5
19878   ac_status=$?
19879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19881   { (case "(($ac_try" in
19882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883   *) ac_try_echo=$ac_try;;
19884 esac
19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886   (eval "$ac_try") 2>&5
19887   ac_status=$?
19888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889   (exit $ac_status); }; }; then
19890   ac_cv_c_stack_direction=1
19891 else
19892   echo "$as_me: program exited with status $ac_status" >&5
19893 echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19895
19896 ( exit $ac_status )
19897 ac_cv_c_stack_direction=-1
19898 fi
19899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19900 fi
19901
19902
19903 fi
19904 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19905 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19906
19907 cat >>confdefs.h <<_ACEOF
19908 #define STACK_DIRECTION $ac_cv_c_stack_direction
19909 _ACEOF
19910
19911
19912 fi
19913
19914
19915
19916 for ac_header in stdlib.h unistd.h
19917 do
19918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19920   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19923   echo $ECHO_N "(cached) $ECHO_C" >&6
19924 fi
19925 ac_res=`eval echo '${'$as_ac_Header'}'`
19926                { echo "$as_me:$LINENO: result: $ac_res" >&5
19927 echo "${ECHO_T}$ac_res" >&6; }
19928 else
19929   # Is the header compilable?
19930 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19932 cat >conftest.$ac_ext <<_ACEOF
19933 /* confdefs.h.  */
19934 _ACEOF
19935 cat confdefs.h >>conftest.$ac_ext
19936 cat >>conftest.$ac_ext <<_ACEOF
19937 /* end confdefs.h.  */
19938 $ac_includes_default
19939 #include <$ac_header>
19940 _ACEOF
19941 rm -f conftest.$ac_objext
19942 if { (ac_try="$ac_compile"
19943 case "(($ac_try" in
19944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945   *) ac_try_echo=$ac_try;;
19946 esac
19947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948   (eval "$ac_compile") 2>conftest.er1
19949   ac_status=$?
19950   grep -v '^ *+' conftest.er1 >conftest.err
19951   rm -f conftest.er1
19952   cat conftest.err >&5
19953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954   (exit $ac_status); } && {
19955          test -z "$ac_cxx_werror_flag" ||
19956          test ! -s conftest.err
19957        } && test -s conftest.$ac_objext; then
19958   ac_header_compiler=yes
19959 else
19960   echo "$as_me: failed program was:" >&5
19961 sed 's/^/| /' conftest.$ac_ext >&5
19962
19963         ac_header_compiler=no
19964 fi
19965
19966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19967 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19968 echo "${ECHO_T}$ac_header_compiler" >&6; }
19969
19970 # Is the header present?
19971 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19973 cat >conftest.$ac_ext <<_ACEOF
19974 /* confdefs.h.  */
19975 _ACEOF
19976 cat confdefs.h >>conftest.$ac_ext
19977 cat >>conftest.$ac_ext <<_ACEOF
19978 /* end confdefs.h.  */
19979 #include <$ac_header>
19980 _ACEOF
19981 if { (ac_try="$ac_cpp conftest.$ac_ext"
19982 case "(($ac_try" in
19983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984   *) ac_try_echo=$ac_try;;
19985 esac
19986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19988   ac_status=$?
19989   grep -v '^ *+' conftest.er1 >conftest.err
19990   rm -f conftest.er1
19991   cat conftest.err >&5
19992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993   (exit $ac_status); } >/dev/null && {
19994          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
19995          test ! -s conftest.err
19996        }; then
19997   ac_header_preproc=yes
19998 else
19999   echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20001
20002   ac_header_preproc=no
20003 fi
20004
20005 rm -f conftest.err conftest.$ac_ext
20006 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20007 echo "${ECHO_T}$ac_header_preproc" >&6; }
20008
20009 # So?  What about this header?
20010 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20011   yes:no: )
20012     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20014     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20016     ac_header_preproc=yes
20017     ;;
20018   no:yes:* )
20019     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20021     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20022 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20023     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20025     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20026 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20029     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20031
20032     ;;
20033 esac
20034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20037   echo $ECHO_N "(cached) $ECHO_C" >&6
20038 else
20039   eval "$as_ac_Header=\$ac_header_preproc"
20040 fi
20041 ac_res=`eval echo '${'$as_ac_Header'}'`
20042                { echo "$as_me:$LINENO: result: $ac_res" >&5
20043 echo "${ECHO_T}$ac_res" >&6; }
20044
20045 fi
20046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20047   cat >>confdefs.h <<_ACEOF
20048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20049 _ACEOF
20050
20051 fi
20052
20053 done
20054
20055
20056 for ac_func in getpagesize
20057 do
20058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20059 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20061 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20062   echo $ECHO_N "(cached) $ECHO_C" >&6
20063 else
20064   cat >conftest.$ac_ext <<_ACEOF
20065 /* confdefs.h.  */
20066 _ACEOF
20067 cat confdefs.h >>conftest.$ac_ext
20068 cat >>conftest.$ac_ext <<_ACEOF
20069 /* end confdefs.h.  */
20070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20071    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20072 #define $ac_func innocuous_$ac_func
20073
20074 /* System header to define __stub macros and hopefully few prototypes,
20075     which can conflict with char $ac_func (); below.
20076     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20077     <limits.h> exists even on freestanding compilers.  */
20078
20079 #ifdef __STDC__
20080 # include <limits.h>
20081 #else
20082 # include <assert.h>
20083 #endif
20084
20085 #undef $ac_func
20086
20087 /* Override any GCC internal prototype to avoid an error.
20088    Use char because int might match the return type of a GCC
20089    builtin and then its argument prototype would still apply.  */
20090 #ifdef __cplusplus
20091 extern "C"
20092 #endif
20093 char $ac_func ();
20094 /* The GNU C library defines this for functions which it implements
20095     to always fail with ENOSYS.  Some functions are actually named
20096     something starting with __ and the normal name is an alias.  */
20097 #if defined __stub_$ac_func || defined __stub___$ac_func
20098 choke me
20099 #endif
20100
20101 int
20102 main ()
20103 {
20104 return $ac_func ();
20105   ;
20106   return 0;
20107 }
20108 _ACEOF
20109 rm -f conftest.$ac_objext conftest$ac_exeext
20110 if { (ac_try="$ac_link"
20111 case "(($ac_try" in
20112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20113   *) ac_try_echo=$ac_try;;
20114 esac
20115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20116   (eval "$ac_link") 2>conftest.er1
20117   ac_status=$?
20118   grep -v '^ *+' conftest.er1 >conftest.err
20119   rm -f conftest.er1
20120   cat conftest.err >&5
20121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122   (exit $ac_status); } && {
20123          test -z "$ac_cxx_werror_flag" ||
20124          test ! -s conftest.err
20125        } && test -s conftest$ac_exeext &&
20126        $as_test_x conftest$ac_exeext; then
20127   eval "$as_ac_var=yes"
20128 else
20129   echo "$as_me: failed program was:" >&5
20130 sed 's/^/| /' conftest.$ac_ext >&5
20131
20132         eval "$as_ac_var=no"
20133 fi
20134
20135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20136       conftest$ac_exeext conftest.$ac_ext
20137 fi
20138 ac_res=`eval echo '${'$as_ac_var'}'`
20139                { echo "$as_me:$LINENO: result: $ac_res" >&5
20140 echo "${ECHO_T}$ac_res" >&6; }
20141 if test `eval echo '${'$as_ac_var'}'` = yes; then
20142   cat >>confdefs.h <<_ACEOF
20143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20144 _ACEOF
20145
20146 fi
20147 done
20148
20149 { echo "$as_me:$LINENO: checking for working mmap" >&5
20150 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20151 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20152   echo $ECHO_N "(cached) $ECHO_C" >&6
20153 else
20154   if test "$cross_compiling" = yes; then
20155   ac_cv_func_mmap_fixed_mapped=no
20156 else
20157   cat >conftest.$ac_ext <<_ACEOF
20158 /* confdefs.h.  */
20159 _ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h.  */
20163 $ac_includes_default
20164 /* malloc might have been renamed as rpl_malloc. */
20165 #undef malloc
20166
20167 /* Thanks to Mike Haertel and Jim Avera for this test.
20168    Here is a matrix of mmap possibilities:
20169         mmap private not fixed
20170         mmap private fixed at somewhere currently unmapped
20171         mmap private fixed at somewhere already mapped
20172         mmap shared not fixed
20173         mmap shared fixed at somewhere currently unmapped
20174         mmap shared fixed at somewhere already mapped
20175    For private mappings, we should verify that changes cannot be read()
20176    back from the file, nor mmap's back from the file at a different
20177    address.  (There have been systems where private was not correctly
20178    implemented like the infamous i386 svr4.0, and systems where the
20179    VM page cache was not coherent with the file system buffer cache
20180    like early versions of FreeBSD and possibly contemporary NetBSD.)
20181    For shared mappings, we should conversely verify that changes get
20182    propagated back to all the places they're supposed to be.
20183
20184    Grep wants private fixed already mapped.
20185    The main things grep needs to know about mmap are:
20186    * does it exist and is it safe to write into the mmap'd area
20187    * how to use it (BSD variants)  */
20188
20189 #include <fcntl.h>
20190 #include <sys/mman.h>
20191
20192 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20193 char *malloc ();
20194 #endif
20195
20196 /* This mess was copied from the GNU getpagesize.h.  */
20197 #ifndef HAVE_GETPAGESIZE
20198 /* Assume that all systems that can run configure have sys/param.h.  */
20199 # ifndef HAVE_SYS_PARAM_H
20200 #  define HAVE_SYS_PARAM_H 1
20201 # endif
20202
20203 # ifdef _SC_PAGESIZE
20204 #  define getpagesize() sysconf(_SC_PAGESIZE)
20205 # else /* no _SC_PAGESIZE */
20206 #  ifdef HAVE_SYS_PARAM_H
20207 #   include <sys/param.h>
20208 #   ifdef EXEC_PAGESIZE
20209 #    define getpagesize() EXEC_PAGESIZE
20210 #   else /* no EXEC_PAGESIZE */
20211 #    ifdef NBPG
20212 #     define getpagesize() NBPG * CLSIZE
20213 #     ifndef CLSIZE
20214 #      define CLSIZE 1
20215 #     endif /* no CLSIZE */
20216 #    else /* no NBPG */
20217 #     ifdef NBPC
20218 #      define getpagesize() NBPC
20219 #     else /* no NBPC */
20220 #      ifdef PAGESIZE
20221 #       define getpagesize() PAGESIZE
20222 #      endif /* PAGESIZE */
20223 #     endif /* no NBPC */
20224 #    endif /* no NBPG */
20225 #   endif /* no EXEC_PAGESIZE */
20226 #  else /* no HAVE_SYS_PARAM_H */
20227 #   define getpagesize() 8192   /* punt totally */
20228 #  endif /* no HAVE_SYS_PARAM_H */
20229 # endif /* no _SC_PAGESIZE */
20230
20231 #endif /* no HAVE_GETPAGESIZE */
20232
20233 int
20234 main ()
20235 {
20236   char *data, *data2, *data3;
20237   int i, pagesize;
20238   int fd;
20239
20240   pagesize = getpagesize ();
20241
20242   /* First, make a file with some known garbage in it. */
20243   data = (char *) malloc (pagesize);
20244   if (!data)
20245     return 1;
20246   for (i = 0; i < pagesize; ++i)
20247     *(data + i) = rand ();
20248   umask (0);
20249   fd = creat ("conftest.mmap", 0600);
20250   if (fd < 0)
20251     return 1;
20252   if (write (fd, data, pagesize) != pagesize)
20253     return 1;
20254   close (fd);
20255
20256   /* Next, try to mmap the file at a fixed address which already has
20257      something else allocated at it.  If we can, also make sure that
20258      we see the same garbage.  */
20259   fd = open ("conftest.mmap", O_RDWR);
20260   if (fd < 0)
20261     return 1;
20262   data2 = (char *) malloc (2 * pagesize);
20263   if (!data2)
20264     return 1;
20265   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20266   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20267                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20268     return 1;
20269   for (i = 0; i < pagesize; ++i)
20270     if (*(data + i) != *(data2 + i))
20271       return 1;
20272
20273   /* Finally, make sure that changes to the mapped area do not
20274      percolate back to the file as seen by read().  (This is a bug on
20275      some variants of i386 svr4.0.)  */
20276   for (i = 0; i < pagesize; ++i)
20277     *(data2 + i) = *(data2 + i) + 1;
20278   data3 = (char *) malloc (pagesize);
20279   if (!data3)
20280     return 1;
20281   if (read (fd, data3, pagesize) != pagesize)
20282     return 1;
20283   for (i = 0; i < pagesize; ++i)
20284     if (*(data + i) != *(data3 + i))
20285       return 1;
20286   close (fd);
20287   return 0;
20288 }
20289 _ACEOF
20290 rm -f conftest$ac_exeext
20291 if { (ac_try="$ac_link"
20292 case "(($ac_try" in
20293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20294   *) ac_try_echo=$ac_try;;
20295 esac
20296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20297   (eval "$ac_link") 2>&5
20298   ac_status=$?
20299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20301   { (case "(($ac_try" in
20302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20303   *) ac_try_echo=$ac_try;;
20304 esac
20305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20306   (eval "$ac_try") 2>&5
20307   ac_status=$?
20308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309   (exit $ac_status); }; }; then
20310   ac_cv_func_mmap_fixed_mapped=yes
20311 else
20312   echo "$as_me: program exited with status $ac_status" >&5
20313 echo "$as_me: failed program was:" >&5
20314 sed 's/^/| /' conftest.$ac_ext >&5
20315
20316 ( exit $ac_status )
20317 ac_cv_func_mmap_fixed_mapped=no
20318 fi
20319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20320 fi
20321
20322
20323 fi
20324 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20325 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20326 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20327
20328 cat >>confdefs.h <<\_ACEOF
20329 #define HAVE_MMAP 1
20330 _ACEOF
20331
20332 fi
20333 rm -f conftest.mmap
20334
20335
20336     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20337 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20338 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20339   echo $ECHO_N "(cached) $ECHO_C" >&6
20340 else
20341   cat >conftest.$ac_ext <<_ACEOF
20342 /* confdefs.h.  */
20343 _ACEOF
20344 cat confdefs.h >>conftest.$ac_ext
20345 cat >>conftest.$ac_ext <<_ACEOF
20346 /* end confdefs.h.  */
20347
20348 #include <features.h>
20349 #ifdef __GNU_LIBRARY__
20350  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20351   Lucky GNU user
20352  #endif
20353 #endif
20354
20355 _ACEOF
20356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20357   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20358   ac_cv_gnu_library_2_1=yes
20359 else
20360   ac_cv_gnu_library_2_1=no
20361 fi
20362 rm -f conftest*
20363
20364
20365
20366 fi
20367 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20368 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20369
20370     GLIBC21="$ac_cv_gnu_library_2_1"
20371
20372
20373
20374
20375   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20376 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20377 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20378   echo $ECHO_N "(cached) $ECHO_C" >&6
20379 else
20380
20381       if test "$cross_compiling" = yes; then
20382
20383           # Guess based on the CPU.
20384           case "$host_cpu" in
20385             alpha* | i3456786 | m68k | s390*)
20386               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20387             *)
20388               gt_cv_int_divbyzero_sigfpe="guessing no";;
20389           esac
20390
20391 else
20392   cat >conftest.$ac_ext <<_ACEOF
20393 /* confdefs.h.  */
20394 _ACEOF
20395 cat confdefs.h >>conftest.$ac_ext
20396 cat >>conftest.$ac_ext <<_ACEOF
20397 /* end confdefs.h.  */
20398
20399 #include <stdlib.h>
20400 #include <signal.h>
20401
20402 static void
20403 #ifdef __cplusplus
20404 sigfpe_handler (int sig)
20405 #else
20406 sigfpe_handler (sig) int sig;
20407 #endif
20408 {
20409   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20410   exit (sig != SIGFPE);
20411 }
20412
20413 int x = 1;
20414 int y = 0;
20415 int z;
20416 int nan;
20417
20418 int main ()
20419 {
20420   signal (SIGFPE, sigfpe_handler);
20421 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20422 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20423   signal (SIGTRAP, sigfpe_handler);
20424 #endif
20425 /* Linux/SPARC yields signal SIGILL.  */
20426 #if defined (__sparc__) && defined (__linux__)
20427   signal (SIGILL, sigfpe_handler);
20428 #endif
20429
20430   z = x / y;
20431   nan = y / y;
20432   exit (1);
20433 }
20434
20435 _ACEOF
20436 rm -f conftest$ac_exeext
20437 if { (ac_try="$ac_link"
20438 case "(($ac_try" in
20439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20440   *) ac_try_echo=$ac_try;;
20441 esac
20442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20443   (eval "$ac_link") 2>&5
20444   ac_status=$?
20445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20447   { (case "(($ac_try" in
20448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449   *) ac_try_echo=$ac_try;;
20450 esac
20451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452   (eval "$ac_try") 2>&5
20453   ac_status=$?
20454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455   (exit $ac_status); }; }; then
20456   gt_cv_int_divbyzero_sigfpe=yes
20457 else
20458   echo "$as_me: program exited with status $ac_status" >&5
20459 echo "$as_me: failed program was:" >&5
20460 sed 's/^/| /' conftest.$ac_ext >&5
20461
20462 ( exit $ac_status )
20463 gt_cv_int_divbyzero_sigfpe=no
20464 fi
20465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20466 fi
20467
20468
20469
20470 fi
20471 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20472 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20473   case "$gt_cv_int_divbyzero_sigfpe" in
20474     *yes) value=1;;
20475     *) value=0;;
20476   esac
20477
20478 cat >>confdefs.h <<_ACEOF
20479 #define INTDIV0_RAISES_SIGFPE $value
20480 _ACEOF
20481
20482
20483
20484   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20485 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20486 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20487   echo $ECHO_N "(cached) $ECHO_C" >&6
20488 else
20489   cat >conftest.$ac_ext <<_ACEOF
20490 /* confdefs.h.  */
20491 _ACEOF
20492 cat confdefs.h >>conftest.$ac_ext
20493 cat >>conftest.$ac_ext <<_ACEOF
20494 /* end confdefs.h.  */
20495 unsigned long long ull = 1ULL; int i = 63;
20496 int
20497 main ()
20498 {
20499 unsigned long long ullmax = (unsigned long long) -1;
20500      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20501   ;
20502   return 0;
20503 }
20504 _ACEOF
20505 rm -f conftest.$ac_objext conftest$ac_exeext
20506 if { (ac_try="$ac_link"
20507 case "(($ac_try" in
20508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20509   *) ac_try_echo=$ac_try;;
20510 esac
20511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20512   (eval "$ac_link") 2>conftest.er1
20513   ac_status=$?
20514   grep -v '^ *+' conftest.er1 >conftest.err
20515   rm -f conftest.er1
20516   cat conftest.err >&5
20517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518   (exit $ac_status); } && {
20519          test -z "$ac_cxx_werror_flag" ||
20520          test ! -s conftest.err
20521        } && test -s conftest$ac_exeext &&
20522        $as_test_x conftest$ac_exeext; then
20523   ac_cv_type_unsigned_long_long=yes
20524 else
20525   echo "$as_me: failed program was:" >&5
20526 sed 's/^/| /' conftest.$ac_ext >&5
20527
20528         ac_cv_type_unsigned_long_long=no
20529 fi
20530
20531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20532       conftest$ac_exeext conftest.$ac_ext
20533 fi
20534 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20535 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20536   if test $ac_cv_type_unsigned_long_long = yes; then
20537
20538 cat >>confdefs.h <<\_ACEOF
20539 #define HAVE_UNSIGNED_LONG_LONG 1
20540 _ACEOF
20541
20542   fi
20543
20544
20545
20546
20547   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20548
20549     test $ac_cv_type_unsigned_long_long = yes \
20550       && ac_type='unsigned long long' \
20551       || ac_type='unsigned long'
20552
20553 cat >>confdefs.h <<_ACEOF
20554 #define uintmax_t $ac_type
20555 _ACEOF
20556
20557   else
20558
20559 cat >>confdefs.h <<\_ACEOF
20560 #define HAVE_UINTMAX_T 1
20561 _ACEOF
20562
20563   fi
20564
20565
20566   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20567 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20568 if test "${gt_cv_header_inttypes_h+set}" = set; then
20569   echo $ECHO_N "(cached) $ECHO_C" >&6
20570 else
20571
20572     cat >conftest.$ac_ext <<_ACEOF
20573 /* confdefs.h.  */
20574 _ACEOF
20575 cat confdefs.h >>conftest.$ac_ext
20576 cat >>conftest.$ac_ext <<_ACEOF
20577 /* end confdefs.h.  */
20578 #include <sys/types.h>
20579 #include <inttypes.h>
20580 int
20581 main ()
20582 {
20583
20584   ;
20585   return 0;
20586 }
20587 _ACEOF
20588 rm -f conftest.$ac_objext
20589 if { (ac_try="$ac_compile"
20590 case "(($ac_try" in
20591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20592   *) ac_try_echo=$ac_try;;
20593 esac
20594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20595   (eval "$ac_compile") 2>conftest.er1
20596   ac_status=$?
20597   grep -v '^ *+' conftest.er1 >conftest.err
20598   rm -f conftest.er1
20599   cat conftest.err >&5
20600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601   (exit $ac_status); } && {
20602          test -z "$ac_cxx_werror_flag" ||
20603          test ! -s conftest.err
20604        } && test -s conftest.$ac_objext; then
20605   gt_cv_header_inttypes_h=yes
20606 else
20607   echo "$as_me: failed program was:" >&5
20608 sed 's/^/| /' conftest.$ac_ext >&5
20609
20610         gt_cv_header_inttypes_h=no
20611 fi
20612
20613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20614
20615 fi
20616 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20617 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20618   if test $gt_cv_header_inttypes_h = yes; then
20619
20620 cat >>confdefs.h <<_ACEOF
20621 #define HAVE_INTTYPES_H 1
20622 _ACEOF
20623
20624   fi
20625
20626
20627
20628   if test $gt_cv_header_inttypes_h = yes; then
20629     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20630 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20631 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20632   echo $ECHO_N "(cached) $ECHO_C" >&6
20633 else
20634
20635         cat >conftest.$ac_ext <<_ACEOF
20636 /* confdefs.h.  */
20637 _ACEOF
20638 cat confdefs.h >>conftest.$ac_ext
20639 cat >>conftest.$ac_ext <<_ACEOF
20640 /* end confdefs.h.  */
20641 #include <inttypes.h>
20642 #ifdef PRId32
20643 char *p = PRId32;
20644 #endif
20645
20646 int
20647 main ()
20648 {
20649
20650   ;
20651   return 0;
20652 }
20653 _ACEOF
20654 rm -f conftest.$ac_objext
20655 if { (ac_try="$ac_compile"
20656 case "(($ac_try" in
20657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20658   *) ac_try_echo=$ac_try;;
20659 esac
20660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20661   (eval "$ac_compile") 2>conftest.er1
20662   ac_status=$?
20663   grep -v '^ *+' conftest.er1 >conftest.err
20664   rm -f conftest.er1
20665   cat conftest.err >&5
20666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667   (exit $ac_status); } && {
20668          test -z "$ac_cxx_werror_flag" ||
20669          test ! -s conftest.err
20670        } && test -s conftest.$ac_objext; then
20671   gt_cv_inttypes_pri_broken=no
20672 else
20673   echo "$as_me: failed program was:" >&5
20674 sed 's/^/| /' conftest.$ac_ext >&5
20675
20676         gt_cv_inttypes_pri_broken=yes
20677 fi
20678
20679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20680
20681 fi
20682 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20683 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20684   fi
20685   if test "$gt_cv_inttypes_pri_broken" = yes; then
20686
20687 cat >>confdefs.h <<_ACEOF
20688 #define PRI_MACROS_BROKEN 1
20689 _ACEOF
20690
20691   fi
20692
20693
20694
20695 for ac_header in stdint.h
20696 do
20697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20699   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20702   echo $ECHO_N "(cached) $ECHO_C" >&6
20703 fi
20704 ac_res=`eval echo '${'$as_ac_Header'}'`
20705                { echo "$as_me:$LINENO: result: $ac_res" >&5
20706 echo "${ECHO_T}$ac_res" >&6; }
20707 else
20708   # Is the header compilable?
20709 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20711 cat >conftest.$ac_ext <<_ACEOF
20712 /* confdefs.h.  */
20713 _ACEOF
20714 cat confdefs.h >>conftest.$ac_ext
20715 cat >>conftest.$ac_ext <<_ACEOF
20716 /* end confdefs.h.  */
20717 $ac_includes_default
20718 #include <$ac_header>
20719 _ACEOF
20720 rm -f conftest.$ac_objext
20721 if { (ac_try="$ac_compile"
20722 case "(($ac_try" in
20723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20724   *) ac_try_echo=$ac_try;;
20725 esac
20726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20727   (eval "$ac_compile") 2>conftest.er1
20728   ac_status=$?
20729   grep -v '^ *+' conftest.er1 >conftest.err
20730   rm -f conftest.er1
20731   cat conftest.err >&5
20732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733   (exit $ac_status); } && {
20734          test -z "$ac_cxx_werror_flag" ||
20735          test ! -s conftest.err
20736        } && test -s conftest.$ac_objext; then
20737   ac_header_compiler=yes
20738 else
20739   echo "$as_me: failed program was:" >&5
20740 sed 's/^/| /' conftest.$ac_ext >&5
20741
20742         ac_header_compiler=no
20743 fi
20744
20745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20746 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20747 echo "${ECHO_T}$ac_header_compiler" >&6; }
20748
20749 # Is the header present?
20750 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20752 cat >conftest.$ac_ext <<_ACEOF
20753 /* confdefs.h.  */
20754 _ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h.  */
20758 #include <$ac_header>
20759 _ACEOF
20760 if { (ac_try="$ac_cpp conftest.$ac_ext"
20761 case "(($ac_try" in
20762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20763   *) ac_try_echo=$ac_try;;
20764 esac
20765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20766   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20767   ac_status=$?
20768   grep -v '^ *+' conftest.er1 >conftest.err
20769   rm -f conftest.er1
20770   cat conftest.err >&5
20771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772   (exit $ac_status); } >/dev/null && {
20773          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20774          test ! -s conftest.err
20775        }; then
20776   ac_header_preproc=yes
20777 else
20778   echo "$as_me: failed program was:" >&5
20779 sed 's/^/| /' conftest.$ac_ext >&5
20780
20781   ac_header_preproc=no
20782 fi
20783
20784 rm -f conftest.err conftest.$ac_ext
20785 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20786 echo "${ECHO_T}$ac_header_preproc" >&6; }
20787
20788 # So?  What about this header?
20789 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20790   yes:no: )
20791     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20793     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20794 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20795     ac_header_preproc=yes
20796     ;;
20797   no:yes:* )
20798     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20800     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20801 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20802     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20803 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20804     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20805 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20806     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20808     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20809 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20810
20811     ;;
20812 esac
20813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20816   echo $ECHO_N "(cached) $ECHO_C" >&6
20817 else
20818   eval "$as_ac_Header=\$ac_header_preproc"
20819 fi
20820 ac_res=`eval echo '${'$as_ac_Header'}'`
20821                { echo "$as_me:$LINENO: result: $ac_res" >&5
20822 echo "${ECHO_T}$ac_res" >&6; }
20823
20824 fi
20825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20826   cat >>confdefs.h <<_ACEOF
20827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20828 _ACEOF
20829
20830 fi
20831
20832 done
20833
20834     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20835 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20836   result=
20837   cat >conftest.$ac_ext <<_ACEOF
20838 /* confdefs.h.  */
20839 _ACEOF
20840 cat confdefs.h >>conftest.$ac_ext
20841 cat >>conftest.$ac_ext <<_ACEOF
20842 /* end confdefs.h.  */
20843
20844 #include <limits.h>
20845 #if HAVE_STDINT_H
20846 #include <stdint.h>
20847 #endif
20848 #ifdef SIZE_MAX
20849 Found it
20850 #endif
20851
20852 _ACEOF
20853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20854   $EGREP "Found it" >/dev/null 2>&1; then
20855   result=yes
20856 fi
20857 rm -f conftest*
20858
20859   if test -z "$result"; then
20860                     if test "$cross_compiling" = yes; then
20861   # Depending upon the size, compute the lo and hi bounds.
20862 cat >conftest.$ac_ext <<_ACEOF
20863 /* confdefs.h.  */
20864 _ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h.  */
20868 #include <stddef.h>
20869 int
20870 main ()
20871 {
20872 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20873 test_array [0] = 0
20874
20875   ;
20876   return 0;
20877 }
20878 _ACEOF
20879 rm -f conftest.$ac_objext
20880 if { (ac_try="$ac_compile"
20881 case "(($ac_try" in
20882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20883   *) ac_try_echo=$ac_try;;
20884 esac
20885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20886   (eval "$ac_compile") 2>conftest.er1
20887   ac_status=$?
20888   grep -v '^ *+' conftest.er1 >conftest.err
20889   rm -f conftest.er1
20890   cat conftest.err >&5
20891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892   (exit $ac_status); } && {
20893          test -z "$ac_cxx_werror_flag" ||
20894          test ! -s conftest.err
20895        } && test -s conftest.$ac_objext; then
20896   ac_lo=0 ac_mid=0
20897   while :; do
20898     cat >conftest.$ac_ext <<_ACEOF
20899 /* confdefs.h.  */
20900 _ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h.  */
20904 #include <stddef.h>
20905 int
20906 main ()
20907 {
20908 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20909 test_array [0] = 0
20910
20911   ;
20912   return 0;
20913 }
20914 _ACEOF
20915 rm -f conftest.$ac_objext
20916 if { (ac_try="$ac_compile"
20917 case "(($ac_try" in
20918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20919   *) ac_try_echo=$ac_try;;
20920 esac
20921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20922   (eval "$ac_compile") 2>conftest.er1
20923   ac_status=$?
20924   grep -v '^ *+' conftest.er1 >conftest.err
20925   rm -f conftest.er1
20926   cat conftest.err >&5
20927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928   (exit $ac_status); } && {
20929          test -z "$ac_cxx_werror_flag" ||
20930          test ! -s conftest.err
20931        } && test -s conftest.$ac_objext; then
20932   ac_hi=$ac_mid; break
20933 else
20934   echo "$as_me: failed program was:" >&5
20935 sed 's/^/| /' conftest.$ac_ext >&5
20936
20937         ac_lo=`expr $ac_mid + 1`
20938                         if test $ac_lo -le $ac_mid; then
20939                           ac_lo= ac_hi=
20940                           break
20941                         fi
20942                         ac_mid=`expr 2 '*' $ac_mid + 1`
20943 fi
20944
20945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20946   done
20947 else
20948   echo "$as_me: failed program was:" >&5
20949 sed 's/^/| /' conftest.$ac_ext >&5
20950
20951         cat >conftest.$ac_ext <<_ACEOF
20952 /* confdefs.h.  */
20953 _ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h.  */
20957 #include <stddef.h>
20958 int
20959 main ()
20960 {
20961 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20962 test_array [0] = 0
20963
20964   ;
20965   return 0;
20966 }
20967 _ACEOF
20968 rm -f conftest.$ac_objext
20969 if { (ac_try="$ac_compile"
20970 case "(($ac_try" in
20971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20972   *) ac_try_echo=$ac_try;;
20973 esac
20974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20975   (eval "$ac_compile") 2>conftest.er1
20976   ac_status=$?
20977   grep -v '^ *+' conftest.er1 >conftest.err
20978   rm -f conftest.er1
20979   cat conftest.err >&5
20980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981   (exit $ac_status); } && {
20982          test -z "$ac_cxx_werror_flag" ||
20983          test ! -s conftest.err
20984        } && test -s conftest.$ac_objext; then
20985   ac_hi=-1 ac_mid=-1
20986   while :; do
20987     cat >conftest.$ac_ext <<_ACEOF
20988 /* confdefs.h.  */
20989 _ACEOF
20990 cat confdefs.h >>conftest.$ac_ext
20991 cat >>conftest.$ac_ext <<_ACEOF
20992 /* end confdefs.h.  */
20993 #include <stddef.h>
20994 int
20995 main ()
20996 {
20997 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20998 test_array [0] = 0
20999
21000   ;
21001   return 0;
21002 }
21003 _ACEOF
21004 rm -f conftest.$ac_objext
21005 if { (ac_try="$ac_compile"
21006 case "(($ac_try" in
21007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008   *) ac_try_echo=$ac_try;;
21009 esac
21010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011   (eval "$ac_compile") 2>conftest.er1
21012   ac_status=$?
21013   grep -v '^ *+' conftest.er1 >conftest.err
21014   rm -f conftest.er1
21015   cat conftest.err >&5
21016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017   (exit $ac_status); } && {
21018          test -z "$ac_cxx_werror_flag" ||
21019          test ! -s conftest.err
21020        } && test -s conftest.$ac_objext; then
21021   ac_lo=$ac_mid; break
21022 else
21023   echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21025
21026         ac_hi=`expr '(' $ac_mid ')' - 1`
21027                         if test $ac_mid -le $ac_hi; then
21028                           ac_lo= ac_hi=
21029                           break
21030                         fi
21031                         ac_mid=`expr 2 '*' $ac_mid`
21032 fi
21033
21034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21035   done
21036 else
21037   echo "$as_me: failed program was:" >&5
21038 sed 's/^/| /' conftest.$ac_ext >&5
21039
21040         ac_lo= ac_hi=
21041 fi
21042
21043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21044 fi
21045
21046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21047 # Binary search between lo and hi bounds.
21048 while test "x$ac_lo" != "x$ac_hi"; do
21049   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21050   cat >conftest.$ac_ext <<_ACEOF
21051 /* confdefs.h.  */
21052 _ACEOF
21053 cat confdefs.h >>conftest.$ac_ext
21054 cat >>conftest.$ac_ext <<_ACEOF
21055 /* end confdefs.h.  */
21056 #include <stddef.h>
21057 int
21058 main ()
21059 {
21060 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21061 test_array [0] = 0
21062
21063   ;
21064   return 0;
21065 }
21066 _ACEOF
21067 rm -f conftest.$ac_objext
21068 if { (ac_try="$ac_compile"
21069 case "(($ac_try" in
21070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21071   *) ac_try_echo=$ac_try;;
21072 esac
21073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21074   (eval "$ac_compile") 2>conftest.er1
21075   ac_status=$?
21076   grep -v '^ *+' conftest.er1 >conftest.err
21077   rm -f conftest.er1
21078   cat conftest.err >&5
21079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080   (exit $ac_status); } && {
21081          test -z "$ac_cxx_werror_flag" ||
21082          test ! -s conftest.err
21083        } && test -s conftest.$ac_objext; then
21084   ac_hi=$ac_mid
21085 else
21086   echo "$as_me: failed program was:" >&5
21087 sed 's/^/| /' conftest.$ac_ext >&5
21088
21089         ac_lo=`expr '(' $ac_mid ')' + 1`
21090 fi
21091
21092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21093 done
21094 case $ac_lo in
21095 ?*) res_hi=$ac_lo;;
21096 '') result=? ;;
21097 esac
21098 else
21099   cat >conftest.$ac_ext <<_ACEOF
21100 /* confdefs.h.  */
21101 _ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h.  */
21105 #include <stddef.h>
21106 static long int longval () { return ~(size_t)0 / 10; }
21107 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21108 #include <stdio.h>
21109 #include <stdlib.h>
21110 int
21111 main ()
21112 {
21113
21114   FILE *f = fopen ("conftest.val", "w");
21115   if (! f)
21116     return 1;
21117   if ((~(size_t)0 / 10) < 0)
21118     {
21119       long int i = longval ();
21120       if (i != (~(size_t)0 / 10))
21121         return 1;
21122       fprintf (f, "%ld\n", i);
21123     }
21124   else
21125     {
21126       unsigned long int i = ulongval ();
21127       if (i != (~(size_t)0 / 10))
21128         return 1;
21129       fprintf (f, "%lu\n", i);
21130     }
21131   return ferror (f) || fclose (f) != 0;
21132
21133   ;
21134   return 0;
21135 }
21136 _ACEOF
21137 rm -f conftest$ac_exeext
21138 if { (ac_try="$ac_link"
21139 case "(($ac_try" in
21140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21141   *) ac_try_echo=$ac_try;;
21142 esac
21143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21144   (eval "$ac_link") 2>&5
21145   ac_status=$?
21146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21148   { (case "(($ac_try" in
21149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21150   *) ac_try_echo=$ac_try;;
21151 esac
21152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21153   (eval "$ac_try") 2>&5
21154   ac_status=$?
21155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156   (exit $ac_status); }; }; then
21157   res_hi=`cat conftest.val`
21158 else
21159   echo "$as_me: program exited with status $ac_status" >&5
21160 echo "$as_me: failed program was:" >&5
21161 sed 's/^/| /' conftest.$ac_ext >&5
21162
21163 ( exit $ac_status )
21164 result=?
21165 fi
21166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21167 fi
21168 rm -f conftest.val
21169
21170     if test "$cross_compiling" = yes; then
21171   # Depending upon the size, compute the lo and hi bounds.
21172 cat >conftest.$ac_ext <<_ACEOF
21173 /* confdefs.h.  */
21174 _ACEOF
21175 cat confdefs.h >>conftest.$ac_ext
21176 cat >>conftest.$ac_ext <<_ACEOF
21177 /* end confdefs.h.  */
21178 #include <stddef.h>
21179 int
21180 main ()
21181 {
21182 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21183 test_array [0] = 0
21184
21185   ;
21186   return 0;
21187 }
21188 _ACEOF
21189 rm -f conftest.$ac_objext
21190 if { (ac_try="$ac_compile"
21191 case "(($ac_try" in
21192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21193   *) ac_try_echo=$ac_try;;
21194 esac
21195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21196   (eval "$ac_compile") 2>conftest.er1
21197   ac_status=$?
21198   grep -v '^ *+' conftest.er1 >conftest.err
21199   rm -f conftest.er1
21200   cat conftest.err >&5
21201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202   (exit $ac_status); } && {
21203          test -z "$ac_cxx_werror_flag" ||
21204          test ! -s conftest.err
21205        } && test -s conftest.$ac_objext; then
21206   ac_lo=0 ac_mid=0
21207   while :; do
21208     cat >conftest.$ac_ext <<_ACEOF
21209 /* confdefs.h.  */
21210 _ACEOF
21211 cat confdefs.h >>conftest.$ac_ext
21212 cat >>conftest.$ac_ext <<_ACEOF
21213 /* end confdefs.h.  */
21214 #include <stddef.h>
21215 int
21216 main ()
21217 {
21218 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21219 test_array [0] = 0
21220
21221   ;
21222   return 0;
21223 }
21224 _ACEOF
21225 rm -f conftest.$ac_objext
21226 if { (ac_try="$ac_compile"
21227 case "(($ac_try" in
21228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21229   *) ac_try_echo=$ac_try;;
21230 esac
21231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21232   (eval "$ac_compile") 2>conftest.er1
21233   ac_status=$?
21234   grep -v '^ *+' conftest.er1 >conftest.err
21235   rm -f conftest.er1
21236   cat conftest.err >&5
21237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238   (exit $ac_status); } && {
21239          test -z "$ac_cxx_werror_flag" ||
21240          test ! -s conftest.err
21241        } && test -s conftest.$ac_objext; then
21242   ac_hi=$ac_mid; break
21243 else
21244   echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.$ac_ext >&5
21246
21247         ac_lo=`expr $ac_mid + 1`
21248                         if test $ac_lo -le $ac_mid; then
21249                           ac_lo= ac_hi=
21250                           break
21251                         fi
21252                         ac_mid=`expr 2 '*' $ac_mid + 1`
21253 fi
21254
21255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21256   done
21257 else
21258   echo "$as_me: failed program was:" >&5
21259 sed 's/^/| /' conftest.$ac_ext >&5
21260
21261         cat >conftest.$ac_ext <<_ACEOF
21262 /* confdefs.h.  */
21263 _ACEOF
21264 cat confdefs.h >>conftest.$ac_ext
21265 cat >>conftest.$ac_ext <<_ACEOF
21266 /* end confdefs.h.  */
21267 #include <stddef.h>
21268 int
21269 main ()
21270 {
21271 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21272 test_array [0] = 0
21273
21274   ;
21275   return 0;
21276 }
21277 _ACEOF
21278 rm -f conftest.$ac_objext
21279 if { (ac_try="$ac_compile"
21280 case "(($ac_try" in
21281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21282   *) ac_try_echo=$ac_try;;
21283 esac
21284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21285   (eval "$ac_compile") 2>conftest.er1
21286   ac_status=$?
21287   grep -v '^ *+' conftest.er1 >conftest.err
21288   rm -f conftest.er1
21289   cat conftest.err >&5
21290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291   (exit $ac_status); } && {
21292          test -z "$ac_cxx_werror_flag" ||
21293          test ! -s conftest.err
21294        } && test -s conftest.$ac_objext; then
21295   ac_hi=-1 ac_mid=-1
21296   while :; do
21297     cat >conftest.$ac_ext <<_ACEOF
21298 /* confdefs.h.  */
21299 _ACEOF
21300 cat confdefs.h >>conftest.$ac_ext
21301 cat >>conftest.$ac_ext <<_ACEOF
21302 /* end confdefs.h.  */
21303 #include <stddef.h>
21304 int
21305 main ()
21306 {
21307 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21308 test_array [0] = 0
21309
21310   ;
21311   return 0;
21312 }
21313 _ACEOF
21314 rm -f conftest.$ac_objext
21315 if { (ac_try="$ac_compile"
21316 case "(($ac_try" in
21317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21318   *) ac_try_echo=$ac_try;;
21319 esac
21320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21321   (eval "$ac_compile") 2>conftest.er1
21322   ac_status=$?
21323   grep -v '^ *+' conftest.er1 >conftest.err
21324   rm -f conftest.er1
21325   cat conftest.err >&5
21326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327   (exit $ac_status); } && {
21328          test -z "$ac_cxx_werror_flag" ||
21329          test ! -s conftest.err
21330        } && test -s conftest.$ac_objext; then
21331   ac_lo=$ac_mid; break
21332 else
21333   echo "$as_me: failed program was:" >&5
21334 sed 's/^/| /' conftest.$ac_ext >&5
21335
21336         ac_hi=`expr '(' $ac_mid ')' - 1`
21337                         if test $ac_mid -le $ac_hi; then
21338                           ac_lo= ac_hi=
21339                           break
21340                         fi
21341                         ac_mid=`expr 2 '*' $ac_mid`
21342 fi
21343
21344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21345   done
21346 else
21347   echo "$as_me: failed program was:" >&5
21348 sed 's/^/| /' conftest.$ac_ext >&5
21349
21350         ac_lo= ac_hi=
21351 fi
21352
21353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21354 fi
21355
21356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21357 # Binary search between lo and hi bounds.
21358 while test "x$ac_lo" != "x$ac_hi"; do
21359   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21360   cat >conftest.$ac_ext <<_ACEOF
21361 /* confdefs.h.  */
21362 _ACEOF
21363 cat confdefs.h >>conftest.$ac_ext
21364 cat >>conftest.$ac_ext <<_ACEOF
21365 /* end confdefs.h.  */
21366 #include <stddef.h>
21367 int
21368 main ()
21369 {
21370 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21371 test_array [0] = 0
21372
21373   ;
21374   return 0;
21375 }
21376 _ACEOF
21377 rm -f conftest.$ac_objext
21378 if { (ac_try="$ac_compile"
21379 case "(($ac_try" in
21380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21381   *) ac_try_echo=$ac_try;;
21382 esac
21383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21384   (eval "$ac_compile") 2>conftest.er1
21385   ac_status=$?
21386   grep -v '^ *+' conftest.er1 >conftest.err
21387   rm -f conftest.er1
21388   cat conftest.err >&5
21389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390   (exit $ac_status); } && {
21391          test -z "$ac_cxx_werror_flag" ||
21392          test ! -s conftest.err
21393        } && test -s conftest.$ac_objext; then
21394   ac_hi=$ac_mid
21395 else
21396   echo "$as_me: failed program was:" >&5
21397 sed 's/^/| /' conftest.$ac_ext >&5
21398
21399         ac_lo=`expr '(' $ac_mid ')' + 1`
21400 fi
21401
21402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21403 done
21404 case $ac_lo in
21405 ?*) res_lo=$ac_lo;;
21406 '') result=? ;;
21407 esac
21408 else
21409   cat >conftest.$ac_ext <<_ACEOF
21410 /* confdefs.h.  */
21411 _ACEOF
21412 cat confdefs.h >>conftest.$ac_ext
21413 cat >>conftest.$ac_ext <<_ACEOF
21414 /* end confdefs.h.  */
21415 #include <stddef.h>
21416 static long int longval () { return ~(size_t)0 % 10; }
21417 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21418 #include <stdio.h>
21419 #include <stdlib.h>
21420 int
21421 main ()
21422 {
21423
21424   FILE *f = fopen ("conftest.val", "w");
21425   if (! f)
21426     return 1;
21427   if ((~(size_t)0 % 10) < 0)
21428     {
21429       long int i = longval ();
21430       if (i != (~(size_t)0 % 10))
21431         return 1;
21432       fprintf (f, "%ld\n", i);
21433     }
21434   else
21435     {
21436       unsigned long int i = ulongval ();
21437       if (i != (~(size_t)0 % 10))
21438         return 1;
21439       fprintf (f, "%lu\n", i);
21440     }
21441   return ferror (f) || fclose (f) != 0;
21442
21443   ;
21444   return 0;
21445 }
21446 _ACEOF
21447 rm -f conftest$ac_exeext
21448 if { (ac_try="$ac_link"
21449 case "(($ac_try" in
21450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21451   *) ac_try_echo=$ac_try;;
21452 esac
21453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21454   (eval "$ac_link") 2>&5
21455   ac_status=$?
21456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21458   { (case "(($ac_try" in
21459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21460   *) ac_try_echo=$ac_try;;
21461 esac
21462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21463   (eval "$ac_try") 2>&5
21464   ac_status=$?
21465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466   (exit $ac_status); }; }; then
21467   res_lo=`cat conftest.val`
21468 else
21469   echo "$as_me: program exited with status $ac_status" >&5
21470 echo "$as_me: failed program was:" >&5
21471 sed 's/^/| /' conftest.$ac_ext >&5
21472
21473 ( exit $ac_status )
21474 result=?
21475 fi
21476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21477 fi
21478 rm -f conftest.val
21479
21480     if test "$cross_compiling" = yes; then
21481   # Depending upon the size, compute the lo and hi bounds.
21482 cat >conftest.$ac_ext <<_ACEOF
21483 /* confdefs.h.  */
21484 _ACEOF
21485 cat confdefs.h >>conftest.$ac_ext
21486 cat >>conftest.$ac_ext <<_ACEOF
21487 /* end confdefs.h.  */
21488 #include <stddef.h>
21489 int
21490 main ()
21491 {
21492 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21493 test_array [0] = 0
21494
21495   ;
21496   return 0;
21497 }
21498 _ACEOF
21499 rm -f conftest.$ac_objext
21500 if { (ac_try="$ac_compile"
21501 case "(($ac_try" in
21502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21503   *) ac_try_echo=$ac_try;;
21504 esac
21505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21506   (eval "$ac_compile") 2>conftest.er1
21507   ac_status=$?
21508   grep -v '^ *+' conftest.er1 >conftest.err
21509   rm -f conftest.er1
21510   cat conftest.err >&5
21511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512   (exit $ac_status); } && {
21513          test -z "$ac_cxx_werror_flag" ||
21514          test ! -s conftest.err
21515        } && test -s conftest.$ac_objext; then
21516   ac_lo=0 ac_mid=0
21517   while :; do
21518     cat >conftest.$ac_ext <<_ACEOF
21519 /* confdefs.h.  */
21520 _ACEOF
21521 cat confdefs.h >>conftest.$ac_ext
21522 cat >>conftest.$ac_ext <<_ACEOF
21523 /* end confdefs.h.  */
21524 #include <stddef.h>
21525 int
21526 main ()
21527 {
21528 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21529 test_array [0] = 0
21530
21531   ;
21532   return 0;
21533 }
21534 _ACEOF
21535 rm -f conftest.$ac_objext
21536 if { (ac_try="$ac_compile"
21537 case "(($ac_try" in
21538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21539   *) ac_try_echo=$ac_try;;
21540 esac
21541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21542   (eval "$ac_compile") 2>conftest.er1
21543   ac_status=$?
21544   grep -v '^ *+' conftest.er1 >conftest.err
21545   rm -f conftest.er1
21546   cat conftest.err >&5
21547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548   (exit $ac_status); } && {
21549          test -z "$ac_cxx_werror_flag" ||
21550          test ! -s conftest.err
21551        } && test -s conftest.$ac_objext; then
21552   ac_hi=$ac_mid; break
21553 else
21554   echo "$as_me: failed program was:" >&5
21555 sed 's/^/| /' conftest.$ac_ext >&5
21556
21557         ac_lo=`expr $ac_mid + 1`
21558                         if test $ac_lo -le $ac_mid; then
21559                           ac_lo= ac_hi=
21560                           break
21561                         fi
21562                         ac_mid=`expr 2 '*' $ac_mid + 1`
21563 fi
21564
21565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21566   done
21567 else
21568   echo "$as_me: failed program was:" >&5
21569 sed 's/^/| /' conftest.$ac_ext >&5
21570
21571         cat >conftest.$ac_ext <<_ACEOF
21572 /* confdefs.h.  */
21573 _ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h.  */
21577 #include <stddef.h>
21578 int
21579 main ()
21580 {
21581 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21582 test_array [0] = 0
21583
21584   ;
21585   return 0;
21586 }
21587 _ACEOF
21588 rm -f conftest.$ac_objext
21589 if { (ac_try="$ac_compile"
21590 case "(($ac_try" in
21591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21592   *) ac_try_echo=$ac_try;;
21593 esac
21594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21595   (eval "$ac_compile") 2>conftest.er1
21596   ac_status=$?
21597   grep -v '^ *+' conftest.er1 >conftest.err
21598   rm -f conftest.er1
21599   cat conftest.err >&5
21600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601   (exit $ac_status); } && {
21602          test -z "$ac_cxx_werror_flag" ||
21603          test ! -s conftest.err
21604        } && test -s conftest.$ac_objext; then
21605   ac_hi=-1 ac_mid=-1
21606   while :; do
21607     cat >conftest.$ac_ext <<_ACEOF
21608 /* confdefs.h.  */
21609 _ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h.  */
21613 #include <stddef.h>
21614 int
21615 main ()
21616 {
21617 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21618 test_array [0] = 0
21619
21620   ;
21621   return 0;
21622 }
21623 _ACEOF
21624 rm -f conftest.$ac_objext
21625 if { (ac_try="$ac_compile"
21626 case "(($ac_try" in
21627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21628   *) ac_try_echo=$ac_try;;
21629 esac
21630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21631   (eval "$ac_compile") 2>conftest.er1
21632   ac_status=$?
21633   grep -v '^ *+' conftest.er1 >conftest.err
21634   rm -f conftest.er1
21635   cat conftest.err >&5
21636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637   (exit $ac_status); } && {
21638          test -z "$ac_cxx_werror_flag" ||
21639          test ! -s conftest.err
21640        } && test -s conftest.$ac_objext; then
21641   ac_lo=$ac_mid; break
21642 else
21643   echo "$as_me: failed program was:" >&5
21644 sed 's/^/| /' conftest.$ac_ext >&5
21645
21646         ac_hi=`expr '(' $ac_mid ')' - 1`
21647                         if test $ac_mid -le $ac_hi; then
21648                           ac_lo= ac_hi=
21649                           break
21650                         fi
21651                         ac_mid=`expr 2 '*' $ac_mid`
21652 fi
21653
21654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21655   done
21656 else
21657   echo "$as_me: failed program was:" >&5
21658 sed 's/^/| /' conftest.$ac_ext >&5
21659
21660         ac_lo= ac_hi=
21661 fi
21662
21663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21664 fi
21665
21666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21667 # Binary search between lo and hi bounds.
21668 while test "x$ac_lo" != "x$ac_hi"; do
21669   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21670   cat >conftest.$ac_ext <<_ACEOF
21671 /* confdefs.h.  */
21672 _ACEOF
21673 cat confdefs.h >>conftest.$ac_ext
21674 cat >>conftest.$ac_ext <<_ACEOF
21675 /* end confdefs.h.  */
21676 #include <stddef.h>
21677 int
21678 main ()
21679 {
21680 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21681 test_array [0] = 0
21682
21683   ;
21684   return 0;
21685 }
21686 _ACEOF
21687 rm -f conftest.$ac_objext
21688 if { (ac_try="$ac_compile"
21689 case "(($ac_try" in
21690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21691   *) ac_try_echo=$ac_try;;
21692 esac
21693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21694   (eval "$ac_compile") 2>conftest.er1
21695   ac_status=$?
21696   grep -v '^ *+' conftest.er1 >conftest.err
21697   rm -f conftest.er1
21698   cat conftest.err >&5
21699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700   (exit $ac_status); } && {
21701          test -z "$ac_cxx_werror_flag" ||
21702          test ! -s conftest.err
21703        } && test -s conftest.$ac_objext; then
21704   ac_hi=$ac_mid
21705 else
21706   echo "$as_me: failed program was:" >&5
21707 sed 's/^/| /' conftest.$ac_ext >&5
21708
21709         ac_lo=`expr '(' $ac_mid ')' + 1`
21710 fi
21711
21712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21713 done
21714 case $ac_lo in
21715 ?*) fits_in_uint=$ac_lo;;
21716 '') result=? ;;
21717 esac
21718 else
21719   cat >conftest.$ac_ext <<_ACEOF
21720 /* confdefs.h.  */
21721 _ACEOF
21722 cat confdefs.h >>conftest.$ac_ext
21723 cat >>conftest.$ac_ext <<_ACEOF
21724 /* end confdefs.h.  */
21725 #include <stddef.h>
21726 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21727 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21728 #include <stdio.h>
21729 #include <stdlib.h>
21730 int
21731 main ()
21732 {
21733
21734   FILE *f = fopen ("conftest.val", "w");
21735   if (! f)
21736     return 1;
21737   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21738     {
21739       long int i = longval ();
21740       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21741         return 1;
21742       fprintf (f, "%ld\n", i);
21743     }
21744   else
21745     {
21746       unsigned long int i = ulongval ();
21747       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21748         return 1;
21749       fprintf (f, "%lu\n", i);
21750     }
21751   return ferror (f) || fclose (f) != 0;
21752
21753   ;
21754   return 0;
21755 }
21756 _ACEOF
21757 rm -f conftest$ac_exeext
21758 if { (ac_try="$ac_link"
21759 case "(($ac_try" in
21760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21761   *) ac_try_echo=$ac_try;;
21762 esac
21763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21764   (eval "$ac_link") 2>&5
21765   ac_status=$?
21766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21768   { (case "(($ac_try" in
21769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21770   *) ac_try_echo=$ac_try;;
21771 esac
21772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21773   (eval "$ac_try") 2>&5
21774   ac_status=$?
21775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776   (exit $ac_status); }; }; then
21777   fits_in_uint=`cat conftest.val`
21778 else
21779   echo "$as_me: program exited with status $ac_status" >&5
21780 echo "$as_me: failed program was:" >&5
21781 sed 's/^/| /' conftest.$ac_ext >&5
21782
21783 ( exit $ac_status )
21784 result=?
21785 fi
21786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21787 fi
21788 rm -f conftest.val
21789
21790     if test "$fits_in_uint" = 1; then
21791                   cat >conftest.$ac_ext <<_ACEOF
21792 /* confdefs.h.  */
21793 _ACEOF
21794 cat confdefs.h >>conftest.$ac_ext
21795 cat >>conftest.$ac_ext <<_ACEOF
21796 /* end confdefs.h.  */
21797 #include <stddef.h>
21798         extern size_t foo;
21799         extern unsigned long foo;
21800
21801 int
21802 main ()
21803 {
21804
21805   ;
21806   return 0;
21807 }
21808 _ACEOF
21809 rm -f conftest.$ac_objext
21810 if { (ac_try="$ac_compile"
21811 case "(($ac_try" in
21812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21813   *) ac_try_echo=$ac_try;;
21814 esac
21815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21816   (eval "$ac_compile") 2>conftest.er1
21817   ac_status=$?
21818   grep -v '^ *+' conftest.er1 >conftest.err
21819   rm -f conftest.er1
21820   cat conftest.err >&5
21821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822   (exit $ac_status); } && {
21823          test -z "$ac_cxx_werror_flag" ||
21824          test ! -s conftest.err
21825        } && test -s conftest.$ac_objext; then
21826   fits_in_uint=0
21827 else
21828   echo "$as_me: failed program was:" >&5
21829 sed 's/^/| /' conftest.$ac_ext >&5
21830
21831
21832 fi
21833
21834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21835     fi
21836     if test -z "$result"; then
21837       if test "$fits_in_uint" = 1; then
21838         result="$res_hi$res_lo"U
21839       else
21840         result="$res_hi$res_lo"UL
21841       fi
21842     else
21843             result='~(size_t)0'
21844     fi
21845   fi
21846   { echo "$as_me:$LINENO: result: $result" >&5
21847 echo "${ECHO_T}$result" >&6; }
21848   if test "$result" != yes; then
21849
21850 cat >>confdefs.h <<_ACEOF
21851 #define SIZE_MAX $result
21852 _ACEOF
21853
21854   fi
21855
21856
21857
21858
21859
21860 for ac_header in stdint.h
21861 do
21862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21864   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21867   echo $ECHO_N "(cached) $ECHO_C" >&6
21868 fi
21869 ac_res=`eval echo '${'$as_ac_Header'}'`
21870                { echo "$as_me:$LINENO: result: $ac_res" >&5
21871 echo "${ECHO_T}$ac_res" >&6; }
21872 else
21873   # Is the header compilable?
21874 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21876 cat >conftest.$ac_ext <<_ACEOF
21877 /* confdefs.h.  */
21878 _ACEOF
21879 cat confdefs.h >>conftest.$ac_ext
21880 cat >>conftest.$ac_ext <<_ACEOF
21881 /* end confdefs.h.  */
21882 $ac_includes_default
21883 #include <$ac_header>
21884 _ACEOF
21885 rm -f conftest.$ac_objext
21886 if { (ac_try="$ac_compile"
21887 case "(($ac_try" in
21888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21889   *) ac_try_echo=$ac_try;;
21890 esac
21891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21892   (eval "$ac_compile") 2>conftest.er1
21893   ac_status=$?
21894   grep -v '^ *+' conftest.er1 >conftest.err
21895   rm -f conftest.er1
21896   cat conftest.err >&5
21897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898   (exit $ac_status); } && {
21899          test -z "$ac_cxx_werror_flag" ||
21900          test ! -s conftest.err
21901        } && test -s conftest.$ac_objext; then
21902   ac_header_compiler=yes
21903 else
21904   echo "$as_me: failed program was:" >&5
21905 sed 's/^/| /' conftest.$ac_ext >&5
21906
21907         ac_header_compiler=no
21908 fi
21909
21910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21911 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21912 echo "${ECHO_T}$ac_header_compiler" >&6; }
21913
21914 # Is the header present?
21915 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21916 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21917 cat >conftest.$ac_ext <<_ACEOF
21918 /* confdefs.h.  */
21919 _ACEOF
21920 cat confdefs.h >>conftest.$ac_ext
21921 cat >>conftest.$ac_ext <<_ACEOF
21922 /* end confdefs.h.  */
21923 #include <$ac_header>
21924 _ACEOF
21925 if { (ac_try="$ac_cpp conftest.$ac_ext"
21926 case "(($ac_try" in
21927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21928   *) ac_try_echo=$ac_try;;
21929 esac
21930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21931   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21932   ac_status=$?
21933   grep -v '^ *+' conftest.er1 >conftest.err
21934   rm -f conftest.er1
21935   cat conftest.err >&5
21936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937   (exit $ac_status); } >/dev/null && {
21938          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21939          test ! -s conftest.err
21940        }; then
21941   ac_header_preproc=yes
21942 else
21943   echo "$as_me: failed program was:" >&5
21944 sed 's/^/| /' conftest.$ac_ext >&5
21945
21946   ac_header_preproc=no
21947 fi
21948
21949 rm -f conftest.err conftest.$ac_ext
21950 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21951 echo "${ECHO_T}$ac_header_preproc" >&6; }
21952
21953 # So?  What about this header?
21954 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21955   yes:no: )
21956     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21957 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21958     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21959 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21960     ac_header_preproc=yes
21961     ;;
21962   no:yes:* )
21963     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21964 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21965     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21966 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21967     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21968 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21969     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21970 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21971     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21972 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21973     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21974 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21975
21976     ;;
21977 esac
21978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21981   echo $ECHO_N "(cached) $ECHO_C" >&6
21982 else
21983   eval "$as_ac_Header=\$ac_header_preproc"
21984 fi
21985 ac_res=`eval echo '${'$as_ac_Header'}'`
21986                { echo "$as_me:$LINENO: result: $ac_res" >&5
21987 echo "${ECHO_T}$ac_res" >&6; }
21988
21989 fi
21990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21991   cat >>confdefs.h <<_ACEOF
21992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21993 _ACEOF
21994
21995 fi
21996
21997 done
21998
21999
22000
22001
22002
22003
22004
22005
22006   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
22007 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
22008 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22009   echo $ECHO_N "(cached) $ECHO_C" >&6
22010 else
22011   cat >conftest.$ac_ext <<_ACEOF
22012 /* confdefs.h.  */
22013 _ACEOF
22014 cat confdefs.h >>conftest.$ac_ext
22015 cat >>conftest.$ac_ext <<_ACEOF
22016 /* end confdefs.h.  */
22017 $ac_includes_default
22018 typedef ptrdiff_t ac__type_new_;
22019 int
22020 main ()
22021 {
22022 if ((ac__type_new_ *) 0)
22023   return 0;
22024 if (sizeof (ac__type_new_))
22025   return 0;
22026   ;
22027   return 0;
22028 }
22029 _ACEOF
22030 rm -f conftest.$ac_objext
22031 if { (ac_try="$ac_compile"
22032 case "(($ac_try" in
22033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22034   *) ac_try_echo=$ac_try;;
22035 esac
22036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22037   (eval "$ac_compile") 2>conftest.er1
22038   ac_status=$?
22039   grep -v '^ *+' conftest.er1 >conftest.err
22040   rm -f conftest.er1
22041   cat conftest.err >&5
22042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043   (exit $ac_status); } && {
22044          test -z "$ac_cxx_werror_flag" ||
22045          test ! -s conftest.err
22046        } && test -s conftest.$ac_objext; then
22047   ac_cv_type_ptrdiff_t=yes
22048 else
22049   echo "$as_me: failed program was:" >&5
22050 sed 's/^/| /' conftest.$ac_ext >&5
22051
22052         ac_cv_type_ptrdiff_t=no
22053 fi
22054
22055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22056 fi
22057 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22058 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22059 if test $ac_cv_type_ptrdiff_t = yes; then
22060   :
22061 else
22062
22063 cat >>confdefs.h <<\_ACEOF
22064 #define ptrdiff_t long
22065 _ACEOF
22066
22067
22068 fi
22069
22070
22071
22072
22073
22074
22075
22076
22077
22078
22079
22080 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22081 stdlib.h string.h unistd.h sys/param.h
22082 do
22083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22085   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22088   echo $ECHO_N "(cached) $ECHO_C" >&6
22089 fi
22090 ac_res=`eval echo '${'$as_ac_Header'}'`
22091                { echo "$as_me:$LINENO: result: $ac_res" >&5
22092 echo "${ECHO_T}$ac_res" >&6; }
22093 else
22094   # Is the header compilable?
22095 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22097 cat >conftest.$ac_ext <<_ACEOF
22098 /* confdefs.h.  */
22099 _ACEOF
22100 cat confdefs.h >>conftest.$ac_ext
22101 cat >>conftest.$ac_ext <<_ACEOF
22102 /* end confdefs.h.  */
22103 $ac_includes_default
22104 #include <$ac_header>
22105 _ACEOF
22106 rm -f conftest.$ac_objext
22107 if { (ac_try="$ac_compile"
22108 case "(($ac_try" in
22109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22110   *) ac_try_echo=$ac_try;;
22111 esac
22112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22113   (eval "$ac_compile") 2>conftest.er1
22114   ac_status=$?
22115   grep -v '^ *+' conftest.er1 >conftest.err
22116   rm -f conftest.er1
22117   cat conftest.err >&5
22118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119   (exit $ac_status); } && {
22120          test -z "$ac_cxx_werror_flag" ||
22121          test ! -s conftest.err
22122        } && test -s conftest.$ac_objext; then
22123   ac_header_compiler=yes
22124 else
22125   echo "$as_me: failed program was:" >&5
22126 sed 's/^/| /' conftest.$ac_ext >&5
22127
22128         ac_header_compiler=no
22129 fi
22130
22131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22133 echo "${ECHO_T}$ac_header_compiler" >&6; }
22134
22135 # Is the header present?
22136 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22138 cat >conftest.$ac_ext <<_ACEOF
22139 /* confdefs.h.  */
22140 _ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h.  */
22144 #include <$ac_header>
22145 _ACEOF
22146 if { (ac_try="$ac_cpp conftest.$ac_ext"
22147 case "(($ac_try" in
22148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22149   *) ac_try_echo=$ac_try;;
22150 esac
22151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22152   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22153   ac_status=$?
22154   grep -v '^ *+' conftest.er1 >conftest.err
22155   rm -f conftest.er1
22156   cat conftest.err >&5
22157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158   (exit $ac_status); } >/dev/null && {
22159          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
22160          test ! -s conftest.err
22161        }; then
22162   ac_header_preproc=yes
22163 else
22164   echo "$as_me: failed program was:" >&5
22165 sed 's/^/| /' conftest.$ac_ext >&5
22166
22167   ac_header_preproc=no
22168 fi
22169
22170 rm -f conftest.err conftest.$ac_ext
22171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22172 echo "${ECHO_T}$ac_header_preproc" >&6; }
22173
22174 # So?  What about this header?
22175 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22176   yes:no: )
22177     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22179     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22181     ac_header_preproc=yes
22182     ;;
22183   no:yes:* )
22184     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22186     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22187 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22188     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22190     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22191 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22192     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22194     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22196
22197     ;;
22198 esac
22199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22202   echo $ECHO_N "(cached) $ECHO_C" >&6
22203 else
22204   eval "$as_ac_Header=\$ac_header_preproc"
22205 fi
22206 ac_res=`eval echo '${'$as_ac_Header'}'`
22207                { echo "$as_me:$LINENO: result: $ac_res" >&5
22208 echo "${ECHO_T}$ac_res" >&6; }
22209
22210 fi
22211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22212   cat >>confdefs.h <<_ACEOF
22213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22214 _ACEOF
22215
22216 fi
22217
22218 done
22219
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241
22242
22243 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22244 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22245 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22246 __fsetlocking
22247 do
22248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22249 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22251 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22252   echo $ECHO_N "(cached) $ECHO_C" >&6
22253 else
22254   cat >conftest.$ac_ext <<_ACEOF
22255 /* confdefs.h.  */
22256 _ACEOF
22257 cat confdefs.h >>conftest.$ac_ext
22258 cat >>conftest.$ac_ext <<_ACEOF
22259 /* end confdefs.h.  */
22260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22261    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22262 #define $ac_func innocuous_$ac_func
22263
22264 /* System header to define __stub macros and hopefully few prototypes,
22265     which can conflict with char $ac_func (); below.
22266     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22267     <limits.h> exists even on freestanding compilers.  */
22268
22269 #ifdef __STDC__
22270 # include <limits.h>
22271 #else
22272 # include <assert.h>
22273 #endif
22274
22275 #undef $ac_func
22276
22277 /* Override any GCC internal prototype to avoid an error.
22278    Use char because int might match the return type of a GCC
22279    builtin and then its argument prototype would still apply.  */
22280 #ifdef __cplusplus
22281 extern "C"
22282 #endif
22283 char $ac_func ();
22284 /* The GNU C library defines this for functions which it implements
22285     to always fail with ENOSYS.  Some functions are actually named
22286     something starting with __ and the normal name is an alias.  */
22287 #if defined __stub_$ac_func || defined __stub___$ac_func
22288 choke me
22289 #endif
22290
22291 int
22292 main ()
22293 {
22294 return $ac_func ();
22295   ;
22296   return 0;
22297 }
22298 _ACEOF
22299 rm -f conftest.$ac_objext conftest$ac_exeext
22300 if { (ac_try="$ac_link"
22301 case "(($ac_try" in
22302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22303   *) ac_try_echo=$ac_try;;
22304 esac
22305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22306   (eval "$ac_link") 2>conftest.er1
22307   ac_status=$?
22308   grep -v '^ *+' conftest.er1 >conftest.err
22309   rm -f conftest.er1
22310   cat conftest.err >&5
22311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312   (exit $ac_status); } && {
22313          test -z "$ac_cxx_werror_flag" ||
22314          test ! -s conftest.err
22315        } && test -s conftest$ac_exeext &&
22316        $as_test_x conftest$ac_exeext; then
22317   eval "$as_ac_var=yes"
22318 else
22319   echo "$as_me: failed program was:" >&5
22320 sed 's/^/| /' conftest.$ac_ext >&5
22321
22322         eval "$as_ac_var=no"
22323 fi
22324
22325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22326       conftest$ac_exeext conftest.$ac_ext
22327 fi
22328 ac_res=`eval echo '${'$as_ac_var'}'`
22329                { echo "$as_me:$LINENO: result: $ac_res" >&5
22330 echo "${ECHO_T}$ac_res" >&6; }
22331 if test `eval echo '${'$as_ac_var'}'` = yes; then
22332   cat >>confdefs.h <<_ACEOF
22333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22334 _ACEOF
22335
22336 fi
22337 done
22338
22339
22340
22341   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22342 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22343 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22344   echo $ECHO_N "(cached) $ECHO_C" >&6
22345 else
22346   cat >conftest.$ac_ext <<_ACEOF
22347 /* confdefs.h.  */
22348 _ACEOF
22349 cat confdefs.h >>conftest.$ac_ext
22350 cat >>conftest.$ac_ext <<_ACEOF
22351 /* end confdefs.h.  */
22352 #include <stdio.h>
22353 int
22354 main ()
22355 {
22356
22357 #ifndef _snprintf
22358   char *p = (char *) _snprintf;
22359 #endif
22360
22361   ;
22362   return 0;
22363 }
22364 _ACEOF
22365 rm -f conftest.$ac_objext
22366 if { (ac_try="$ac_compile"
22367 case "(($ac_try" in
22368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22369   *) ac_try_echo=$ac_try;;
22370 esac
22371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22372   (eval "$ac_compile") 2>conftest.er1
22373   ac_status=$?
22374   grep -v '^ *+' conftest.er1 >conftest.err
22375   rm -f conftest.er1
22376   cat conftest.err >&5
22377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378   (exit $ac_status); } && {
22379          test -z "$ac_cxx_werror_flag" ||
22380          test ! -s conftest.err
22381        } && test -s conftest.$ac_objext; then
22382   ac_cv_have_decl__snprintf=yes
22383 else
22384   echo "$as_me: failed program was:" >&5
22385 sed 's/^/| /' conftest.$ac_ext >&5
22386
22387         ac_cv_have_decl__snprintf=no
22388 fi
22389
22390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22391 fi
22392 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22393 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22394   if test $ac_cv_have_decl__snprintf = yes; then
22395     gt_value=1
22396   else
22397     gt_value=0
22398   fi
22399
22400 cat >>confdefs.h <<_ACEOF
22401 #define HAVE_DECL__SNPRINTF $gt_value
22402 _ACEOF
22403
22404
22405
22406   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22407 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22408 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22409   echo $ECHO_N "(cached) $ECHO_C" >&6
22410 else
22411   cat >conftest.$ac_ext <<_ACEOF
22412 /* confdefs.h.  */
22413 _ACEOF
22414 cat confdefs.h >>conftest.$ac_ext
22415 cat >>conftest.$ac_ext <<_ACEOF
22416 /* end confdefs.h.  */
22417 #include <stdio.h>
22418 int
22419 main ()
22420 {
22421
22422 #ifndef _snwprintf
22423   char *p = (char *) _snwprintf;
22424 #endif
22425
22426   ;
22427   return 0;
22428 }
22429 _ACEOF
22430 rm -f conftest.$ac_objext
22431 if { (ac_try="$ac_compile"
22432 case "(($ac_try" in
22433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22434   *) ac_try_echo=$ac_try;;
22435 esac
22436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22437   (eval "$ac_compile") 2>conftest.er1
22438   ac_status=$?
22439   grep -v '^ *+' conftest.er1 >conftest.err
22440   rm -f conftest.er1
22441   cat conftest.err >&5
22442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443   (exit $ac_status); } && {
22444          test -z "$ac_cxx_werror_flag" ||
22445          test ! -s conftest.err
22446        } && test -s conftest.$ac_objext; then
22447   ac_cv_have_decl__snwprintf=yes
22448 else
22449   echo "$as_me: failed program was:" >&5
22450 sed 's/^/| /' conftest.$ac_ext >&5
22451
22452         ac_cv_have_decl__snwprintf=no
22453 fi
22454
22455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22456 fi
22457 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22458 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22459   if test $ac_cv_have_decl__snwprintf = yes; then
22460     gt_value=1
22461   else
22462     gt_value=0
22463   fi
22464
22465 cat >>confdefs.h <<_ACEOF
22466 #define HAVE_DECL__SNWPRINTF $gt_value
22467 _ACEOF
22468
22469
22470
22471
22472   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22473 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22474 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22475   echo $ECHO_N "(cached) $ECHO_C" >&6
22476 else
22477   cat >conftest.$ac_ext <<_ACEOF
22478 /* confdefs.h.  */
22479 _ACEOF
22480 cat confdefs.h >>conftest.$ac_ext
22481 cat >>conftest.$ac_ext <<_ACEOF
22482 /* end confdefs.h.  */
22483 #include <stdio.h>
22484 int
22485 main ()
22486 {
22487
22488 #ifndef feof_unlocked
22489   char *p = (char *) feof_unlocked;
22490 #endif
22491
22492   ;
22493   return 0;
22494 }
22495 _ACEOF
22496 rm -f conftest.$ac_objext
22497 if { (ac_try="$ac_compile"
22498 case "(($ac_try" in
22499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22500   *) ac_try_echo=$ac_try;;
22501 esac
22502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22503   (eval "$ac_compile") 2>conftest.er1
22504   ac_status=$?
22505   grep -v '^ *+' conftest.er1 >conftest.err
22506   rm -f conftest.er1
22507   cat conftest.err >&5
22508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509   (exit $ac_status); } && {
22510          test -z "$ac_cxx_werror_flag" ||
22511          test ! -s conftest.err
22512        } && test -s conftest.$ac_objext; then
22513   ac_cv_have_decl_feof_unlocked=yes
22514 else
22515   echo "$as_me: failed program was:" >&5
22516 sed 's/^/| /' conftest.$ac_ext >&5
22517
22518         ac_cv_have_decl_feof_unlocked=no
22519 fi
22520
22521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22522 fi
22523 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22524 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22525   if test $ac_cv_have_decl_feof_unlocked = yes; then
22526     gt_value=1
22527   else
22528     gt_value=0
22529   fi
22530
22531 cat >>confdefs.h <<_ACEOF
22532 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22533 _ACEOF
22534
22535
22536
22537   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22538 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22539 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22540   echo $ECHO_N "(cached) $ECHO_C" >&6
22541 else
22542   cat >conftest.$ac_ext <<_ACEOF
22543 /* confdefs.h.  */
22544 _ACEOF
22545 cat confdefs.h >>conftest.$ac_ext
22546 cat >>conftest.$ac_ext <<_ACEOF
22547 /* end confdefs.h.  */
22548 #include <stdio.h>
22549 int
22550 main ()
22551 {
22552
22553 #ifndef fgets_unlocked
22554   char *p = (char *) fgets_unlocked;
22555 #endif
22556
22557   ;
22558   return 0;
22559 }
22560 _ACEOF
22561 rm -f conftest.$ac_objext
22562 if { (ac_try="$ac_compile"
22563 case "(($ac_try" in
22564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22565   *) ac_try_echo=$ac_try;;
22566 esac
22567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22568   (eval "$ac_compile") 2>conftest.er1
22569   ac_status=$?
22570   grep -v '^ *+' conftest.er1 >conftest.err
22571   rm -f conftest.er1
22572   cat conftest.err >&5
22573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574   (exit $ac_status); } && {
22575          test -z "$ac_cxx_werror_flag" ||
22576          test ! -s conftest.err
22577        } && test -s conftest.$ac_objext; then
22578   ac_cv_have_decl_fgets_unlocked=yes
22579 else
22580   echo "$as_me: failed program was:" >&5
22581 sed 's/^/| /' conftest.$ac_ext >&5
22582
22583         ac_cv_have_decl_fgets_unlocked=no
22584 fi
22585
22586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22587 fi
22588 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22589 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22590   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22591     gt_value=1
22592   else
22593     gt_value=0
22594   fi
22595
22596 cat >>confdefs.h <<_ACEOF
22597 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22598 _ACEOF
22599
22600
22601
22602   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22603 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22604 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22605   echo $ECHO_N "(cached) $ECHO_C" >&6
22606 else
22607   cat >conftest.$ac_ext <<_ACEOF
22608 /* confdefs.h.  */
22609 _ACEOF
22610 cat confdefs.h >>conftest.$ac_ext
22611 cat >>conftest.$ac_ext <<_ACEOF
22612 /* end confdefs.h.  */
22613 #include <stdio.h>
22614 int
22615 main ()
22616 {
22617
22618 #ifndef getc_unlocked
22619   char *p = (char *) getc_unlocked;
22620 #endif
22621
22622   ;
22623   return 0;
22624 }
22625 _ACEOF
22626 rm -f conftest.$ac_objext
22627 if { (ac_try="$ac_compile"
22628 case "(($ac_try" in
22629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22630   *) ac_try_echo=$ac_try;;
22631 esac
22632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22633   (eval "$ac_compile") 2>conftest.er1
22634   ac_status=$?
22635   grep -v '^ *+' conftest.er1 >conftest.err
22636   rm -f conftest.er1
22637   cat conftest.err >&5
22638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639   (exit $ac_status); } && {
22640          test -z "$ac_cxx_werror_flag" ||
22641          test ! -s conftest.err
22642        } && test -s conftest.$ac_objext; then
22643   ac_cv_have_decl_getc_unlocked=yes
22644 else
22645   echo "$as_me: failed program was:" >&5
22646 sed 's/^/| /' conftest.$ac_ext >&5
22647
22648         ac_cv_have_decl_getc_unlocked=no
22649 fi
22650
22651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22652 fi
22653 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22654 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22655   if test $ac_cv_have_decl_getc_unlocked = yes; then
22656     gt_value=1
22657   else
22658     gt_value=0
22659   fi
22660
22661 cat >>confdefs.h <<_ACEOF
22662 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22663 _ACEOF
22664
22665
22666
22667   case $gt_cv_func_printf_posix in
22668     *yes) HAVE_POSIX_PRINTF=1 ;;
22669     *) HAVE_POSIX_PRINTF=0 ;;
22670   esac
22671
22672   if test "$ac_cv_func_asprintf" = yes; then
22673     HAVE_ASPRINTF=1
22674   else
22675     HAVE_ASPRINTF=0
22676   fi
22677
22678   if test "$ac_cv_func_snprintf" = yes; then
22679     HAVE_SNPRINTF=1
22680   else
22681     HAVE_SNPRINTF=0
22682   fi
22683
22684   if test "$ac_cv_func_wprintf" = yes; then
22685     HAVE_WPRINTF=1
22686   else
22687     HAVE_WPRINTF=0
22688   fi
22689
22690
22691
22692
22693
22694
22695
22696           am_save_CPPFLAGS="$CPPFLAGS"
22697
22698   for element in $INCICONV; do
22699     haveit=
22700     for x in $CPPFLAGS; do
22701
22702   acl_save_prefix="$prefix"
22703   prefix="$acl_final_prefix"
22704   acl_save_exec_prefix="$exec_prefix"
22705   exec_prefix="$acl_final_exec_prefix"
22706   eval x=\"$x\"
22707   exec_prefix="$acl_save_exec_prefix"
22708   prefix="$acl_save_prefix"
22709
22710       if test "X$x" = "X$element"; then
22711         haveit=yes
22712         break
22713       fi
22714     done
22715     if test -z "$haveit"; then
22716       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22717     fi
22718   done
22719
22720
22721   { echo "$as_me:$LINENO: checking for iconv" >&5
22722 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22723 if test "${am_cv_func_iconv+set}" = set; then
22724   echo $ECHO_N "(cached) $ECHO_C" >&6
22725 else
22726
22727     am_cv_func_iconv="no, consider installing GNU libiconv"
22728     am_cv_lib_iconv=no
22729     cat >conftest.$ac_ext <<_ACEOF
22730 /* confdefs.h.  */
22731 _ACEOF
22732 cat confdefs.h >>conftest.$ac_ext
22733 cat >>conftest.$ac_ext <<_ACEOF
22734 /* end confdefs.h.  */
22735 #include <stdlib.h>
22736 #include <iconv.h>
22737 int
22738 main ()
22739 {
22740 iconv_t cd = iconv_open("","");
22741        iconv(cd,NULL,NULL,NULL,NULL);
22742        iconv_close(cd);
22743   ;
22744   return 0;
22745 }
22746 _ACEOF
22747 rm -f conftest.$ac_objext conftest$ac_exeext
22748 if { (ac_try="$ac_link"
22749 case "(($ac_try" in
22750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22751   *) ac_try_echo=$ac_try;;
22752 esac
22753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22754   (eval "$ac_link") 2>conftest.er1
22755   ac_status=$?
22756   grep -v '^ *+' conftest.er1 >conftest.err
22757   rm -f conftest.er1
22758   cat conftest.err >&5
22759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760   (exit $ac_status); } && {
22761          test -z "$ac_cxx_werror_flag" ||
22762          test ! -s conftest.err
22763        } && test -s conftest$ac_exeext &&
22764        $as_test_x conftest$ac_exeext; then
22765   am_cv_func_iconv=yes
22766 else
22767   echo "$as_me: failed program was:" >&5
22768 sed 's/^/| /' conftest.$ac_ext >&5
22769
22770
22771 fi
22772
22773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22774       conftest$ac_exeext conftest.$ac_ext
22775     if test "$am_cv_func_iconv" != yes; then
22776       am_save_LIBS="$LIBS"
22777       LIBS="$LIBS $LIBICONV"
22778       cat >conftest.$ac_ext <<_ACEOF
22779 /* confdefs.h.  */
22780 _ACEOF
22781 cat confdefs.h >>conftest.$ac_ext
22782 cat >>conftest.$ac_ext <<_ACEOF
22783 /* end confdefs.h.  */
22784 #include <stdlib.h>
22785 #include <iconv.h>
22786 int
22787 main ()
22788 {
22789 iconv_t cd = iconv_open("","");
22790          iconv(cd,NULL,NULL,NULL,NULL);
22791          iconv_close(cd);
22792   ;
22793   return 0;
22794 }
22795 _ACEOF
22796 rm -f conftest.$ac_objext conftest$ac_exeext
22797 if { (ac_try="$ac_link"
22798 case "(($ac_try" in
22799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22800   *) ac_try_echo=$ac_try;;
22801 esac
22802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22803   (eval "$ac_link") 2>conftest.er1
22804   ac_status=$?
22805   grep -v '^ *+' conftest.er1 >conftest.err
22806   rm -f conftest.er1
22807   cat conftest.err >&5
22808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809   (exit $ac_status); } && {
22810          test -z "$ac_cxx_werror_flag" ||
22811          test ! -s conftest.err
22812        } && test -s conftest$ac_exeext &&
22813        $as_test_x conftest$ac_exeext; then
22814   am_cv_lib_iconv=yes
22815         am_cv_func_iconv=yes
22816 else
22817   echo "$as_me: failed program was:" >&5
22818 sed 's/^/| /' conftest.$ac_ext >&5
22819
22820
22821 fi
22822
22823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22824       conftest$ac_exeext conftest.$ac_ext
22825       LIBS="$am_save_LIBS"
22826     fi
22827
22828 fi
22829 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22830 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22831   if test "$am_cv_func_iconv" = yes; then
22832
22833 cat >>confdefs.h <<\_ACEOF
22834 #define HAVE_ICONV 1
22835 _ACEOF
22836
22837   fi
22838   if test "$am_cv_lib_iconv" = yes; then
22839     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22840 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22841     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22842 echo "${ECHO_T}$LIBICONV" >&6; }
22843   else
22844             CPPFLAGS="$am_save_CPPFLAGS"
22845     LIBICONV=
22846     LTLIBICONV=
22847   fi
22848
22849
22850
22851   if test "$am_cv_func_iconv" = yes; then
22852     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22853 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22854     if test "${am_cv_proto_iconv+set}" = set; then
22855   echo $ECHO_N "(cached) $ECHO_C" >&6
22856 else
22857
22858       cat >conftest.$ac_ext <<_ACEOF
22859 /* confdefs.h.  */
22860 _ACEOF
22861 cat confdefs.h >>conftest.$ac_ext
22862 cat >>conftest.$ac_ext <<_ACEOF
22863 /* end confdefs.h.  */
22864
22865 #include <stdlib.h>
22866 #include <iconv.h>
22867 extern
22868 #ifdef __cplusplus
22869 "C"
22870 #endif
22871 #if defined(__STDC__) || defined(__cplusplus)
22872 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22873 #else
22874 size_t iconv();
22875 #endif
22876
22877 int
22878 main ()
22879 {
22880
22881   ;
22882   return 0;
22883 }
22884 _ACEOF
22885 rm -f conftest.$ac_objext
22886 if { (ac_try="$ac_compile"
22887 case "(($ac_try" in
22888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22889   *) ac_try_echo=$ac_try;;
22890 esac
22891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22892   (eval "$ac_compile") 2>conftest.er1
22893   ac_status=$?
22894   grep -v '^ *+' conftest.er1 >conftest.err
22895   rm -f conftest.er1
22896   cat conftest.err >&5
22897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22898   (exit $ac_status); } && {
22899          test -z "$ac_cxx_werror_flag" ||
22900          test ! -s conftest.err
22901        } && test -s conftest.$ac_objext; then
22902   am_cv_proto_iconv_arg1=""
22903 else
22904   echo "$as_me: failed program was:" >&5
22905 sed 's/^/| /' conftest.$ac_ext >&5
22906
22907         am_cv_proto_iconv_arg1="const"
22908 fi
22909
22910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22911       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);"
22912 fi
22913
22914     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22915     { echo "$as_me:$LINENO: result: ${ac_t:-
22916          }$am_cv_proto_iconv" >&5
22917 echo "${ECHO_T}${ac_t:-
22918          }$am_cv_proto_iconv" >&6; }
22919
22920 cat >>confdefs.h <<_ACEOF
22921 #define ICONV_CONST $am_cv_proto_iconv_arg1
22922 _ACEOF
22923
22924   fi
22925
22926
22927   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22928 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22929 if test "${am_cv_langinfo_codeset+set}" = set; then
22930   echo $ECHO_N "(cached) $ECHO_C" >&6
22931 else
22932   cat >conftest.$ac_ext <<_ACEOF
22933 /* confdefs.h.  */
22934 _ACEOF
22935 cat confdefs.h >>conftest.$ac_ext
22936 cat >>conftest.$ac_ext <<_ACEOF
22937 /* end confdefs.h.  */
22938 #include <langinfo.h>
22939 int
22940 main ()
22941 {
22942 char* cs = nl_langinfo(CODESET);
22943   ;
22944   return 0;
22945 }
22946 _ACEOF
22947 rm -f conftest.$ac_objext conftest$ac_exeext
22948 if { (ac_try="$ac_link"
22949 case "(($ac_try" in
22950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22951   *) ac_try_echo=$ac_try;;
22952 esac
22953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22954   (eval "$ac_link") 2>conftest.er1
22955   ac_status=$?
22956   grep -v '^ *+' conftest.er1 >conftest.err
22957   rm -f conftest.er1
22958   cat conftest.err >&5
22959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960   (exit $ac_status); } && {
22961          test -z "$ac_cxx_werror_flag" ||
22962          test ! -s conftest.err
22963        } && test -s conftest$ac_exeext &&
22964        $as_test_x conftest$ac_exeext; then
22965   am_cv_langinfo_codeset=yes
22966 else
22967   echo "$as_me: failed program was:" >&5
22968 sed 's/^/| /' conftest.$ac_ext >&5
22969
22970         am_cv_langinfo_codeset=no
22971 fi
22972
22973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22974       conftest$ac_exeext conftest.$ac_ext
22975
22976 fi
22977 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22978 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22979   if test $am_cv_langinfo_codeset = yes; then
22980
22981 cat >>confdefs.h <<\_ACEOF
22982 #define HAVE_LANGINFO_CODESET 1
22983 _ACEOF
22984
22985   fi
22986
22987   if test $ac_cv_header_locale_h = yes; then
22988
22989   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22990 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22991 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22992   echo $ECHO_N "(cached) $ECHO_C" >&6
22993 else
22994   cat >conftest.$ac_ext <<_ACEOF
22995 /* confdefs.h.  */
22996 _ACEOF
22997 cat confdefs.h >>conftest.$ac_ext
22998 cat >>conftest.$ac_ext <<_ACEOF
22999 /* end confdefs.h.  */
23000 #include <locale.h>
23001 int
23002 main ()
23003 {
23004 return LC_MESSAGES
23005   ;
23006   return 0;
23007 }
23008 _ACEOF
23009 rm -f conftest.$ac_objext conftest$ac_exeext
23010 if { (ac_try="$ac_link"
23011 case "(($ac_try" in
23012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23013   *) ac_try_echo=$ac_try;;
23014 esac
23015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23016   (eval "$ac_link") 2>conftest.er1
23017   ac_status=$?
23018   grep -v '^ *+' conftest.er1 >conftest.err
23019   rm -f conftest.er1
23020   cat conftest.err >&5
23021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022   (exit $ac_status); } && {
23023          test -z "$ac_cxx_werror_flag" ||
23024          test ! -s conftest.err
23025        } && test -s conftest$ac_exeext &&
23026        $as_test_x conftest$ac_exeext; then
23027   gt_cv_val_LC_MESSAGES=yes
23028 else
23029   echo "$as_me: failed program was:" >&5
23030 sed 's/^/| /' conftest.$ac_ext >&5
23031
23032         gt_cv_val_LC_MESSAGES=no
23033 fi
23034
23035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23036       conftest$ac_exeext conftest.$ac_ext
23037 fi
23038 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23039 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23040   if test $gt_cv_val_LC_MESSAGES = yes; then
23041
23042 cat >>confdefs.h <<\_ACEOF
23043 #define HAVE_LC_MESSAGES 1
23044 _ACEOF
23045
23046   fi
23047
23048   fi
23049
23050   if test -n "$INTL_MACOSX_LIBS"; then
23051     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23052   fi
23053
23054                       for ac_prog in bison
23055 do
23056   # Extract the first word of "$ac_prog", so it can be a program name with args.
23057 set dummy $ac_prog; ac_word=$2
23058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23060 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23061   echo $ECHO_N "(cached) $ECHO_C" >&6
23062 else
23063   if test -n "$INTLBISON"; then
23064   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23065 else
23066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23067 for as_dir in $PATH
23068 do
23069   IFS=$as_save_IFS
23070   test -z "$as_dir" && as_dir=.
23071   for ac_exec_ext in '' $ac_executable_extensions; do
23072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23073     ac_cv_prog_INTLBISON="$ac_prog"
23074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23075     break 2
23076   fi
23077 done
23078 done
23079 IFS=$as_save_IFS
23080
23081 fi
23082 fi
23083 INTLBISON=$ac_cv_prog_INTLBISON
23084 if test -n "$INTLBISON"; then
23085   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23086 echo "${ECHO_T}$INTLBISON" >&6; }
23087 else
23088   { echo "$as_me:$LINENO: result: no" >&5
23089 echo "${ECHO_T}no" >&6; }
23090 fi
23091
23092
23093   test -n "$INTLBISON" && break
23094 done
23095
23096   if test -z "$INTLBISON"; then
23097     ac_verc_fail=yes
23098   else
23099         { echo "$as_me:$LINENO: checking version of bison" >&5
23100 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23101     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23102     case $ac_prog_version in
23103       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23104       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23105          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23106       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23107     esac
23108     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23109 echo "${ECHO_T}$ac_prog_version" >&6; }
23110   fi
23111   if test $ac_verc_fail = yes; then
23112     INTLBISON=:
23113   fi
23114
23115
23116
23117
23118
23119
23120
23121
23122
23123
23124
23125
23126
23127
23128
23129
23130     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23131 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23132 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23133   echo $ECHO_N "(cached) $ECHO_C" >&6
23134 else
23135   gt_save_CPPFLAGS="$CPPFLAGS"
23136      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23137      gt_save_LIBS="$LIBS"
23138      LIBS="$LIBS -framework CoreFoundation"
23139      cat >conftest.$ac_ext <<_ACEOF
23140 /* confdefs.h.  */
23141 _ACEOF
23142 cat confdefs.h >>conftest.$ac_ext
23143 cat >>conftest.$ac_ext <<_ACEOF
23144 /* end confdefs.h.  */
23145 #include <CFPreferences.h>
23146 int
23147 main ()
23148 {
23149 CFPreferencesCopyAppValue(NULL, NULL)
23150   ;
23151   return 0;
23152 }
23153 _ACEOF
23154 rm -f conftest.$ac_objext conftest$ac_exeext
23155 if { (ac_try="$ac_link"
23156 case "(($ac_try" in
23157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23158   *) ac_try_echo=$ac_try;;
23159 esac
23160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23161   (eval "$ac_link") 2>conftest.er1
23162   ac_status=$?
23163   grep -v '^ *+' conftest.er1 >conftest.err
23164   rm -f conftest.er1
23165   cat conftest.err >&5
23166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167   (exit $ac_status); } && {
23168          test -z "$ac_cxx_werror_flag" ||
23169          test ! -s conftest.err
23170        } && test -s conftest$ac_exeext &&
23171        $as_test_x conftest$ac_exeext; then
23172   gt_cv_func_CFPreferencesCopyAppValue=yes
23173 else
23174   echo "$as_me: failed program was:" >&5
23175 sed 's/^/| /' conftest.$ac_ext >&5
23176
23177         gt_cv_func_CFPreferencesCopyAppValue=no
23178 fi
23179
23180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23181       conftest$ac_exeext conftest.$ac_ext
23182      CPPFLAGS="$gt_save_CPPFLAGS"
23183      LIBS="$gt_save_LIBS"
23184 fi
23185 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23186 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23187   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23188
23189 cat >>confdefs.h <<\_ACEOF
23190 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23191 _ACEOF
23192
23193   fi
23194     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23195 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23196 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23197   echo $ECHO_N "(cached) $ECHO_C" >&6
23198 else
23199   gt_save_CPPFLAGS="$CPPFLAGS"
23200      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23201      gt_save_LIBS="$LIBS"
23202      LIBS="$LIBS -framework CoreFoundation"
23203      cat >conftest.$ac_ext <<_ACEOF
23204 /* confdefs.h.  */
23205 _ACEOF
23206 cat confdefs.h >>conftest.$ac_ext
23207 cat >>conftest.$ac_ext <<_ACEOF
23208 /* end confdefs.h.  */
23209 #include <CFLocale.h>
23210 int
23211 main ()
23212 {
23213 CFLocaleCopyCurrent();
23214   ;
23215   return 0;
23216 }
23217 _ACEOF
23218 rm -f conftest.$ac_objext conftest$ac_exeext
23219 if { (ac_try="$ac_link"
23220 case "(($ac_try" in
23221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23222   *) ac_try_echo=$ac_try;;
23223 esac
23224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23225   (eval "$ac_link") 2>conftest.er1
23226   ac_status=$?
23227   grep -v '^ *+' conftest.er1 >conftest.err
23228   rm -f conftest.er1
23229   cat conftest.err >&5
23230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231   (exit $ac_status); } && {
23232          test -z "$ac_cxx_werror_flag" ||
23233          test ! -s conftest.err
23234        } && test -s conftest$ac_exeext &&
23235        $as_test_x conftest$ac_exeext; then
23236   gt_cv_func_CFLocaleCopyCurrent=yes
23237 else
23238   echo "$as_me: failed program was:" >&5
23239 sed 's/^/| /' conftest.$ac_ext >&5
23240
23241         gt_cv_func_CFLocaleCopyCurrent=no
23242 fi
23243
23244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23245       conftest$ac_exeext conftest.$ac_ext
23246      CPPFLAGS="$gt_save_CPPFLAGS"
23247      LIBS="$gt_save_LIBS"
23248 fi
23249 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23250 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23251   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23252
23253 cat >>confdefs.h <<\_ACEOF
23254 #define HAVE_CFLOCALECOPYCURRENT 1
23255 _ACEOF
23256
23257   fi
23258   INTL_MACOSX_LIBS=
23259   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23260     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23261   fi
23262
23263
23264
23265
23266   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23267 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23268     # Check whether --enable-nls was given.
23269 if test "${enable_nls+set}" = set; then
23270   enableval=$enable_nls; USE_NLS=$enableval
23271 else
23272   USE_NLS=yes
23273 fi
23274
23275   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23276 echo "${ECHO_T}$USE_NLS" >&6; }
23277
23278
23279
23280
23281     BUILD_INCLUDED_LIBINTL=no
23282     USE_INCLUDED_LIBINTL=no
23283
23284   LIBINTL=
23285   LTLIBINTL=
23286   POSUB=
23287
23288     if test "$USE_NLS" = "yes"; then
23289     gt_use_preinstalled_gnugettext=no
23290
23291       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23292 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23293
23294 # Check whether --with-included-gettext was given.
23295 if test "${with_included_gettext+set}" = set; then
23296   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23297 else
23298   nls_cv_force_use_gnu_gettext=no
23299 fi
23300
23301       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23302 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23303
23304       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23305       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23306
23307
23308
23309
23310
23311
23312         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23313 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23314 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23315   echo $ECHO_N "(cached) $ECHO_C" >&6
23316 else
23317   cat >conftest.$ac_ext <<_ACEOF
23318 /* confdefs.h.  */
23319 _ACEOF
23320 cat confdefs.h >>conftest.$ac_ext
23321 cat >>conftest.$ac_ext <<_ACEOF
23322 /* end confdefs.h.  */
23323 #include <libintl.h>
23324 extern int _nl_msg_cat_cntr;
23325 extern int *_nl_domain_bindings;
23326 int
23327 main ()
23328 {
23329 bindtextdomain ("", "");
23330 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23331   ;
23332   return 0;
23333 }
23334 _ACEOF
23335 rm -f conftest.$ac_objext conftest$ac_exeext
23336 if { (ac_try="$ac_link"
23337 case "(($ac_try" in
23338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23339   *) ac_try_echo=$ac_try;;
23340 esac
23341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23342   (eval "$ac_link") 2>conftest.er1
23343   ac_status=$?
23344   grep -v '^ *+' conftest.er1 >conftest.err
23345   rm -f conftest.er1
23346   cat conftest.err >&5
23347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348   (exit $ac_status); } && {
23349          test -z "$ac_cxx_werror_flag" ||
23350          test ! -s conftest.err
23351        } && test -s conftest$ac_exeext &&
23352        $as_test_x conftest$ac_exeext; then
23353   gt_cv_func_gnugettext1_libc=yes
23354 else
23355   echo "$as_me: failed program was:" >&5
23356 sed 's/^/| /' conftest.$ac_ext >&5
23357
23358         gt_cv_func_gnugettext1_libc=no
23359 fi
23360
23361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23362       conftest$ac_exeext conftest.$ac_ext
23363 fi
23364 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23365 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23366
23367         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23368
23369
23370
23371     use_additional=yes
23372
23373   acl_save_prefix="$prefix"
23374   prefix="$acl_final_prefix"
23375   acl_save_exec_prefix="$exec_prefix"
23376   exec_prefix="$acl_final_exec_prefix"
23377
23378     eval additional_includedir=\"$includedir\"
23379     eval additional_libdir=\"$libdir\"
23380
23381   exec_prefix="$acl_save_exec_prefix"
23382   prefix="$acl_save_prefix"
23383
23384
23385 # Check whether --with-libintl-prefix was given.
23386 if test "${with_libintl_prefix+set}" = set; then
23387   withval=$with_libintl_prefix;
23388     if test "X$withval" = "Xno"; then
23389       use_additional=no
23390     else
23391       if test "X$withval" = "X"; then
23392
23393   acl_save_prefix="$prefix"
23394   prefix="$acl_final_prefix"
23395   acl_save_exec_prefix="$exec_prefix"
23396   exec_prefix="$acl_final_exec_prefix"
23397
23398           eval additional_includedir=\"$includedir\"
23399           eval additional_libdir=\"$libdir\"
23400
23401   exec_prefix="$acl_save_exec_prefix"
23402   prefix="$acl_save_prefix"
23403
23404       else
23405         additional_includedir="$withval/include"
23406         additional_libdir="$withval/lib"
23407       fi
23408     fi
23409
23410 fi
23411
23412       LIBINTL=
23413   LTLIBINTL=
23414   INCINTL=
23415   rpathdirs=
23416   ltrpathdirs=
23417   names_already_handled=
23418   names_next_round='intl '
23419   while test -n "$names_next_round"; do
23420     names_this_round="$names_next_round"
23421     names_next_round=
23422     for name in $names_this_round; do
23423       already_handled=
23424       for n in $names_already_handled; do
23425         if test "$n" = "$name"; then
23426           already_handled=yes
23427           break
23428         fi
23429       done
23430       if test -z "$already_handled"; then
23431         names_already_handled="$names_already_handled $name"
23432                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23433         eval value=\"\$HAVE_LIB$uppername\"
23434         if test -n "$value"; then
23435           if test "$value" = yes; then
23436             eval value=\"\$LIB$uppername\"
23437             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23438             eval value=\"\$LTLIB$uppername\"
23439             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23440           else
23441                                     :
23442           fi
23443         else
23444                               found_dir=
23445           found_la=
23446           found_so=
23447           found_a=
23448           if test $use_additional = yes; then
23449             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23450               found_dir="$additional_libdir"
23451               found_so="$additional_libdir/lib$name.$shlibext"
23452               if test -f "$additional_libdir/lib$name.la"; then
23453                 found_la="$additional_libdir/lib$name.la"
23454               fi
23455             else
23456               if test -f "$additional_libdir/lib$name.$libext"; then
23457                 found_dir="$additional_libdir"
23458                 found_a="$additional_libdir/lib$name.$libext"
23459                 if test -f "$additional_libdir/lib$name.la"; then
23460                   found_la="$additional_libdir/lib$name.la"
23461                 fi
23462               fi
23463             fi
23464           fi
23465           if test "X$found_dir" = "X"; then
23466             for x in $LDFLAGS $LTLIBINTL; do
23467
23468   acl_save_prefix="$prefix"
23469   prefix="$acl_final_prefix"
23470   acl_save_exec_prefix="$exec_prefix"
23471   exec_prefix="$acl_final_exec_prefix"
23472   eval x=\"$x\"
23473   exec_prefix="$acl_save_exec_prefix"
23474   prefix="$acl_save_prefix"
23475
23476               case "$x" in
23477                 -L*)
23478                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23479                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23480                     found_dir="$dir"
23481                     found_so="$dir/lib$name.$shlibext"
23482                     if test -f "$dir/lib$name.la"; then
23483                       found_la="$dir/lib$name.la"
23484                     fi
23485                   else
23486                     if test -f "$dir/lib$name.$libext"; then
23487                       found_dir="$dir"
23488                       found_a="$dir/lib$name.$libext"
23489                       if test -f "$dir/lib$name.la"; then
23490                         found_la="$dir/lib$name.la"
23491                       fi
23492                     fi
23493                   fi
23494                   ;;
23495               esac
23496               if test "X$found_dir" != "X"; then
23497                 break
23498               fi
23499             done
23500           fi
23501           if test "X$found_dir" != "X"; then
23502                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23503             if test "X$found_so" != "X"; then
23504                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23505                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23506               else
23507                                                                                 haveit=
23508                 for x in $ltrpathdirs; do
23509                   if test "X$x" = "X$found_dir"; then
23510                     haveit=yes
23511                     break
23512                   fi
23513                 done
23514                 if test -z "$haveit"; then
23515                   ltrpathdirs="$ltrpathdirs $found_dir"
23516                 fi
23517                                 if test "$hardcode_direct" = yes; then
23518                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23519                 else
23520                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23521                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23522                                                             haveit=
23523                     for x in $rpathdirs; do
23524                       if test "X$x" = "X$found_dir"; then
23525                         haveit=yes
23526                         break
23527                       fi
23528                     done
23529                     if test -z "$haveit"; then
23530                       rpathdirs="$rpathdirs $found_dir"
23531                     fi
23532                   else
23533                                                                                 haveit=
23534                     for x in $LDFLAGS $LIBINTL; do
23535
23536   acl_save_prefix="$prefix"
23537   prefix="$acl_final_prefix"
23538   acl_save_exec_prefix="$exec_prefix"
23539   exec_prefix="$acl_final_exec_prefix"
23540   eval x=\"$x\"
23541   exec_prefix="$acl_save_exec_prefix"
23542   prefix="$acl_save_prefix"
23543
23544                       if test "X$x" = "X-L$found_dir"; then
23545                         haveit=yes
23546                         break
23547                       fi
23548                     done
23549                     if test -z "$haveit"; then
23550                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23551                     fi
23552                     if test "$hardcode_minus_L" != no; then
23553                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23554                     else
23555                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23556                     fi
23557                   fi
23558                 fi
23559               fi
23560             else
23561               if test "X$found_a" != "X"; then
23562                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23563               else
23564                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23565               fi
23566             fi
23567                         additional_includedir=
23568             case "$found_dir" in
23569               */lib | */lib/)
23570                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23571                 additional_includedir="$basedir/include"
23572                 ;;
23573             esac
23574             if test "X$additional_includedir" != "X"; then
23575                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23576                 haveit=
23577                 if test "X$additional_includedir" = "X/usr/local/include"; then
23578                   if test -n "$GCC"; then
23579                     case $host_os in
23580                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23581                     esac
23582                   fi
23583                 fi
23584                 if test -z "$haveit"; then
23585                   for x in $CPPFLAGS $INCINTL; do
23586
23587   acl_save_prefix="$prefix"
23588   prefix="$acl_final_prefix"
23589   acl_save_exec_prefix="$exec_prefix"
23590   exec_prefix="$acl_final_exec_prefix"
23591   eval x=\"$x\"
23592   exec_prefix="$acl_save_exec_prefix"
23593   prefix="$acl_save_prefix"
23594
23595                     if test "X$x" = "X-I$additional_includedir"; then
23596                       haveit=yes
23597                       break
23598                     fi
23599                   done
23600                   if test -z "$haveit"; then
23601                     if test -d "$additional_includedir"; then
23602                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23603                     fi
23604                   fi
23605                 fi
23606               fi
23607             fi
23608                         if test -n "$found_la"; then
23609                                                         save_libdir="$libdir"
23610               case "$found_la" in
23611                 */* | *\\*) . "$found_la" ;;
23612                 *) . "./$found_la" ;;
23613               esac
23614               libdir="$save_libdir"
23615                             for dep in $dependency_libs; do
23616                 case "$dep" in
23617                   -L*)
23618                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23619                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23620                       haveit=
23621                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23622                         if test -n "$GCC"; then
23623                           case $host_os in
23624                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23625                           esac
23626                         fi
23627                       fi
23628                       if test -z "$haveit"; then
23629                         haveit=
23630                         for x in $LDFLAGS $LIBINTL; do
23631
23632   acl_save_prefix="$prefix"
23633   prefix="$acl_final_prefix"
23634   acl_save_exec_prefix="$exec_prefix"
23635   exec_prefix="$acl_final_exec_prefix"
23636   eval x=\"$x\"
23637   exec_prefix="$acl_save_exec_prefix"
23638   prefix="$acl_save_prefix"
23639
23640                           if test "X$x" = "X-L$additional_libdir"; then
23641                             haveit=yes
23642                             break
23643                           fi
23644                         done
23645                         if test -z "$haveit"; then
23646                           if test -d "$additional_libdir"; then
23647                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23648                           fi
23649                         fi
23650                         haveit=
23651                         for x in $LDFLAGS $LTLIBINTL; do
23652
23653   acl_save_prefix="$prefix"
23654   prefix="$acl_final_prefix"
23655   acl_save_exec_prefix="$exec_prefix"
23656   exec_prefix="$acl_final_exec_prefix"
23657   eval x=\"$x\"
23658   exec_prefix="$acl_save_exec_prefix"
23659   prefix="$acl_save_prefix"
23660
23661                           if test "X$x" = "X-L$additional_libdir"; then
23662                             haveit=yes
23663                             break
23664                           fi
23665                         done
23666                         if test -z "$haveit"; then
23667                           if test -d "$additional_libdir"; then
23668                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23669                           fi
23670                         fi
23671                       fi
23672                     fi
23673                     ;;
23674                   -R*)
23675                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23676                     if test "$enable_rpath" != no; then
23677                                                                   haveit=
23678                       for x in $rpathdirs; do
23679                         if test "X$x" = "X$dir"; then
23680                           haveit=yes
23681                           break
23682                         fi
23683                       done
23684                       if test -z "$haveit"; then
23685                         rpathdirs="$rpathdirs $dir"
23686                       fi
23687                                                                   haveit=
23688                       for x in $ltrpathdirs; do
23689                         if test "X$x" = "X$dir"; then
23690                           haveit=yes
23691                           break
23692                         fi
23693                       done
23694                       if test -z "$haveit"; then
23695                         ltrpathdirs="$ltrpathdirs $dir"
23696                       fi
23697                     fi
23698                     ;;
23699                   -l*)
23700                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23701                     ;;
23702                   *.la)
23703                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23704                     ;;
23705                   *)
23706                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23707                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23708                     ;;
23709                 esac
23710               done
23711             fi
23712           else
23713                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23714             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23715           fi
23716         fi
23717       fi
23718     done
23719   done
23720   if test "X$rpathdirs" != "X"; then
23721     if test -n "$hardcode_libdir_separator"; then
23722                         alldirs=
23723       for found_dir in $rpathdirs; do
23724         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23725       done
23726             acl_save_libdir="$libdir"
23727       libdir="$alldirs"
23728       eval flag=\"$hardcode_libdir_flag_spec\"
23729       libdir="$acl_save_libdir"
23730       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23731     else
23732             for found_dir in $rpathdirs; do
23733         acl_save_libdir="$libdir"
23734         libdir="$found_dir"
23735         eval flag=\"$hardcode_libdir_flag_spec\"
23736         libdir="$acl_save_libdir"
23737         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23738       done
23739     fi
23740   fi
23741   if test "X$ltrpathdirs" != "X"; then
23742             for found_dir in $ltrpathdirs; do
23743       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23744     done
23745   fi
23746
23747           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23748 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23749 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23750   echo $ECHO_N "(cached) $ECHO_C" >&6
23751 else
23752   gt_save_CPPFLAGS="$CPPFLAGS"
23753             CPPFLAGS="$CPPFLAGS $INCINTL"
23754             gt_save_LIBS="$LIBS"
23755             LIBS="$LIBS $LIBINTL"
23756                         cat >conftest.$ac_ext <<_ACEOF
23757 /* confdefs.h.  */
23758 _ACEOF
23759 cat confdefs.h >>conftest.$ac_ext
23760 cat >>conftest.$ac_ext <<_ACEOF
23761 /* end confdefs.h.  */
23762 #include <libintl.h>
23763 extern int _nl_msg_cat_cntr;
23764 extern
23765 #ifdef __cplusplus
23766 "C"
23767 #endif
23768 const char *_nl_expand_alias (const char *);
23769 int
23770 main ()
23771 {
23772 bindtextdomain ("", "");
23773 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23774   ;
23775   return 0;
23776 }
23777 _ACEOF
23778 rm -f conftest.$ac_objext conftest$ac_exeext
23779 if { (ac_try="$ac_link"
23780 case "(($ac_try" in
23781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23782   *) ac_try_echo=$ac_try;;
23783 esac
23784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23785   (eval "$ac_link") 2>conftest.er1
23786   ac_status=$?
23787   grep -v '^ *+' conftest.er1 >conftest.err
23788   rm -f conftest.er1
23789   cat conftest.err >&5
23790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791   (exit $ac_status); } && {
23792          test -z "$ac_cxx_werror_flag" ||
23793          test ! -s conftest.err
23794        } && test -s conftest$ac_exeext &&
23795        $as_test_x conftest$ac_exeext; then
23796   gt_cv_func_gnugettext1_libintl=yes
23797 else
23798   echo "$as_me: failed program was:" >&5
23799 sed 's/^/| /' conftest.$ac_ext >&5
23800
23801         gt_cv_func_gnugettext1_libintl=no
23802 fi
23803
23804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23805       conftest$ac_exeext conftest.$ac_ext
23806                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23807               LIBS="$LIBS $LIBICONV"
23808               cat >conftest.$ac_ext <<_ACEOF
23809 /* confdefs.h.  */
23810 _ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h.  */
23814 #include <libintl.h>
23815 extern int _nl_msg_cat_cntr;
23816 extern
23817 #ifdef __cplusplus
23818 "C"
23819 #endif
23820 const char *_nl_expand_alias (const char *);
23821 int
23822 main ()
23823 {
23824 bindtextdomain ("", "");
23825 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23826   ;
23827   return 0;
23828 }
23829 _ACEOF
23830 rm -f conftest.$ac_objext conftest$ac_exeext
23831 if { (ac_try="$ac_link"
23832 case "(($ac_try" in
23833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23834   *) ac_try_echo=$ac_try;;
23835 esac
23836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23837   (eval "$ac_link") 2>conftest.er1
23838   ac_status=$?
23839   grep -v '^ *+' conftest.er1 >conftest.err
23840   rm -f conftest.er1
23841   cat conftest.err >&5
23842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843   (exit $ac_status); } && {
23844          test -z "$ac_cxx_werror_flag" ||
23845          test ! -s conftest.err
23846        } && test -s conftest$ac_exeext &&
23847        $as_test_x conftest$ac_exeext; then
23848   LIBINTL="$LIBINTL $LIBICONV"
23849                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23850                 gt_cv_func_gnugettext1_libintl=yes
23851
23852 else
23853   echo "$as_me: failed program was:" >&5
23854 sed 's/^/| /' conftest.$ac_ext >&5
23855
23856
23857 fi
23858
23859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23860       conftest$ac_exeext conftest.$ac_ext
23861             fi
23862             CPPFLAGS="$gt_save_CPPFLAGS"
23863             LIBS="$gt_save_LIBS"
23864 fi
23865 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23866 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23867         fi
23868
23869                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23870            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23871                 && test "$PACKAGE" != gettext-runtime \
23872                 && test "$PACKAGE" != gettext-tools; }; then
23873           gt_use_preinstalled_gnugettext=yes
23874         else
23875                     LIBINTL=
23876           LTLIBINTL=
23877           INCINTL=
23878         fi
23879
23880
23881         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23882                               nls_cv_use_gnu_gettext=yes
23883         fi
23884       fi
23885
23886       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23887                 BUILD_INCLUDED_LIBINTL=yes
23888         USE_INCLUDED_LIBINTL=yes
23889         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23890         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23891         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23892       fi
23893
23894       CATOBJEXT=
23895       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23896          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23897                 CATOBJEXT=.gmo
23898       fi
23899
23900
23901     if test -n "$INTL_MACOSX_LIBS"; then
23902       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23903          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23904                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23905         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23906       fi
23907     fi
23908
23909     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23910        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23911
23912 cat >>confdefs.h <<\_ACEOF
23913 #define ENABLE_NLS 1
23914 _ACEOF
23915
23916     else
23917       USE_NLS=no
23918     fi
23919   fi
23920
23921   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23922 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23923   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23924 echo "${ECHO_T}$USE_NLS" >&6; }
23925   if test "$USE_NLS" = "yes"; then
23926     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23927 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23928     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23929       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23930         gt_source="external libintl"
23931       else
23932         gt_source="libc"
23933       fi
23934     else
23935       gt_source="included intl directory"
23936     fi
23937     { echo "$as_me:$LINENO: result: $gt_source" >&5
23938 echo "${ECHO_T}$gt_source" >&6; }
23939   fi
23940
23941   if test "$USE_NLS" = "yes"; then
23942
23943     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23944       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23945         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23946 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23947         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23948 echo "${ECHO_T}$LIBINTL" >&6; }
23949
23950   for element in $INCINTL; do
23951     haveit=
23952     for x in $CPPFLAGS; do
23953
23954   acl_save_prefix="$prefix"
23955   prefix="$acl_final_prefix"
23956   acl_save_exec_prefix="$exec_prefix"
23957   exec_prefix="$acl_final_exec_prefix"
23958   eval x=\"$x\"
23959   exec_prefix="$acl_save_exec_prefix"
23960   prefix="$acl_save_prefix"
23961
23962       if test "X$x" = "X$element"; then
23963         haveit=yes
23964         break
23965       fi
23966     done
23967     if test -z "$haveit"; then
23968       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23969     fi
23970   done
23971
23972       fi
23973
23974
23975 cat >>confdefs.h <<\_ACEOF
23976 #define HAVE_GETTEXT 1
23977 _ACEOF
23978
23979
23980 cat >>confdefs.h <<\_ACEOF
23981 #define HAVE_DCGETTEXT 1
23982 _ACEOF
23983
23984     fi
23985
23986         POSUB=po
23987   fi
23988
23989
23990             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23991       BUILD_INCLUDED_LIBINTL=yes
23992     fi
23993
23994
23995
23996
23997
23998         nls_cv_header_intl=
23999     nls_cv_header_libgt=
24000
24001         DATADIRNAME=share
24002
24003
24004         INSTOBJEXT=.mo
24005
24006
24007         GENCAT=gencat
24008
24009
24010         INTLOBJS=
24011     if test "$USE_INCLUDED_LIBINTL" = yes; then
24012       INTLOBJS="\$(GETTOBJS)"
24013     fi
24014
24015
24016         INTL_LIBTOOL_SUFFIX_PREFIX=
24017
24018
24019
24020     INTLLIBS="$LIBINTL"
24021
24022
24023
24024
24025
24026
24027 fi
24028
24029 support_mysql=no
24030 support_sqlite=no
24031 support_sqlite3=no
24032 support_postgresql=no
24033 support_dbi=no
24034 support_smartalloc=yes
24035 support_readline=yes
24036 support_conio=yes
24037 support_gnome=no
24038 support_bat=no
24039 support_wx_console=no
24040 support_tray_monitor=no
24041 support_tls=no
24042 support_crypto=no
24043 gnome_version=
24044 wx_version=
24045 support_static_tools=no
24046 support_static_fd=no
24047 support_static_sd=no
24048 support_static_dir=no
24049 support_static_cons=no
24050 support_python=no
24051 build_client_only=no
24052 build_dird=yes
24053 build_stored=yes
24054 cats=
24055 db_type=Internal
24056 support_lockmgr=no
24057 DB_TYPE=bdb
24058
24059
24060 # Check whether --enable-gnome was given.
24061 if test "${enable_gnome+set}" = set; then
24062   enableval=$enable_gnome;
24063        if test x$enableval = xyes; then
24064           support_gnome=yes
24065        fi
24066
24067
24068 fi
24069
24070
24071 GNOME_DIR=
24072 if test x$support_gnome = xyes; then
24073    { { echo "$as_me:$LINENO: error: bgnome-console no longer supported" >&5
24074 echo "$as_me: error: bgnome-console no longer supported" >&2;}
24075    { (exit 1); exit 1; }; }
24076    { { echo "$as_me:$LINENO: error: --enable-gnome option no longer supported" >&5
24077 echo "$as_me: error: --enable-gnome option no longer supported" >&2;}
24078    { (exit 1); exit 1; }; }
24079 fi
24080 # AC_SUBST(GNOME_DIR)
24081
24082 # Check whether --enable-bat was given.
24083 if test "${enable_bat+set}" = set; then
24084   enableval=$enable_bat;
24085        if test x$enableval = xyes; then
24086
24087 cat >>confdefs.h <<\_ACEOF
24088 #define HAVE_BAT 1
24089 _ACEOF
24090
24091           support_bat=yes
24092        fi
24093
24094
24095 fi
24096
24097
24098 BAT_DIR=
24099 if test x$support_bat = xyes; then
24100    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24101    pkg=$?
24102    if test $pkg = 0; then
24103       BAT_DIR=src/qt-console
24104    else
24105       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24106 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24107    { (exit 1); exit 1; }; }
24108    fi
24109 fi
24110
24111 got_qwt=no
24112 QWT_INC=
24113 QWT_LDFLAGS=
24114 QWT_LIB=
24115 QWT=
24116 no_qwt=no
24117 if test x$support_bat = xyes; then
24118    { echo "$as_me:$LINENO: checking for qwt support" >&5
24119 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24120
24121 # Check whether --with-qwt was given.
24122 if test "${with_qwt+set}" = set; then
24123   withval=$with_qwt;
24124           case "$with_qwt" in
24125           no)
24126              no_qwt=yes
24127              ;;
24128           yes|*)
24129              if test -f ${with_qwt}/include/qwt.h; then
24130                 QWT_INC="${with_qwt}/include"
24131                 QWT_LDFLAGS="-L${with_qwt}/lib"
24132                 QWT_LIB="-lqwt"
24133                 QWT="qwt"
24134              fi
24135              ;;
24136           esac
24137
24138
24139 fi
24140
24141
24142             if test $no_qwt = no; then
24143       if test x$QWT_INC = x; then
24144          for root in /usr /usr/local; do
24145             for ver in qwt qwt5 qwt-qt4; do
24146                if test -f ${root}/include/${ver}/qwt.h; then
24147                   QWT_INC="${root}/include/${ver}"
24148                   if test -d ${root}/lib64/; then
24149                      QWT_LDFLAGS="-L${root}/lib64"
24150                   elif test -d ${root}/lib/64/; then
24151                      QWT_LDFLAGS="-L${root}/64"
24152                   else
24153                      QWT_LDFLAGS="-L${root}/lib"
24154                   fi
24155                   QWT_LIB="-lqwt"
24156                   QWT="qwt"
24157                   got_qwt=yes
24158                   break;
24159                fi
24160             done
24161          done
24162       fi
24163    fi
24164    if test x$QWT_INC = x; then
24165       { echo "$as_me:$LINENO: result: no" >&5
24166 echo "${ECHO_T}no" >&6; }
24167    else
24168
24169 cat >>confdefs.h <<\_ACEOF
24170 #define HAVE_QWT 1
24171 _ACEOF
24172
24173       { echo "$as_me:$LINENO: result: yes" >&5
24174 echo "${ECHO_T}yes" >&6; }
24175    fi
24176 fi
24177
24178
24179
24180
24181
24182
24183
24184 # Check whether --enable-bwx-console was given.
24185 if test "${enable_bwx_console+set}" = set; then
24186   enableval=$enable_bwx_console;
24187        if test x$enableval = xyes; then
24188           support_wx_console=yes
24189        fi
24190
24191
24192 fi
24193
24194
24195 WX_DIR=
24196 if test x$support_wx_console = xyes; then
24197    abc=`$WXCONFIG $WXFLAGS --cppflags`
24198    pkg=$?
24199    if test $pkg = 0; then
24200       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24201       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24202       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24203
24204
24205
24206       WX_DIR="src/wx-console"
24207    else
24208       echo " "
24209       echo "wx-config program not found. bwx-console disabled."
24210       echo " "
24211       support_wx_console=no
24212    fi
24213 fi
24214
24215
24216 # Check whether --enable-tray-monitor was given.
24217 if test "${enable_tray_monitor+set}" = set; then
24218   enableval=$enable_tray_monitor;
24219        if test x$enableval = xyes; then
24220           support_tray_monitor=yes
24221        fi
24222
24223
24224 fi
24225
24226
24227 TRAY_MONITOR_DIR=
24228 if test x$support_tray_monitor = xyes; then
24229    abc=`$PKGCONFIG --exists gtk+-2.0`
24230    pkg=$?
24231    if test $pkg = 0; then
24232       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24233       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24234
24235
24236       TRAY_MONITOR_DIR=src/tray-monitor
24237       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24238       pkg=$?
24239       if test $pkg = 0; then
24240
24241 cat >>confdefs.h <<\_ACEOF
24242 #define HAVE_GTK_2_4 1
24243 _ACEOF
24244
24245       fi
24246    fi
24247 fi
24248
24249
24250 # Check whether --enable-smartalloc was given.
24251 if test "${enable_smartalloc+set}" = set; then
24252   enableval=$enable_smartalloc;
24253        if test x$enableval = xno; then
24254           support_smartalloc=no
24255        fi
24256
24257
24258 fi
24259
24260
24261 if test x$support_smartalloc = xyes; then
24262
24263 cat >>confdefs.h <<\_ACEOF
24264 #define SMARTALLOC 1
24265 _ACEOF
24266
24267 fi
24268
24269 # Check whether --enable-lockmgr was given.
24270 if test "${enable_lockmgr+set}" = set; then
24271   enableval=$enable_lockmgr;
24272        if test x$enableval = xyes; then
24273           support_lockmgr=yes
24274        fi
24275
24276
24277 fi
24278
24279
24280 if test x$support_lockmgr = xyes; then
24281
24282 cat >>confdefs.h <<\_ACEOF
24283 #define _USE_LOCKMGR 1
24284 _ACEOF
24285
24286 fi
24287
24288
24289 # Check whether --enable-static-tools was given.
24290 if test "${enable_static_tools+set}" = set; then
24291   enableval=$enable_static_tools;
24292        if test x$enableval = xyes; then
24293           if test x$use_libtool = xyes; then
24294              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24295   please rerun configure with --disable-libtool" >&5
24296 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24297   please rerun configure with --disable-libtool" >&2;}
24298    { (exit 1); exit 1; }; }
24299           fi
24300           support_static_tools=yes
24301        fi
24302
24303
24304 fi
24305
24306
24307 TTOOL_LDFLAGS=
24308 if test x$support_static_tools = xyes; then
24309    TTOOL_LDFLAGS="-static"
24310 fi
24311
24312
24313 # Check whether --enable-static-fd was given.
24314 if test "${enable_static_fd+set}" = set; then
24315   enableval=$enable_static_fd;
24316        if test x$enableval = xyes; then
24317           if test x$use_libtool = xyes; then
24318              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24319   please rerun configure with --disable-libtool" >&5
24320 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24321   please rerun configure with --disable-libtool" >&2;}
24322    { (exit 1); exit 1; }; }
24323           fi
24324           support_static_fd=yes
24325        fi
24326
24327
24328 fi
24329
24330
24331 STATIC_FD=
24332 if test x$support_static_fd = xyes; then
24333    STATIC_FD="static-bacula-fd"
24334 fi
24335
24336
24337 # Check whether --enable-static-sd was given.
24338 if test "${enable_static_sd+set}" = set; then
24339   enableval=$enable_static_sd;
24340        if test x$enableval = xyes; then
24341           if test x$use_libtool = xyes; then
24342              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24343   please rerun configure with --disable-libtool" >&5
24344 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24345   please rerun configure with --disable-libtool" >&2;}
24346    { (exit 1); exit 1; }; }
24347           fi
24348           support_static_sd=yes
24349        fi
24350
24351
24352 fi
24353
24354
24355 STATIC_SD=
24356 if test x$support_static_sd = xyes; then
24357    STATIC_SD="static-bacula-sd"
24358 fi
24359
24360
24361 # Check whether --enable-static-dir was given.
24362 if test "${enable_static_dir+set}" = set; then
24363   enableval=$enable_static_dir;
24364        if test x$enableval = xyes; then
24365           if test x$use_libtool = xyes; then
24366              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24367   please rerun configure with --disable-libtool" >&5
24368 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24369   please rerun configure with --disable-libtool" >&2;}
24370    { (exit 1); exit 1; }; }
24371           fi
24372           support_static_dir=yes
24373        fi
24374
24375
24376 fi
24377
24378
24379 STATIC_DIR=
24380 if test x$support_static_dir = xyes; then
24381    STATIC_DIR="static-bacula-dir"
24382 fi
24383
24384
24385 # Check whether --enable-static-cons was given.
24386 if test "${enable_static_cons+set}" = set; then
24387   enableval=$enable_static_cons;
24388        if test x$enableval = xyes; then
24389           if test x$use_libtool = xyes; then
24390              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24391   please rerun configure with --disable-libtool" >&5
24392 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24393   please rerun configure with --disable-libtool" >&2;}
24394    { (exit 1); exit 1; }; }
24395           fi
24396           support_static_cons=yes
24397        fi
24398
24399
24400 fi
24401
24402
24403 STATIC_CONS=
24404 STATIC_GNOME_CONS=
24405 STATIC_WX_CONS=
24406 if test x$support_static_cons = xyes; then
24407    STATIC_CONS="static-bconsole"
24408    STATIC_GNOME_CONS="static-bgnome-console"
24409    STATIC_WX_CONS="static-bwx-console"
24410 fi
24411
24412
24413
24414
24415 # Check whether --enable-client-only was given.
24416 if test "${enable_client_only+set}" = set; then
24417   enableval=$enable_client_only;
24418        if test x$enableval = xyes; then
24419           build_client_only=yes
24420           db_type=None
24421           DB_TYPE=none
24422        fi
24423
24424
24425 fi
24426
24427 if test x$build_client_only = xno; then
24428    ALL_DIRS="subdirs"
24429 else
24430    ALL_DIRS=""
24431 fi
24432
24433
24434 # Check whether --enable-build-dird was given.
24435 if test "${enable_build_dird+set}" = set; then
24436   enableval=$enable_build_dird;
24437        if test x$enableval = xno; then
24438           build_dird=no
24439        fi
24440
24441
24442 fi
24443
24444 if test x$build_dird = xyes; then
24445    DIRD_DIR="src/dird"
24446    DIR_TOOLS="DIRTOOLS"
24447 else
24448    DIRD_DIR=""
24449    DIR_TOOLS="NODIRTOOLS"
24450 fi
24451
24452
24453
24454 # Check whether --enable-build-stored was given.
24455 if test "${enable_build_stored+set}" = set; then
24456   enableval=$enable_build_stored;
24457       if test x$enableval = xno; then
24458          build_stored=no
24459       fi
24460
24461
24462 fi
24463
24464 if test x$build_stored = xyes; then
24465    STORED_DIR="src/stored"
24466 else
24467    STORED_DIR=""
24468 fi
24469
24470
24471 # Check whether --enable-conio was given.
24472 if test "${enable_conio+set}" = set; then
24473   enableval=$enable_conio;
24474        if test x$enableval = xno; then
24475           support_conio=no
24476        fi
24477
24478
24479 fi
24480
24481
24482
24483 support_ipv6=yes
24484 # Check whether --enable-ipv6 was given.
24485 if test "${enable_ipv6+set}" = set; then
24486   enableval=$enable_ipv6;
24487        if test x$enableval = xno; then
24488           support_ipv6=no
24489        fi
24490
24491
24492 fi
24493
24494
24495 if test x$support_ipv6 = xyes; then
24496     cat >conftest.$ac_ext <<_ACEOF
24497 /* confdefs.h.  */
24498 _ACEOF
24499 cat confdefs.h >>conftest.$ac_ext
24500 cat >>conftest.$ac_ext <<_ACEOF
24501 /* end confdefs.h.  */
24502  #include <sys/types.h>
24503 #include <sys/socket.h>
24504 #include <netinet/in.h>
24505 int
24506 main ()
24507 {
24508 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24509   ;
24510   return 0;
24511 }
24512 _ACEOF
24513 rm -f conftest.$ac_objext conftest$ac_exeext
24514 if { (ac_try="$ac_link"
24515 case "(($ac_try" in
24516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24517   *) ac_try_echo=$ac_try;;
24518 esac
24519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24520   (eval "$ac_link") 2>conftest.er1
24521   ac_status=$?
24522   grep -v '^ *+' conftest.er1 >conftest.err
24523   rm -f conftest.er1
24524   cat conftest.err >&5
24525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24526   (exit $ac_status); } && {
24527          test -z "$ac_cxx_werror_flag" ||
24528          test ! -s conftest.err
24529        } && test -s conftest$ac_exeext &&
24530        $as_test_x conftest$ac_exeext; then
24531   support_ipv6=yes
24532 else
24533   echo "$as_me: failed program was:" >&5
24534 sed 's/^/| /' conftest.$ac_ext >&5
24535
24536         support_ipv6=no
24537 fi
24538
24539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24540       conftest$ac_exeext conftest.$ac_ext
24541 fi
24542
24543 if test x$support_ipv6 = xyes; then
24544
24545 cat >>confdefs.h <<\_ACEOF
24546 #define HAVE_IPV6 1
24547 _ACEOF
24548
24549 fi
24550
24551 got_conio="no"
24552 if test x$support_conio = xyes; then
24553    if test "${ac_cv_header_termcap_h+set}" = set; then
24554   { echo "$as_me:$LINENO: checking for termcap.h" >&5
24555 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24556 if test "${ac_cv_header_termcap_h+set}" = set; then
24557   echo $ECHO_N "(cached) $ECHO_C" >&6
24558 fi
24559 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24560 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24561 else
24562   # Is the header compilable?
24563 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24564 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24565 cat >conftest.$ac_ext <<_ACEOF
24566 /* confdefs.h.  */
24567 _ACEOF
24568 cat confdefs.h >>conftest.$ac_ext
24569 cat >>conftest.$ac_ext <<_ACEOF
24570 /* end confdefs.h.  */
24571 $ac_includes_default
24572 #include <termcap.h>
24573 _ACEOF
24574 rm -f conftest.$ac_objext
24575 if { (ac_try="$ac_compile"
24576 case "(($ac_try" in
24577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24578   *) ac_try_echo=$ac_try;;
24579 esac
24580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24581   (eval "$ac_compile") 2>conftest.er1
24582   ac_status=$?
24583   grep -v '^ *+' conftest.er1 >conftest.err
24584   rm -f conftest.er1
24585   cat conftest.err >&5
24586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587   (exit $ac_status); } && {
24588          test -z "$ac_cxx_werror_flag" ||
24589          test ! -s conftest.err
24590        } && test -s conftest.$ac_objext; then
24591   ac_header_compiler=yes
24592 else
24593   echo "$as_me: failed program was:" >&5
24594 sed 's/^/| /' conftest.$ac_ext >&5
24595
24596         ac_header_compiler=no
24597 fi
24598
24599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24600 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24601 echo "${ECHO_T}$ac_header_compiler" >&6; }
24602
24603 # Is the header present?
24604 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24605 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24606 cat >conftest.$ac_ext <<_ACEOF
24607 /* confdefs.h.  */
24608 _ACEOF
24609 cat confdefs.h >>conftest.$ac_ext
24610 cat >>conftest.$ac_ext <<_ACEOF
24611 /* end confdefs.h.  */
24612 #include <termcap.h>
24613 _ACEOF
24614 if { (ac_try="$ac_cpp conftest.$ac_ext"
24615 case "(($ac_try" in
24616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24617   *) ac_try_echo=$ac_try;;
24618 esac
24619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24620   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24621   ac_status=$?
24622   grep -v '^ *+' conftest.er1 >conftest.err
24623   rm -f conftest.er1
24624   cat conftest.err >&5
24625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626   (exit $ac_status); } >/dev/null && {
24627          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24628          test ! -s conftest.err
24629        }; then
24630   ac_header_preproc=yes
24631 else
24632   echo "$as_me: failed program was:" >&5
24633 sed 's/^/| /' conftest.$ac_ext >&5
24634
24635   ac_header_preproc=no
24636 fi
24637
24638 rm -f conftest.err conftest.$ac_ext
24639 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24640 echo "${ECHO_T}$ac_header_preproc" >&6; }
24641
24642 # So?  What about this header?
24643 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24644   yes:no: )
24645     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24646 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24647     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24648 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24649     ac_header_preproc=yes
24650     ;;
24651   no:yes:* )
24652     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24653 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24654     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
24655 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
24656     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24657 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24658     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
24659 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24660     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24661 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24662     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24663 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24664
24665     ;;
24666 esac
24667 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24668 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24669 if test "${ac_cv_header_termcap_h+set}" = set; then
24670   echo $ECHO_N "(cached) $ECHO_C" >&6
24671 else
24672   ac_cv_header_termcap_h=$ac_header_preproc
24673 fi
24674 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24675 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24676
24677 fi
24678 if test $ac_cv_header_termcap_h = yes; then
24679    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24680 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24681 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24682   echo $ECHO_N "(cached) $ECHO_C" >&6
24683 else
24684   ac_check_lib_save_LIBS=$LIBS
24685 LIBS="-ltermcap  $LIBS"
24686 cat >conftest.$ac_ext <<_ACEOF
24687 /* confdefs.h.  */
24688 _ACEOF
24689 cat confdefs.h >>conftest.$ac_ext
24690 cat >>conftest.$ac_ext <<_ACEOF
24691 /* end confdefs.h.  */
24692
24693 /* Override any GCC internal prototype to avoid an error.
24694    Use char because int might match the return type of a GCC
24695    builtin and then its argument prototype would still apply.  */
24696 #ifdef __cplusplus
24697 extern "C"
24698 #endif
24699 char tgetent ();
24700 int
24701 main ()
24702 {
24703 return tgetent ();
24704   ;
24705   return 0;
24706 }
24707 _ACEOF
24708 rm -f conftest.$ac_objext conftest$ac_exeext
24709 if { (ac_try="$ac_link"
24710 case "(($ac_try" in
24711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24712   *) ac_try_echo=$ac_try;;
24713 esac
24714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24715   (eval "$ac_link") 2>conftest.er1
24716   ac_status=$?
24717   grep -v '^ *+' conftest.er1 >conftest.err
24718   rm -f conftest.er1
24719   cat conftest.err >&5
24720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721   (exit $ac_status); } && {
24722          test -z "$ac_cxx_werror_flag" ||
24723          test ! -s conftest.err
24724        } && test -s conftest$ac_exeext &&
24725        $as_test_x conftest$ac_exeext; then
24726   ac_cv_lib_termcap_tgetent=yes
24727 else
24728   echo "$as_me: failed program was:" >&5
24729 sed 's/^/| /' conftest.$ac_ext >&5
24730
24731         ac_cv_lib_termcap_tgetent=no
24732 fi
24733
24734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24735       conftest$ac_exeext conftest.$ac_ext
24736 LIBS=$ac_check_lib_save_LIBS
24737 fi
24738 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24739 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24740 if test $ac_cv_lib_termcap_tgetent = yes; then
24741    CONS_LIBS="-ltermcap"
24742     CONS_OBJ="conio.o"
24743     CONS_SRC="conio.c"
24744     got_conio="yes"
24745     support_readline=no
24746
24747 cat >>confdefs.h <<\_ACEOF
24748 #define HAVE_CONIO 1
24749 _ACEOF
24750
24751
24752 else
24753    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24754 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24755 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24756   echo $ECHO_N "(cached) $ECHO_C" >&6
24757 else
24758   ac_check_lib_save_LIBS=$LIBS
24759 LIBS="-lncurses  $LIBS"
24760 cat >conftest.$ac_ext <<_ACEOF
24761 /* confdefs.h.  */
24762 _ACEOF
24763 cat confdefs.h >>conftest.$ac_ext
24764 cat >>conftest.$ac_ext <<_ACEOF
24765 /* end confdefs.h.  */
24766
24767 /* Override any GCC internal prototype to avoid an error.
24768    Use char because int might match the return type of a GCC
24769    builtin and then its argument prototype would still apply.  */
24770 #ifdef __cplusplus
24771 extern "C"
24772 #endif
24773 char tgetent ();
24774 int
24775 main ()
24776 {
24777 return tgetent ();
24778   ;
24779   return 0;
24780 }
24781 _ACEOF
24782 rm -f conftest.$ac_objext conftest$ac_exeext
24783 if { (ac_try="$ac_link"
24784 case "(($ac_try" in
24785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24786   *) ac_try_echo=$ac_try;;
24787 esac
24788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24789   (eval "$ac_link") 2>conftest.er1
24790   ac_status=$?
24791   grep -v '^ *+' conftest.er1 >conftest.err
24792   rm -f conftest.er1
24793   cat conftest.err >&5
24794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795   (exit $ac_status); } && {
24796          test -z "$ac_cxx_werror_flag" ||
24797          test ! -s conftest.err
24798        } && test -s conftest$ac_exeext &&
24799        $as_test_x conftest$ac_exeext; then
24800   ac_cv_lib_ncurses_tgetent=yes
24801 else
24802   echo "$as_me: failed program was:" >&5
24803 sed 's/^/| /' conftest.$ac_ext >&5
24804
24805         ac_cv_lib_ncurses_tgetent=no
24806 fi
24807
24808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24809       conftest$ac_exeext conftest.$ac_ext
24810 LIBS=$ac_check_lib_save_LIBS
24811 fi
24812 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24813 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24814 if test $ac_cv_lib_ncurses_tgetent = yes; then
24815    CONS_LIBS="-lncurses"
24816       CONS_OBJ="conio.o"
24817       CONS_SRC="conio.c"
24818       got_conio="yes"
24819       support_readline=no
24820
24821 cat >>confdefs.h <<\_ACEOF
24822 #define HAVE_CONIO 1
24823 _ACEOF
24824
24825
24826 fi
24827
24828
24829 fi
24830
24831
24832 else
24833
24834
24835 for ac_header in curses.h
24836 do
24837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24839   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24842   echo $ECHO_N "(cached) $ECHO_C" >&6
24843 fi
24844 ac_res=`eval echo '${'$as_ac_Header'}'`
24845                { echo "$as_me:$LINENO: result: $ac_res" >&5
24846 echo "${ECHO_T}$ac_res" >&6; }
24847 else
24848   # Is the header compilable?
24849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24851 cat >conftest.$ac_ext <<_ACEOF
24852 /* confdefs.h.  */
24853 _ACEOF
24854 cat confdefs.h >>conftest.$ac_ext
24855 cat >>conftest.$ac_ext <<_ACEOF
24856 /* end confdefs.h.  */
24857 $ac_includes_default
24858 #include <$ac_header>
24859 _ACEOF
24860 rm -f conftest.$ac_objext
24861 if { (ac_try="$ac_compile"
24862 case "(($ac_try" in
24863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24864   *) ac_try_echo=$ac_try;;
24865 esac
24866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24867   (eval "$ac_compile") 2>conftest.er1
24868   ac_status=$?
24869   grep -v '^ *+' conftest.er1 >conftest.err
24870   rm -f conftest.er1
24871   cat conftest.err >&5
24872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24873   (exit $ac_status); } && {
24874          test -z "$ac_cxx_werror_flag" ||
24875          test ! -s conftest.err
24876        } && test -s conftest.$ac_objext; then
24877   ac_header_compiler=yes
24878 else
24879   echo "$as_me: failed program was:" >&5
24880 sed 's/^/| /' conftest.$ac_ext >&5
24881
24882         ac_header_compiler=no
24883 fi
24884
24885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24887 echo "${ECHO_T}$ac_header_compiler" >&6; }
24888
24889 # Is the header present?
24890 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24892 cat >conftest.$ac_ext <<_ACEOF
24893 /* confdefs.h.  */
24894 _ACEOF
24895 cat confdefs.h >>conftest.$ac_ext
24896 cat >>conftest.$ac_ext <<_ACEOF
24897 /* end confdefs.h.  */
24898 #include <$ac_header>
24899 _ACEOF
24900 if { (ac_try="$ac_cpp conftest.$ac_ext"
24901 case "(($ac_try" in
24902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24903   *) ac_try_echo=$ac_try;;
24904 esac
24905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24906   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24907   ac_status=$?
24908   grep -v '^ *+' conftest.er1 >conftest.err
24909   rm -f conftest.er1
24910   cat conftest.err >&5
24911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912   (exit $ac_status); } >/dev/null && {
24913          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24914          test ! -s conftest.err
24915        }; then
24916   ac_header_preproc=yes
24917 else
24918   echo "$as_me: failed program was:" >&5
24919 sed 's/^/| /' conftest.$ac_ext >&5
24920
24921   ac_header_preproc=no
24922 fi
24923
24924 rm -f conftest.err conftest.$ac_ext
24925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24926 echo "${ECHO_T}$ac_header_preproc" >&6; }
24927
24928 # So?  What about this header?
24929 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24930   yes:no: )
24931     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24933     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24935     ac_header_preproc=yes
24936     ;;
24937   no:yes:* )
24938     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24940     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24941 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24942     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24944     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24945 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24946     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24948     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24950
24951     ;;
24952 esac
24953 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24956   echo $ECHO_N "(cached) $ECHO_C" >&6
24957 else
24958   eval "$as_ac_Header=\$ac_header_preproc"
24959 fi
24960 ac_res=`eval echo '${'$as_ac_Header'}'`
24961                { echo "$as_me:$LINENO: result: $ac_res" >&5
24962 echo "${ECHO_T}$ac_res" >&6; }
24963
24964 fi
24965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24966   cat >>confdefs.h <<_ACEOF
24967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24968 _ACEOF
24969
24970 fi
24971
24972 done
24973
24974     { echo "$as_me:$LINENO: checking for term.h" >&5
24975 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24976 if test "${ac_cv_header_term_h+set}" = set; then
24977   echo $ECHO_N "(cached) $ECHO_C" >&6
24978 else
24979   cat >conftest.$ac_ext <<_ACEOF
24980 /* confdefs.h.  */
24981 _ACEOF
24982 cat confdefs.h >>conftest.$ac_ext
24983 cat >>conftest.$ac_ext <<_ACEOF
24984 /* end confdefs.h.  */
24985 #if HAVE_CURSES_H
24986 #include <curses.h>
24987 #endif
24988
24989
24990 #include <term.h>
24991 _ACEOF
24992 rm -f conftest.$ac_objext
24993 if { (ac_try="$ac_compile"
24994 case "(($ac_try" in
24995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24996   *) ac_try_echo=$ac_try;;
24997 esac
24998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24999   (eval "$ac_compile") 2>conftest.er1
25000   ac_status=$?
25001   grep -v '^ *+' conftest.er1 >conftest.err
25002   rm -f conftest.er1
25003   cat conftest.err >&5
25004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005   (exit $ac_status); } && {
25006          test -z "$ac_cxx_werror_flag" ||
25007          test ! -s conftest.err
25008        } && test -s conftest.$ac_objext; then
25009   ac_cv_header_term_h=yes
25010 else
25011   echo "$as_me: failed program was:" >&5
25012 sed 's/^/| /' conftest.$ac_ext >&5
25013
25014         ac_cv_header_term_h=no
25015 fi
25016
25017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25018 fi
25019 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25020 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
25021 if test $ac_cv_header_term_h = yes; then
25022    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
25023 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
25024 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
25025   echo $ECHO_N "(cached) $ECHO_C" >&6
25026 else
25027   ac_check_lib_save_LIBS=$LIBS
25028 LIBS="-lcurses  $LIBS"
25029 cat >conftest.$ac_ext <<_ACEOF
25030 /* confdefs.h.  */
25031 _ACEOF
25032 cat confdefs.h >>conftest.$ac_ext
25033 cat >>conftest.$ac_ext <<_ACEOF
25034 /* end confdefs.h.  */
25035
25036 /* Override any GCC internal prototype to avoid an error.
25037    Use char because int might match the return type of a GCC
25038    builtin and then its argument prototype would still apply.  */
25039 #ifdef __cplusplus
25040 extern "C"
25041 #endif
25042 char tgetent ();
25043 int
25044 main ()
25045 {
25046 return tgetent ();
25047   ;
25048   return 0;
25049 }
25050 _ACEOF
25051 rm -f conftest.$ac_objext conftest$ac_exeext
25052 if { (ac_try="$ac_link"
25053 case "(($ac_try" in
25054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25055   *) ac_try_echo=$ac_try;;
25056 esac
25057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25058   (eval "$ac_link") 2>conftest.er1
25059   ac_status=$?
25060   grep -v '^ *+' conftest.er1 >conftest.err
25061   rm -f conftest.er1
25062   cat conftest.err >&5
25063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25064   (exit $ac_status); } && {
25065          test -z "$ac_cxx_werror_flag" ||
25066          test ! -s conftest.err
25067        } && test -s conftest$ac_exeext &&
25068        $as_test_x conftest$ac_exeext; then
25069   ac_cv_lib_curses_tgetent=yes
25070 else
25071   echo "$as_me: failed program was:" >&5
25072 sed 's/^/| /' conftest.$ac_ext >&5
25073
25074         ac_cv_lib_curses_tgetent=no
25075 fi
25076
25077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25078       conftest$ac_exeext conftest.$ac_ext
25079 LIBS=$ac_check_lib_save_LIBS
25080 fi
25081 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25082 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25083 if test $ac_cv_lib_curses_tgetent = yes; then
25084    CONS_LIBS="-lcurses"
25085          CONS_OBJ="conio.o"
25086          CONS_SRC="conio.c"
25087          got_conio="yes"
25088          support_readline=no
25089
25090 cat >>confdefs.h <<\_ACEOF
25091 #define HAVE_CONIO 1
25092 _ACEOF
25093
25094
25095 fi
25096
25097
25098 else
25099    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25100 fi
25101
25102
25103
25104 fi
25105
25106
25107 fi
25108
25109
25110 # Check whether --enable-readline was given.
25111 if test "${enable_readline+set}" = set; then
25112   enableval=$enable_readline;
25113        if test x$enableval = xno; then
25114           support_readline=no
25115        fi
25116
25117
25118 fi
25119
25120
25121 got_readline="no"
25122 READLINE_SRC=
25123 if test x$support_readline = xyes; then
25124
25125 # Check whether --with-readline was given.
25126 if test "${with_readline+set}" = set; then
25127   withval=$with_readline;
25128           case "$with_readline" in
25129           no)
25130              :
25131              ;;
25132           yes|*)
25133              if test -f ${with_readline}/readline.h; then
25134                 CONS_INC="-I${with_readline}"
25135                 CONS_LDFLAGS="-L$with_readline"
25136              elif test -f ${with_readline}/include/readline/readline.h; then
25137                 CONS_INC="-I${with_readline}/include/readline"
25138                 CONS_LDFLAGS="-L${with_readline}/lib"
25139                 with_readline="${with_readline}/include/readline"
25140              else
25141                 with_readline="/usr/include/readline"
25142              fi
25143
25144              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25146   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25147 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25149   echo $ECHO_N "(cached) $ECHO_C" >&6
25150 fi
25151 ac_res=`eval echo '${'$as_ac_Header'}'`
25152                { echo "$as_me:$LINENO: result: $ac_res" >&5
25153 echo "${ECHO_T}$ac_res" >&6; }
25154 else
25155   # Is the header compilable?
25156 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25157 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25158 cat >conftest.$ac_ext <<_ACEOF
25159 /* confdefs.h.  */
25160 _ACEOF
25161 cat confdefs.h >>conftest.$ac_ext
25162 cat >>conftest.$ac_ext <<_ACEOF
25163 /* end confdefs.h.  */
25164 $ac_includes_default
25165 #include <${with_readline}/readline.h>
25166 _ACEOF
25167 rm -f conftest.$ac_objext
25168 if { (ac_try="$ac_compile"
25169 case "(($ac_try" in
25170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25171   *) ac_try_echo=$ac_try;;
25172 esac
25173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25174   (eval "$ac_compile") 2>conftest.er1
25175   ac_status=$?
25176   grep -v '^ *+' conftest.er1 >conftest.err
25177   rm -f conftest.er1
25178   cat conftest.err >&5
25179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180   (exit $ac_status); } && {
25181          test -z "$ac_cxx_werror_flag" ||
25182          test ! -s conftest.err
25183        } && test -s conftest.$ac_objext; then
25184   ac_header_compiler=yes
25185 else
25186   echo "$as_me: failed program was:" >&5
25187 sed 's/^/| /' conftest.$ac_ext >&5
25188
25189         ac_header_compiler=no
25190 fi
25191
25192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25193 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25194 echo "${ECHO_T}$ac_header_compiler" >&6; }
25195
25196 # Is the header present?
25197 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25198 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25199 cat >conftest.$ac_ext <<_ACEOF
25200 /* confdefs.h.  */
25201 _ACEOF
25202 cat confdefs.h >>conftest.$ac_ext
25203 cat >>conftest.$ac_ext <<_ACEOF
25204 /* end confdefs.h.  */
25205 #include <${with_readline}/readline.h>
25206 _ACEOF
25207 if { (ac_try="$ac_cpp conftest.$ac_ext"
25208 case "(($ac_try" in
25209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25210   *) ac_try_echo=$ac_try;;
25211 esac
25212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25213   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25214   ac_status=$?
25215   grep -v '^ *+' conftest.er1 >conftest.err
25216   rm -f conftest.er1
25217   cat conftest.err >&5
25218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219   (exit $ac_status); } >/dev/null && {
25220          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25221          test ! -s conftest.err
25222        }; then
25223   ac_header_preproc=yes
25224 else
25225   echo "$as_me: failed program was:" >&5
25226 sed 's/^/| /' conftest.$ac_ext >&5
25227
25228   ac_header_preproc=no
25229 fi
25230
25231 rm -f conftest.err conftest.$ac_ext
25232 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25233 echo "${ECHO_T}$ac_header_preproc" >&6; }
25234
25235 # So?  What about this header?
25236 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25237   yes:no: )
25238     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25239 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25240     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25241 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25242     ac_header_preproc=yes
25243     ;;
25244   no:yes:* )
25245     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25246 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25247     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25248 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25249     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25250 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25251     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25252 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25253     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25254 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25255     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25256 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25257
25258     ;;
25259 esac
25260 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25261 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25263   echo $ECHO_N "(cached) $ECHO_C" >&6
25264 else
25265   eval "$as_ac_Header=\$ac_header_preproc"
25266 fi
25267 ac_res=`eval echo '${'$as_ac_Header'}'`
25268                { echo "$as_me:$LINENO: result: $ac_res" >&5
25269 echo "${ECHO_T}$ac_res" >&6; }
25270
25271 fi
25272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25273
25274
25275 cat >>confdefs.h <<\_ACEOF
25276 #define HAVE_READLINE 1
25277 _ACEOF
25278
25279                     CONS_LIBS="-lreadline -lhistory -ltermcap"
25280                     got_readline="yes"
25281
25282 else
25283
25284                     echo " "
25285                     echo "readline.h not found. readline turned off ..."
25286                     echo " "
25287
25288
25289 fi
25290
25291
25292              ;;
25293           esac
25294
25295 else
25296
25297                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25298   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25299 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25300 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25301   echo $ECHO_N "(cached) $ECHO_C" >&6
25302 fi
25303 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25304 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25305 else
25306   # Is the header compilable?
25307 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25308 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25309 cat >conftest.$ac_ext <<_ACEOF
25310 /* confdefs.h.  */
25311 _ACEOF
25312 cat confdefs.h >>conftest.$ac_ext
25313 cat >>conftest.$ac_ext <<_ACEOF
25314 /* end confdefs.h.  */
25315 $ac_includes_default
25316 #include </usr/include/readline/readline.h>
25317 _ACEOF
25318 rm -f conftest.$ac_objext
25319 if { (ac_try="$ac_compile"
25320 case "(($ac_try" in
25321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25322   *) ac_try_echo=$ac_try;;
25323 esac
25324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25325   (eval "$ac_compile") 2>conftest.er1
25326   ac_status=$?
25327   grep -v '^ *+' conftest.er1 >conftest.err
25328   rm -f conftest.er1
25329   cat conftest.err >&5
25330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331   (exit $ac_status); } && {
25332          test -z "$ac_cxx_werror_flag" ||
25333          test ! -s conftest.err
25334        } && test -s conftest.$ac_objext; then
25335   ac_header_compiler=yes
25336 else
25337   echo "$as_me: failed program was:" >&5
25338 sed 's/^/| /' conftest.$ac_ext >&5
25339
25340         ac_header_compiler=no
25341 fi
25342
25343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25344 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25345 echo "${ECHO_T}$ac_header_compiler" >&6; }
25346
25347 # Is the header present?
25348 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25349 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25350 cat >conftest.$ac_ext <<_ACEOF
25351 /* confdefs.h.  */
25352 _ACEOF
25353 cat confdefs.h >>conftest.$ac_ext
25354 cat >>conftest.$ac_ext <<_ACEOF
25355 /* end confdefs.h.  */
25356 #include </usr/include/readline/readline.h>
25357 _ACEOF
25358 if { (ac_try="$ac_cpp conftest.$ac_ext"
25359 case "(($ac_try" in
25360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25361   *) ac_try_echo=$ac_try;;
25362 esac
25363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25364   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25365   ac_status=$?
25366   grep -v '^ *+' conftest.er1 >conftest.err
25367   rm -f conftest.er1
25368   cat conftest.err >&5
25369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25370   (exit $ac_status); } >/dev/null && {
25371          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25372          test ! -s conftest.err
25373        }; then
25374   ac_header_preproc=yes
25375 else
25376   echo "$as_me: failed program was:" >&5
25377 sed 's/^/| /' conftest.$ac_ext >&5
25378
25379   ac_header_preproc=no
25380 fi
25381
25382 rm -f conftest.err conftest.$ac_ext
25383 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25384 echo "${ECHO_T}$ac_header_preproc" >&6; }
25385
25386 # So?  What about this header?
25387 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25388   yes:no: )
25389     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25390 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25391     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25392 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25393     ac_header_preproc=yes
25394     ;;
25395   no:yes:* )
25396     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25397 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25398     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25399 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25400     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25401 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25402     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25403 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25404     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25405 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25406     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25407 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25408
25409     ;;
25410 esac
25411 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25412 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25413 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25414   echo $ECHO_N "(cached) $ECHO_C" >&6
25415 else
25416   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25417 fi
25418 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25419 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25420
25421 fi
25422 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25423
25424
25425 cat >>confdefs.h <<\_ACEOF
25426 #define HAVE_READLINE 1
25427 _ACEOF
25428
25429                 got_readline="yes"
25430                 CONS_INC="-I/usr/include/readline"
25431                 CONS_LIBS="-lreadline -ltermcap"
25432
25433 else
25434
25435                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25437   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25438 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25440   echo $ECHO_N "(cached) $ECHO_C" >&6
25441 fi
25442 ac_res=`eval echo '${'$as_ac_Header'}'`
25443                { echo "$as_me:$LINENO: result: $ac_res" >&5
25444 echo "${ECHO_T}$ac_res" >&6; }
25445 else
25446   # Is the header compilable?
25447 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25448 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25449 cat >conftest.$ac_ext <<_ACEOF
25450 /* confdefs.h.  */
25451 _ACEOF
25452 cat confdefs.h >>conftest.$ac_ext
25453 cat >>conftest.$ac_ext <<_ACEOF
25454 /* end confdefs.h.  */
25455 $ac_includes_default
25456 #include <${TOP_DIR}/depkgs/readline/readline.h>
25457 _ACEOF
25458 rm -f conftest.$ac_objext
25459 if { (ac_try="$ac_compile"
25460 case "(($ac_try" in
25461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25462   *) ac_try_echo=$ac_try;;
25463 esac
25464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25465   (eval "$ac_compile") 2>conftest.er1
25466   ac_status=$?
25467   grep -v '^ *+' conftest.er1 >conftest.err
25468   rm -f conftest.er1
25469   cat conftest.err >&5
25470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471   (exit $ac_status); } && {
25472          test -z "$ac_cxx_werror_flag" ||
25473          test ! -s conftest.err
25474        } && test -s conftest.$ac_objext; then
25475   ac_header_compiler=yes
25476 else
25477   echo "$as_me: failed program was:" >&5
25478 sed 's/^/| /' conftest.$ac_ext >&5
25479
25480         ac_header_compiler=no
25481 fi
25482
25483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25484 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25485 echo "${ECHO_T}$ac_header_compiler" >&6; }
25486
25487 # Is the header present?
25488 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25489 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25490 cat >conftest.$ac_ext <<_ACEOF
25491 /* confdefs.h.  */
25492 _ACEOF
25493 cat confdefs.h >>conftest.$ac_ext
25494 cat >>conftest.$ac_ext <<_ACEOF
25495 /* end confdefs.h.  */
25496 #include <${TOP_DIR}/depkgs/readline/readline.h>
25497 _ACEOF
25498 if { (ac_try="$ac_cpp conftest.$ac_ext"
25499 case "(($ac_try" in
25500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25501   *) ac_try_echo=$ac_try;;
25502 esac
25503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25504   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25505   ac_status=$?
25506   grep -v '^ *+' conftest.er1 >conftest.err
25507   rm -f conftest.er1
25508   cat conftest.err >&5
25509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510   (exit $ac_status); } >/dev/null && {
25511          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25512          test ! -s conftest.err
25513        }; then
25514   ac_header_preproc=yes
25515 else
25516   echo "$as_me: failed program was:" >&5
25517 sed 's/^/| /' conftest.$ac_ext >&5
25518
25519   ac_header_preproc=no
25520 fi
25521
25522 rm -f conftest.err conftest.$ac_ext
25523 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25524 echo "${ECHO_T}$ac_header_preproc" >&6; }
25525
25526 # So?  What about this header?
25527 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25528   yes:no: )
25529     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25530 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25531     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25532 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25533     ac_header_preproc=yes
25534     ;;
25535   no:yes:* )
25536     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25537 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25538     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25539 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25540     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25541 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25542     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25543 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25544     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25545 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25546     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25547 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25548
25549     ;;
25550 esac
25551 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25552 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25554   echo $ECHO_N "(cached) $ECHO_C" >&6
25555 else
25556   eval "$as_ac_Header=\$ac_header_preproc"
25557 fi
25558 ac_res=`eval echo '${'$as_ac_Header'}'`
25559                { echo "$as_me:$LINENO: result: $ac_res" >&5
25560 echo "${ECHO_T}$ac_res" >&6; }
25561
25562 fi
25563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25564
25565
25566 cat >>confdefs.h <<\_ACEOF
25567 #define HAVE_READLINE 1
25568 _ACEOF
25569
25570                         got_readline="yes"
25571                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25572                         CONS_LIBS="-lreadline -lhistory -ltermcap"
25573                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25574                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25575
25576 else
25577
25578                         echo " "
25579                         echo "readline.h not found. readline turned off ..."
25580                         echo " "
25581
25582
25583 fi
25584
25585
25586
25587
25588 fi
25589
25590
25591
25592
25593 fi
25594
25595 fi
25596
25597
25598
25599
25600
25601
25602
25603
25604 MAKE_SHELL=/bin/sh
25605
25606 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25607 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25608 if test "${ac_cv_header_stat_broken+set}" = set; then
25609   echo $ECHO_N "(cached) $ECHO_C" >&6
25610 else
25611   cat >conftest.$ac_ext <<_ACEOF
25612 /* confdefs.h.  */
25613 _ACEOF
25614 cat confdefs.h >>conftest.$ac_ext
25615 cat >>conftest.$ac_ext <<_ACEOF
25616 /* end confdefs.h.  */
25617 #include <sys/types.h>
25618 #include <sys/stat.h>
25619
25620 #if defined S_ISBLK && defined S_IFDIR
25621 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25622 #endif
25623
25624 #if defined S_ISBLK && defined S_IFCHR
25625 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25626 #endif
25627
25628 #if defined S_ISLNK && defined S_IFREG
25629 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25630 #endif
25631
25632 #if defined S_ISSOCK && defined S_IFREG
25633 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25634 #endif
25635
25636 _ACEOF
25637 rm -f conftest.$ac_objext
25638 if { (ac_try="$ac_compile"
25639 case "(($ac_try" in
25640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25641   *) ac_try_echo=$ac_try;;
25642 esac
25643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25644   (eval "$ac_compile") 2>conftest.er1
25645   ac_status=$?
25646   grep -v '^ *+' conftest.er1 >conftest.err
25647   rm -f conftest.er1
25648   cat conftest.err >&5
25649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650   (exit $ac_status); } && {
25651          test -z "$ac_cxx_werror_flag" ||
25652          test ! -s conftest.err
25653        } && test -s conftest.$ac_objext; then
25654   ac_cv_header_stat_broken=no
25655 else
25656   echo "$as_me: failed program was:" >&5
25657 sed 's/^/| /' conftest.$ac_ext >&5
25658
25659         ac_cv_header_stat_broken=yes
25660 fi
25661
25662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25663 fi
25664 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25665 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25666 if test $ac_cv_header_stat_broken = yes; then
25667
25668 cat >>confdefs.h <<\_ACEOF
25669 #define STAT_MACROS_BROKEN 1
25670 _ACEOF
25671
25672 fi
25673
25674
25675
25676
25677
25678
25679 ac_header_dirent=no
25680 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25681   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25682 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25683 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25685   echo $ECHO_N "(cached) $ECHO_C" >&6
25686 else
25687   cat >conftest.$ac_ext <<_ACEOF
25688 /* confdefs.h.  */
25689 _ACEOF
25690 cat confdefs.h >>conftest.$ac_ext
25691 cat >>conftest.$ac_ext <<_ACEOF
25692 /* end confdefs.h.  */
25693 #include <sys/types.h>
25694 #include <$ac_hdr>
25695
25696 int
25697 main ()
25698 {
25699 if ((DIR *) 0)
25700 return 0;
25701   ;
25702   return 0;
25703 }
25704 _ACEOF
25705 rm -f conftest.$ac_objext
25706 if { (ac_try="$ac_compile"
25707 case "(($ac_try" in
25708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25709   *) ac_try_echo=$ac_try;;
25710 esac
25711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25712   (eval "$ac_compile") 2>conftest.er1
25713   ac_status=$?
25714   grep -v '^ *+' conftest.er1 >conftest.err
25715   rm -f conftest.er1
25716   cat conftest.err >&5
25717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718   (exit $ac_status); } && {
25719          test -z "$ac_cxx_werror_flag" ||
25720          test ! -s conftest.err
25721        } && test -s conftest.$ac_objext; then
25722   eval "$as_ac_Header=yes"
25723 else
25724   echo "$as_me: failed program was:" >&5
25725 sed 's/^/| /' conftest.$ac_ext >&5
25726
25727         eval "$as_ac_Header=no"
25728 fi
25729
25730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25731 fi
25732 ac_res=`eval echo '${'$as_ac_Header'}'`
25733                { echo "$as_me:$LINENO: result: $ac_res" >&5
25734 echo "${ECHO_T}$ac_res" >&6; }
25735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25736   cat >>confdefs.h <<_ACEOF
25737 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25738 _ACEOF
25739
25740 ac_header_dirent=$ac_hdr; break
25741 fi
25742
25743 done
25744 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25745 if test $ac_header_dirent = dirent.h; then
25746   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25747 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25748 if test "${ac_cv_search_opendir+set}" = set; then
25749   echo $ECHO_N "(cached) $ECHO_C" >&6
25750 else
25751   ac_func_search_save_LIBS=$LIBS
25752 cat >conftest.$ac_ext <<_ACEOF
25753 /* confdefs.h.  */
25754 _ACEOF
25755 cat confdefs.h >>conftest.$ac_ext
25756 cat >>conftest.$ac_ext <<_ACEOF
25757 /* end confdefs.h.  */
25758
25759 /* Override any GCC internal prototype to avoid an error.
25760    Use char because int might match the return type of a GCC
25761    builtin and then its argument prototype would still apply.  */
25762 #ifdef __cplusplus
25763 extern "C"
25764 #endif
25765 char opendir ();
25766 int
25767 main ()
25768 {
25769 return opendir ();
25770   ;
25771   return 0;
25772 }
25773 _ACEOF
25774 for ac_lib in '' dir; do
25775   if test -z "$ac_lib"; then
25776     ac_res="none required"
25777   else
25778     ac_res=-l$ac_lib
25779     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25780   fi
25781   rm -f conftest.$ac_objext conftest$ac_exeext
25782 if { (ac_try="$ac_link"
25783 case "(($ac_try" in
25784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25785   *) ac_try_echo=$ac_try;;
25786 esac
25787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25788   (eval "$ac_link") 2>conftest.er1
25789   ac_status=$?
25790   grep -v '^ *+' conftest.er1 >conftest.err
25791   rm -f conftest.er1
25792   cat conftest.err >&5
25793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25794   (exit $ac_status); } && {
25795          test -z "$ac_cxx_werror_flag" ||
25796          test ! -s conftest.err
25797        } && test -s conftest$ac_exeext &&
25798        $as_test_x conftest$ac_exeext; then
25799   ac_cv_search_opendir=$ac_res
25800 else
25801   echo "$as_me: failed program was:" >&5
25802 sed 's/^/| /' conftest.$ac_ext >&5
25803
25804
25805 fi
25806
25807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25808       conftest$ac_exeext
25809   if test "${ac_cv_search_opendir+set}" = set; then
25810   break
25811 fi
25812 done
25813 if test "${ac_cv_search_opendir+set}" = set; then
25814   :
25815 else
25816   ac_cv_search_opendir=no
25817 fi
25818 rm conftest.$ac_ext
25819 LIBS=$ac_func_search_save_LIBS
25820 fi
25821 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25822 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25823 ac_res=$ac_cv_search_opendir
25824 if test "$ac_res" != no; then
25825   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25826
25827 fi
25828
25829 else
25830   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25831 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25832 if test "${ac_cv_search_opendir+set}" = set; then
25833   echo $ECHO_N "(cached) $ECHO_C" >&6
25834 else
25835   ac_func_search_save_LIBS=$LIBS
25836 cat >conftest.$ac_ext <<_ACEOF
25837 /* confdefs.h.  */
25838 _ACEOF
25839 cat confdefs.h >>conftest.$ac_ext
25840 cat >>conftest.$ac_ext <<_ACEOF
25841 /* end confdefs.h.  */
25842
25843 /* Override any GCC internal prototype to avoid an error.
25844    Use char because int might match the return type of a GCC
25845    builtin and then its argument prototype would still apply.  */
25846 #ifdef __cplusplus
25847 extern "C"
25848 #endif
25849 char opendir ();
25850 int
25851 main ()
25852 {
25853 return opendir ();
25854   ;
25855   return 0;
25856 }
25857 _ACEOF
25858 for ac_lib in '' x; do
25859   if test -z "$ac_lib"; then
25860     ac_res="none required"
25861   else
25862     ac_res=-l$ac_lib
25863     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25864   fi
25865   rm -f conftest.$ac_objext conftest$ac_exeext
25866 if { (ac_try="$ac_link"
25867 case "(($ac_try" in
25868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25869   *) ac_try_echo=$ac_try;;
25870 esac
25871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25872   (eval "$ac_link") 2>conftest.er1
25873   ac_status=$?
25874   grep -v '^ *+' conftest.er1 >conftest.err
25875   rm -f conftest.er1
25876   cat conftest.err >&5
25877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878   (exit $ac_status); } && {
25879          test -z "$ac_cxx_werror_flag" ||
25880          test ! -s conftest.err
25881        } && test -s conftest$ac_exeext &&
25882        $as_test_x conftest$ac_exeext; then
25883   ac_cv_search_opendir=$ac_res
25884 else
25885   echo "$as_me: failed program was:" >&5
25886 sed 's/^/| /' conftest.$ac_ext >&5
25887
25888
25889 fi
25890
25891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25892       conftest$ac_exeext
25893   if test "${ac_cv_search_opendir+set}" = set; then
25894   break
25895 fi
25896 done
25897 if test "${ac_cv_search_opendir+set}" = set; then
25898   :
25899 else
25900   ac_cv_search_opendir=no
25901 fi
25902 rm conftest.$ac_ext
25903 LIBS=$ac_func_search_save_LIBS
25904 fi
25905 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25906 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25907 ac_res=$ac_cv_search_opendir
25908 if test "$ac_res" != no; then
25909   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25910
25911 fi
25912
25913 fi
25914
25915
25916
25917
25918
25919
25920
25921
25922 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25923 do
25924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25925 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25927 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25928   echo $ECHO_N "(cached) $ECHO_C" >&6
25929 else
25930   cat >conftest.$ac_ext <<_ACEOF
25931 /* confdefs.h.  */
25932 _ACEOF
25933 cat confdefs.h >>conftest.$ac_ext
25934 cat >>conftest.$ac_ext <<_ACEOF
25935 /* end confdefs.h.  */
25936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25937    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25938 #define $ac_func innocuous_$ac_func
25939
25940 /* System header to define __stub macros and hopefully few prototypes,
25941     which can conflict with char $ac_func (); below.
25942     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25943     <limits.h> exists even on freestanding compilers.  */
25944
25945 #ifdef __STDC__
25946 # include <limits.h>
25947 #else
25948 # include <assert.h>
25949 #endif
25950
25951 #undef $ac_func
25952
25953 /* Override any GCC internal prototype to avoid an error.
25954    Use char because int might match the return type of a GCC
25955    builtin and then its argument prototype would still apply.  */
25956 #ifdef __cplusplus
25957 extern "C"
25958 #endif
25959 char $ac_func ();
25960 /* The GNU C library defines this for functions which it implements
25961     to always fail with ENOSYS.  Some functions are actually named
25962     something starting with __ and the normal name is an alias.  */
25963 #if defined __stub_$ac_func || defined __stub___$ac_func
25964 choke me
25965 #endif
25966
25967 int
25968 main ()
25969 {
25970 return $ac_func ();
25971   ;
25972   return 0;
25973 }
25974 _ACEOF
25975 rm -f conftest.$ac_objext conftest$ac_exeext
25976 if { (ac_try="$ac_link"
25977 case "(($ac_try" in
25978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25979   *) ac_try_echo=$ac_try;;
25980 esac
25981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25982   (eval "$ac_link") 2>conftest.er1
25983   ac_status=$?
25984   grep -v '^ *+' conftest.er1 >conftest.err
25985   rm -f conftest.er1
25986   cat conftest.err >&5
25987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25988   (exit $ac_status); } && {
25989          test -z "$ac_cxx_werror_flag" ||
25990          test ! -s conftest.err
25991        } && test -s conftest$ac_exeext &&
25992        $as_test_x conftest$ac_exeext; then
25993   eval "$as_ac_var=yes"
25994 else
25995   echo "$as_me: failed program was:" >&5
25996 sed 's/^/| /' conftest.$ac_ext >&5
25997
25998         eval "$as_ac_var=no"
25999 fi
26000
26001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26002       conftest$ac_exeext conftest.$ac_ext
26003 fi
26004 ac_res=`eval echo '${'$as_ac_var'}'`
26005                { echo "$as_me:$LINENO: result: $ac_res" >&5
26006 echo "${ECHO_T}$ac_res" >&6; }
26007 if test `eval echo '${'$as_ac_var'}'` = yes; then
26008   cat >>confdefs.h <<_ACEOF
26009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26010 _ACEOF
26011
26012 fi
26013 done
26014
26015
26016
26017 for ac_func in nanosleep nl_langinfo
26018 do
26019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26020 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26022 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26023   echo $ECHO_N "(cached) $ECHO_C" >&6
26024 else
26025   cat >conftest.$ac_ext <<_ACEOF
26026 /* confdefs.h.  */
26027 _ACEOF
26028 cat confdefs.h >>conftest.$ac_ext
26029 cat >>conftest.$ac_ext <<_ACEOF
26030 /* end confdefs.h.  */
26031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26032    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26033 #define $ac_func innocuous_$ac_func
26034
26035 /* System header to define __stub macros and hopefully few prototypes,
26036     which can conflict with char $ac_func (); below.
26037     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26038     <limits.h> exists even on freestanding compilers.  */
26039
26040 #ifdef __STDC__
26041 # include <limits.h>
26042 #else
26043 # include <assert.h>
26044 #endif
26045
26046 #undef $ac_func
26047
26048 /* Override any GCC internal prototype to avoid an error.
26049    Use char because int might match the return type of a GCC
26050    builtin and then its argument prototype would still apply.  */
26051 #ifdef __cplusplus
26052 extern "C"
26053 #endif
26054 char $ac_func ();
26055 /* The GNU C library defines this for functions which it implements
26056     to always fail with ENOSYS.  Some functions are actually named
26057     something starting with __ and the normal name is an alias.  */
26058 #if defined __stub_$ac_func || defined __stub___$ac_func
26059 choke me
26060 #endif
26061
26062 int
26063 main ()
26064 {
26065 return $ac_func ();
26066   ;
26067   return 0;
26068 }
26069 _ACEOF
26070 rm -f conftest.$ac_objext conftest$ac_exeext
26071 if { (ac_try="$ac_link"
26072 case "(($ac_try" in
26073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26074   *) ac_try_echo=$ac_try;;
26075 esac
26076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26077   (eval "$ac_link") 2>conftest.er1
26078   ac_status=$?
26079   grep -v '^ *+' conftest.er1 >conftest.err
26080   rm -f conftest.er1
26081   cat conftest.err >&5
26082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083   (exit $ac_status); } && {
26084          test -z "$ac_cxx_werror_flag" ||
26085          test ! -s conftest.err
26086        } && test -s conftest$ac_exeext &&
26087        $as_test_x conftest$ac_exeext; then
26088   eval "$as_ac_var=yes"
26089 else
26090   echo "$as_me: failed program was:" >&5
26091 sed 's/^/| /' conftest.$ac_ext >&5
26092
26093         eval "$as_ac_var=no"
26094 fi
26095
26096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26097       conftest$ac_exeext conftest.$ac_ext
26098 fi
26099 ac_res=`eval echo '${'$as_ac_var'}'`
26100                { echo "$as_me:$LINENO: result: $ac_res" >&5
26101 echo "${ECHO_T}$ac_res" >&6; }
26102 if test `eval echo '${'$as_ac_var'}'` = yes; then
26103   cat >>confdefs.h <<_ACEOF
26104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26105 _ACEOF
26106
26107 fi
26108 done
26109
26110
26111 for ac_header in varargs.h
26112 do
26113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26115   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26118   echo $ECHO_N "(cached) $ECHO_C" >&6
26119 fi
26120 ac_res=`eval echo '${'$as_ac_Header'}'`
26121                { echo "$as_me:$LINENO: result: $ac_res" >&5
26122 echo "${ECHO_T}$ac_res" >&6; }
26123 else
26124   # Is the header compilable?
26125 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26127 cat >conftest.$ac_ext <<_ACEOF
26128 /* confdefs.h.  */
26129 _ACEOF
26130 cat confdefs.h >>conftest.$ac_ext
26131 cat >>conftest.$ac_ext <<_ACEOF
26132 /* end confdefs.h.  */
26133 $ac_includes_default
26134 #include <$ac_header>
26135 _ACEOF
26136 rm -f conftest.$ac_objext
26137 if { (ac_try="$ac_compile"
26138 case "(($ac_try" in
26139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26140   *) ac_try_echo=$ac_try;;
26141 esac
26142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26143   (eval "$ac_compile") 2>conftest.er1
26144   ac_status=$?
26145   grep -v '^ *+' conftest.er1 >conftest.err
26146   rm -f conftest.er1
26147   cat conftest.err >&5
26148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26149   (exit $ac_status); } && {
26150          test -z "$ac_cxx_werror_flag" ||
26151          test ! -s conftest.err
26152        } && test -s conftest.$ac_objext; then
26153   ac_header_compiler=yes
26154 else
26155   echo "$as_me: failed program was:" >&5
26156 sed 's/^/| /' conftest.$ac_ext >&5
26157
26158         ac_header_compiler=no
26159 fi
26160
26161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26162 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26163 echo "${ECHO_T}$ac_header_compiler" >&6; }
26164
26165 # Is the header present?
26166 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26167 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26168 cat >conftest.$ac_ext <<_ACEOF
26169 /* confdefs.h.  */
26170 _ACEOF
26171 cat confdefs.h >>conftest.$ac_ext
26172 cat >>conftest.$ac_ext <<_ACEOF
26173 /* end confdefs.h.  */
26174 #include <$ac_header>
26175 _ACEOF
26176 if { (ac_try="$ac_cpp conftest.$ac_ext"
26177 case "(($ac_try" in
26178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26179   *) ac_try_echo=$ac_try;;
26180 esac
26181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26182   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26183   ac_status=$?
26184   grep -v '^ *+' conftest.er1 >conftest.err
26185   rm -f conftest.er1
26186   cat conftest.err >&5
26187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188   (exit $ac_status); } >/dev/null && {
26189          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26190          test ! -s conftest.err
26191        }; then
26192   ac_header_preproc=yes
26193 else
26194   echo "$as_me: failed program was:" >&5
26195 sed 's/^/| /' conftest.$ac_ext >&5
26196
26197   ac_header_preproc=no
26198 fi
26199
26200 rm -f conftest.err conftest.$ac_ext
26201 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26202 echo "${ECHO_T}$ac_header_preproc" >&6; }
26203
26204 # So?  What about this header?
26205 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26206   yes:no: )
26207     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26208 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26209     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26210 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26211     ac_header_preproc=yes
26212     ;;
26213   no:yes:* )
26214     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26216     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26217 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26218     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26219 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26220     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26221 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26222     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26223 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26224     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26225 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26226
26227     ;;
26228 esac
26229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26232   echo $ECHO_N "(cached) $ECHO_C" >&6
26233 else
26234   eval "$as_ac_Header=\$ac_header_preproc"
26235 fi
26236 ac_res=`eval echo '${'$as_ac_Header'}'`
26237                { echo "$as_me:$LINENO: result: $ac_res" >&5
26238 echo "${ECHO_T}$ac_res" >&6; }
26239
26240 fi
26241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26242   cat >>confdefs.h <<_ACEOF
26243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26244 _ACEOF
26245
26246 fi
26247
26248 done
26249
26250
26251
26252 { echo "$as_me:$LINENO: checking for Python support" >&5
26253 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26254
26255 # Check whether --with-python was given.
26256 if test "${with_python+set}" = set; then
26257   withval=$with_python;
26258        PYTHON_INCDIR=
26259        PYTHON_LIBS=
26260        if test "$withval" != "no"; then
26261           if test "$withval" = "yes"; then
26262              if test -e /usr/bin/python-config ; then
26263                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26264                 PYTHON_LIBS=`/usr/bin/python-config --libs`
26265              else
26266                 for python_root in /usr /usr/local /usr/sfw; do
26267                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26268                       if test -f $python_root/include/${ver}/Python.h; then
26269                          PYTHON_INCDIR=-I$python_root/include/${ver}
26270                          if test -d $python_root/lib64/${ver}/config; then
26271                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26272                          else
26273                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26274                          fi
26275                          break
26276                       fi
26277                    done
26278                 done
26279
26280                 if test x$PYTHON_INCDIR = x; then
26281                    if test -f $prefix/include/Python.h; then
26282                       PYTHON_INCDIR=-I$prefix/include
26283                       if test -d $prefix/lib64/config; then
26284                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26285                       else
26286                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
26287                       fi
26288                    else
26289                       { echo "$as_me:$LINENO: result: no" >&5
26290 echo "${ECHO_T}no" >&6; }
26291                       { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26292 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26293    { (exit 1); exit 1; }; }
26294                    fi
26295                 fi
26296              fi
26297           else
26298              if test -e $withval/bin/python-config ; then
26299                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26300                 PYTHON_LIBS=`$withval/bin/python-config --libs`
26301              elif test -f $withval/Python.h; then
26302                 PYTHON_INCDIR=-I$withval
26303                 PYTHON_LIBS="-L$withval/config -lpython"
26304              elif test -f $withval/include/Python.h; then
26305                 PYTHON_INCDIR=-I$withval/include
26306                 if test -d $withval/lib64/config; then
26307                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26308                 else
26309                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26310                 fi
26311              elif test -f $withval/include/python/Python.h; then
26312                 PYTHON_INCDIR=-I$withval/include/python
26313                 if test -d $withval/lib64/python/config; then
26314                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26315                 else
26316                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26317                 fi
26318              else
26319                 { echo "$as_me:$LINENO: result: no" >&5
26320 echo "${ECHO_T}no" >&6; }
26321                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26322 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26323    { (exit 1); exit 1; }; }
26324              fi
26325           fi
26326
26327           cat >>confdefs.h <<\_ACEOF
26328 #define HAVE_PYTHON 1
26329 _ACEOF
26330
26331           { echo "$as_me:$LINENO: result: yes" >&5
26332 echo "${ECHO_T}yes" >&6; }
26333           support_python=yes
26334           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26335 echo "$as_me: checking for more Python libs" >&6;}
26336           saved_LIBS="$LIBS"; LIBS=
26337           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26338 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26339 if test "${ac_cv_search_shm_open+set}" = set; then
26340   echo $ECHO_N "(cached) $ECHO_C" >&6
26341 else
26342   ac_func_search_save_LIBS=$LIBS
26343 cat >conftest.$ac_ext <<_ACEOF
26344 /* confdefs.h.  */
26345 _ACEOF
26346 cat confdefs.h >>conftest.$ac_ext
26347 cat >>conftest.$ac_ext <<_ACEOF
26348 /* end confdefs.h.  */
26349
26350 /* Override any GCC internal prototype to avoid an error.
26351    Use char because int might match the return type of a GCC
26352    builtin and then its argument prototype would still apply.  */
26353 #ifdef __cplusplus
26354 extern "C"
26355 #endif
26356 char shm_open ();
26357 int
26358 main ()
26359 {
26360 return shm_open ();
26361   ;
26362   return 0;
26363 }
26364 _ACEOF
26365 for ac_lib in '' rt; do
26366   if test -z "$ac_lib"; then
26367     ac_res="none required"
26368   else
26369     ac_res=-l$ac_lib
26370     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26371   fi
26372   rm -f conftest.$ac_objext conftest$ac_exeext
26373 if { (ac_try="$ac_link"
26374 case "(($ac_try" in
26375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26376   *) ac_try_echo=$ac_try;;
26377 esac
26378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26379   (eval "$ac_link") 2>conftest.er1
26380   ac_status=$?
26381   grep -v '^ *+' conftest.er1 >conftest.err
26382   rm -f conftest.er1
26383   cat conftest.err >&5
26384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26385   (exit $ac_status); } && {
26386          test -z "$ac_cxx_werror_flag" ||
26387          test ! -s conftest.err
26388        } && test -s conftest$ac_exeext &&
26389        $as_test_x conftest$ac_exeext; then
26390   ac_cv_search_shm_open=$ac_res
26391 else
26392   echo "$as_me: failed program was:" >&5
26393 sed 's/^/| /' conftest.$ac_ext >&5
26394
26395
26396 fi
26397
26398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26399       conftest$ac_exeext
26400   if test "${ac_cv_search_shm_open+set}" = set; then
26401   break
26402 fi
26403 done
26404 if test "${ac_cv_search_shm_open+set}" = set; then
26405   :
26406 else
26407   ac_cv_search_shm_open=no
26408 fi
26409 rm conftest.$ac_ext
26410 LIBS=$ac_func_search_save_LIBS
26411 fi
26412 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26413 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26414 ac_res=$ac_cv_search_shm_open
26415 if test "$ac_res" != no; then
26416   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26417
26418 fi
26419
26420
26421 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26422 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26423 if test "${ac_cv_lib_util_openpty+set}" = set; then
26424   echo $ECHO_N "(cached) $ECHO_C" >&6
26425 else
26426   ac_check_lib_save_LIBS=$LIBS
26427 LIBS="-lutil  $LIBS"
26428 cat >conftest.$ac_ext <<_ACEOF
26429 /* confdefs.h.  */
26430 _ACEOF
26431 cat confdefs.h >>conftest.$ac_ext
26432 cat >>conftest.$ac_ext <<_ACEOF
26433 /* end confdefs.h.  */
26434
26435 /* Override any GCC internal prototype to avoid an error.
26436    Use char because int might match the return type of a GCC
26437    builtin and then its argument prototype would still apply.  */
26438 #ifdef __cplusplus
26439 extern "C"
26440 #endif
26441 char openpty ();
26442 int
26443 main ()
26444 {
26445 return openpty ();
26446   ;
26447   return 0;
26448 }
26449 _ACEOF
26450 rm -f conftest.$ac_objext conftest$ac_exeext
26451 if { (ac_try="$ac_link"
26452 case "(($ac_try" in
26453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26454   *) ac_try_echo=$ac_try;;
26455 esac
26456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26457   (eval "$ac_link") 2>conftest.er1
26458   ac_status=$?
26459   grep -v '^ *+' conftest.er1 >conftest.err
26460   rm -f conftest.er1
26461   cat conftest.err >&5
26462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463   (exit $ac_status); } && {
26464          test -z "$ac_cxx_werror_flag" ||
26465          test ! -s conftest.err
26466        } && test -s conftest$ac_exeext &&
26467        $as_test_x conftest$ac_exeext; then
26468   ac_cv_lib_util_openpty=yes
26469 else
26470   echo "$as_me: failed program was:" >&5
26471 sed 's/^/| /' conftest.$ac_ext >&5
26472
26473         ac_cv_lib_util_openpty=no
26474 fi
26475
26476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26477       conftest$ac_exeext conftest.$ac_ext
26478 LIBS=$ac_check_lib_save_LIBS
26479 fi
26480 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26481 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26482 if test $ac_cv_lib_util_openpty = yes; then
26483   cat >>confdefs.h <<_ACEOF
26484 #define HAVE_LIBUTIL 1
26485 _ACEOF
26486
26487   LIBS="-lutil $LIBS"
26488
26489 fi
26490
26491           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26492           LIBS="$saved_LIBS"
26493        else
26494           { echo "$as_me:$LINENO: result: no" >&5
26495 echo "${ECHO_T}no" >&6; }
26496        fi
26497
26498 else
26499
26500        { echo "$as_me:$LINENO: result: no" >&5
26501 echo "${ECHO_T}no" >&6; }
26502
26503
26504 fi
26505
26506
26507
26508
26509 { echo "$as_me:$LINENO: checking for socket" >&5
26510 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26511 if test "${ac_cv_func_socket+set}" = set; then
26512   echo $ECHO_N "(cached) $ECHO_C" >&6
26513 else
26514   cat >conftest.$ac_ext <<_ACEOF
26515 /* confdefs.h.  */
26516 _ACEOF
26517 cat confdefs.h >>conftest.$ac_ext
26518 cat >>conftest.$ac_ext <<_ACEOF
26519 /* end confdefs.h.  */
26520 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26522 #define socket innocuous_socket
26523
26524 /* System header to define __stub macros and hopefully few prototypes,
26525     which can conflict with char socket (); below.
26526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26527     <limits.h> exists even on freestanding compilers.  */
26528
26529 #ifdef __STDC__
26530 # include <limits.h>
26531 #else
26532 # include <assert.h>
26533 #endif
26534
26535 #undef socket
26536
26537 /* Override any GCC internal prototype to avoid an error.
26538    Use char because int might match the return type of a GCC
26539    builtin and then its argument prototype would still apply.  */
26540 #ifdef __cplusplus
26541 extern "C"
26542 #endif
26543 char socket ();
26544 /* The GNU C library defines this for functions which it implements
26545     to always fail with ENOSYS.  Some functions are actually named
26546     something starting with __ and the normal name is an alias.  */
26547 #if defined __stub_socket || defined __stub___socket
26548 choke me
26549 #endif
26550
26551 int
26552 main ()
26553 {
26554 return socket ();
26555   ;
26556   return 0;
26557 }
26558 _ACEOF
26559 rm -f conftest.$ac_objext conftest$ac_exeext
26560 if { (ac_try="$ac_link"
26561 case "(($ac_try" in
26562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26563   *) ac_try_echo=$ac_try;;
26564 esac
26565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26566   (eval "$ac_link") 2>conftest.er1
26567   ac_status=$?
26568   grep -v '^ *+' conftest.er1 >conftest.err
26569   rm -f conftest.er1
26570   cat conftest.err >&5
26571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572   (exit $ac_status); } && {
26573          test -z "$ac_cxx_werror_flag" ||
26574          test ! -s conftest.err
26575        } && test -s conftest$ac_exeext &&
26576        $as_test_x conftest$ac_exeext; then
26577   ac_cv_func_socket=yes
26578 else
26579   echo "$as_me: failed program was:" >&5
26580 sed 's/^/| /' conftest.$ac_ext >&5
26581
26582         ac_cv_func_socket=no
26583 fi
26584
26585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26586       conftest$ac_exeext conftest.$ac_ext
26587 fi
26588 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26589 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26590 if test $ac_cv_func_socket = yes; then
26591   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26592 echo "${ECHO_T}using libc's socket" >&6; }
26593 else
26594
26595 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26596 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26597 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26598   echo $ECHO_N "(cached) $ECHO_C" >&6
26599 else
26600   ac_check_lib_save_LIBS=$LIBS
26601 LIBS="-lxnet  $LIBS"
26602 cat >conftest.$ac_ext <<_ACEOF
26603 /* confdefs.h.  */
26604 _ACEOF
26605 cat confdefs.h >>conftest.$ac_ext
26606 cat >>conftest.$ac_ext <<_ACEOF
26607 /* end confdefs.h.  */
26608
26609 /* Override any GCC internal prototype to avoid an error.
26610    Use char because int might match the return type of a GCC
26611    builtin and then its argument prototype would still apply.  */
26612 #ifdef __cplusplus
26613 extern "C"
26614 #endif
26615 char socket ();
26616 int
26617 main ()
26618 {
26619 return socket ();
26620   ;
26621   return 0;
26622 }
26623 _ACEOF
26624 rm -f conftest.$ac_objext conftest$ac_exeext
26625 if { (ac_try="$ac_link"
26626 case "(($ac_try" in
26627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26628   *) ac_try_echo=$ac_try;;
26629 esac
26630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26631   (eval "$ac_link") 2>conftest.er1
26632   ac_status=$?
26633   grep -v '^ *+' conftest.er1 >conftest.err
26634   rm -f conftest.er1
26635   cat conftest.err >&5
26636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26637   (exit $ac_status); } && {
26638          test -z "$ac_cxx_werror_flag" ||
26639          test ! -s conftest.err
26640        } && test -s conftest$ac_exeext &&
26641        $as_test_x conftest$ac_exeext; then
26642   ac_cv_lib_xnet_socket=yes
26643 else
26644   echo "$as_me: failed program was:" >&5
26645 sed 's/^/| /' conftest.$ac_ext >&5
26646
26647         ac_cv_lib_xnet_socket=no
26648 fi
26649
26650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26651       conftest$ac_exeext conftest.$ac_ext
26652 LIBS=$ac_check_lib_save_LIBS
26653 fi
26654 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26655 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26656 if test $ac_cv_lib_xnet_socket = yes; then
26657   cat >>confdefs.h <<_ACEOF
26658 #define HAVE_LIBXNET 1
26659 _ACEOF
26660
26661   LIBS="-lxnet $LIBS"
26662
26663 fi
26664
26665
26666 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26667 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26668 if test "${ac_cv_lib_socket_socket+set}" = set; then
26669   echo $ECHO_N "(cached) $ECHO_C" >&6
26670 else
26671   ac_check_lib_save_LIBS=$LIBS
26672 LIBS="-lsocket  $LIBS"
26673 cat >conftest.$ac_ext <<_ACEOF
26674 /* confdefs.h.  */
26675 _ACEOF
26676 cat confdefs.h >>conftest.$ac_ext
26677 cat >>conftest.$ac_ext <<_ACEOF
26678 /* end confdefs.h.  */
26679
26680 /* Override any GCC internal prototype to avoid an error.
26681    Use char because int might match the return type of a GCC
26682    builtin and then its argument prototype would still apply.  */
26683 #ifdef __cplusplus
26684 extern "C"
26685 #endif
26686 char socket ();
26687 int
26688 main ()
26689 {
26690 return socket ();
26691   ;
26692   return 0;
26693 }
26694 _ACEOF
26695 rm -f conftest.$ac_objext conftest$ac_exeext
26696 if { (ac_try="$ac_link"
26697 case "(($ac_try" in
26698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26699   *) ac_try_echo=$ac_try;;
26700 esac
26701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26702   (eval "$ac_link") 2>conftest.er1
26703   ac_status=$?
26704   grep -v '^ *+' conftest.er1 >conftest.err
26705   rm -f conftest.er1
26706   cat conftest.err >&5
26707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26708   (exit $ac_status); } && {
26709          test -z "$ac_cxx_werror_flag" ||
26710          test ! -s conftest.err
26711        } && test -s conftest$ac_exeext &&
26712        $as_test_x conftest$ac_exeext; then
26713   ac_cv_lib_socket_socket=yes
26714 else
26715   echo "$as_me: failed program was:" >&5
26716 sed 's/^/| /' conftest.$ac_ext >&5
26717
26718         ac_cv_lib_socket_socket=no
26719 fi
26720
26721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26722       conftest$ac_exeext conftest.$ac_ext
26723 LIBS=$ac_check_lib_save_LIBS
26724 fi
26725 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26726 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26727 if test $ac_cv_lib_socket_socket = yes; then
26728   cat >>confdefs.h <<_ACEOF
26729 #define HAVE_LIBSOCKET 1
26730 _ACEOF
26731
26732   LIBS="-lsocket $LIBS"
26733
26734 fi
26735
26736
26737 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26738 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26739 if test "${ac_cv_lib_inet_socket+set}" = set; then
26740   echo $ECHO_N "(cached) $ECHO_C" >&6
26741 else
26742   ac_check_lib_save_LIBS=$LIBS
26743 LIBS="-linet  $LIBS"
26744 cat >conftest.$ac_ext <<_ACEOF
26745 /* confdefs.h.  */
26746 _ACEOF
26747 cat confdefs.h >>conftest.$ac_ext
26748 cat >>conftest.$ac_ext <<_ACEOF
26749 /* end confdefs.h.  */
26750
26751 /* Override any GCC internal prototype to avoid an error.
26752    Use char because int might match the return type of a GCC
26753    builtin and then its argument prototype would still apply.  */
26754 #ifdef __cplusplus
26755 extern "C"
26756 #endif
26757 char socket ();
26758 int
26759 main ()
26760 {
26761 return socket ();
26762   ;
26763   return 0;
26764 }
26765 _ACEOF
26766 rm -f conftest.$ac_objext conftest$ac_exeext
26767 if { (ac_try="$ac_link"
26768 case "(($ac_try" in
26769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26770   *) ac_try_echo=$ac_try;;
26771 esac
26772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26773   (eval "$ac_link") 2>conftest.er1
26774   ac_status=$?
26775   grep -v '^ *+' conftest.er1 >conftest.err
26776   rm -f conftest.er1
26777   cat conftest.err >&5
26778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26779   (exit $ac_status); } && {
26780          test -z "$ac_cxx_werror_flag" ||
26781          test ! -s conftest.err
26782        } && test -s conftest$ac_exeext &&
26783        $as_test_x conftest$ac_exeext; then
26784   ac_cv_lib_inet_socket=yes
26785 else
26786   echo "$as_me: failed program was:" >&5
26787 sed 's/^/| /' conftest.$ac_ext >&5
26788
26789         ac_cv_lib_inet_socket=no
26790 fi
26791
26792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26793       conftest$ac_exeext conftest.$ac_ext
26794 LIBS=$ac_check_lib_save_LIBS
26795 fi
26796 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26797 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26798 if test $ac_cv_lib_inet_socket = yes; then
26799   cat >>confdefs.h <<_ACEOF
26800 #define HAVE_LIBINET 1
26801 _ACEOF
26802
26803   LIBS="-linet $LIBS"
26804
26805 fi
26806
26807 fi
26808
26809
26810 TCPW_MSG="no"
26811 WRAPLIBS=""
26812
26813 # Check whether --with-tcp-wrappers was given.
26814 if test "${with_tcp_wrappers+set}" = set; then
26815   withval=$with_tcp_wrappers;
26816        if test "x$withval" != "xno" ; then
26817           saved_LIBS="$LIBS"
26818           LIBS="$saved_LIBS -lwrap"
26819           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26820 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26821 if test "${ac_cv_search_nanosleep+set}" = set; then
26822   echo $ECHO_N "(cached) $ECHO_C" >&6
26823 else
26824   ac_func_search_save_LIBS=$LIBS
26825 cat >conftest.$ac_ext <<_ACEOF
26826 /* confdefs.h.  */
26827 _ACEOF
26828 cat confdefs.h >>conftest.$ac_ext
26829 cat >>conftest.$ac_ext <<_ACEOF
26830 /* end confdefs.h.  */
26831
26832 /* Override any GCC internal prototype to avoid an error.
26833    Use char because int might match the return type of a GCC
26834    builtin and then its argument prototype would still apply.  */
26835 #ifdef __cplusplus
26836 extern "C"
26837 #endif
26838 char nanosleep ();
26839 int
26840 main ()
26841 {
26842 return nanosleep ();
26843   ;
26844   return 0;
26845 }
26846 _ACEOF
26847 for ac_lib in '' rt; do
26848   if test -z "$ac_lib"; then
26849     ac_res="none required"
26850   else
26851     ac_res=-l$ac_lib
26852     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26853   fi
26854   rm -f conftest.$ac_objext conftest$ac_exeext
26855 if { (ac_try="$ac_link"
26856 case "(($ac_try" in
26857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26858   *) ac_try_echo=$ac_try;;
26859 esac
26860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26861   (eval "$ac_link") 2>conftest.er1
26862   ac_status=$?
26863   grep -v '^ *+' conftest.er1 >conftest.err
26864   rm -f conftest.er1
26865   cat conftest.err >&5
26866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867   (exit $ac_status); } && {
26868          test -z "$ac_cxx_werror_flag" ||
26869          test ! -s conftest.err
26870        } && test -s conftest$ac_exeext &&
26871        $as_test_x conftest$ac_exeext; then
26872   ac_cv_search_nanosleep=$ac_res
26873 else
26874   echo "$as_me: failed program was:" >&5
26875 sed 's/^/| /' conftest.$ac_ext >&5
26876
26877
26878 fi
26879
26880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26881       conftest$ac_exeext
26882   if test "${ac_cv_search_nanosleep+set}" = set; then
26883   break
26884 fi
26885 done
26886 if test "${ac_cv_search_nanosleep+set}" = set; then
26887   :
26888 else
26889   ac_cv_search_nanosleep=no
26890 fi
26891 rm conftest.$ac_ext
26892 LIBS=$ac_func_search_save_LIBS
26893 fi
26894 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26895 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26896 ac_res=$ac_cv_search_nanosleep
26897 if test "$ac_res" != no; then
26898   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26899
26900 fi
26901
26902           { echo "$as_me:$LINENO: checking for libwrap" >&5
26903 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26904           cat >conftest.$ac_ext <<_ACEOF
26905 /* confdefs.h.  */
26906 _ACEOF
26907 cat confdefs.h >>conftest.$ac_ext
26908 cat >>conftest.$ac_ext <<_ACEOF
26909 /* end confdefs.h.  */
26910
26911                #include <sys/types.h>
26912                #include <tcpd.h>
26913                int deny_severity = 0;
26914                int allow_severity = 0;
26915                struct request_info *req;
26916
26917 int
26918 main ()
26919 {
26920
26921                 hosts_access(req);
26922
26923   ;
26924   return 0;
26925 }
26926 _ACEOF
26927 rm -f conftest.$ac_objext conftest$ac_exeext
26928 if { (ac_try="$ac_link"
26929 case "(($ac_try" in
26930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26931   *) ac_try_echo=$ac_try;;
26932 esac
26933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26934   (eval "$ac_link") 2>conftest.er1
26935   ac_status=$?
26936   grep -v '^ *+' conftest.er1 >conftest.err
26937   rm -f conftest.er1
26938   cat conftest.err >&5
26939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26940   (exit $ac_status); } && {
26941          test -z "$ac_cxx_werror_flag" ||
26942          test ! -s conftest.err
26943        } && test -s conftest$ac_exeext &&
26944        $as_test_x conftest$ac_exeext; then
26945
26946                  { echo "$as_me:$LINENO: result: yes" >&5
26947 echo "${ECHO_T}yes" >&6; }
26948
26949 cat >>confdefs.h <<\_ACEOF
26950 #define HAVE_LIBWRAP 1
26951 _ACEOF
26952
26953                  TCPW_MSG="yes"
26954                  LIBS="$saved_LIBS"
26955                  WRAPLIBS="-lwrap"
26956
26957 else
26958   echo "$as_me: failed program was:" >&5
26959 sed 's/^/| /' conftest.$ac_ext >&5
26960
26961
26962                  LIBS="$saved_LIBS -lwrap -lnsl"
26963                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26964                  cat >conftest.$ac_ext <<_ACEOF
26965 /* confdefs.h.  */
26966 _ACEOF
26967 cat confdefs.h >>conftest.$ac_ext
26968 cat >>conftest.$ac_ext <<_ACEOF
26969 /* end confdefs.h.  */
26970
26971                        #include <sys/types.h>
26972                        #include <tcpd.h>
26973                        int deny_severity = 0;
26974                        int allow_severity = 0;
26975                        struct request_info *req;
26976
26977 int
26978 main ()
26979 {
26980
26981                        hosts_access(req);
26982
26983   ;
26984   return 0;
26985 }
26986 _ACEOF
26987 rm -f conftest.$ac_objext conftest$ac_exeext
26988 if { (ac_try="$ac_link"
26989 case "(($ac_try" in
26990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26991   *) ac_try_echo=$ac_try;;
26992 esac
26993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26994   (eval "$ac_link") 2>conftest.er1
26995   ac_status=$?
26996   grep -v '^ *+' conftest.er1 >conftest.err
26997   rm -f conftest.er1
26998   cat conftest.err >&5
26999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000   (exit $ac_status); } && {
27001          test -z "$ac_cxx_werror_flag" ||
27002          test ! -s conftest.err
27003        } && test -s conftest$ac_exeext &&
27004        $as_test_x conftest$ac_exeext; then
27005
27006                       { echo "$as_me:$LINENO: result: yes" >&5
27007 echo "${ECHO_T}yes" >&6; }
27008
27009 cat >>confdefs.h <<\_ACEOF
27010 #define HAVE_LIBWRAP 1
27011 _ACEOF
27012
27013                       TCPW_MSG="yes"
27014                       LIBS="$saved_LIBS"
27015                       WRAPLIBS="-lwrap"
27016
27017 else
27018   echo "$as_me: failed program was:" >&5
27019 sed 's/^/| /' conftest.$ac_ext >&5
27020
27021
27022                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
27023 echo "$as_me: error: *** libwrap missing" >&2;}
27024    { (exit 1); exit 1; }; }
27025
27026
27027 fi
27028
27029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27030       conftest$ac_exeext conftest.$ac_ext
27031
27032
27033 fi
27034
27035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27036       conftest$ac_exeext conftest.$ac_ext
27037        fi
27038
27039
27040 fi
27041
27042
27043 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
27044 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
27045
27046 # Check whether --with-openssl was given.
27047 if test "${with_openssl+set}" = set; then
27048   withval=$with_openssl;
27049         with_openssl_directory=${withval}
27050
27051
27052 fi
27053
27054
27055 if test "x$with_openssl_directory" != "xno"; then
27056    OPENSSL_LIBS="-lssl -lcrypto"
27057    OPENSSL_INC=""
27058
27059    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27060       #
27061       # Make sure the $with_openssl_directory also makes sense
27062       #
27063       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27064          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27065          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27066       fi
27067    fi
27068
27069    saved_LIBS="${LIBS}"
27070    saved_CFLAGS="${CFLAGS}"
27071    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27072    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27073
27074    cat >conftest.$ac_ext <<_ACEOF
27075 /* confdefs.h.  */
27076 _ACEOF
27077 cat confdefs.h >>conftest.$ac_ext
27078 cat >>conftest.$ac_ext <<_ACEOF
27079 /* end confdefs.h.  */
27080
27081           #include <openssl/ssl.h>
27082
27083 int
27084 main ()
27085 {
27086
27087            CRYPTO_set_id_callback(NULL);
27088
27089   ;
27090   return 0;
27091 }
27092 _ACEOF
27093 rm -f conftest.$ac_objext conftest$ac_exeext
27094 if { (ac_try="$ac_link"
27095 case "(($ac_try" in
27096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27097   *) ac_try_echo=$ac_try;;
27098 esac
27099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27100   (eval "$ac_link") 2>conftest.er1
27101   ac_status=$?
27102   grep -v '^ *+' conftest.er1 >conftest.err
27103   rm -f conftest.er1
27104   cat conftest.err >&5
27105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27106   (exit $ac_status); } && {
27107          test -z "$ac_cxx_werror_flag" ||
27108          test ! -s conftest.err
27109        } && test -s conftest$ac_exeext &&
27110        $as_test_x conftest$ac_exeext; then
27111
27112           support_tls="yes"
27113           support_crypto="yes"
27114
27115 else
27116   echo "$as_me: failed program was:" >&5
27117 sed 's/^/| /' conftest.$ac_ext >&5
27118
27119
27120           support_tls="no"
27121
27122
27123 fi
27124
27125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27126       conftest$ac_exeext conftest.$ac_ext
27127
27128    cat >conftest.$ac_ext <<_ACEOF
27129 /* confdefs.h.  */
27130 _ACEOF
27131 cat confdefs.h >>conftest.$ac_ext
27132 cat >>conftest.$ac_ext <<_ACEOF
27133 /* end confdefs.h.  */
27134
27135           #include <openssl/evp.h>
27136
27137 int
27138 main ()
27139 {
27140
27141           EVP_sha512();
27142
27143   ;
27144   return 0;
27145 }
27146 _ACEOF
27147 rm -f conftest.$ac_objext conftest$ac_exeext
27148 if { (ac_try="$ac_link"
27149 case "(($ac_try" in
27150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27151   *) ac_try_echo=$ac_try;;
27152 esac
27153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27154   (eval "$ac_link") 2>conftest.er1
27155   ac_status=$?
27156   grep -v '^ *+' conftest.er1 >conftest.err
27157   rm -f conftest.er1
27158   cat conftest.err >&5
27159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160   (exit $ac_status); } && {
27161          test -z "$ac_cxx_werror_flag" ||
27162          test ! -s conftest.err
27163        } && test -s conftest$ac_exeext &&
27164        $as_test_x conftest$ac_exeext; then
27165
27166           ac_cv_openssl_sha2="yes"
27167
27168 else
27169   echo "$as_me: failed program was:" >&5
27170 sed 's/^/| /' conftest.$ac_ext >&5
27171
27172
27173           ac_cv_openssl_sha2="no"
27174
27175
27176 fi
27177
27178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27179       conftest$ac_exeext conftest.$ac_ext
27180
27181                cat >conftest.$ac_ext <<_ACEOF
27182 /* confdefs.h.  */
27183 _ACEOF
27184 cat confdefs.h >>conftest.$ac_ext
27185 cat >>conftest.$ac_ext <<_ACEOF
27186 /* end confdefs.h.  */
27187
27188           #include <openssl/evp.h>
27189
27190 int
27191 main ()
27192 {
27193
27194           EVP_aes_192_cbc();
27195
27196   ;
27197   return 0;
27198 }
27199 _ACEOF
27200 rm -f conftest.$ac_objext conftest$ac_exeext
27201 if { (ac_try="$ac_link"
27202 case "(($ac_try" in
27203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27204   *) ac_try_echo=$ac_try;;
27205 esac
27206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27207   (eval "$ac_link") 2>conftest.er1
27208   ac_status=$?
27209   grep -v '^ *+' conftest.er1 >conftest.err
27210   rm -f conftest.er1
27211   cat conftest.err >&5
27212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213   (exit $ac_status); } && {
27214          test -z "$ac_cxx_werror_flag" ||
27215          test ! -s conftest.err
27216        } && test -s conftest$ac_exeext &&
27217        $as_test_x conftest$ac_exeext; then
27218
27219           ac_cv_openssl_export="no"
27220
27221 else
27222   echo "$as_me: failed program was:" >&5
27223 sed 's/^/| /' conftest.$ac_ext >&5
27224
27225
27226           ac_cv_openssl_export="yes"
27227
27228
27229 fi
27230
27231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27232       conftest$ac_exeext conftest.$ac_ext
27233
27234    LIBS="${saved_LIBS}"
27235    CFLAGS="${saved_CFLAGS}"
27236
27237    if test "$support_tls" = "yes"; then
27238
27239 cat >>confdefs.h <<\_ACEOF
27240 #define HAVE_OPENSSL 1
27241 _ACEOF
27242
27243
27244 cat >>confdefs.h <<\_ACEOF
27245 #define HAVE_TLS 1
27246 _ACEOF
27247
27248
27249 cat >>confdefs.h <<\_ACEOF
27250 #define HAVE_CRYPTO 1
27251 _ACEOF
27252
27253    fi
27254
27255    if test "$ac_cv_openssl_sha2" = "yes"; then
27256
27257 cat >>confdefs.h <<\_ACEOF
27258 #define HAVE_SHA2 1
27259 _ACEOF
27260
27261    fi
27262
27263    if test "$ac_cv_openssl_export" = "yes"; then
27264
27265 cat >>confdefs.h <<\_ACEOF
27266 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27267 _ACEOF
27268
27269    fi
27270 else
27271    support_tls="no"
27272    support_crypto="no"
27273    OPENSSL_LIBS=""
27274    OPENSSL_INC=""
27275 fi
27276
27277 if test "$support_tls" = "no"; then
27278    OPENSSL_LIBS=""
27279    OPENSSL_INC=""
27280 fi
27281
27282 { echo "$as_me:$LINENO: result: $support_tls" >&5
27283 echo "${ECHO_T}$support_tls" >&6; }
27284
27285
27286
27287 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27288 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27289 if test "${ac_cv_search_dlopen+set}" = set; then
27290   echo $ECHO_N "(cached) $ECHO_C" >&6
27291 else
27292   ac_func_search_save_LIBS=$LIBS
27293 cat >conftest.$ac_ext <<_ACEOF
27294 /* confdefs.h.  */
27295 _ACEOF
27296 cat confdefs.h >>conftest.$ac_ext
27297 cat >>conftest.$ac_ext <<_ACEOF
27298 /* end confdefs.h.  */
27299
27300 /* Override any GCC internal prototype to avoid an error.
27301    Use char because int might match the return type of a GCC
27302    builtin and then its argument prototype would still apply.  */
27303 #ifdef __cplusplus
27304 extern "C"
27305 #endif
27306 char dlopen ();
27307 int
27308 main ()
27309 {
27310 return dlopen ();
27311   ;
27312   return 0;
27313 }
27314 _ACEOF
27315 for ac_lib in '' dl; do
27316   if test -z "$ac_lib"; then
27317     ac_res="none required"
27318   else
27319     ac_res=-l$ac_lib
27320     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27321   fi
27322   rm -f conftest.$ac_objext conftest$ac_exeext
27323 if { (ac_try="$ac_link"
27324 case "(($ac_try" in
27325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27326   *) ac_try_echo=$ac_try;;
27327 esac
27328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27329   (eval "$ac_link") 2>conftest.er1
27330   ac_status=$?
27331   grep -v '^ *+' conftest.er1 >conftest.err
27332   rm -f conftest.er1
27333   cat conftest.err >&5
27334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27335   (exit $ac_status); } && {
27336          test -z "$ac_cxx_werror_flag" ||
27337          test ! -s conftest.err
27338        } && test -s conftest$ac_exeext &&
27339        $as_test_x conftest$ac_exeext; then
27340   ac_cv_search_dlopen=$ac_res
27341 else
27342   echo "$as_me: failed program was:" >&5
27343 sed 's/^/| /' conftest.$ac_ext >&5
27344
27345
27346 fi
27347
27348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27349       conftest$ac_exeext
27350   if test "${ac_cv_search_dlopen+set}" = set; then
27351   break
27352 fi
27353 done
27354 if test "${ac_cv_search_dlopen+set}" = set; then
27355   :
27356 else
27357   ac_cv_search_dlopen=no
27358 fi
27359 rm conftest.$ac_ext
27360 LIBS=$ac_func_search_save_LIBS
27361 fi
27362 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27363 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27364 ac_res=$ac_cv_search_dlopen
27365 if test "$ac_res" != no; then
27366   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27367
27368 fi
27369
27370
27371 working_dir=`eval echo ${prefix}/var/bacula/working`
27372
27373 # Check whether --with-working-dir was given.
27374 if test "${with_working_dir+set}" = set; then
27375   withval=$with_working_dir;
27376        if test "x$withval" != "xno" ; then
27377          working_dir=$withval
27378        fi
27379
27380
27381 fi
27382
27383
27384
27385
27386 archivedir=/tmp
27387
27388 # Check whether --with-archivedir was given.
27389 if test "${with_archivedir+set}" = set; then
27390   withval=$with_archivedir;
27391        if test "x$withval" != "xno" ; then
27392           archivedir=$withval
27393        fi
27394
27395
27396 fi
27397
27398
27399
27400
27401 basename=`hostname`
27402
27403 # Check whether --with-basename was given.
27404 if test "${with_basename+set}" = set; then
27405   withval=$with_basename;
27406        if test "x$withval" != "xno" ; then
27407           basename=$withval
27408        fi
27409
27410
27411 fi
27412
27413
27414
27415
27416 hostname=`uname -n | cut -d '.' -f 1`
27417 if test x${hostname} = x ; then
27418   hostname="localhost"
27419 fi
27420
27421 # Check whether --with-hostname was given.
27422 if test "${with_hostname+set}" = set; then
27423   withval=$with_hostname;
27424        if test "x$withval" != "xno" ; then
27425          hostname=$withval
27426        fi
27427
27428
27429 fi
27430
27431
27432
27433
27434
27435 scriptdir=`eval echo ${sysconfdir}`
27436
27437 # Check whether --with-scriptdir was given.
27438 if test "${with_scriptdir+set}" = set; then
27439   withval=$with_scriptdir;
27440        if test "x$withval" != "xno" ; then
27441           scriptdir=$withval
27442        fi
27443
27444
27445 fi
27446
27447
27448
27449
27450
27451 bsrdir=/tmp
27452
27453 # Check whether --with-bsrdir was given.
27454 if test "${with_bsrdir+set}" = set; then
27455   withval=$with_bsrdir;
27456        if test "x$withval" != "xno" ; then
27457           bsrdir=$withval
27458        fi
27459
27460
27461 fi
27462
27463
27464
27465
27466 logdir=/tmp
27467
27468 # Check whether --with-logdir was given.
27469 if test "${with_logdir+set}" = set; then
27470   withval=$with_logdir;
27471        if test "x$withval" != "xno" ; then
27472           logdir=$withval
27473        fi
27474
27475
27476 fi
27477
27478
27479
27480
27481
27482 # ------------------------------------------
27483 # Where to place plugindir (plugin files)
27484 # ------------------------------------------
27485 plugindir=`eval echo ${libdir}`
27486
27487 # Check whether --with-plugindir was given.
27488 if test "${with_plugindir+set}" = set; then
27489   withval=$with_plugindir;
27490        if test "x$withval" != "xno" ; then
27491           plugindir=$withval
27492        fi
27493
27494
27495 fi
27496
27497
27498
27499
27500 dump_email=root@localhost
27501
27502 # Check whether --with-dump-email was given.
27503 if test "${with_dump_email+set}" = set; then
27504   withval=$with_dump_email;
27505        if test "x$withval" != "xno" ; then
27506           dump_email=$withval
27507        fi
27508
27509
27510 fi
27511
27512
27513
27514
27515 job_email=root@localhost
27516
27517 # Check whether --with-job-email was given.
27518 if test "${with_job_email+set}" = set; then
27519   withval=$with_job_email;
27520        if test "x$withval" != "xno" ; then
27521           job_email=$withval
27522        fi
27523
27524
27525 fi
27526
27527
27528
27529
27530 smtp_host=localhost
27531
27532 # Check whether --with-smtp_host was given.
27533 if test "${with_smtp_host+set}" = set; then
27534   withval=$with_smtp_host;
27535        if test "x$withval" != "xno" ; then
27536           smtp_host=$withval
27537        fi
27538
27539
27540 fi
27541
27542
27543
27544
27545 piddir=/var/run
27546
27547 # Check whether --with-pid-dir was given.
27548 if test "${with_pid_dir+set}" = set; then
27549   withval=$with_pid_dir;
27550        if test "x$withval" != "xno" ; then
27551           piddir=$withval
27552        fi
27553
27554
27555 fi
27556
27557
27558 cat >>confdefs.h <<_ACEOF
27559 #define _PATH_BACULA_PIDDIR "$piddir"
27560 _ACEOF
27561
27562
27563
27564 subsysdir=/var/run/subsys
27565 if test -d /var/run/subsys; then
27566    subsysdir=/var/run/subsys
27567 elif test -d /var/lock/subsys; then
27568    subsysdir=/var/lock/subsys
27569 else
27570    subsysdir=/var/run/subsys
27571 fi
27572
27573 # Check whether --with-subsys-dir was given.
27574 if test "${with_subsys_dir+set}" = set; then
27575   withval=$with_subsys_dir;
27576        if test "x$withval" != "xno" ; then
27577           subsysdir=$withval
27578        fi
27579
27580
27581 fi
27582
27583
27584
27585
27586 baseport=9101
27587
27588 # Check whether --with-baseport was given.
27589 if test "${with_baseport+set}" = set; then
27590   withval=$with_baseport;
27591        if test "x$withval" != "xno" ; then
27592           baseport=$withval
27593        fi
27594
27595
27596 fi
27597
27598
27599
27600 dir_port=`expr $baseport`
27601 fd_port=`expr $baseport + 1`
27602 sd_port=`expr $fd_port + 1`
27603
27604
27605
27606
27607
27608 dir_password=
27609
27610 # Check whether --with-dir-password was given.
27611 if test "${with_dir_password+set}" = set; then
27612   withval=$with_dir_password;
27613        if test "x$withval" != "xno" ; then
27614           dir_password=$withval
27615        fi
27616
27617
27618 fi
27619
27620
27621 if test "x$dir_password" = "x" ; then
27622    if test "x$OPENSSL" = "xnone" ; then
27623       key=`autoconf/randpass 33`
27624    else
27625       key=`openssl rand -base64 33`
27626    fi
27627    dir_password=$key
27628 fi
27629
27630 fd_password=
27631
27632 # Check whether --with-fd-password was given.
27633 if test "${with_fd_password+set}" = set; then
27634   withval=$with_fd_password;
27635        if test "x$withval" != "xno" ; then
27636           fd_password=$withval
27637        fi
27638
27639
27640 fi
27641
27642
27643 if test "x$fd_password" = "x" ; then
27644    if test "x$OPENSSL" = "xnone" ; then
27645       key=`autoconf/randpass 37`
27646    else
27647       key=`openssl rand -base64 33`
27648    fi
27649    fd_password=$key
27650 fi
27651
27652 sd_password=
27653
27654 # Check whether --with-sd-password was given.
27655 if test "${with_sd_password+set}" = set; then
27656   withval=$with_sd_password;
27657        if test "x$withval" != "xno" ; then
27658           sd_password=$withval
27659        fi
27660
27661
27662 fi
27663
27664
27665 if test "x$sd_password" = "x" ; then
27666    if test "x$OPENSSL" = "xnone" ; then
27667       key=`autoconf/randpass 41`
27668    else
27669       key=`openssl rand -base64 33`
27670    fi
27671    sd_password=$key
27672 fi
27673
27674 mon_dir_password=
27675
27676 # Check whether --with-mon-dir-password was given.
27677 if test "${with_mon_dir_password+set}" = set; then
27678   withval=$with_mon_dir_password;
27679        if test "x$withval" != "xno" ; then
27680           mon_dir_password=$withval
27681        fi
27682
27683
27684 fi
27685
27686
27687 if test "x$mon_dir_password" = "x" ; then
27688    if test "x$OPENSSL" = "xnone" ; then
27689       key=`autoconf/randpass 33`
27690    else
27691       key=`openssl rand -base64 33`
27692    fi
27693    mon_dir_password=$key
27694 fi
27695
27696 mon_fd_password=
27697
27698 # Check whether --with-mon-fd-password was given.
27699 if test "${with_mon_fd_password+set}" = set; then
27700   withval=$with_mon_fd_password;
27701        if test "x$withval" != "xno" ; then
27702           mon_fd_password=$withval
27703        fi
27704
27705
27706 fi
27707
27708
27709 if test "x$mon_fd_password" = "x" ; then
27710    if test "x$OPENSSL" = "xnone" ; then
27711       key=`autoconf/randpass 37`
27712    else
27713       key=`openssl rand -base64 33`
27714    fi
27715    mon_fd_password=$key
27716 fi
27717
27718 mon_sd_password=
27719
27720 # Check whether --with-mon-sd-password was given.
27721 if test "${with_mon_sd_password+set}" = set; then
27722   withval=$with_mon_sd_password;
27723        if test "x$withval" != "xno" ; then
27724           mon_sd_password=$withval
27725        fi
27726
27727
27728 fi
27729
27730
27731 if test "x$mon_sd_password" = "x" ; then
27732    if test "x$OPENSSL" = "xnone" ; then
27733       key=`autoconf/randpass 41`
27734    else
27735       key=`openssl rand -base64 33`
27736    fi
27737    mon_sd_password=$key
27738 fi
27739
27740
27741
27742
27743
27744
27745
27746
27747 db_name=bacula
27748
27749 # Check whether --with-db_name was given.
27750 if test "${with_db_name+set}" = set; then
27751   withval=$with_db_name;
27752        if test "x$withval" != "x" ; then
27753           db_name=$withval
27754        fi
27755
27756
27757 fi
27758
27759
27760
27761 db_user=bacula
27762
27763 # Check whether --with-db_user was given.
27764 if test "${with_db_user+set}" = set; then
27765   withval=$with_db_user;
27766        if test "x$withval" != "x" ; then
27767           db_user=$withval
27768        fi
27769
27770
27771 fi
27772
27773
27774
27775 db_password=
27776
27777 # Check whether --with-db_password was given.
27778 if test "${with_db_password+set}" = set; then
27779   withval=$with_db_password;
27780        if test "x$withval" != "x" ; then
27781           db_password=$withval
27782        fi
27783
27784
27785 fi
27786
27787
27788
27789 db_port=" "
27790
27791 # Check whether --with-db_port was given.
27792 if test "${with_db_port+set}" = set; then
27793   withval=$with_db_port;
27794        if test "x$withval" != "x" ; then
27795           db_port=$withval
27796        fi
27797
27798
27799 fi
27800
27801
27802
27803 #
27804 # Handle users and groups for each daemon
27805 #
27806 dir_user=
27807
27808 # Check whether --with-dir_user was given.
27809 if test "${with_dir_user+set}" = set; then
27810   withval=$with_dir_user;
27811        if test "x$withval" != "x" ; then
27812            dir_user=$withval
27813        fi
27814
27815
27816 fi
27817
27818
27819 dir_group=
27820
27821 # Check whether --with-dir_group was given.
27822 if test "${with_dir_group+set}" = set; then
27823   withval=$with_dir_group;
27824        if test "x$withval" != "x" ; then
27825           dir_group=$withval
27826        fi
27827
27828
27829 fi
27830
27831
27832 sd_user=
27833
27834 # Check whether --with-sd_user was given.
27835 if test "${with_sd_user+set}" = set; then
27836   withval=$with_sd_user;
27837        if test "x$withval" != "x" ; then
27838           sd_user=$withval
27839        fi
27840
27841
27842 fi
27843
27844
27845 sd_group=
27846
27847 # Check whether --with-sd_group was given.
27848 if test "${with_sd_group+set}" = set; then
27849   withval=$with_sd_group;
27850        if test "x$withval" != "x" ; then
27851           sd_group=$withval
27852        fi
27853
27854
27855 fi
27856
27857
27858 fd_user=
27859
27860 # Check whether --with-fd_user was given.
27861 if test "${with_fd_user+set}" = set; then
27862   withval=$with_fd_user;
27863        if test "x$withval" != "x" ; then
27864           fd_user=$withval
27865        fi
27866
27867
27868 fi
27869
27870
27871 fd_group=
27872
27873 # Check whether --with-fd_group was given.
27874 if test "${with_fd_group+set}" = set; then
27875   withval=$with_fd_group;
27876        if test "x$withval" != "x" ; then
27877           fd_group=$withval
27878        fi
27879
27880
27881 fi
27882
27883
27884
27885
27886
27887
27888
27889
27890
27891 SBINPERM=0754
27892
27893 # Check whether --with-sbin-perm was given.
27894 if test "${with_sbin_perm+set}" = set; then
27895   withval=$with_sbin_perm;
27896        if test "x$withval" != "x" ; then
27897           SBINPERM=$withval
27898        fi
27899
27900
27901 fi
27902
27903
27904
27905
27906 SQL_LIB=
27907
27908 db_found=no
27909 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27910 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27911
27912 # Check whether --with-postgresql was given.
27913 if test "${with_postgresql+set}" = set; then
27914   withval=$with_postgresql;
27915   if test "$withval" != "no"; then
27916       if test "$db_found" = "yes"; then
27917           { echo "$as_me:$LINENO: result: error" >&5
27918 echo "${ECHO_T}error" >&6; }
27919           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27920 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27921    { (exit 1); exit 1; }; };
27922       fi
27923       if test "$withval" = "yes"; then
27924           PG_CONFIG=`which pg_config`
27925           if test -n "$PG_CONFIG";then
27926               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27927               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27928               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27929           elif test -f /usr/local/include/libpq-fe.h; then
27930               POSTGRESQL_INCDIR=/usr/local/include
27931               if test -d /usr/local/lib64; then
27932                  POSTGRESQL_LIBDIR=/usr/local/lib64
27933               else
27934                  POSTGRESQL_LIBDIR=/usr/local/lib
27935               fi
27936               POSTGRESQL_BINDIR=/usr/local/bin
27937           elif test -f /usr/include/libpq-fe.h; then
27938               POSTGRESQL_INCDIR=/usr/include
27939               if test -d /usr/lib64; then
27940                  POSTGRESQL_LIBDIR=/usr/lib64
27941               else
27942                  POSTGRESQL_LIBDIR=/usr/lib
27943               fi
27944               POSTGRESQL_BINDIR=/usr/bin
27945           elif test -f /usr/include/pgsql/libpq-fe.h; then
27946               POSTGRESQL_INCDIR=/usr/include/pgsql
27947               if test -d /usr/lib64/pgsql; then
27948                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27949               else
27950                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
27951               fi
27952               POSTGRESQL_BINDIR=/usr/bin
27953           elif test -f /usr/include/postgresql/libpq-fe.h; then
27954               POSTGRESQL_INCDIR=/usr/include/postgresql
27955               if test -d /usr/lib64/postgresql; then
27956                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27957               else
27958                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
27959               fi
27960               POSTGRESQL_BINDIR=/usr/bin
27961           else
27962               { echo "$as_me:$LINENO: result: no" >&5
27963 echo "${ECHO_T}no" >&6; }
27964               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27965 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27966    { (exit 1); exit 1; }; }
27967           fi
27968       elif test -f $withval/include/libpq-fe.h; then
27969           POSTGRESQL_INCDIR=$withval/include
27970           POSTGRESQL_LIBDIR=$withval/lib
27971           POSTGRESQL_BINDIR=$withval/bin
27972       elif test -f $withval/include/postgresql/libpq-fe.h; then
27973           POSTGRESQL_INCDIR=$withval/include/postgresql
27974      if test -d $withval/lib64; then
27975          POSTGRESQL_LIBDIR=$withval/lib64
27976      else
27977          POSTGRESQL_LIBDIR=$withval/lib
27978      fi
27979           POSTGRESQL_BINDIR=$withval/bin
27980       else
27981           { echo "$as_me:$LINENO: result: no" >&5
27982 echo "${ECHO_T}no" >&6; }
27983           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27984 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27985    { (exit 1); exit 1; }; }
27986       fi
27987       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27988       { echo "$as_me:$LINENO: checking for crypt" >&5
27989 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27990 if test "${ac_cv_func_crypt+set}" = set; then
27991   echo $ECHO_N "(cached) $ECHO_C" >&6
27992 else
27993   cat >conftest.$ac_ext <<_ACEOF
27994 /* confdefs.h.  */
27995 _ACEOF
27996 cat confdefs.h >>conftest.$ac_ext
27997 cat >>conftest.$ac_ext <<_ACEOF
27998 /* end confdefs.h.  */
27999 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
28000    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28001 #define crypt innocuous_crypt
28002
28003 /* System header to define __stub macros and hopefully few prototypes,
28004     which can conflict with char crypt (); below.
28005     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28006     <limits.h> exists even on freestanding compilers.  */
28007
28008 #ifdef __STDC__
28009 # include <limits.h>
28010 #else
28011 # include <assert.h>
28012 #endif
28013
28014 #undef crypt
28015
28016 /* Override any GCC internal prototype to avoid an error.
28017    Use char because int might match the return type of a GCC
28018    builtin and then its argument prototype would still apply.  */
28019 #ifdef __cplusplus
28020 extern "C"
28021 #endif
28022 char crypt ();
28023 /* The GNU C library defines this for functions which it implements
28024     to always fail with ENOSYS.  Some functions are actually named
28025     something starting with __ and the normal name is an alias.  */
28026 #if defined __stub_crypt || defined __stub___crypt
28027 choke me
28028 #endif
28029
28030 int
28031 main ()
28032 {
28033 return crypt ();
28034   ;
28035   return 0;
28036 }
28037 _ACEOF
28038 rm -f conftest.$ac_objext conftest$ac_exeext
28039 if { (ac_try="$ac_link"
28040 case "(($ac_try" in
28041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28042   *) ac_try_echo=$ac_try;;
28043 esac
28044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28045   (eval "$ac_link") 2>conftest.er1
28046   ac_status=$?
28047   grep -v '^ *+' conftest.er1 >conftest.err
28048   rm -f conftest.er1
28049   cat conftest.err >&5
28050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051   (exit $ac_status); } && {
28052          test -z "$ac_cxx_werror_flag" ||
28053          test ! -s conftest.err
28054        } && test -s conftest$ac_exeext &&
28055        $as_test_x conftest$ac_exeext; then
28056   ac_cv_func_crypt=yes
28057 else
28058   echo "$as_me: failed program was:" >&5
28059 sed 's/^/| /' conftest.$ac_ext >&5
28060
28061         ac_cv_func_crypt=no
28062 fi
28063
28064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28065       conftest$ac_exeext conftest.$ac_ext
28066 fi
28067 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28068 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28069 if test $ac_cv_func_crypt = yes; then
28070   :
28071 else
28072   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28073 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28074 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28075   echo $ECHO_N "(cached) $ECHO_C" >&6
28076 else
28077   ac_check_lib_save_LIBS=$LIBS
28078 LIBS="-lcrypt  $LIBS"
28079 cat >conftest.$ac_ext <<_ACEOF
28080 /* confdefs.h.  */
28081 _ACEOF
28082 cat confdefs.h >>conftest.$ac_ext
28083 cat >>conftest.$ac_ext <<_ACEOF
28084 /* end confdefs.h.  */
28085
28086 /* Override any GCC internal prototype to avoid an error.
28087    Use char because int might match the return type of a GCC
28088    builtin and then its argument prototype would still apply.  */
28089 #ifdef __cplusplus
28090 extern "C"
28091 #endif
28092 char crypt ();
28093 int
28094 main ()
28095 {
28096 return crypt ();
28097   ;
28098   return 0;
28099 }
28100 _ACEOF
28101 rm -f conftest.$ac_objext conftest$ac_exeext
28102 if { (ac_try="$ac_link"
28103 case "(($ac_try" in
28104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28105   *) ac_try_echo=$ac_try;;
28106 esac
28107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28108   (eval "$ac_link") 2>conftest.er1
28109   ac_status=$?
28110   grep -v '^ *+' conftest.er1 >conftest.err
28111   rm -f conftest.er1
28112   cat conftest.err >&5
28113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114   (exit $ac_status); } && {
28115          test -z "$ac_cxx_werror_flag" ||
28116          test ! -s conftest.err
28117        } && test -s conftest$ac_exeext &&
28118        $as_test_x conftest$ac_exeext; then
28119   ac_cv_lib_crypt_crypt=yes
28120 else
28121   echo "$as_me: failed program was:" >&5
28122 sed 's/^/| /' conftest.$ac_ext >&5
28123
28124         ac_cv_lib_crypt_crypt=no
28125 fi
28126
28127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28128       conftest$ac_exeext conftest.$ac_ext
28129 LIBS=$ac_check_lib_save_LIBS
28130 fi
28131 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28132 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28133 if test $ac_cv_lib_crypt_crypt = yes; then
28134   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28135 fi
28136
28137 fi
28138
28139       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28140       SQL_LFLAGS=$POSTGRESQL_LFLAGS
28141       SQL_BINDIR=$POSTGRESQL_BINDIR
28142       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28143
28144       cat >>confdefs.h <<\_ACEOF
28145 #define HAVE_POSTGRESQL 1
28146 _ACEOF
28147
28148       { echo "$as_me:$LINENO: result: yes" >&5
28149 echo "${ECHO_T}yes" >&6; }
28150       db_found=yes
28151       support_postgresql=yes
28152       db_type=PostgreSQL
28153       DB_TYPE=postgresql
28154   else
28155       { echo "$as_me:$LINENO: result: no" >&5
28156 echo "${ECHO_T}no" >&6; }
28157   fi
28158
28159 else
28160
28161   { echo "$as_me:$LINENO: result: no" >&5
28162 echo "${ECHO_T}no" >&6; }
28163
28164 fi
28165
28166
28167
28168
28169
28170
28171
28172
28173 db_found=no
28174 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28175 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28176
28177 # Check whether --with-mysql was given.
28178 if test "${with_mysql+set}" = set; then
28179   withval=$with_mysql;
28180   if test "$withval" != "no"; then
28181         if test "$withval" = "yes"; then
28182            if test -f /usr/local/mysql/include/mysql/mysql.h; then
28183                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
28184                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28185                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28186                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28187                    else
28188                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28189                    fi
28190                    MYSQL_BINDIR=/usr/local/mysql/bin
28191            elif test -f /usr/include/mysql/mysql.h; then
28192                    MYSQL_INCDIR=/usr/include/mysql
28193                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28194                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28195                            MYSQL_LIBDIR=/usr/lib64/mysql
28196                    elif test -f /usr/lib64/libmysqlclient_r.a \
28197                         -o -f /usr/lib64/libmysqlclient_r.so; then
28198                            MYSQL_LIBDIR=/usr/lib64
28199                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28200                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28201                            MYSQL_LIBDIR=/usr/lib/mysql
28202                    else
28203                            MYSQL_LIBDIR=/usr/lib
28204                    fi
28205                    MYSQL_BINDIR=/usr/bin
28206            elif test -f /usr/include/mysql.h; then
28207                    MYSQL_INCDIR=/usr/include
28208                    if test -f /usr/lib64/libmysqlclient_r.a \
28209                         -o -f /usr/lib64/libmysqlclient_r.so; then
28210                            MYSQL_LIBDIR=/usr/lib64
28211                    else
28212                            MYSQL_LIBDIR=/usr/lib
28213                    fi
28214                    MYSQL_BINDIR=/usr/bin
28215            elif test -f /usr/local/include/mysql/mysql.h; then
28216                    MYSQL_INCDIR=/usr/local/include/mysql
28217                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28218                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28219                            MYSQL_LIBDIR=/usr/local/lib64/mysql
28220                    else
28221                            MYSQL_LIBDIR=/usr/local/lib/mysql
28222                    fi
28223                    MYSQL_BINDIR=/usr/local/bin
28224            elif test -f /usr/local/include/mysql.h; then
28225                    MYSQL_INCDIR=/usr/local/include
28226                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28227                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28228                            MYSQL_LIBDIR=/usr/local/lib64
28229                    else
28230                            MYSQL_LIBDIR=/usr/local/lib
28231                    fi
28232                    MYSQL_BINDIR=/usr/local/bin
28233            else
28234               { echo "$as_me:$LINENO: result: no" >&5
28235 echo "${ECHO_T}no" >&6; }
28236               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28237 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28238    { (exit 1); exit 1; }; }
28239            fi
28240         else
28241            if test -f $withval/include/mysql/mysql.h; then
28242               MYSQL_INCDIR=$withval/include/mysql
28243               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28244                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28245                  MYSQL_LIBDIR=$withval/lib64/mysql
28246               elif test -f $withval/lib64/libmysqlclient_r.a \
28247                    -o -f $withval/lib64/libmysqlclient_r.so; then
28248                  MYSQL_LIBDIR=$withval/lib64
28249               elif test -f $withval/lib/libmysqlclient_r.a \
28250                    -o -f $withval/lib/libmysqlclient_r.so; then
28251                  MYSQL_LIBDIR=$withval/lib
28252               else
28253                  MYSQL_LIBDIR=$withval/lib/mysql
28254               fi
28255               MYSQL_BINDIR=$withval/bin
28256            elif test -f $withval/include/mysql.h; then
28257               MYSQL_INCDIR=$withval/include
28258               if test -f $withval/lib64/libmysqlclient_r.a \
28259                    -o -f $withval/lib64/libmysqlclient_r.so; then
28260                  MYSQL_LIBDIR=$withval/lib64
28261               else
28262                  MYSQL_LIBDIR=$withval/lib
28263               fi
28264               MYSQL_BINDIR=$withval/bin
28265            else
28266               { echo "$as_me:$LINENO: result: no" >&5
28267 echo "${ECHO_T}no" >&6; }
28268               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28269 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28270    { (exit 1); exit 1; }; }
28271            fi
28272         fi
28273     SQL_INCLUDE=-I$MYSQL_INCDIR
28274     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28275          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28276        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28277        cat >>confdefs.h <<\_ACEOF
28278 #define HAVE_THREAD_SAFE_MYSQL 1
28279 _ACEOF
28280
28281     fi
28282     SQL_BINDIR=$MYSQL_BINDIR
28283     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28284
28285     cat >>confdefs.h <<\_ACEOF
28286 #define HAVE_MYSQL 1
28287 _ACEOF
28288
28289     { echo "$as_me:$LINENO: result: yes" >&5
28290 echo "${ECHO_T}yes" >&6; }
28291     db_found=yes
28292     support_mysql=yes
28293     db_type=MySQL
28294     DB_TYPE=mysql
28295
28296   else
28297         { echo "$as_me:$LINENO: result: no" >&5
28298 echo "${ECHO_T}no" >&6; }
28299   fi
28300
28301
28302 fi
28303
28304
28305
28306 # Check whether --with-embedded-mysql was given.
28307 if test "${with_embedded_mysql+set}" = set; then
28308   withval=$with_embedded_mysql;
28309   if test "$withval" != "no"; then
28310         if test "$withval" = "yes"; then
28311                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28312                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28313                         if test -d /usr/local/mysql/lib64/mysql; then
28314                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28315                         else
28316                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28317                         fi
28318                         MYSQL_BINDIR=/usr/local/mysql/bin
28319                 elif test -f /usr/include/mysql/mysql.h; then
28320                         MYSQL_INCDIR=/usr/include/mysql
28321                         if test -d /usr/lib64/mysql; then
28322                                 MYSQL_LIBDIR=/usr/lib64/mysql
28323                         else
28324                                 MYSQL_LIBDIR=/usr/lib/mysql
28325                         fi
28326                         MYSQL_BINDIR=/usr/bin
28327                 elif test -f /usr/include/mysql.h; then
28328                         MYSQL_INCDIR=/usr/include
28329                         if test -d /usr/lib64; then
28330                                 MYSQL_LIBDIR=/usr/lib64
28331                         else
28332                                 MYSQL_LIBDIR=/usr/lib
28333                         fi
28334                         MYSQL_BINDIR=/usr/bin
28335                 elif test -f /usr/local/include/mysql/mysql.h; then
28336                         MYSQL_INCDIR=/usr/local/include/mysql
28337                         if test -d /usr/local/lib64/mysql; then
28338                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28339                         else
28340                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28341                         fi
28342                         MYSQL_BINDIR=/usr/local/bin
28343                 elif test -f /usr/local/include/mysql.h; then
28344                         MYSQL_INCDIR=/usr/local/include
28345                         if test -d /usr/local/lib64; then
28346                                 MYSQL_LIBDIR=/usr/local/lib64
28347                         else
28348                                 MYSQL_LIBDIR=/usr/local/lib
28349                         fi
28350                         MYSQL_BINDIR=/usr/local/bin
28351                 else
28352                    { echo "$as_me:$LINENO: result: no" >&5
28353 echo "${ECHO_T}no" >&6; }
28354                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28355 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28356    { (exit 1); exit 1; }; }
28357                 fi
28358         else
28359                 if test -f $withval/include/mysql/mysql.h; then
28360                         MYSQL_INCDIR=$withval/include/mysql
28361                         if test -d $withval/lib64/mysql; then
28362                                 MYSQL_LIBDIR=$withval/lib64/mysql
28363                         else
28364                                 MYSQL_LIBDIR=$withval/lib/mysql
28365                         fi
28366                         MYSQL_BINDIR=$withval/bin
28367                 elif test -f $withval/include/mysql.h; then
28368                         MYSQL_INCDIR=$withval/include
28369                         if test -d $withval/lib64; then
28370                                 MYSQL_LIBDIR=$withval/lib64
28371                         else
28372                                 MYSQL_LIBDIR=$withval/lib
28373                         fi
28374                         MYSQL_BINDIR=$withval/bin
28375                 else
28376                    { echo "$as_me:$LINENO: result: no" >&5
28377 echo "${ECHO_T}no" >&6; }
28378                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28379 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28380    { (exit 1); exit 1; }; }
28381                 fi
28382         fi
28383     SQL_INCLUDE=-I$MYSQL_INCDIR
28384     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28385     SQL_BINDIR=$MYSQL_BINDIR
28386     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28387
28388     cat >>confdefs.h <<\_ACEOF
28389 #define HAVE_MYSQL 1
28390 _ACEOF
28391
28392     cat >>confdefs.h <<\_ACEOF
28393 #define HAVE_EMBEDDED_MYSQL 1
28394 _ACEOF
28395
28396     { echo "$as_me:$LINENO: result: yes" >&5
28397 echo "${ECHO_T}yes" >&6; }
28398     db_found=yes
28399     support_mysql=yes
28400     db_type=MySQL
28401     DB_TYPE=mysql
28402
28403   else
28404         { echo "$as_me:$LINENO: result: no" >&5
28405 echo "${ECHO_T}no" >&6; }
28406   fi
28407
28408
28409 fi
28410
28411
28412
28413
28414
28415
28416
28417
28418
28419
28420 db_found=no
28421 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28422 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28423
28424 # Check whether --with-sqlite3 was given.
28425 if test "${with_sqlite3+set}" = set; then
28426   withval=$with_sqlite3;
28427   if test "$withval" != "no"; then
28428      if test "$withval" = "yes"; then
28429         if test -f /usr/local/include/sqlite3.h; then
28430            SQLITE_INCDIR=/usr/local/include
28431            if test -d /usr/local/lib64; then
28432               SQLITE_LIBDIR=/usr/local/lib64
28433            else
28434               SQLITE_LIBDIR=/usr/local/lib
28435            fi
28436            SQLITE_BINDIR=/usr/local/bin
28437         elif test -f /usr/include/sqlite3.h; then
28438            SQLITE_INCDIR=/usr/include
28439            if test -d /usr/lib64; then
28440               SQLITE_LIBDIR=/usr/lib64
28441            else
28442               SQLITE_LIBDIR=/usr/lib
28443            fi
28444            SQLITE_BINDIR=/usr/bin
28445         elif test -f $prefix/include/sqlite3.h; then
28446            SQLITE_INCDIR=$prefix/include
28447            if test -d $prefix/lib64; then
28448               SQLITE_LIBDIR=$prefix/lib64
28449            else
28450               SQLITE_LIBDIR=$prefix/lib
28451            fi
28452            SQLITE_BINDIR=$prefix/bin
28453         else
28454            { echo "$as_me:$LINENO: result: no" >&5
28455 echo "${ECHO_T}no" >&6; }
28456            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28457 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28458    { (exit 1); exit 1; }; }
28459         fi
28460      else
28461         if test -f $withval/sqlite3.h; then
28462            SQLITE_INCDIR=$withval
28463            SQLITE_LIBDIR=$withval
28464            SQLITE_BINDIR=$withval
28465         elif test -f $withval/include/sqlite3.h; then
28466            SQLITE_INCDIR=$withval/include
28467            if test -d $withval/lib64; then
28468               SQLITE_LIBDIR=$withval/lib64
28469            else
28470               SQLITE_LIBDIR=$withval/lib
28471            fi
28472            SQLITE_BINDIR=$withval/bin
28473         else
28474            { echo "$as_me:$LINENO: result: no" >&5
28475 echo "${ECHO_T}no" >&6; }
28476            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28477 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28478    { (exit 1); exit 1; }; }
28479         fi
28480      fi
28481      SQL_INCLUDE=-I$SQLITE_INCDIR
28482      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28483      SQL_BINDIR=$SQLITE_BINDIR
28484      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28485
28486      cat >>confdefs.h <<\_ACEOF
28487 #define HAVE_SQLITE3 1
28488 _ACEOF
28489
28490      { echo "$as_me:$LINENO: result: yes" >&5
28491 echo "${ECHO_T}yes" >&6; }
28492      db_found=yes
28493      support_sqlite3=yes
28494      db_type=SQLite3
28495      DB_TYPE=sqlite3
28496
28497   else
28498      { echo "$as_me:$LINENO: result: no" >&5
28499 echo "${ECHO_T}no" >&6; }
28500   fi
28501
28502 else
28503
28504   { echo "$as_me:$LINENO: result: no" >&5
28505 echo "${ECHO_T}no" >&6; }
28506
28507 fi
28508
28509
28510
28511
28512
28513
28514
28515 # BA_CHECK_SQLITE_DB
28516
28517
28518 db_found=no
28519 { echo "$as_me:$LINENO: checking for DBI support" >&5
28520 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28521
28522 # Check whether --with-dbi was given.
28523 if test "${with_dbi+set}" = set; then
28524   withval=$with_dbi;
28525   if test "$withval" != "no"; then
28526      if test "$withval" = "yes"; then
28527         if test -f /usr/local/include/dbi/dbi.h; then
28528            DBI_INCDIR=/usr/local/dbi/include
28529            if test -d /usr/local/lib64; then
28530               DBI_LIBDIR=/usr/local/lib64
28531            else
28532               DBI_LIBDIR=/usr/local/lib
28533            fi
28534            DBI_BINDIR=/usr/local/bin
28535         elif test -f /usr/include/dbi/dbi.h; then
28536            DBI_INCDIR=/usr/include
28537            if test -d /usr/lib64; then
28538               DBI_LIBDIR=/usr/lib64
28539            else
28540               DBI_LIBDIR=/usr/lib
28541            fi
28542            DBI_BINDIR=/usr/bin
28543         elif test -f $prefix/include/dbi/dbi.h; then
28544            DBI_INCDIR=$prefix/include
28545            if test -d $prefix/lib64; then
28546               DBI_LIBDIR=$prefix/lib64
28547            else
28548               DBI_LIBDIR=$prefix/lib
28549            fi
28550            DBI_BINDIR=$prefix/bin
28551         else
28552            { echo "$as_me:$LINENO: result: no" >&5
28553 echo "${ECHO_T}no" >&6; }
28554            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28555 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28556    { (exit 1); exit 1; }; }
28557         fi
28558         if test -d /usr/local/lib/dbd; then
28559            DRIVERDIR=/usr/local/lib/dbd
28560            if test -d /usr/local/lib64/dbd; then
28561               DRIVERDIR=/usr/local/lib64/dbd
28562            else
28563               DRIVERDIR=/usr/local/lib/dbd
28564            fi
28565         elif test -d /usr/lib/dbd; then
28566            DRIVERDIR=/usr/lib/dbd
28567            if test -d /usr/lib64/dbd; then
28568               DRIVERDIR=/usr/lib64/dbd
28569            else
28570               DRIVERDIR=/usr/lib/dbd
28571            fi
28572         elif test -d $prefix/lib/dbd; then
28573            if test -d $prefix/lib64/dbd; then
28574               DRIVERDIR=$prefix/lib64/dbd
28575            else
28576               DRIVERDIR=$prefix/lib/dbd
28577            fi
28578         elif test -d /usr/local/lib64/dbd; then
28579            DRIVERDIR=/usr/local/lib64/dbd
28580         elif test -d /usr/lib64/dbd; then
28581            DRIVERDIR=/usr/lib64/dbd
28582         elif test -d $prefix/lib64/dbd; then
28583            DRIVERDIR=$prefix/lib64/dbd
28584         else
28585            { echo "$as_me:$LINENO: result: no" >&5
28586 echo "${ECHO_T}no" >&6; }
28587            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28588 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28589    { (exit 1); exit 1; }; }
28590         fi
28591      else
28592         if test -f $withval/dbi.h; then
28593            DBI_INCDIR=$withval
28594            DBI_LIBDIR=$withval
28595            DBI_BINDIR=$withval
28596         elif test -f $withval/include/dbi/dbi.h; then
28597            DBI_INCDIR=$withval/include
28598            if test -d $withval/lib64; then
28599               DBI_LIBDIR=$withval/lib64
28600            else
28601               DBI_LIBDIR=$withval/lib
28602            fi
28603            DBI_BINDIR=$withval/bin
28604         else
28605            { echo "$as_me:$LINENO: result: no" >&5
28606 echo "${ECHO_T}no" >&6; }
28607            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28608 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28609    { (exit 1); exit 1; }; }
28610         fi
28611         if test -d $withval/dbd; then
28612            DRIVERDIR=$withval/dbd
28613         elif test -d $withval/lib/; then
28614            if test -d $withval/lib64/dbd; then
28615               DRIVERDIR=$withval/lib64/dbd
28616            else
28617               DRIVERDIR=$withval/lib/dbd
28618            fi
28619         elif test -d $withval/lib64/dbd; then
28620            DRIVERDIR=$withval/lib64/dbd
28621         else
28622            { echo "$as_me:$LINENO: result: no" >&5
28623 echo "${ECHO_T}no" >&6; }
28624            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28625 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28626    { (exit 1); exit 1; }; }
28627         fi
28628      fi
28629      SQL_INCLUDE=-I$DBI_INCDIR
28630      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28631      SQL_BINDIR=$DBI_BINDIR
28632      SQL_LIB=$DBI_LIBDIR/libdbi.a
28633      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28634
28635
28636 cat >>confdefs.h <<\_ACEOF
28637 #define HAVE_DBI 1
28638 _ACEOF
28639
28640      { echo "$as_me:$LINENO: result: yes" >&5
28641 echo "${ECHO_T}yes" >&6; }
28642      db_found=yes
28643      support_dbi=yes
28644      db_type=DBI
28645      DB_TYPE=dbi
28646      uncomment_dbi=" "
28647
28648   else
28649      { echo "$as_me:$LINENO: result: no" >&5
28650 echo "${ECHO_T}no" >&6; }
28651   fi
28652
28653 else
28654
28655   { echo "$as_me:$LINENO: result: no" >&5
28656 echo "${ECHO_T}no" >&6; }
28657
28658 fi
28659
28660
28661
28662
28663
28664
28665
28666
28667
28668
28669 db_found=no
28670 db_prog=no
28671 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28672 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28673
28674 # Check whether --with-dbi-driver was given.
28675 if test "${with_dbi_driver+set}" = set; then
28676   withval=$with_dbi_driver;
28677   if test "$withval" != "no"; then
28678      case $withval in
28679         "mysql")
28680            db_prog="mysql"
28681            if test -f /usr/local/mysql/bin/mysql; then
28682               SQL_BINDIR=/usr/local/mysql/bin
28683               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28684                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28685                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28686               else
28687                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28688               fi
28689            elif test -f /usr/bin/mysql; then
28690               SQL_BINDIR=/usr/bin
28691               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28692                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28693                   SQL_LIBDIR=/usr/lib64/mysql
28694               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28695                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28696                   SQL_LIBDIR=/usr/lib/mysql
28697               else
28698                   SQL_LIBDIR=/usr/lib
28699               fi
28700            elif test -f /usr/local/bin/mysql; then
28701               SQL_BINDIR=/usr/local/bin
28702               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28703                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28704                   SQL_LIBDIR=/usr/local/lib64/mysql
28705               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28706                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28707                   SQL_LIBDIR=/usr/local/lib/mysql
28708               else
28709                   SQL_LIBDIR=/usr/local/lib
28710               fi
28711            elif test -f $withval/bin/mysql; then
28712               SQL_BINDIR=$withval/bin
28713               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28714                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28715                   SQL_LIBDIR=$withval/lib64/mysql
28716               elif test -f $withval/lib64/libmysqlclient_r.a \
28717                   -o -f $withval/lib64/libmysqlclient_r.so; then
28718                   SQL_LIBDIR=$withval/lib64
28719               elif test -f $withval/lib/libmysqlclient_r.a \
28720                   -o -f $withval/lib/libmysqlclient_r.so; then
28721                   SQL_LIBDIR=$withval/lib/
28722               else
28723                   SQL_LIBDIR=$withval/lib/mysql
28724               fi
28725            else
28726               { echo "$as_me:$LINENO: result: no" >&5
28727 echo "${ECHO_T}no" >&6; }
28728               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28729 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28730    { (exit 1); exit 1; }; }
28731            fi
28732            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28733               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28734            else
28735               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28736            fi
28737         ;;
28738         "postgresql")
28739            db_prog="postgresql"
28740            PG_CONFIG=`which pg_config`
28741            if test -n "$PG_CONFIG"; then
28742               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28743               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28744            elif test -f /usr/local/bin/psql; then
28745               SQL_BINDIR=/usr/local/bin
28746               if test -d /usr/local/lib64; then
28747                  SQL_LIBDIR=/usr/local/lib64
28748               else
28749                  SQL_LIBDIR=/usr/local/lib
28750               fi
28751            elif test -f /usr/bin/psql; then
28752               SQL_BINDIR=/usr/local/bin
28753               if test -d /usr/lib64/postgresql; then
28754                  SQL_LIBDIR=/usr/lib64/postgresql
28755               elif test -d /usr/lib/postgresql; then
28756                  SQL_LIBDIR=/usr/lib/postgresql
28757               elif test -d /usr/lib64; then
28758                  SQL_LIBDIR=/usr/lib64
28759               else
28760                  SQL_LIBDIR=/usr/lib
28761               fi
28762            elif test -f $withval/bin/psql; then
28763               SQL_BINDIR=$withval/bin
28764               if test -d $withval/lib64; then
28765                  SQL_LIBDIR=$withval/lib64
28766               else
28767                  SQL_LIBDIR=$withval/lib
28768               fi
28769            else
28770               { echo "$as_me:$LINENO: result: no" >&5
28771 echo "${ECHO_T}no" >&6; }
28772               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28773 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28774    { (exit 1); exit 1; }; }
28775            fi
28776            if test -f $SQL_LIBDIR/libpq.so; then
28777               DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28778            else
28779               DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28780            fi
28781         ;;
28782         "sqlite")
28783            db_prog="sqlite"
28784            if test -f /usr/local/bin/sqlite; then
28785               SQL_BINDIR=/usr/local/bin
28786               if test -d /usr/local/lib64; then
28787                  SQL_LIBDIR=/usr/local/lib64
28788               else
28789                  SQL_LIBDIR=/usr/local/lib
28790               fi
28791            elif test -f /usr/bin/sqlite; then
28792               SQL_BINDIR=/usr/bin
28793               if test -d /usr/lib64; then
28794                  SQL_LIBDIR=/usr/lib64
28795               else
28796                  SQL_LIBDIR=/usr/lib
28797               fi
28798            elif test -f $withval/bin/sqlite; then
28799               SQL_BINDIR=$withval/bin
28800               if test -d $withval/lib64; then
28801                  SQL_LIBDIR=$withval/lib64
28802               else
28803                  SQL_LIBDIR=$withval/lib
28804               fi
28805            else
28806               { echo "$as_me:$LINENO: result: no" >&5
28807 echo "${ECHO_T}no" >&6; }
28808               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28809 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28810    { (exit 1); exit 1; }; }
28811            fi
28812            if test -f $SQL_LIBDIR/libsqlite.so; then
28813               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28814            else
28815               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28816            fi
28817         ;;
28818         "sqlite3")
28819            db_prog="sqlite3"
28820            if test -f /usr/local/bin/sqlite3; then
28821               SQL_BINDIR=/usr/local/bin
28822               if test -d /usr/local/lib64; then
28823                  SQL_LIBDIR=/usr/local/lib64
28824               else
28825                  SQL_LIBDIR=/usr/local/lib
28826               fi
28827            elif test -f /usr/bin/sqlite3; then
28828               SQL_BINDIR=/usr/bin
28829               if test -d /usr/lib64; then
28830                  SQL_LIBDIR=/usr/lib64
28831               else
28832                  SQL_LIBDIR=/usr/lib
28833               fi
28834            elif test -f $withval/bin/sqlite3; then
28835               SQL_BINDIR=$withval/bin
28836               if test -d $withval/lib64; then
28837                  SQL_LIBDIR=$withval/lib64
28838               else
28839                  SQL_LIBDIR=$withval/lib
28840               fi
28841            else
28842               { echo "$as_me:$LINENO: result: no" >&5
28843 echo "${ECHO_T}no" >&6; }
28844               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28845 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28846    { (exit 1); exit 1; }; }
28847            fi
28848            if test -f $SQL_LIBDIR/libsqlite3.so; then
28849               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28850            else
28851               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28852            fi
28853         ;;
28854         *)
28855            { echo "$as_me:$LINENO: result: no" >&5
28856 echo "${ECHO_T}no" >&6; }
28857            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28858 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28859    { (exit 1); exit 1; }; }
28860         ;;
28861      esac
28862
28863      { echo "$as_me:$LINENO: result: yes" >&5
28864 echo "${ECHO_T}yes" >&6; }
28865      DB_PROG=$db_prog
28866   else
28867      { echo "$as_me:$LINENO: result: no" >&5
28868 echo "${ECHO_T}no" >&6; }
28869   fi
28870
28871 else
28872
28873   { echo "$as_me:$LINENO: result: no" >&5
28874 echo "${ECHO_T}no" >&6; }
28875
28876 fi
28877
28878
28879
28880
28881
28882
28883
28884
28885
28886
28887 support_batch_insert=no
28888 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28889 pkg=$?
28890 if test $pkg = 0; then
28891    support_batch_insert=yes
28892    # Check whether --enable-batch-insert was given.
28893 if test "${enable_batch_insert+set}" = set; then
28894   enableval=$enable_batch_insert;
28895           if test x$enableval = xno; then
28896              support_batch_insert=no
28897           else
28898              support_batch_insert=yes
28899           fi
28900
28901
28902 fi
28903
28904 fi
28905
28906 if test x$DB_TYPE = xpostgresql; then
28907    { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
28908 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
28909 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
28910   echo $ECHO_N "(cached) $ECHO_C" >&6
28911 else
28912   ac_check_lib_save_LIBS=$LIBS
28913 LIBS="-lpq  $LIBS"
28914 cat >conftest.$ac_ext <<_ACEOF
28915 /* confdefs.h.  */
28916 _ACEOF
28917 cat confdefs.h >>conftest.$ac_ext
28918 cat >>conftest.$ac_ext <<_ACEOF
28919 /* end confdefs.h.  */
28920
28921 /* Override any GCC internal prototype to avoid an error.
28922    Use char because int might match the return type of a GCC
28923    builtin and then its argument prototype would still apply.  */
28924 #ifdef __cplusplus
28925 extern "C"
28926 #endif
28927 char PQisthreadsafe ();
28928 int
28929 main ()
28930 {
28931 return PQisthreadsafe ();
28932   ;
28933   return 0;
28934 }
28935 _ACEOF
28936 rm -f conftest.$ac_objext conftest$ac_exeext
28937 if { (ac_try="$ac_link"
28938 case "(($ac_try" in
28939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28940   *) ac_try_echo=$ac_try;;
28941 esac
28942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28943   (eval "$ac_link") 2>conftest.er1
28944   ac_status=$?
28945   grep -v '^ *+' conftest.er1 >conftest.err
28946   rm -f conftest.er1
28947   cat conftest.err >&5
28948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949   (exit $ac_status); } && {
28950          test -z "$ac_cxx_werror_flag" ||
28951          test ! -s conftest.err
28952        } && test -s conftest$ac_exeext &&
28953        $as_test_x conftest$ac_exeext; then
28954   ac_cv_lib_pq_PQisthreadsafe=yes
28955 else
28956   echo "$as_me: failed program was:" >&5
28957 sed 's/^/| /' conftest.$ac_ext >&5
28958
28959         ac_cv_lib_pq_PQisthreadsafe=no
28960 fi
28961
28962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28963       conftest$ac_exeext conftest.$ac_ext
28964 LIBS=$ac_check_lib_save_LIBS
28965 fi
28966 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
28967 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
28968 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
28969
28970 cat >>confdefs.h <<\_ACEOF
28971 #define HAVE_PQISTHREADSAFE 1
28972 _ACEOF
28973
28974 fi
28975
28976    { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
28977 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
28978 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
28979   echo $ECHO_N "(cached) $ECHO_C" >&6
28980 else
28981   ac_check_lib_save_LIBS=$LIBS
28982 LIBS="-lpq  $LIBS"
28983 cat >conftest.$ac_ext <<_ACEOF
28984 /* confdefs.h.  */
28985 _ACEOF
28986 cat confdefs.h >>conftest.$ac_ext
28987 cat >>conftest.$ac_ext <<_ACEOF
28988 /* end confdefs.h.  */
28989
28990 /* Override any GCC internal prototype to avoid an error.
28991    Use char because int might match the return type of a GCC
28992    builtin and then its argument prototype would still apply.  */
28993 #ifdef __cplusplus
28994 extern "C"
28995 #endif
28996 char PQputCopyData ();
28997 int
28998 main ()
28999 {
29000 return PQputCopyData ();
29001   ;
29002   return 0;
29003 }
29004 _ACEOF
29005 rm -f conftest.$ac_objext conftest$ac_exeext
29006 if { (ac_try="$ac_link"
29007 case "(($ac_try" in
29008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29009   *) ac_try_echo=$ac_try;;
29010 esac
29011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29012   (eval "$ac_link") 2>conftest.er1
29013   ac_status=$?
29014   grep -v '^ *+' conftest.er1 >conftest.err
29015   rm -f conftest.er1
29016   cat conftest.err >&5
29017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018   (exit $ac_status); } && {
29019          test -z "$ac_cxx_werror_flag" ||
29020          test ! -s conftest.err
29021        } && test -s conftest$ac_exeext &&
29022        $as_test_x conftest$ac_exeext; then
29023   ac_cv_lib_pq_PQputCopyData=yes
29024 else
29025   echo "$as_me: failed program was:" >&5
29026 sed 's/^/| /' conftest.$ac_ext >&5
29027
29028         ac_cv_lib_pq_PQputCopyData=no
29029 fi
29030
29031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29032       conftest$ac_exeext conftest.$ac_ext
29033 LIBS=$ac_check_lib_save_LIBS
29034 fi
29035 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29036 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29037 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29038
29039 cat >>confdefs.h <<\_ACEOF
29040 #define HAVE_PQ_COPY 1
29041 _ACEOF
29042
29043 fi
29044
29045    if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29046     then
29047         support_batch_insert=no
29048    fi
29049 fi
29050
29051 if test x$DB_TYPE = xdbi; then
29052    DB_TYPE=$DB_PROG
29053    db_type=$DB_PROG
29054    pkg=1
29055       if test $DB_PROG = postgresql; then
29056       { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29057 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
29058 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29059   echo $ECHO_N "(cached) $ECHO_C" >&6
29060 else
29061   ac_check_lib_save_LIBS=$LIBS
29062 LIBS="-lpq  $LIBS"
29063 cat >conftest.$ac_ext <<_ACEOF
29064 /* confdefs.h.  */
29065 _ACEOF
29066 cat confdefs.h >>conftest.$ac_ext
29067 cat >>conftest.$ac_ext <<_ACEOF
29068 /* end confdefs.h.  */
29069
29070 /* Override any GCC internal prototype to avoid an error.
29071    Use char because int might match the return type of a GCC
29072    builtin and then its argument prototype would still apply.  */
29073 #ifdef __cplusplus
29074 extern "C"
29075 #endif
29076 char PQisthreadsafe ();
29077 int
29078 main ()
29079 {
29080 return PQisthreadsafe ();
29081   ;
29082   return 0;
29083 }
29084 _ACEOF
29085 rm -f conftest.$ac_objext conftest$ac_exeext
29086 if { (ac_try="$ac_link"
29087 case "(($ac_try" in
29088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29089   *) ac_try_echo=$ac_try;;
29090 esac
29091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29092   (eval "$ac_link") 2>conftest.er1
29093   ac_status=$?
29094   grep -v '^ *+' conftest.er1 >conftest.err
29095   rm -f conftest.er1
29096   cat conftest.err >&5
29097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29098   (exit $ac_status); } && {
29099          test -z "$ac_cxx_werror_flag" ||
29100          test ! -s conftest.err
29101        } && test -s conftest$ac_exeext &&
29102        $as_test_x conftest$ac_exeext; then
29103   ac_cv_lib_pq_PQisthreadsafe=yes
29104 else
29105   echo "$as_me: failed program was:" >&5
29106 sed 's/^/| /' conftest.$ac_ext >&5
29107
29108         ac_cv_lib_pq_PQisthreadsafe=no
29109 fi
29110
29111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29112       conftest$ac_exeext conftest.$ac_ext
29113 LIBS=$ac_check_lib_save_LIBS
29114 fi
29115 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29116 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29117 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
29118   cat >>confdefs.h <<\_ACEOF
29119 #define HAVE_PQISTHREADSAFE 1
29120 _ACEOF
29121
29122 fi
29123
29124       { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29125 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
29126 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29127   echo $ECHO_N "(cached) $ECHO_C" >&6
29128 else
29129   ac_check_lib_save_LIBS=$LIBS
29130 LIBS="-lpq  $LIBS"
29131 cat >conftest.$ac_ext <<_ACEOF
29132 /* confdefs.h.  */
29133 _ACEOF
29134 cat confdefs.h >>conftest.$ac_ext
29135 cat >>conftest.$ac_ext <<_ACEOF
29136 /* end confdefs.h.  */
29137
29138 /* Override any GCC internal prototype to avoid an error.
29139    Use char because int might match the return type of a GCC
29140    builtin and then its argument prototype would still apply.  */
29141 #ifdef __cplusplus
29142 extern "C"
29143 #endif
29144 char PQputCopyData ();
29145 int
29146 main ()
29147 {
29148 return PQputCopyData ();
29149   ;
29150   return 0;
29151 }
29152 _ACEOF
29153 rm -f conftest.$ac_objext conftest$ac_exeext
29154 if { (ac_try="$ac_link"
29155 case "(($ac_try" in
29156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29157   *) ac_try_echo=$ac_try;;
29158 esac
29159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29160   (eval "$ac_link") 2>conftest.er1
29161   ac_status=$?
29162   grep -v '^ *+' conftest.er1 >conftest.err
29163   rm -f conftest.er1
29164   cat conftest.err >&5
29165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29166   (exit $ac_status); } && {
29167          test -z "$ac_cxx_werror_flag" ||
29168          test ! -s conftest.err
29169        } && test -s conftest$ac_exeext &&
29170        $as_test_x conftest$ac_exeext; then
29171   ac_cv_lib_pq_PQputCopyData=yes
29172 else
29173   echo "$as_me: failed program was:" >&5
29174 sed 's/^/| /' conftest.$ac_ext >&5
29175
29176         ac_cv_lib_pq_PQputCopyData=no
29177 fi
29178
29179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29180       conftest$ac_exeext conftest.$ac_ext
29181 LIBS=$ac_check_lib_save_LIBS
29182 fi
29183 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29184 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29185 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29186   cat >>confdefs.h <<\_ACEOF
29187 #define HAVE_PQ_COPY 1
29188 _ACEOF
29189
29190 fi
29191
29192       test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29193       pkg=$?
29194    fi
29195
29196    if test $DB_PROG = mysql; then
29197       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29198       pkg=$?
29199    fi
29200
29201    if test $DB_PROG = sqlite3; then
29202       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29203       pkg=$?
29204    fi
29205
29206    if test $pkg = 0; then
29207       # Check whether --enable-batch-insert was given.
29208 if test "${enable_batch_insert+set}" = set; then
29209   enableval=$enable_batch_insert;
29210              if test x$enableval = xno; then
29211                 support_batch_insert=no
29212              else
29213                 support_batch_insert=yes
29214              fi
29215
29216
29217 fi
29218
29219    fi
29220 else
29221       uncomment_dbi="#"
29222 fi
29223
29224
29225
29226 if test $support_batch_insert = yes ; then
29227
29228 cat >>confdefs.h <<\_ACEOF
29229 #define HAVE_BATCH_FILE_INSERT 1
29230 _ACEOF
29231
29232 fi
29233
29234 cat >>confdefs.h <<\_ACEOF
29235 #define PROTOTYPES 1
29236 _ACEOF
29237
29238
29239 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
29240    if test -z "$CCOPTS"; then
29241       CCOPTS='-g -O2 -Wall'
29242    fi
29243    CFLAGS="$CCOPTS"
29244 fi
29245
29246
29247
29248 largefile_support="no"
29249
29250    # Check whether --enable-largefile was given.
29251 if test "${enable_largefile+set}" = set; then
29252   enableval=$enable_largefile;
29253 fi
29254
29255    if test "$enable_largefile" != no; then
29256      if test -n "$ac_tool_prefix"; then
29257   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29258 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29261 if test "${ac_cv_prog_GETCONF+set}" = set; then
29262   echo $ECHO_N "(cached) $ECHO_C" >&6
29263 else
29264   if test -n "$GETCONF"; then
29265   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29266 else
29267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29268 for as_dir in $PATH
29269 do
29270   IFS=$as_save_IFS
29271   test -z "$as_dir" && as_dir=.
29272   for ac_exec_ext in '' $ac_executable_extensions; do
29273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29274     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29276     break 2
29277   fi
29278 done
29279 done
29280 IFS=$as_save_IFS
29281
29282 fi
29283 fi
29284 GETCONF=$ac_cv_prog_GETCONF
29285 if test -n "$GETCONF"; then
29286   { echo "$as_me:$LINENO: result: $GETCONF" >&5
29287 echo "${ECHO_T}$GETCONF" >&6; }
29288 else
29289   { echo "$as_me:$LINENO: result: no" >&5
29290 echo "${ECHO_T}no" >&6; }
29291 fi
29292
29293
29294 fi
29295 if test -z "$ac_cv_prog_GETCONF"; then
29296   ac_ct_GETCONF=$GETCONF
29297   # Extract the first word of "getconf", so it can be a program name with args.
29298 set dummy getconf; ac_word=$2
29299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29301 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29302   echo $ECHO_N "(cached) $ECHO_C" >&6
29303 else
29304   if test -n "$ac_ct_GETCONF"; then
29305   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29306 else
29307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29308 for as_dir in $PATH
29309 do
29310   IFS=$as_save_IFS
29311   test -z "$as_dir" && as_dir=.
29312   for ac_exec_ext in '' $ac_executable_extensions; do
29313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29314     ac_cv_prog_ac_ct_GETCONF="getconf"
29315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29316     break 2
29317   fi
29318 done
29319 done
29320 IFS=$as_save_IFS
29321
29322 fi
29323 fi
29324 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29325 if test -n "$ac_ct_GETCONF"; then
29326   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29327 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29328 else
29329   { echo "$as_me:$LINENO: result: no" >&5
29330 echo "${ECHO_T}no" >&6; }
29331 fi
29332
29333   if test "x$ac_ct_GETCONF" = x; then
29334     GETCONF=""
29335   else
29336     case $cross_compiling:$ac_tool_warned in
29337 yes:)
29338 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29339 whose name does not start with the host triplet.  If you think this
29340 configuration is useful to you, please write to autoconf@gnu.org." >&5
29341 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29342 whose name does not start with the host triplet.  If you think this
29343 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29344 ac_tool_warned=yes ;;
29345 esac
29346     GETCONF=$ac_ct_GETCONF
29347   fi
29348 else
29349   GETCONF="$ac_cv_prog_GETCONF"
29350 fi
29351
29352      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29353 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29354 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29355   echo $ECHO_N "(cached) $ECHO_C" >&6
29356 else
29357   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29358         ac_cv_sys_largefile_CFLAGS=no
29359         case "$host_os" in
29360            # IRIX 6.2 and later require cc -n32.
29361            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29362              if test "$GCC" != yes; then
29363                ac_cv_sys_largefile_CFLAGS=-n32
29364              fi
29365              ac_save_CC="$CC"
29366              CC="$CC $ac_cv_sys_largefile_CFLAGS"
29367              cat >conftest.$ac_ext <<_ACEOF
29368 /* confdefs.h.  */
29369 _ACEOF
29370 cat confdefs.h >>conftest.$ac_ext
29371 cat >>conftest.$ac_ext <<_ACEOF
29372 /* end confdefs.h.  */
29373
29374 int
29375 main ()
29376 {
29377
29378   ;
29379   return 0;
29380 }
29381 _ACEOF
29382 rm -f conftest.$ac_objext conftest$ac_exeext
29383 if { (ac_try="$ac_link"
29384 case "(($ac_try" in
29385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29386   *) ac_try_echo=$ac_try;;
29387 esac
29388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29389   (eval "$ac_link") 2>conftest.er1
29390   ac_status=$?
29391   grep -v '^ *+' conftest.er1 >conftest.err
29392   rm -f conftest.er1
29393   cat conftest.err >&5
29394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395   (exit $ac_status); } && {
29396          test -z "$ac_cxx_werror_flag" ||
29397          test ! -s conftest.err
29398        } && test -s conftest$ac_exeext &&
29399        $as_test_x conftest$ac_exeext; then
29400   :
29401 else
29402   echo "$as_me: failed program was:" >&5
29403 sed 's/^/| /' conftest.$ac_ext >&5
29404
29405         ac_cv_sys_largefile_CFLAGS=no
29406 fi
29407
29408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29409       conftest$ac_exeext conftest.$ac_ext
29410              CC="$ac_save_CC"
29411            esac
29412       }
29413 fi
29414 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29415 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29416      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29417 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29418 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29419   echo $ECHO_N "(cached) $ECHO_C" >&6
29420 else
29421   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29422         ac_cv_sys_largefile_LDFLAGS=no
29423
29424       }
29425 fi
29426 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29427 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29428      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29429 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29430 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29431   echo $ECHO_N "(cached) $ECHO_C" >&6
29432 else
29433   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29434         ac_cv_sys_largefile_LIBS=no
29435
29436       }
29437 fi
29438 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29439 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29440
29441      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29442        case "$ac_flag" in
29443        no) ;;
29444        -D_FILE_OFFSET_BITS=*) ;;
29445        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29446        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29447        -D?* | -I?*)
29448          case "$ac_flag" in
29449    no) ;;
29450    ?*)
29451      case "$CPPFLAGS" in
29452      '') CPPFLAGS="$ac_flag" ;;
29453      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29454      esac ;;
29455    esac ;;
29456        *)
29457          case "$ac_flag" in
29458    no) ;;
29459    ?*)
29460      case "$CFLAGS" in
29461      '') CFLAGS="$ac_flag" ;;
29462      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29463      esac ;;
29464    esac ;;
29465        esac
29466      done
29467      case "$ac_cv_sys_largefile_LDFLAGS" in
29468    no) ;;
29469    ?*)
29470      case "$LDFLAGS" in
29471      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29472      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29473      esac ;;
29474    esac
29475      case "$ac_cv_sys_largefile_LIBS" in
29476    no) ;;
29477    ?*)
29478      case "$LIBS" in
29479      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29480      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29481      esac ;;
29482    esac
29483      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29484 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29485 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29486   echo $ECHO_N "(cached) $ECHO_C" >&6
29487 else
29488   ac_cv_sys_file_offset_bits=no
29489       ac_cv_sys_file_offset_bits=64
29490       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29491         case "$ac_flag" in
29492         -D_FILE_OFFSET_BITS)
29493           ac_cv_sys_file_offset_bits=1 ;;
29494         -D_FILE_OFFSET_BITS=*)
29495           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29496         esac
29497       done
29498
29499 fi
29500 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29501 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29502    if test "$ac_cv_sys_file_offset_bits" != no; then
29503
29504 cat >>confdefs.h <<_ACEOF
29505 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29506 _ACEOF
29507
29508    fi
29509      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29510 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29511 if test "${ac_cv_sys_largefile_source+set}" = set; then
29512   echo $ECHO_N "(cached) $ECHO_C" >&6
29513 else
29514   ac_cv_sys_largefile_source=no
29515       ac_cv_sys_largefile_source=1
29516       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29517         case "$ac_flag" in
29518         -D_LARGEFILE_SOURCE)
29519           ac_cv_sys_largefile_source=1 ;;
29520         -D_LARGEFILE_SOURCE=*)
29521           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29522         esac
29523       done
29524
29525 fi
29526 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29527 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29528    if test "$ac_cv_sys_largefile_source" != no; then
29529
29530 cat >>confdefs.h <<_ACEOF
29531 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29532 _ACEOF
29533
29534    fi
29535      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29536 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29537 if test "${ac_cv_sys_large_files+set}" = set; then
29538   echo $ECHO_N "(cached) $ECHO_C" >&6
29539 else
29540   ac_cv_sys_large_files=no
29541       ac_cv_sys_large_files=1
29542       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29543         case "$ac_flag" in
29544         -D_LARGE_FILES)
29545           ac_cv_sys_large_files=1 ;;
29546         -D_LARGE_FILES=*)
29547           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29548         esac
29549       done
29550
29551 fi
29552 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29553 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29554    if test "$ac_cv_sys_large_files" != no; then
29555
29556 cat >>confdefs.h <<_ACEOF
29557 #define _LARGE_FILES $ac_cv_sys_large_files
29558 _ACEOF
29559
29560    fi
29561    fi
29562
29563
29564 { echo "$as_me:$LINENO: checking for X" >&5
29565 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29566
29567
29568 # Check whether --with-x was given.
29569 if test "${with_x+set}" = set; then
29570   withval=$with_x;
29571 fi
29572
29573 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29574 if test "x$with_x" = xno; then
29575   # The user explicitly disabled X.
29576   have_x=disabled
29577 else
29578   case $x_includes,$x_libraries in #(
29579     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29580 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29581    { (exit 1); exit 1; }; };; #(
29582     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29583   echo $ECHO_N "(cached) $ECHO_C" >&6
29584 else
29585   # One or both of the vars are not set, and there is no cached value.
29586 ac_x_includes=no ac_x_libraries=no
29587 rm -f -r conftest.dir
29588 if mkdir conftest.dir; then
29589   cd conftest.dir
29590   cat >Imakefile <<'_ACEOF'
29591 incroot:
29592         @echo incroot='${INCROOT}'
29593 usrlibdir:
29594         @echo usrlibdir='${USRLIBDIR}'
29595 libdir:
29596         @echo libdir='${LIBDIR}'
29597 _ACEOF
29598   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29599     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29600     for ac_var in incroot usrlibdir libdir; do
29601       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29602     done
29603     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29604     for ac_extension in a so sl; do
29605       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29606          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29607         ac_im_usrlibdir=$ac_im_libdir; break
29608       fi
29609     done
29610     # Screen out bogus values from the imake configuration.  They are
29611     # bogus both because they are the default anyway, and because
29612     # using them would break gcc on systems where it needs fixed includes.
29613     case $ac_im_incroot in
29614         /usr/include) ac_x_includes= ;;
29615         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29616     esac
29617     case $ac_im_usrlibdir in
29618         /usr/lib | /lib) ;;
29619         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29620     esac
29621   fi
29622   cd ..
29623   rm -f -r conftest.dir
29624 fi
29625
29626 # Standard set of common directories for X headers.
29627 # Check X11 before X11Rn because it is often a symlink to the current release.
29628 ac_x_header_dirs='
29629 /usr/X11/include
29630 /usr/X11R6/include
29631 /usr/X11R5/include
29632 /usr/X11R4/include
29633
29634 /usr/include/X11
29635 /usr/include/X11R6
29636 /usr/include/X11R5
29637 /usr/include/X11R4
29638
29639 /usr/local/X11/include
29640 /usr/local/X11R6/include
29641 /usr/local/X11R5/include
29642 /usr/local/X11R4/include
29643
29644 /usr/local/include/X11
29645 /usr/local/include/X11R6
29646 /usr/local/include/X11R5
29647 /usr/local/include/X11R4
29648
29649 /usr/X386/include
29650 /usr/x386/include
29651 /usr/XFree86/include/X11
29652
29653 /usr/include
29654 /usr/local/include
29655 /usr/unsupported/include
29656 /usr/athena/include
29657 /usr/local/x11r5/include
29658 /usr/lpp/Xamples/include
29659
29660 /usr/openwin/include
29661 /usr/openwin/share/include'
29662
29663 if test "$ac_x_includes" = no; then
29664   # Guess where to find include files, by looking for Xlib.h.
29665   # First, try using that file with no special directory specified.
29666   cat >conftest.$ac_ext <<_ACEOF
29667 /* confdefs.h.  */
29668 _ACEOF
29669 cat confdefs.h >>conftest.$ac_ext
29670 cat >>conftest.$ac_ext <<_ACEOF
29671 /* end confdefs.h.  */
29672 #include <X11/Xlib.h>
29673 _ACEOF
29674 if { (ac_try="$ac_cpp conftest.$ac_ext"
29675 case "(($ac_try" in
29676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29677   *) ac_try_echo=$ac_try;;
29678 esac
29679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29680   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29681   ac_status=$?
29682   grep -v '^ *+' conftest.er1 >conftest.err
29683   rm -f conftest.er1
29684   cat conftest.err >&5
29685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686   (exit $ac_status); } >/dev/null && {
29687          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
29688          test ! -s conftest.err
29689        }; then
29690   # We can compile using X headers with no special include directory.
29691 ac_x_includes=
29692 else
29693   echo "$as_me: failed program was:" >&5
29694 sed 's/^/| /' conftest.$ac_ext >&5
29695
29696   for ac_dir in $ac_x_header_dirs; do
29697   if test -r "$ac_dir/X11/Xlib.h"; then
29698     ac_x_includes=$ac_dir
29699     break
29700   fi
29701 done
29702 fi
29703
29704 rm -f conftest.err conftest.$ac_ext
29705 fi # $ac_x_includes = no
29706
29707 if test "$ac_x_libraries" = no; then
29708   # Check for the libraries.
29709   # See if we find them without any special options.
29710   # Don't add to $LIBS permanently.
29711   ac_save_LIBS=$LIBS
29712   LIBS="-lX11 $LIBS"
29713   cat >conftest.$ac_ext <<_ACEOF
29714 /* confdefs.h.  */
29715 _ACEOF
29716 cat confdefs.h >>conftest.$ac_ext
29717 cat >>conftest.$ac_ext <<_ACEOF
29718 /* end confdefs.h.  */
29719 #include <X11/Xlib.h>
29720 int
29721 main ()
29722 {
29723 XrmInitialize ()
29724   ;
29725   return 0;
29726 }
29727 _ACEOF
29728 rm -f conftest.$ac_objext conftest$ac_exeext
29729 if { (ac_try="$ac_link"
29730 case "(($ac_try" in
29731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29732   *) ac_try_echo=$ac_try;;
29733 esac
29734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29735   (eval "$ac_link") 2>conftest.er1
29736   ac_status=$?
29737   grep -v '^ *+' conftest.er1 >conftest.err
29738   rm -f conftest.er1
29739   cat conftest.err >&5
29740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741   (exit $ac_status); } && {
29742          test -z "$ac_cxx_werror_flag" ||
29743          test ! -s conftest.err
29744        } && test -s conftest$ac_exeext &&
29745        $as_test_x conftest$ac_exeext; then
29746   LIBS=$ac_save_LIBS
29747 # We can link X programs with no special library path.
29748 ac_x_libraries=
29749 else
29750   echo "$as_me: failed program was:" >&5
29751 sed 's/^/| /' conftest.$ac_ext >&5
29752
29753         LIBS=$ac_save_LIBS
29754 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29755 do
29756   # Don't even attempt the hair of trying to link an X program!
29757   for ac_extension in a so sl; do
29758     if test -r "$ac_dir/libX11.$ac_extension"; then
29759       ac_x_libraries=$ac_dir
29760       break 2
29761     fi
29762   done
29763 done
29764 fi
29765
29766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29767       conftest$ac_exeext conftest.$ac_ext
29768 fi # $ac_x_libraries = no
29769
29770 case $ac_x_includes,$ac_x_libraries in #(
29771   no,* | *,no | *\'*)
29772     # Didn't find X, or a directory has "'" in its name.
29773     ac_cv_have_x="have_x=no";; #(
29774   *)
29775     # Record where we found X for the cache.
29776     ac_cv_have_x="have_x=yes\
29777         ac_x_includes='$ac_x_includes'\
29778         ac_x_libraries='$ac_x_libraries'"
29779 esac
29780 fi
29781 ;; #(
29782     *) have_x=yes;;
29783   esac
29784   eval "$ac_cv_have_x"
29785 fi # $with_x != no
29786
29787 if test "$have_x" != yes; then
29788   { echo "$as_me:$LINENO: result: $have_x" >&5
29789 echo "${ECHO_T}$have_x" >&6; }
29790   no_x=yes
29791 else
29792   # If each of the values was on the command line, it overrides each guess.
29793   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29794   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29795   # Update the cache value to reflect the command line values.
29796   ac_cv_have_x="have_x=yes\
29797         ac_x_includes='$x_includes'\
29798         ac_x_libraries='$x_libraries'"
29799   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29800 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29801 fi
29802
29803 if test "$no_x" = yes; then
29804   # Not all programs may use this symbol, but it does not hurt to define it.
29805
29806 cat >>confdefs.h <<\_ACEOF
29807 #define X_DISPLAY_MISSING 1
29808 _ACEOF
29809
29810   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29811 else
29812   if test -n "$x_includes"; then
29813     X_CFLAGS="$X_CFLAGS -I$x_includes"
29814   fi
29815
29816   # It would also be nice to do this for all -L options, not just this one.
29817   if test -n "$x_libraries"; then
29818     X_LIBS="$X_LIBS -L$x_libraries"
29819     # For Solaris; some versions of Sun CC require a space after -R and
29820     # others require no space.  Words are not sufficient . . . .
29821     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29822 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29823     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29824     ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
29825     ac_cxx_werror_flag=yes
29826     cat >conftest.$ac_ext <<_ACEOF
29827 /* confdefs.h.  */
29828 _ACEOF
29829 cat confdefs.h >>conftest.$ac_ext
29830 cat >>conftest.$ac_ext <<_ACEOF
29831 /* end confdefs.h.  */
29832
29833 int
29834 main ()
29835 {
29836
29837   ;
29838   return 0;
29839 }
29840 _ACEOF
29841 rm -f conftest.$ac_objext conftest$ac_exeext
29842 if { (ac_try="$ac_link"
29843 case "(($ac_try" in
29844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29845   *) ac_try_echo=$ac_try;;
29846 esac
29847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29848   (eval "$ac_link") 2>conftest.er1
29849   ac_status=$?
29850   grep -v '^ *+' conftest.er1 >conftest.err
29851   rm -f conftest.er1
29852   cat conftest.err >&5
29853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854   (exit $ac_status); } && {
29855          test -z "$ac_cxx_werror_flag" ||
29856          test ! -s conftest.err
29857        } && test -s conftest$ac_exeext &&
29858        $as_test_x conftest$ac_exeext; then
29859   { echo "$as_me:$LINENO: result: no" >&5
29860 echo "${ECHO_T}no" >&6; }
29861        X_LIBS="$X_LIBS -R$x_libraries"
29862 else
29863   echo "$as_me: failed program was:" >&5
29864 sed 's/^/| /' conftest.$ac_ext >&5
29865
29866         LIBS="$ac_xsave_LIBS -R $x_libraries"
29867        cat >conftest.$ac_ext <<_ACEOF
29868 /* confdefs.h.  */
29869 _ACEOF
29870 cat confdefs.h >>conftest.$ac_ext
29871 cat >>conftest.$ac_ext <<_ACEOF
29872 /* end confdefs.h.  */
29873
29874 int
29875 main ()
29876 {
29877
29878   ;
29879   return 0;
29880 }
29881 _ACEOF
29882 rm -f conftest.$ac_objext conftest$ac_exeext
29883 if { (ac_try="$ac_link"
29884 case "(($ac_try" in
29885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29886   *) ac_try_echo=$ac_try;;
29887 esac
29888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29889   (eval "$ac_link") 2>conftest.er1
29890   ac_status=$?
29891   grep -v '^ *+' conftest.er1 >conftest.err
29892   rm -f conftest.er1
29893   cat conftest.err >&5
29894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895   (exit $ac_status); } && {
29896          test -z "$ac_cxx_werror_flag" ||
29897          test ! -s conftest.err
29898        } && test -s conftest$ac_exeext &&
29899        $as_test_x conftest$ac_exeext; then
29900   { echo "$as_me:$LINENO: result: yes" >&5
29901 echo "${ECHO_T}yes" >&6; }
29902           X_LIBS="$X_LIBS -R $x_libraries"
29903 else
29904   echo "$as_me: failed program was:" >&5
29905 sed 's/^/| /' conftest.$ac_ext >&5
29906
29907         { echo "$as_me:$LINENO: result: neither works" >&5
29908 echo "${ECHO_T}neither works" >&6; }
29909 fi
29910
29911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29912       conftest$ac_exeext conftest.$ac_ext
29913 fi
29914
29915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29916       conftest$ac_exeext conftest.$ac_ext
29917     ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
29918     LIBS=$ac_xsave_LIBS
29919   fi
29920
29921   # Check for system-dependent libraries X programs must link with.
29922   # Do this before checking for the system-independent R6 libraries
29923   # (-lICE), since we may need -lsocket or whatever for X linking.
29924
29925   if test "$ISC" = yes; then
29926     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29927   else
29928     # Martyn Johnson says this is needed for Ultrix, if the X
29929     # libraries were built with DECnet support.  And Karl Berry says
29930     # the Alpha needs dnet_stub (dnet does not exist).
29931     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29932     cat >conftest.$ac_ext <<_ACEOF
29933 /* confdefs.h.  */
29934 _ACEOF
29935 cat confdefs.h >>conftest.$ac_ext
29936 cat >>conftest.$ac_ext <<_ACEOF
29937 /* end confdefs.h.  */
29938
29939 /* Override any GCC internal prototype to avoid an error.
29940    Use char because int might match the return type of a GCC
29941    builtin and then its argument prototype would still apply.  */
29942 #ifdef __cplusplus
29943 extern "C"
29944 #endif
29945 char XOpenDisplay ();
29946 int
29947 main ()
29948 {
29949 return XOpenDisplay ();
29950   ;
29951   return 0;
29952 }
29953 _ACEOF
29954 rm -f conftest.$ac_objext conftest$ac_exeext
29955 if { (ac_try="$ac_link"
29956 case "(($ac_try" in
29957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29958   *) ac_try_echo=$ac_try;;
29959 esac
29960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29961   (eval "$ac_link") 2>conftest.er1
29962   ac_status=$?
29963   grep -v '^ *+' conftest.er1 >conftest.err
29964   rm -f conftest.er1
29965   cat conftest.err >&5
29966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29967   (exit $ac_status); } && {
29968          test -z "$ac_cxx_werror_flag" ||
29969          test ! -s conftest.err
29970        } && test -s conftest$ac_exeext &&
29971        $as_test_x conftest$ac_exeext; then
29972   :
29973 else
29974   echo "$as_me: failed program was:" >&5
29975 sed 's/^/| /' conftest.$ac_ext >&5
29976
29977         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29978 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29979 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29980   echo $ECHO_N "(cached) $ECHO_C" >&6
29981 else
29982   ac_check_lib_save_LIBS=$LIBS
29983 LIBS="-ldnet  $LIBS"
29984 cat >conftest.$ac_ext <<_ACEOF
29985 /* confdefs.h.  */
29986 _ACEOF
29987 cat confdefs.h >>conftest.$ac_ext
29988 cat >>conftest.$ac_ext <<_ACEOF
29989 /* end confdefs.h.  */
29990
29991 /* Override any GCC internal prototype to avoid an error.
29992    Use char because int might match the return type of a GCC
29993    builtin and then its argument prototype would still apply.  */
29994 #ifdef __cplusplus
29995 extern "C"
29996 #endif
29997 char dnet_ntoa ();
29998 int
29999 main ()
30000 {
30001 return dnet_ntoa ();
30002   ;
30003   return 0;
30004 }
30005 _ACEOF
30006 rm -f conftest.$ac_objext conftest$ac_exeext
30007 if { (ac_try="$ac_link"
30008 case "(($ac_try" in
30009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30010   *) ac_try_echo=$ac_try;;
30011 esac
30012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30013   (eval "$ac_link") 2>conftest.er1
30014   ac_status=$?
30015   grep -v '^ *+' conftest.er1 >conftest.err
30016   rm -f conftest.er1
30017   cat conftest.err >&5
30018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30019   (exit $ac_status); } && {
30020          test -z "$ac_cxx_werror_flag" ||
30021          test ! -s conftest.err
30022        } && test -s conftest$ac_exeext &&
30023        $as_test_x conftest$ac_exeext; then
30024   ac_cv_lib_dnet_dnet_ntoa=yes
30025 else
30026   echo "$as_me: failed program was:" >&5
30027 sed 's/^/| /' conftest.$ac_ext >&5
30028
30029         ac_cv_lib_dnet_dnet_ntoa=no
30030 fi
30031
30032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30033       conftest$ac_exeext conftest.$ac_ext
30034 LIBS=$ac_check_lib_save_LIBS
30035 fi
30036 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30037 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30038 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30039   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30040 fi
30041
30042     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30043       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30044 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30045 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30046   echo $ECHO_N "(cached) $ECHO_C" >&6
30047 else
30048   ac_check_lib_save_LIBS=$LIBS
30049 LIBS="-ldnet_stub  $LIBS"
30050 cat >conftest.$ac_ext <<_ACEOF
30051 /* confdefs.h.  */
30052 _ACEOF
30053 cat confdefs.h >>conftest.$ac_ext
30054 cat >>conftest.$ac_ext <<_ACEOF
30055 /* end confdefs.h.  */
30056
30057 /* Override any GCC internal prototype to avoid an error.
30058    Use char because int might match the return type of a GCC
30059    builtin and then its argument prototype would still apply.  */
30060 #ifdef __cplusplus
30061 extern "C"
30062 #endif
30063 char dnet_ntoa ();
30064 int
30065 main ()
30066 {
30067 return dnet_ntoa ();
30068   ;
30069   return 0;
30070 }
30071 _ACEOF
30072 rm -f conftest.$ac_objext conftest$ac_exeext
30073 if { (ac_try="$ac_link"
30074 case "(($ac_try" in
30075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30076   *) ac_try_echo=$ac_try;;
30077 esac
30078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30079   (eval "$ac_link") 2>conftest.er1
30080   ac_status=$?
30081   grep -v '^ *+' conftest.er1 >conftest.err
30082   rm -f conftest.er1
30083   cat conftest.err >&5
30084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30085   (exit $ac_status); } && {
30086          test -z "$ac_cxx_werror_flag" ||
30087          test ! -s conftest.err
30088        } && test -s conftest$ac_exeext &&
30089        $as_test_x conftest$ac_exeext; then
30090   ac_cv_lib_dnet_stub_dnet_ntoa=yes
30091 else
30092   echo "$as_me: failed program was:" >&5
30093 sed 's/^/| /' conftest.$ac_ext >&5
30094
30095         ac_cv_lib_dnet_stub_dnet_ntoa=no
30096 fi
30097
30098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30099       conftest$ac_exeext conftest.$ac_ext
30100 LIBS=$ac_check_lib_save_LIBS
30101 fi
30102 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30103 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30104 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30105   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30106 fi
30107
30108     fi
30109 fi
30110
30111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30112       conftest$ac_exeext conftest.$ac_ext
30113     LIBS="$ac_xsave_LIBS"
30114
30115     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30116     # to get the SysV transport functions.
30117     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30118     # needs -lnsl.
30119     # The nsl library prevents programs from opening the X display
30120     # on Irix 5.2, according to T.E. Dickey.
30121     # The functions gethostbyname, getservbyname, and inet_addr are
30122     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30123     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30124 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30125 if test "${ac_cv_func_gethostbyname+set}" = set; then
30126   echo $ECHO_N "(cached) $ECHO_C" >&6
30127 else
30128   cat >conftest.$ac_ext <<_ACEOF
30129 /* confdefs.h.  */
30130 _ACEOF
30131 cat confdefs.h >>conftest.$ac_ext
30132 cat >>conftest.$ac_ext <<_ACEOF
30133 /* end confdefs.h.  */
30134 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30136 #define gethostbyname innocuous_gethostbyname
30137
30138 /* System header to define __stub macros and hopefully few prototypes,
30139     which can conflict with char gethostbyname (); below.
30140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30141     <limits.h> exists even on freestanding compilers.  */
30142
30143 #ifdef __STDC__
30144 # include <limits.h>
30145 #else
30146 # include <assert.h>
30147 #endif
30148
30149 #undef gethostbyname
30150
30151 /* Override any GCC internal prototype to avoid an error.
30152    Use char because int might match the return type of a GCC
30153    builtin and then its argument prototype would still apply.  */
30154 #ifdef __cplusplus
30155 extern "C"
30156 #endif
30157 char gethostbyname ();
30158 /* The GNU C library defines this for functions which it implements
30159     to always fail with ENOSYS.  Some functions are actually named
30160     something starting with __ and the normal name is an alias.  */
30161 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30162 choke me
30163 #endif
30164
30165 int
30166 main ()
30167 {
30168 return gethostbyname ();
30169   ;
30170   return 0;
30171 }
30172 _ACEOF
30173 rm -f conftest.$ac_objext conftest$ac_exeext
30174 if { (ac_try="$ac_link"
30175 case "(($ac_try" in
30176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30177   *) ac_try_echo=$ac_try;;
30178 esac
30179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30180   (eval "$ac_link") 2>conftest.er1
30181   ac_status=$?
30182   grep -v '^ *+' conftest.er1 >conftest.err
30183   rm -f conftest.er1
30184   cat conftest.err >&5
30185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30186   (exit $ac_status); } && {
30187          test -z "$ac_cxx_werror_flag" ||
30188          test ! -s conftest.err
30189        } && test -s conftest$ac_exeext &&
30190        $as_test_x conftest$ac_exeext; then
30191   ac_cv_func_gethostbyname=yes
30192 else
30193   echo "$as_me: failed program was:" >&5
30194 sed 's/^/| /' conftest.$ac_ext >&5
30195
30196         ac_cv_func_gethostbyname=no
30197 fi
30198
30199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30200       conftest$ac_exeext conftest.$ac_ext
30201 fi
30202 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30203 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30204
30205     if test $ac_cv_func_gethostbyname = no; then
30206       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30207 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30208 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30209   echo $ECHO_N "(cached) $ECHO_C" >&6
30210 else
30211   ac_check_lib_save_LIBS=$LIBS
30212 LIBS="-lnsl  $LIBS"
30213 cat >conftest.$ac_ext <<_ACEOF
30214 /* confdefs.h.  */
30215 _ACEOF
30216 cat confdefs.h >>conftest.$ac_ext
30217 cat >>conftest.$ac_ext <<_ACEOF
30218 /* end confdefs.h.  */
30219
30220 /* Override any GCC internal prototype to avoid an error.
30221    Use char because int might match the return type of a GCC
30222    builtin and then its argument prototype would still apply.  */
30223 #ifdef __cplusplus
30224 extern "C"
30225 #endif
30226 char gethostbyname ();
30227 int
30228 main ()
30229 {
30230 return gethostbyname ();
30231   ;
30232   return 0;
30233 }
30234 _ACEOF
30235 rm -f conftest.$ac_objext conftest$ac_exeext
30236 if { (ac_try="$ac_link"
30237 case "(($ac_try" in
30238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30239   *) ac_try_echo=$ac_try;;
30240 esac
30241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30242   (eval "$ac_link") 2>conftest.er1
30243   ac_status=$?
30244   grep -v '^ *+' conftest.er1 >conftest.err
30245   rm -f conftest.er1
30246   cat conftest.err >&5
30247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30248   (exit $ac_status); } && {
30249          test -z "$ac_cxx_werror_flag" ||
30250          test ! -s conftest.err
30251        } && test -s conftest$ac_exeext &&
30252        $as_test_x conftest$ac_exeext; then
30253   ac_cv_lib_nsl_gethostbyname=yes
30254 else
30255   echo "$as_me: failed program was:" >&5
30256 sed 's/^/| /' conftest.$ac_ext >&5
30257
30258         ac_cv_lib_nsl_gethostbyname=no
30259 fi
30260
30261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30262       conftest$ac_exeext conftest.$ac_ext
30263 LIBS=$ac_check_lib_save_LIBS
30264 fi
30265 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30266 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30267 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30268   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30269 fi
30270
30271       if test $ac_cv_lib_nsl_gethostbyname = no; then
30272         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30273 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30274 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30275   echo $ECHO_N "(cached) $ECHO_C" >&6
30276 else
30277   ac_check_lib_save_LIBS=$LIBS
30278 LIBS="-lbsd  $LIBS"
30279 cat >conftest.$ac_ext <<_ACEOF
30280 /* confdefs.h.  */
30281 _ACEOF
30282 cat confdefs.h >>conftest.$ac_ext
30283 cat >>conftest.$ac_ext <<_ACEOF
30284 /* end confdefs.h.  */
30285
30286 /* Override any GCC internal prototype to avoid an error.
30287    Use char because int might match the return type of a GCC
30288    builtin and then its argument prototype would still apply.  */
30289 #ifdef __cplusplus
30290 extern "C"
30291 #endif
30292 char gethostbyname ();
30293 int
30294 main ()
30295 {
30296 return gethostbyname ();
30297   ;
30298   return 0;
30299 }
30300 _ACEOF
30301 rm -f conftest.$ac_objext conftest$ac_exeext
30302 if { (ac_try="$ac_link"
30303 case "(($ac_try" in
30304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30305   *) ac_try_echo=$ac_try;;
30306 esac
30307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30308   (eval "$ac_link") 2>conftest.er1
30309   ac_status=$?
30310   grep -v '^ *+' conftest.er1 >conftest.err
30311   rm -f conftest.er1
30312   cat conftest.err >&5
30313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314   (exit $ac_status); } && {
30315          test -z "$ac_cxx_werror_flag" ||
30316          test ! -s conftest.err
30317        } && test -s conftest$ac_exeext &&
30318        $as_test_x conftest$ac_exeext; then
30319   ac_cv_lib_bsd_gethostbyname=yes
30320 else
30321   echo "$as_me: failed program was:" >&5
30322 sed 's/^/| /' conftest.$ac_ext >&5
30323
30324         ac_cv_lib_bsd_gethostbyname=no
30325 fi
30326
30327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30328       conftest$ac_exeext conftest.$ac_ext
30329 LIBS=$ac_check_lib_save_LIBS
30330 fi
30331 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30332 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30333 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30334   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30335 fi
30336
30337       fi
30338     fi
30339
30340     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30341     # socket/setsockopt and other routines are undefined under SCO ODT
30342     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30343     # on later versions), says Simon Leinen: it contains gethostby*
30344     # variants that don't use the name server (or something).  -lsocket
30345     # must be given before -lnsl if both are needed.  We assume that
30346     # if connect needs -lnsl, so does gethostbyname.
30347     { echo "$as_me:$LINENO: checking for connect" >&5
30348 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30349 if test "${ac_cv_func_connect+set}" = set; then
30350   echo $ECHO_N "(cached) $ECHO_C" >&6
30351 else
30352   cat >conftest.$ac_ext <<_ACEOF
30353 /* confdefs.h.  */
30354 _ACEOF
30355 cat confdefs.h >>conftest.$ac_ext
30356 cat >>conftest.$ac_ext <<_ACEOF
30357 /* end confdefs.h.  */
30358 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30359    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30360 #define connect innocuous_connect
30361
30362 /* System header to define __stub macros and hopefully few prototypes,
30363     which can conflict with char connect (); below.
30364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30365     <limits.h> exists even on freestanding compilers.  */
30366
30367 #ifdef __STDC__
30368 # include <limits.h>
30369 #else
30370 # include <assert.h>
30371 #endif
30372
30373 #undef connect
30374
30375 /* Override any GCC internal prototype to avoid an error.
30376    Use char because int might match the return type of a GCC
30377    builtin and then its argument prototype would still apply.  */
30378 #ifdef __cplusplus
30379 extern "C"
30380 #endif
30381 char connect ();
30382 /* The GNU C library defines this for functions which it implements
30383     to always fail with ENOSYS.  Some functions are actually named
30384     something starting with __ and the normal name is an alias.  */
30385 #if defined __stub_connect || defined __stub___connect
30386 choke me
30387 #endif
30388
30389 int
30390 main ()
30391 {
30392 return connect ();
30393   ;
30394   return 0;
30395 }
30396 _ACEOF
30397 rm -f conftest.$ac_objext conftest$ac_exeext
30398 if { (ac_try="$ac_link"
30399 case "(($ac_try" in
30400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30401   *) ac_try_echo=$ac_try;;
30402 esac
30403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30404   (eval "$ac_link") 2>conftest.er1
30405   ac_status=$?
30406   grep -v '^ *+' conftest.er1 >conftest.err
30407   rm -f conftest.er1
30408   cat conftest.err >&5
30409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30410   (exit $ac_status); } && {
30411          test -z "$ac_cxx_werror_flag" ||
30412          test ! -s conftest.err
30413        } && test -s conftest$ac_exeext &&
30414        $as_test_x conftest$ac_exeext; then
30415   ac_cv_func_connect=yes
30416 else
30417   echo "$as_me: failed program was:" >&5
30418 sed 's/^/| /' conftest.$ac_ext >&5
30419
30420         ac_cv_func_connect=no
30421 fi
30422
30423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30424       conftest$ac_exeext conftest.$ac_ext
30425 fi
30426 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30427 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30428
30429     if test $ac_cv_func_connect = no; then
30430       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30431 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30432 if test "${ac_cv_lib_socket_connect+set}" = set; then
30433   echo $ECHO_N "(cached) $ECHO_C" >&6
30434 else
30435   ac_check_lib_save_LIBS=$LIBS
30436 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30437 cat >conftest.$ac_ext <<_ACEOF
30438 /* confdefs.h.  */
30439 _ACEOF
30440 cat confdefs.h >>conftest.$ac_ext
30441 cat >>conftest.$ac_ext <<_ACEOF
30442 /* end confdefs.h.  */
30443
30444 /* Override any GCC internal prototype to avoid an error.
30445    Use char because int might match the return type of a GCC
30446    builtin and then its argument prototype would still apply.  */
30447 #ifdef __cplusplus
30448 extern "C"
30449 #endif
30450 char connect ();
30451 int
30452 main ()
30453 {
30454 return connect ();
30455   ;
30456   return 0;
30457 }
30458 _ACEOF
30459 rm -f conftest.$ac_objext conftest$ac_exeext
30460 if { (ac_try="$ac_link"
30461 case "(($ac_try" in
30462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30463   *) ac_try_echo=$ac_try;;
30464 esac
30465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30466   (eval "$ac_link") 2>conftest.er1
30467   ac_status=$?
30468   grep -v '^ *+' conftest.er1 >conftest.err
30469   rm -f conftest.er1
30470   cat conftest.err >&5
30471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30472   (exit $ac_status); } && {
30473          test -z "$ac_cxx_werror_flag" ||
30474          test ! -s conftest.err
30475        } && test -s conftest$ac_exeext &&
30476        $as_test_x conftest$ac_exeext; then
30477   ac_cv_lib_socket_connect=yes
30478 else
30479   echo "$as_me: failed program was:" >&5
30480 sed 's/^/| /' conftest.$ac_ext >&5
30481
30482         ac_cv_lib_socket_connect=no
30483 fi
30484
30485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30486       conftest$ac_exeext conftest.$ac_ext
30487 LIBS=$ac_check_lib_save_LIBS
30488 fi
30489 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30490 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30491 if test $ac_cv_lib_socket_connect = yes; then
30492   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30493 fi
30494
30495     fi
30496
30497     # Guillermo Gomez says -lposix is necessary on A/UX.
30498     { echo "$as_me:$LINENO: checking for remove" >&5
30499 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30500 if test "${ac_cv_func_remove+set}" = set; then
30501   echo $ECHO_N "(cached) $ECHO_C" >&6
30502 else
30503   cat >conftest.$ac_ext <<_ACEOF
30504 /* confdefs.h.  */
30505 _ACEOF
30506 cat confdefs.h >>conftest.$ac_ext
30507 cat >>conftest.$ac_ext <<_ACEOF
30508 /* end confdefs.h.  */
30509 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30510    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30511 #define remove innocuous_remove
30512
30513 /* System header to define __stub macros and hopefully few prototypes,
30514     which can conflict with char remove (); below.
30515     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30516     <limits.h> exists even on freestanding compilers.  */
30517
30518 #ifdef __STDC__
30519 # include <limits.h>
30520 #else
30521 # include <assert.h>
30522 #endif
30523
30524 #undef remove
30525
30526 /* Override any GCC internal prototype to avoid an error.
30527    Use char because int might match the return type of a GCC
30528    builtin and then its argument prototype would still apply.  */
30529 #ifdef __cplusplus
30530 extern "C"
30531 #endif
30532 char remove ();
30533 /* The GNU C library defines this for functions which it implements
30534     to always fail with ENOSYS.  Some functions are actually named
30535     something starting with __ and the normal name is an alias.  */
30536 #if defined __stub_remove || defined __stub___remove
30537 choke me
30538 #endif
30539
30540 int
30541 main ()
30542 {
30543 return remove ();
30544   ;
30545   return 0;
30546 }
30547 _ACEOF
30548 rm -f conftest.$ac_objext conftest$ac_exeext
30549 if { (ac_try="$ac_link"
30550 case "(($ac_try" in
30551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30552   *) ac_try_echo=$ac_try;;
30553 esac
30554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30555   (eval "$ac_link") 2>conftest.er1
30556   ac_status=$?
30557   grep -v '^ *+' conftest.er1 >conftest.err
30558   rm -f conftest.er1
30559   cat conftest.err >&5
30560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30561   (exit $ac_status); } && {
30562          test -z "$ac_cxx_werror_flag" ||
30563          test ! -s conftest.err
30564        } && test -s conftest$ac_exeext &&
30565        $as_test_x conftest$ac_exeext; then
30566   ac_cv_func_remove=yes
30567 else
30568   echo "$as_me: failed program was:" >&5
30569 sed 's/^/| /' conftest.$ac_ext >&5
30570
30571         ac_cv_func_remove=no
30572 fi
30573
30574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30575       conftest$ac_exeext conftest.$ac_ext
30576 fi
30577 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30578 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30579
30580     if test $ac_cv_func_remove = no; then
30581       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30582 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30583 if test "${ac_cv_lib_posix_remove+set}" = set; then
30584   echo $ECHO_N "(cached) $ECHO_C" >&6
30585 else
30586   ac_check_lib_save_LIBS=$LIBS
30587 LIBS="-lposix  $LIBS"
30588 cat >conftest.$ac_ext <<_ACEOF
30589 /* confdefs.h.  */
30590 _ACEOF
30591 cat confdefs.h >>conftest.$ac_ext
30592 cat >>conftest.$ac_ext <<_ACEOF
30593 /* end confdefs.h.  */
30594
30595 /* Override any GCC internal prototype to avoid an error.
30596    Use char because int might match the return type of a GCC
30597    builtin and then its argument prototype would still apply.  */
30598 #ifdef __cplusplus
30599 extern "C"
30600 #endif
30601 char remove ();
30602 int
30603 main ()
30604 {
30605 return remove ();
30606   ;
30607   return 0;
30608 }
30609 _ACEOF
30610 rm -f conftest.$ac_objext conftest$ac_exeext
30611 if { (ac_try="$ac_link"
30612 case "(($ac_try" in
30613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30614   *) ac_try_echo=$ac_try;;
30615 esac
30616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30617   (eval "$ac_link") 2>conftest.er1
30618   ac_status=$?
30619   grep -v '^ *+' conftest.er1 >conftest.err
30620   rm -f conftest.er1
30621   cat conftest.err >&5
30622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30623   (exit $ac_status); } && {
30624          test -z "$ac_cxx_werror_flag" ||
30625          test ! -s conftest.err
30626        } && test -s conftest$ac_exeext &&
30627        $as_test_x conftest$ac_exeext; then
30628   ac_cv_lib_posix_remove=yes
30629 else
30630   echo "$as_me: failed program was:" >&5
30631 sed 's/^/| /' conftest.$ac_ext >&5
30632
30633         ac_cv_lib_posix_remove=no
30634 fi
30635
30636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30637       conftest$ac_exeext conftest.$ac_ext
30638 LIBS=$ac_check_lib_save_LIBS
30639 fi
30640 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30641 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30642 if test $ac_cv_lib_posix_remove = yes; then
30643   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30644 fi
30645
30646     fi
30647
30648     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30649     { echo "$as_me:$LINENO: checking for shmat" >&5
30650 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30651 if test "${ac_cv_func_shmat+set}" = set; then
30652   echo $ECHO_N "(cached) $ECHO_C" >&6
30653 else
30654   cat >conftest.$ac_ext <<_ACEOF
30655 /* confdefs.h.  */
30656 _ACEOF
30657 cat confdefs.h >>conftest.$ac_ext
30658 cat >>conftest.$ac_ext <<_ACEOF
30659 /* end confdefs.h.  */
30660 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30661    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30662 #define shmat innocuous_shmat
30663
30664 /* System header to define __stub macros and hopefully few prototypes,
30665     which can conflict with char shmat (); below.
30666     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30667     <limits.h> exists even on freestanding compilers.  */
30668
30669 #ifdef __STDC__
30670 # include <limits.h>
30671 #else
30672 # include <assert.h>
30673 #endif
30674
30675 #undef shmat
30676
30677 /* Override any GCC internal prototype to avoid an error.
30678    Use char because int might match the return type of a GCC
30679    builtin and then its argument prototype would still apply.  */
30680 #ifdef __cplusplus
30681 extern "C"
30682 #endif
30683 char shmat ();
30684 /* The GNU C library defines this for functions which it implements
30685     to always fail with ENOSYS.  Some functions are actually named
30686     something starting with __ and the normal name is an alias.  */
30687 #if defined __stub_shmat || defined __stub___shmat
30688 choke me
30689 #endif
30690
30691 int
30692 main ()
30693 {
30694 return shmat ();
30695   ;
30696   return 0;
30697 }
30698 _ACEOF
30699 rm -f conftest.$ac_objext conftest$ac_exeext
30700 if { (ac_try="$ac_link"
30701 case "(($ac_try" in
30702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30703   *) ac_try_echo=$ac_try;;
30704 esac
30705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30706   (eval "$ac_link") 2>conftest.er1
30707   ac_status=$?
30708   grep -v '^ *+' conftest.er1 >conftest.err
30709   rm -f conftest.er1
30710   cat conftest.err >&5
30711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30712   (exit $ac_status); } && {
30713          test -z "$ac_cxx_werror_flag" ||
30714          test ! -s conftest.err
30715        } && test -s conftest$ac_exeext &&
30716        $as_test_x conftest$ac_exeext; then
30717   ac_cv_func_shmat=yes
30718 else
30719   echo "$as_me: failed program was:" >&5
30720 sed 's/^/| /' conftest.$ac_ext >&5
30721
30722         ac_cv_func_shmat=no
30723 fi
30724
30725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30726       conftest$ac_exeext conftest.$ac_ext
30727 fi
30728 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30729 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30730
30731     if test $ac_cv_func_shmat = no; then
30732       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30733 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30734 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30735   echo $ECHO_N "(cached) $ECHO_C" >&6
30736 else
30737   ac_check_lib_save_LIBS=$LIBS
30738 LIBS="-lipc  $LIBS"
30739 cat >conftest.$ac_ext <<_ACEOF
30740 /* confdefs.h.  */
30741 _ACEOF
30742 cat confdefs.h >>conftest.$ac_ext
30743 cat >>conftest.$ac_ext <<_ACEOF
30744 /* end confdefs.h.  */
30745
30746 /* Override any GCC internal prototype to avoid an error.
30747    Use char because int might match the return type of a GCC
30748    builtin and then its argument prototype would still apply.  */
30749 #ifdef __cplusplus
30750 extern "C"
30751 #endif
30752 char shmat ();
30753 int
30754 main ()
30755 {
30756 return shmat ();
30757   ;
30758   return 0;
30759 }
30760 _ACEOF
30761 rm -f conftest.$ac_objext conftest$ac_exeext
30762 if { (ac_try="$ac_link"
30763 case "(($ac_try" in
30764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30765   *) ac_try_echo=$ac_try;;
30766 esac
30767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30768   (eval "$ac_link") 2>conftest.er1
30769   ac_status=$?
30770   grep -v '^ *+' conftest.er1 >conftest.err
30771   rm -f conftest.er1
30772   cat conftest.err >&5
30773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30774   (exit $ac_status); } && {
30775          test -z "$ac_cxx_werror_flag" ||
30776          test ! -s conftest.err
30777        } && test -s conftest$ac_exeext &&
30778        $as_test_x conftest$ac_exeext; then
30779   ac_cv_lib_ipc_shmat=yes
30780 else
30781   echo "$as_me: failed program was:" >&5
30782 sed 's/^/| /' conftest.$ac_ext >&5
30783
30784         ac_cv_lib_ipc_shmat=no
30785 fi
30786
30787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30788       conftest$ac_exeext conftest.$ac_ext
30789 LIBS=$ac_check_lib_save_LIBS
30790 fi
30791 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30792 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30793 if test $ac_cv_lib_ipc_shmat = yes; then
30794   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30795 fi
30796
30797     fi
30798   fi
30799
30800   # Check for libraries that X11R6 Xt/Xaw programs need.
30801   ac_save_LDFLAGS=$LDFLAGS
30802   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30803   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30804   # check for ICE first), but we must link in the order -lSM -lICE or
30805   # we get undefined symbols.  So assume we have SM if we have ICE.
30806   # These have to be linked with before -lX11, unlike the other
30807   # libraries we check for below, so use a different variable.
30808   # John Interrante, Karl Berry
30809   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30810 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30811 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30812   echo $ECHO_N "(cached) $ECHO_C" >&6
30813 else
30814   ac_check_lib_save_LIBS=$LIBS
30815 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30816 cat >conftest.$ac_ext <<_ACEOF
30817 /* confdefs.h.  */
30818 _ACEOF
30819 cat confdefs.h >>conftest.$ac_ext
30820 cat >>conftest.$ac_ext <<_ACEOF
30821 /* end confdefs.h.  */
30822
30823 /* Override any GCC internal prototype to avoid an error.
30824    Use char because int might match the return type of a GCC
30825    builtin and then its argument prototype would still apply.  */
30826 #ifdef __cplusplus
30827 extern "C"
30828 #endif
30829 char IceConnectionNumber ();
30830 int
30831 main ()
30832 {
30833 return IceConnectionNumber ();
30834   ;
30835   return 0;
30836 }
30837 _ACEOF
30838 rm -f conftest.$ac_objext conftest$ac_exeext
30839 if { (ac_try="$ac_link"
30840 case "(($ac_try" in
30841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30842   *) ac_try_echo=$ac_try;;
30843 esac
30844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30845   (eval "$ac_link") 2>conftest.er1
30846   ac_status=$?
30847   grep -v '^ *+' conftest.er1 >conftest.err
30848   rm -f conftest.er1
30849   cat conftest.err >&5
30850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30851   (exit $ac_status); } && {
30852          test -z "$ac_cxx_werror_flag" ||
30853          test ! -s conftest.err
30854        } && test -s conftest$ac_exeext &&
30855        $as_test_x conftest$ac_exeext; then
30856   ac_cv_lib_ICE_IceConnectionNumber=yes
30857 else
30858   echo "$as_me: failed program was:" >&5
30859 sed 's/^/| /' conftest.$ac_ext >&5
30860
30861         ac_cv_lib_ICE_IceConnectionNumber=no
30862 fi
30863
30864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30865       conftest$ac_exeext conftest.$ac_ext
30866 LIBS=$ac_check_lib_save_LIBS
30867 fi
30868 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30869 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30870 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30871   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30872 fi
30873
30874   LDFLAGS=$ac_save_LDFLAGS
30875
30876 fi
30877
30878
30879
30880
30881
30882
30883
30884
30885
30886
30887
30888
30889
30890
30891
30892
30893
30894
30895
30896
30897
30898
30899
30900
30901
30902
30903
30904
30905
30906
30907
30908 for ac_header in \
30909    assert.h \
30910    fcntl.h \
30911    grp.h \
30912    pwd.h \
30913    libc.h \
30914    limits.h \
30915    stdarg.h \
30916    stdlib.h \
30917    stdint.h \
30918    string.h \
30919    strings.h \
30920    termios.h \
30921    termcap.h \
30922    term.h \
30923    unistd.h \
30924    sys/bitypes.h \
30925    sys/byteorder.h \
30926    sys/ioctl.h \
30927    sys/select.h \
30928    sys/socket.h \
30929    sys/sockio.h \
30930    sys/stat.h \
30931    sys/time.h \
30932    sys/types.h \
30933    arpa/nameser.h \
30934    mtio.h \
30935    sys/mtio.h \
30936    sys/tape.h \
30937    regex.h \
30938
30939 do
30940 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30942   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30945   echo $ECHO_N "(cached) $ECHO_C" >&6
30946 fi
30947 ac_res=`eval echo '${'$as_ac_Header'}'`
30948                { echo "$as_me:$LINENO: result: $ac_res" >&5
30949 echo "${ECHO_T}$ac_res" >&6; }
30950 else
30951   # Is the header compilable?
30952 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30953 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30954 cat >conftest.$ac_ext <<_ACEOF
30955 /* confdefs.h.  */
30956 _ACEOF
30957 cat confdefs.h >>conftest.$ac_ext
30958 cat >>conftest.$ac_ext <<_ACEOF
30959 /* end confdefs.h.  */
30960 $ac_includes_default
30961 #include <$ac_header>
30962 _ACEOF
30963 rm -f conftest.$ac_objext
30964 if { (ac_try="$ac_compile"
30965 case "(($ac_try" in
30966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30967   *) ac_try_echo=$ac_try;;
30968 esac
30969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30970   (eval "$ac_compile") 2>conftest.er1
30971   ac_status=$?
30972   grep -v '^ *+' conftest.er1 >conftest.err
30973   rm -f conftest.er1
30974   cat conftest.err >&5
30975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30976   (exit $ac_status); } && {
30977          test -z "$ac_cxx_werror_flag" ||
30978          test ! -s conftest.err
30979        } && test -s conftest.$ac_objext; then
30980   ac_header_compiler=yes
30981 else
30982   echo "$as_me: failed program was:" >&5
30983 sed 's/^/| /' conftest.$ac_ext >&5
30984
30985         ac_header_compiler=no
30986 fi
30987
30988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30990 echo "${ECHO_T}$ac_header_compiler" >&6; }
30991
30992 # Is the header present?
30993 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30995 cat >conftest.$ac_ext <<_ACEOF
30996 /* confdefs.h.  */
30997 _ACEOF
30998 cat confdefs.h >>conftest.$ac_ext
30999 cat >>conftest.$ac_ext <<_ACEOF
31000 /* end confdefs.h.  */
31001 #include <$ac_header>
31002 _ACEOF
31003 if { (ac_try="$ac_cpp conftest.$ac_ext"
31004 case "(($ac_try" in
31005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31006   *) ac_try_echo=$ac_try;;
31007 esac
31008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31009   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31010   ac_status=$?
31011   grep -v '^ *+' conftest.er1 >conftest.err
31012   rm -f conftest.er1
31013   cat conftest.err >&5
31014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31015   (exit $ac_status); } >/dev/null && {
31016          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
31017          test ! -s conftest.err
31018        }; then
31019   ac_header_preproc=yes
31020 else
31021   echo "$as_me: failed program was:" >&5
31022 sed 's/^/| /' conftest.$ac_ext >&5
31023
31024   ac_header_preproc=no
31025 fi
31026
31027 rm -f conftest.err conftest.$ac_ext
31028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31029 echo "${ECHO_T}$ac_header_preproc" >&6; }
31030
31031 # So?  What about this header?
31032 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31033   yes:no: )
31034     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31036     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31038     ac_header_preproc=yes
31039     ;;
31040   no:yes:* )
31041     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31043     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31044 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31045     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31046 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31047     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31048 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31049     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31051     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31052 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31053
31054     ;;
31055 esac
31056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31059   echo $ECHO_N "(cached) $ECHO_C" >&6
31060 else
31061   eval "$as_ac_Header=\$ac_header_preproc"
31062 fi
31063 ac_res=`eval echo '${'$as_ac_Header'}'`
31064                { echo "$as_me:$LINENO: result: $ac_res" >&5
31065 echo "${ECHO_T}$ac_res" >&6; }
31066
31067 fi
31068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31069   cat >>confdefs.h <<_ACEOF
31070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31071 _ACEOF
31072
31073 fi
31074
31075 done
31076
31077 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31078 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
31079 if test "${ac_cv_header_stdc+set}" = set; then
31080   echo $ECHO_N "(cached) $ECHO_C" >&6
31081 else
31082   cat >conftest.$ac_ext <<_ACEOF
31083 /* confdefs.h.  */
31084 _ACEOF
31085 cat confdefs.h >>conftest.$ac_ext
31086 cat >>conftest.$ac_ext <<_ACEOF
31087 /* end confdefs.h.  */
31088 #include <stdlib.h>
31089 #include <stdarg.h>
31090 #include <string.h>
31091 #include <float.h>
31092
31093 int
31094 main ()
31095 {
31096
31097   ;
31098   return 0;
31099 }
31100 _ACEOF
31101 rm -f conftest.$ac_objext
31102 if { (ac_try="$ac_compile"
31103 case "(($ac_try" in
31104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31105   *) ac_try_echo=$ac_try;;
31106 esac
31107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31108   (eval "$ac_compile") 2>conftest.er1
31109   ac_status=$?
31110   grep -v '^ *+' conftest.er1 >conftest.err
31111   rm -f conftest.er1
31112   cat conftest.err >&5
31113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31114   (exit $ac_status); } && {
31115          test -z "$ac_cxx_werror_flag" ||
31116          test ! -s conftest.err
31117        } && test -s conftest.$ac_objext; then
31118   ac_cv_header_stdc=yes
31119 else
31120   echo "$as_me: failed program was:" >&5
31121 sed 's/^/| /' conftest.$ac_ext >&5
31122
31123         ac_cv_header_stdc=no
31124 fi
31125
31126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31127
31128 if test $ac_cv_header_stdc = yes; then
31129   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
31130   cat >conftest.$ac_ext <<_ACEOF
31131 /* confdefs.h.  */
31132 _ACEOF
31133 cat confdefs.h >>conftest.$ac_ext
31134 cat >>conftest.$ac_ext <<_ACEOF
31135 /* end confdefs.h.  */
31136 #include <string.h>
31137
31138 _ACEOF
31139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31140   $EGREP "memchr" >/dev/null 2>&1; then
31141   :
31142 else
31143   ac_cv_header_stdc=no
31144 fi
31145 rm -f conftest*
31146
31147 fi
31148
31149 if test $ac_cv_header_stdc = yes; then
31150   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
31151   cat >conftest.$ac_ext <<_ACEOF
31152 /* confdefs.h.  */
31153 _ACEOF
31154 cat confdefs.h >>conftest.$ac_ext
31155 cat >>conftest.$ac_ext <<_ACEOF
31156 /* end confdefs.h.  */
31157 #include <stdlib.h>
31158
31159 _ACEOF
31160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31161   $EGREP "free" >/dev/null 2>&1; then
31162   :
31163 else
31164   ac_cv_header_stdc=no
31165 fi
31166 rm -f conftest*
31167
31168 fi
31169
31170 if test $ac_cv_header_stdc = yes; then
31171   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
31172   if test "$cross_compiling" = yes; then
31173   :
31174 else
31175   cat >conftest.$ac_ext <<_ACEOF
31176 /* confdefs.h.  */
31177 _ACEOF
31178 cat confdefs.h >>conftest.$ac_ext
31179 cat >>conftest.$ac_ext <<_ACEOF
31180 /* end confdefs.h.  */
31181 #include <ctype.h>
31182 #include <stdlib.h>
31183 #if ((' ' & 0x0FF) == 0x020)
31184 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
31185 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
31186 #else
31187 # define ISLOWER(c) \
31188                    (('a' <= (c) && (c) <= 'i') \
31189                      || ('j' <= (c) && (c) <= 'r') \
31190                      || ('s' <= (c) && (c) <= 'z'))
31191 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
31192 #endif
31193
31194 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
31195 int
31196 main ()
31197 {
31198   int i;
31199   for (i = 0; i < 256; i++)
31200     if (XOR (islower (i), ISLOWER (i))
31201         || toupper (i) != TOUPPER (i))
31202       return 2;
31203   return 0;
31204 }
31205 _ACEOF
31206 rm -f conftest$ac_exeext
31207 if { (ac_try="$ac_link"
31208 case "(($ac_try" in
31209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31210   *) ac_try_echo=$ac_try;;
31211 esac
31212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31213   (eval "$ac_link") 2>&5
31214   ac_status=$?
31215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31216   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31217   { (case "(($ac_try" in
31218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31219   *) ac_try_echo=$ac_try;;
31220 esac
31221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31222   (eval "$ac_try") 2>&5
31223   ac_status=$?
31224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31225   (exit $ac_status); }; }; then
31226   :
31227 else
31228   echo "$as_me: program exited with status $ac_status" >&5
31229 echo "$as_me: failed program was:" >&5
31230 sed 's/^/| /' conftest.$ac_ext >&5
31231
31232 ( exit $ac_status )
31233 ac_cv_header_stdc=no
31234 fi
31235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31236 fi
31237
31238
31239 fi
31240 fi
31241 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31242 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
31243 if test $ac_cv_header_stdc = yes; then
31244
31245 cat >>confdefs.h <<\_ACEOF
31246 #define STDC_HEADERS 1
31247 _ACEOF
31248
31249 fi
31250
31251 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31252 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31253 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31254   echo $ECHO_N "(cached) $ECHO_C" >&6
31255 else
31256   cat >conftest.$ac_ext <<_ACEOF
31257 /* confdefs.h.  */
31258 _ACEOF
31259 cat confdefs.h >>conftest.$ac_ext
31260 cat >>conftest.$ac_ext <<_ACEOF
31261 /* end confdefs.h.  */
31262 #include <sys/types.h>
31263 int
31264 main ()
31265 {
31266 return makedev(0, 0);
31267   ;
31268   return 0;
31269 }
31270 _ACEOF
31271 rm -f conftest.$ac_objext conftest$ac_exeext
31272 if { (ac_try="$ac_link"
31273 case "(($ac_try" in
31274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31275   *) ac_try_echo=$ac_try;;
31276 esac
31277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31278   (eval "$ac_link") 2>conftest.er1
31279   ac_status=$?
31280   grep -v '^ *+' conftest.er1 >conftest.err
31281   rm -f conftest.er1
31282   cat conftest.err >&5
31283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31284   (exit $ac_status); } && {
31285          test -z "$ac_cxx_werror_flag" ||
31286          test ! -s conftest.err
31287        } && test -s conftest$ac_exeext &&
31288        $as_test_x conftest$ac_exeext; then
31289   ac_cv_header_sys_types_h_makedev=yes
31290 else
31291   echo "$as_me: failed program was:" >&5
31292 sed 's/^/| /' conftest.$ac_ext >&5
31293
31294         ac_cv_header_sys_types_h_makedev=no
31295 fi
31296
31297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31298       conftest$ac_exeext conftest.$ac_ext
31299
31300 fi
31301 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31302 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31303
31304 if test $ac_cv_header_sys_types_h_makedev = no; then
31305 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31306   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31307 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31308 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31309   echo $ECHO_N "(cached) $ECHO_C" >&6
31310 fi
31311 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31312 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31313 else
31314   # Is the header compilable?
31315 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31316 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31317 cat >conftest.$ac_ext <<_ACEOF
31318 /* confdefs.h.  */
31319 _ACEOF
31320 cat confdefs.h >>conftest.$ac_ext
31321 cat >>conftest.$ac_ext <<_ACEOF
31322 /* end confdefs.h.  */
31323 $ac_includes_default
31324 #include <sys/mkdev.h>
31325 _ACEOF
31326 rm -f conftest.$ac_objext
31327 if { (ac_try="$ac_compile"
31328 case "(($ac_try" in
31329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31330   *) ac_try_echo=$ac_try;;
31331 esac
31332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31333   (eval "$ac_compile") 2>conftest.er1
31334   ac_status=$?
31335   grep -v '^ *+' conftest.er1 >conftest.err
31336   rm -f conftest.er1
31337   cat conftest.err >&5
31338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31339   (exit $ac_status); } && {
31340          test -z "$ac_cxx_werror_flag" ||
31341          test ! -s conftest.err
31342        } && test -s conftest.$ac_objext; then
31343   ac_header_compiler=yes
31344 else
31345   echo "$as_me: failed program was:" >&5
31346 sed 's/^/| /' conftest.$ac_ext >&5
31347
31348         ac_header_compiler=no
31349 fi
31350
31351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31352 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31353 echo "${ECHO_T}$ac_header_compiler" >&6; }
31354
31355 # Is the header present?
31356 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31357 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31358 cat >conftest.$ac_ext <<_ACEOF
31359 /* confdefs.h.  */
31360 _ACEOF
31361 cat confdefs.h >>conftest.$ac_ext
31362 cat >>conftest.$ac_ext <<_ACEOF
31363 /* end confdefs.h.  */
31364 #include <sys/mkdev.h>
31365 _ACEOF
31366 if { (ac_try="$ac_cpp conftest.$ac_ext"
31367 case "(($ac_try" in
31368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31369   *) ac_try_echo=$ac_try;;
31370 esac
31371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31372   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31373   ac_status=$?
31374   grep -v '^ *+' conftest.er1 >conftest.err
31375   rm -f conftest.er1
31376   cat conftest.err >&5
31377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31378   (exit $ac_status); } >/dev/null && {
31379          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
31380          test ! -s conftest.err
31381        }; then
31382   ac_header_preproc=yes
31383 else
31384   echo "$as_me: failed program was:" >&5
31385 sed 's/^/| /' conftest.$ac_ext >&5
31386
31387   ac_header_preproc=no
31388 fi
31389
31390 rm -f conftest.err conftest.$ac_ext
31391 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31392 echo "${ECHO_T}$ac_header_preproc" >&6; }
31393
31394 # So?  What about this header?
31395 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31396   yes:no: )
31397     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31398 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31399     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31400 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31401     ac_header_preproc=yes
31402     ;;
31403   no:yes:* )
31404     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31405 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31406     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
31407 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
31408     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31409 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31410     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
31411 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31412     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31413 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31414     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31415 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31416
31417     ;;
31418 esac
31419 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31420 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31421 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31422   echo $ECHO_N "(cached) $ECHO_C" >&6
31423 else
31424   ac_cv_header_sys_mkdev_h=$ac_header_preproc
31425 fi
31426 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31427 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31428
31429 fi
31430 if test $ac_cv_header_sys_mkdev_h = yes; then
31431
31432 cat >>confdefs.h <<\_ACEOF
31433 #define MAJOR_IN_MKDEV 1
31434 _ACEOF
31435
31436 fi
31437
31438
31439
31440   if test $ac_cv_header_sys_mkdev_h = no; then
31441     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31442   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31443 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31444 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31445   echo $ECHO_N "(cached) $ECHO_C" >&6
31446 fi
31447 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31448 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31449 else
31450   # Is the header compilable?
31451 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31452 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31453 cat >conftest.$ac_ext <<_ACEOF
31454 /* confdefs.h.  */
31455 _ACEOF
31456 cat confdefs.h >>conftest.$ac_ext
31457 cat >>conftest.$ac_ext <<_ACEOF
31458 /* end confdefs.h.  */
31459 $ac_includes_default
31460 #include <sys/sysmacros.h>
31461 _ACEOF
31462 rm -f conftest.$ac_objext
31463 if { (ac_try="$ac_compile"
31464 case "(($ac_try" in
31465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31466   *) ac_try_echo=$ac_try;;
31467 esac
31468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31469   (eval "$ac_compile") 2>conftest.er1
31470   ac_status=$?
31471   grep -v '^ *+' conftest.er1 >conftest.err
31472   rm -f conftest.er1
31473   cat conftest.err >&5
31474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31475   (exit $ac_status); } && {
31476          test -z "$ac_cxx_werror_flag" ||
31477          test ! -s conftest.err
31478        } && test -s conftest.$ac_objext; then
31479   ac_header_compiler=yes
31480 else
31481   echo "$as_me: failed program was:" >&5
31482 sed 's/^/| /' conftest.$ac_ext >&5
31483
31484         ac_header_compiler=no
31485 fi
31486
31487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31488 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31489 echo "${ECHO_T}$ac_header_compiler" >&6; }
31490
31491 # Is the header present?
31492 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31493 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31494 cat >conftest.$ac_ext <<_ACEOF
31495 /* confdefs.h.  */
31496 _ACEOF
31497 cat confdefs.h >>conftest.$ac_ext
31498 cat >>conftest.$ac_ext <<_ACEOF
31499 /* end confdefs.h.  */
31500 #include <sys/sysmacros.h>
31501 _ACEOF
31502 if { (ac_try="$ac_cpp conftest.$ac_ext"
31503 case "(($ac_try" in
31504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31505   *) ac_try_echo=$ac_try;;
31506 esac
31507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31508   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31509   ac_status=$?
31510   grep -v '^ *+' conftest.er1 >conftest.err
31511   rm -f conftest.er1
31512   cat conftest.err >&5
31513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31514   (exit $ac_status); } >/dev/null && {
31515          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
31516          test ! -s conftest.err
31517        }; then
31518   ac_header_preproc=yes
31519 else
31520   echo "$as_me: failed program was:" >&5
31521 sed 's/^/| /' conftest.$ac_ext >&5
31522
31523   ac_header_preproc=no
31524 fi
31525
31526 rm -f conftest.err conftest.$ac_ext
31527 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31528 echo "${ECHO_T}$ac_header_preproc" >&6; }
31529
31530 # So?  What about this header?
31531 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31532   yes:no: )
31533     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31534 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31535     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31536 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31537     ac_header_preproc=yes
31538     ;;
31539   no:yes:* )
31540     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31541 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31542     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31543 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31544     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31545 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31546     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31547 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31548     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31549 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31550     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31551 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31552
31553     ;;
31554 esac
31555 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31556 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31557 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31558   echo $ECHO_N "(cached) $ECHO_C" >&6
31559 else
31560   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31561 fi
31562 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31563 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31564
31565 fi
31566 if test $ac_cv_header_sys_sysmacros_h = yes; then
31567
31568 cat >>confdefs.h <<\_ACEOF
31569 #define MAJOR_IN_SYSMACROS 1
31570 _ACEOF
31571
31572 fi
31573
31574
31575   fi
31576 fi
31577
31578
31579
31580
31581
31582
31583 ac_header_dirent=no
31584 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31585   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31586 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31587 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31589   echo $ECHO_N "(cached) $ECHO_C" >&6
31590 else
31591   cat >conftest.$ac_ext <<_ACEOF
31592 /* confdefs.h.  */
31593 _ACEOF
31594 cat confdefs.h >>conftest.$ac_ext
31595 cat >>conftest.$ac_ext <<_ACEOF
31596 /* end confdefs.h.  */
31597 #include <sys/types.h>
31598 #include <$ac_hdr>
31599
31600 int
31601 main ()
31602 {
31603 if ((DIR *) 0)
31604 return 0;
31605   ;
31606   return 0;
31607 }
31608 _ACEOF
31609 rm -f conftest.$ac_objext
31610 if { (ac_try="$ac_compile"
31611 case "(($ac_try" in
31612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31613   *) ac_try_echo=$ac_try;;
31614 esac
31615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31616   (eval "$ac_compile") 2>conftest.er1
31617   ac_status=$?
31618   grep -v '^ *+' conftest.er1 >conftest.err
31619   rm -f conftest.er1
31620   cat conftest.err >&5
31621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31622   (exit $ac_status); } && {
31623          test -z "$ac_cxx_werror_flag" ||
31624          test ! -s conftest.err
31625        } && test -s conftest.$ac_objext; then
31626   eval "$as_ac_Header=yes"
31627 else
31628   echo "$as_me: failed program was:" >&5
31629 sed 's/^/| /' conftest.$ac_ext >&5
31630
31631         eval "$as_ac_Header=no"
31632 fi
31633
31634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31635 fi
31636 ac_res=`eval echo '${'$as_ac_Header'}'`
31637                { echo "$as_me:$LINENO: result: $ac_res" >&5
31638 echo "${ECHO_T}$ac_res" >&6; }
31639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31640   cat >>confdefs.h <<_ACEOF
31641 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31642 _ACEOF
31643
31644 ac_header_dirent=$ac_hdr; break
31645 fi
31646
31647 done
31648 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31649 if test $ac_header_dirent = dirent.h; then
31650   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31651 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31652 if test "${ac_cv_search_opendir+set}" = set; then
31653   echo $ECHO_N "(cached) $ECHO_C" >&6
31654 else
31655   ac_func_search_save_LIBS=$LIBS
31656 cat >conftest.$ac_ext <<_ACEOF
31657 /* confdefs.h.  */
31658 _ACEOF
31659 cat confdefs.h >>conftest.$ac_ext
31660 cat >>conftest.$ac_ext <<_ACEOF
31661 /* end confdefs.h.  */
31662
31663 /* Override any GCC internal prototype to avoid an error.
31664    Use char because int might match the return type of a GCC
31665    builtin and then its argument prototype would still apply.  */
31666 #ifdef __cplusplus
31667 extern "C"
31668 #endif
31669 char opendir ();
31670 int
31671 main ()
31672 {
31673 return opendir ();
31674   ;
31675   return 0;
31676 }
31677 _ACEOF
31678 for ac_lib in '' dir; do
31679   if test -z "$ac_lib"; then
31680     ac_res="none required"
31681   else
31682     ac_res=-l$ac_lib
31683     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31684   fi
31685   rm -f conftest.$ac_objext conftest$ac_exeext
31686 if { (ac_try="$ac_link"
31687 case "(($ac_try" in
31688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31689   *) ac_try_echo=$ac_try;;
31690 esac
31691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31692   (eval "$ac_link") 2>conftest.er1
31693   ac_status=$?
31694   grep -v '^ *+' conftest.er1 >conftest.err
31695   rm -f conftest.er1
31696   cat conftest.err >&5
31697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31698   (exit $ac_status); } && {
31699          test -z "$ac_cxx_werror_flag" ||
31700          test ! -s conftest.err
31701        } && test -s conftest$ac_exeext &&
31702        $as_test_x conftest$ac_exeext; then
31703   ac_cv_search_opendir=$ac_res
31704 else
31705   echo "$as_me: failed program was:" >&5
31706 sed 's/^/| /' conftest.$ac_ext >&5
31707
31708
31709 fi
31710
31711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31712       conftest$ac_exeext
31713   if test "${ac_cv_search_opendir+set}" = set; then
31714   break
31715 fi
31716 done
31717 if test "${ac_cv_search_opendir+set}" = set; then
31718   :
31719 else
31720   ac_cv_search_opendir=no
31721 fi
31722 rm conftest.$ac_ext
31723 LIBS=$ac_func_search_save_LIBS
31724 fi
31725 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31726 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31727 ac_res=$ac_cv_search_opendir
31728 if test "$ac_res" != no; then
31729   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31730
31731 fi
31732
31733 else
31734   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31735 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31736 if test "${ac_cv_search_opendir+set}" = set; then
31737   echo $ECHO_N "(cached) $ECHO_C" >&6
31738 else
31739   ac_func_search_save_LIBS=$LIBS
31740 cat >conftest.$ac_ext <<_ACEOF
31741 /* confdefs.h.  */
31742 _ACEOF
31743 cat confdefs.h >>conftest.$ac_ext
31744 cat >>conftest.$ac_ext <<_ACEOF
31745 /* end confdefs.h.  */
31746
31747 /* Override any GCC internal prototype to avoid an error.
31748    Use char because int might match the return type of a GCC
31749    builtin and then its argument prototype would still apply.  */
31750 #ifdef __cplusplus
31751 extern "C"
31752 #endif
31753 char opendir ();
31754 int
31755 main ()
31756 {
31757 return opendir ();
31758   ;
31759   return 0;
31760 }
31761 _ACEOF
31762 for ac_lib in '' x; do
31763   if test -z "$ac_lib"; then
31764     ac_res="none required"
31765   else
31766     ac_res=-l$ac_lib
31767     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31768   fi
31769   rm -f conftest.$ac_objext conftest$ac_exeext
31770 if { (ac_try="$ac_link"
31771 case "(($ac_try" in
31772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31773   *) ac_try_echo=$ac_try;;
31774 esac
31775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31776   (eval "$ac_link") 2>conftest.er1
31777   ac_status=$?
31778   grep -v '^ *+' conftest.er1 >conftest.err
31779   rm -f conftest.er1
31780   cat conftest.err >&5
31781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31782   (exit $ac_status); } && {
31783          test -z "$ac_cxx_werror_flag" ||
31784          test ! -s conftest.err
31785        } && test -s conftest$ac_exeext &&
31786        $as_test_x conftest$ac_exeext; then
31787   ac_cv_search_opendir=$ac_res
31788 else
31789   echo "$as_me: failed program was:" >&5
31790 sed 's/^/| /' conftest.$ac_ext >&5
31791
31792
31793 fi
31794
31795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31796       conftest$ac_exeext
31797   if test "${ac_cv_search_opendir+set}" = set; then
31798   break
31799 fi
31800 done
31801 if test "${ac_cv_search_opendir+set}" = set; then
31802   :
31803 else
31804   ac_cv_search_opendir=no
31805 fi
31806 rm conftest.$ac_ext
31807 LIBS=$ac_func_search_save_LIBS
31808 fi
31809 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31810 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31811 ac_res=$ac_cv_search_opendir
31812 if test "$ac_res" != no; then
31813   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31814
31815 fi
31816
31817 fi
31818
31819 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31820 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31821 if test "${ac_cv_header_stat_broken+set}" = set; then
31822   echo $ECHO_N "(cached) $ECHO_C" >&6
31823 else
31824   cat >conftest.$ac_ext <<_ACEOF
31825 /* confdefs.h.  */
31826 _ACEOF
31827 cat confdefs.h >>conftest.$ac_ext
31828 cat >>conftest.$ac_ext <<_ACEOF
31829 /* end confdefs.h.  */
31830 #include <sys/types.h>
31831 #include <sys/stat.h>
31832
31833 #if defined S_ISBLK && defined S_IFDIR
31834 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31835 #endif
31836
31837 #if defined S_ISBLK && defined S_IFCHR
31838 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31839 #endif
31840
31841 #if defined S_ISLNK && defined S_IFREG
31842 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31843 #endif
31844
31845 #if defined S_ISSOCK && defined S_IFREG
31846 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31847 #endif
31848
31849 _ACEOF
31850 rm -f conftest.$ac_objext
31851 if { (ac_try="$ac_compile"
31852 case "(($ac_try" in
31853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31854   *) ac_try_echo=$ac_try;;
31855 esac
31856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31857   (eval "$ac_compile") 2>conftest.er1
31858   ac_status=$?
31859   grep -v '^ *+' conftest.er1 >conftest.err
31860   rm -f conftest.er1
31861   cat conftest.err >&5
31862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31863   (exit $ac_status); } && {
31864          test -z "$ac_cxx_werror_flag" ||
31865          test ! -s conftest.err
31866        } && test -s conftest.$ac_objext; then
31867   ac_cv_header_stat_broken=no
31868 else
31869   echo "$as_me: failed program was:" >&5
31870 sed 's/^/| /' conftest.$ac_ext >&5
31871
31872         ac_cv_header_stat_broken=yes
31873 fi
31874
31875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31876 fi
31877 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31878 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31879 if test $ac_cv_header_stat_broken = yes; then
31880
31881 cat >>confdefs.h <<\_ACEOF
31882 #define STAT_MACROS_BROKEN 1
31883 _ACEOF
31884
31885 fi
31886
31887 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31888 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31889 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31890   echo $ECHO_N "(cached) $ECHO_C" >&6
31891 else
31892   cat >conftest.$ac_ext <<_ACEOF
31893 /* confdefs.h.  */
31894 _ACEOF
31895 cat confdefs.h >>conftest.$ac_ext
31896 cat >>conftest.$ac_ext <<_ACEOF
31897 /* end confdefs.h.  */
31898 #include <sys/types.h>
31899 #include <sys/wait.h>
31900 #ifndef WEXITSTATUS
31901 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31902 #endif
31903 #ifndef WIFEXITED
31904 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31905 #endif
31906
31907 int
31908 main ()
31909 {
31910   int s;
31911   wait (&s);
31912   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31913   ;
31914   return 0;
31915 }
31916 _ACEOF
31917 rm -f conftest.$ac_objext
31918 if { (ac_try="$ac_compile"
31919 case "(($ac_try" in
31920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31921   *) ac_try_echo=$ac_try;;
31922 esac
31923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31924   (eval "$ac_compile") 2>conftest.er1
31925   ac_status=$?
31926   grep -v '^ *+' conftest.er1 >conftest.err
31927   rm -f conftest.er1
31928   cat conftest.err >&5
31929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930   (exit $ac_status); } && {
31931          test -z "$ac_cxx_werror_flag" ||
31932          test ! -s conftest.err
31933        } && test -s conftest.$ac_objext; then
31934   ac_cv_header_sys_wait_h=yes
31935 else
31936   echo "$as_me: failed program was:" >&5
31937 sed 's/^/| /' conftest.$ac_ext >&5
31938
31939         ac_cv_header_sys_wait_h=no
31940 fi
31941
31942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31943 fi
31944 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31945 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31946 if test $ac_cv_header_sys_wait_h = yes; then
31947
31948 cat >>confdefs.h <<\_ACEOF
31949 #define HAVE_SYS_WAIT_H 1
31950 _ACEOF
31951
31952 fi
31953
31954 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31955 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31956 if test "${ac_cv_header_time+set}" = set; then
31957   echo $ECHO_N "(cached) $ECHO_C" >&6
31958 else
31959   cat >conftest.$ac_ext <<_ACEOF
31960 /* confdefs.h.  */
31961 _ACEOF
31962 cat confdefs.h >>conftest.$ac_ext
31963 cat >>conftest.$ac_ext <<_ACEOF
31964 /* end confdefs.h.  */
31965 #include <sys/types.h>
31966 #include <sys/time.h>
31967 #include <time.h>
31968
31969 int
31970 main ()
31971 {
31972 if ((struct tm *) 0)
31973 return 0;
31974   ;
31975   return 0;
31976 }
31977 _ACEOF
31978 rm -f conftest.$ac_objext
31979 if { (ac_try="$ac_compile"
31980 case "(($ac_try" in
31981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31982   *) ac_try_echo=$ac_try;;
31983 esac
31984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31985   (eval "$ac_compile") 2>conftest.er1
31986   ac_status=$?
31987   grep -v '^ *+' conftest.er1 >conftest.err
31988   rm -f conftest.er1
31989   cat conftest.err >&5
31990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31991   (exit $ac_status); } && {
31992          test -z "$ac_cxx_werror_flag" ||
31993          test ! -s conftest.err
31994        } && test -s conftest.$ac_objext; then
31995   ac_cv_header_time=yes
31996 else
31997   echo "$as_me: failed program was:" >&5
31998 sed 's/^/| /' conftest.$ac_ext >&5
31999
32000         ac_cv_header_time=no
32001 fi
32002
32003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32004 fi
32005 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32006 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32007 if test $ac_cv_header_time = yes; then
32008
32009 cat >>confdefs.h <<\_ACEOF
32010 #define TIME_WITH_SYS_TIME 1
32011 _ACEOF
32012
32013 fi
32014
32015 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32016 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32017 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32018   echo $ECHO_N "(cached) $ECHO_C" >&6
32019 else
32020   cat >conftest.$ac_ext <<_ACEOF
32021 /* confdefs.h.  */
32022 _ACEOF
32023 cat confdefs.h >>conftest.$ac_ext
32024 cat >>conftest.$ac_ext <<_ACEOF
32025 /* end confdefs.h.  */
32026 $ac_includes_default
32027 int
32028 main ()
32029 {
32030 static struct stat ac_aggr;
32031 if (ac_aggr.st_blksize)
32032 return 0;
32033   ;
32034   return 0;
32035 }
32036 _ACEOF
32037 rm -f conftest.$ac_objext
32038 if { (ac_try="$ac_compile"
32039 case "(($ac_try" in
32040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32041   *) ac_try_echo=$ac_try;;
32042 esac
32043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32044   (eval "$ac_compile") 2>conftest.er1
32045   ac_status=$?
32046   grep -v '^ *+' conftest.er1 >conftest.err
32047   rm -f conftest.er1
32048   cat conftest.err >&5
32049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32050   (exit $ac_status); } && {
32051          test -z "$ac_cxx_werror_flag" ||
32052          test ! -s conftest.err
32053        } && test -s conftest.$ac_objext; then
32054   ac_cv_member_struct_stat_st_blksize=yes
32055 else
32056   echo "$as_me: failed program was:" >&5
32057 sed 's/^/| /' conftest.$ac_ext >&5
32058
32059         cat >conftest.$ac_ext <<_ACEOF
32060 /* confdefs.h.  */
32061 _ACEOF
32062 cat confdefs.h >>conftest.$ac_ext
32063 cat >>conftest.$ac_ext <<_ACEOF
32064 /* end confdefs.h.  */
32065 $ac_includes_default
32066 int
32067 main ()
32068 {
32069 static struct stat ac_aggr;
32070 if (sizeof ac_aggr.st_blksize)
32071 return 0;
32072   ;
32073   return 0;
32074 }
32075 _ACEOF
32076 rm -f conftest.$ac_objext
32077 if { (ac_try="$ac_compile"
32078 case "(($ac_try" in
32079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32080   *) ac_try_echo=$ac_try;;
32081 esac
32082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32083   (eval "$ac_compile") 2>conftest.er1
32084   ac_status=$?
32085   grep -v '^ *+' conftest.er1 >conftest.err
32086   rm -f conftest.er1
32087   cat conftest.err >&5
32088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32089   (exit $ac_status); } && {
32090          test -z "$ac_cxx_werror_flag" ||
32091          test ! -s conftest.err
32092        } && test -s conftest.$ac_objext; then
32093   ac_cv_member_struct_stat_st_blksize=yes
32094 else
32095   echo "$as_me: failed program was:" >&5
32096 sed 's/^/| /' conftest.$ac_ext >&5
32097
32098         ac_cv_member_struct_stat_st_blksize=no
32099 fi
32100
32101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32102 fi
32103
32104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32105 fi
32106 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32107 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32108 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32109
32110 cat >>confdefs.h <<_ACEOF
32111 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32112 _ACEOF
32113
32114
32115 cat >>confdefs.h <<\_ACEOF
32116 #define HAVE_ST_BLKSIZE 1
32117 _ACEOF
32118
32119 fi
32120
32121
32122 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
32123 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
32124 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
32125   echo $ECHO_N "(cached) $ECHO_C" >&6
32126 else
32127   cat >conftest.$ac_ext <<_ACEOF
32128 /* confdefs.h.  */
32129 _ACEOF
32130 cat confdefs.h >>conftest.$ac_ext
32131 cat >>conftest.$ac_ext <<_ACEOF
32132 /* end confdefs.h.  */
32133 $ac_includes_default
32134 int
32135 main ()
32136 {
32137 static struct stat ac_aggr;
32138 if (ac_aggr.st_blocks)
32139 return 0;
32140   ;
32141   return 0;
32142 }
32143 _ACEOF
32144 rm -f conftest.$ac_objext
32145 if { (ac_try="$ac_compile"
32146 case "(($ac_try" in
32147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32148   *) ac_try_echo=$ac_try;;
32149 esac
32150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32151   (eval "$ac_compile") 2>conftest.er1
32152   ac_status=$?
32153   grep -v '^ *+' conftest.er1 >conftest.err
32154   rm -f conftest.er1
32155   cat conftest.err >&5
32156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157   (exit $ac_status); } && {
32158          test -z "$ac_cxx_werror_flag" ||
32159          test ! -s conftest.err
32160        } && test -s conftest.$ac_objext; then
32161   ac_cv_member_struct_stat_st_blocks=yes
32162 else
32163   echo "$as_me: failed program was:" >&5
32164 sed 's/^/| /' conftest.$ac_ext >&5
32165
32166         cat >conftest.$ac_ext <<_ACEOF
32167 /* confdefs.h.  */
32168 _ACEOF
32169 cat confdefs.h >>conftest.$ac_ext
32170 cat >>conftest.$ac_ext <<_ACEOF
32171 /* end confdefs.h.  */
32172 $ac_includes_default
32173 int
32174 main ()
32175 {
32176 static struct stat ac_aggr;
32177 if (sizeof ac_aggr.st_blocks)
32178 return 0;
32179   ;
32180   return 0;
32181 }
32182 _ACEOF
32183 rm -f conftest.$ac_objext
32184 if { (ac_try="$ac_compile"
32185 case "(($ac_try" in
32186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32187   *) ac_try_echo=$ac_try;;
32188 esac
32189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32190   (eval "$ac_compile") 2>conftest.er1
32191   ac_status=$?
32192   grep -v '^ *+' conftest.er1 >conftest.err
32193   rm -f conftest.er1
32194   cat conftest.err >&5
32195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32196   (exit $ac_status); } && {
32197          test -z "$ac_cxx_werror_flag" ||
32198          test ! -s conftest.err
32199        } && test -s conftest.$ac_objext; then
32200   ac_cv_member_struct_stat_st_blocks=yes
32201 else
32202   echo "$as_me: failed program was:" >&5
32203 sed 's/^/| /' conftest.$ac_ext >&5
32204
32205         ac_cv_member_struct_stat_st_blocks=no
32206 fi
32207
32208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32209 fi
32210
32211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32212 fi
32213 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
32214 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
32215 if test $ac_cv_member_struct_stat_st_blocks = yes; then
32216
32217 cat >>confdefs.h <<_ACEOF
32218 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
32219 _ACEOF
32220
32221
32222 cat >>confdefs.h <<\_ACEOF
32223 #define HAVE_ST_BLOCKS 1
32224 _ACEOF
32225
32226 else
32227   case " $LIBOBJS " in
32228   *" fileblocks.$ac_objext "* ) ;;
32229   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
32230  ;;
32231 esac
32232
32233 fi
32234
32235
32236 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32237 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32238 if test "${ac_cv_struct_tm+set}" = set; then
32239   echo $ECHO_N "(cached) $ECHO_C" >&6
32240 else
32241   cat >conftest.$ac_ext <<_ACEOF
32242 /* confdefs.h.  */
32243 _ACEOF
32244 cat confdefs.h >>conftest.$ac_ext
32245 cat >>conftest.$ac_ext <<_ACEOF
32246 /* end confdefs.h.  */
32247 #include <sys/types.h>
32248 #include <time.h>
32249
32250 int
32251 main ()
32252 {
32253 struct tm tm;
32254                                      int *p = &tm.tm_sec;
32255                                      return !p;
32256   ;
32257   return 0;
32258 }
32259 _ACEOF
32260 rm -f conftest.$ac_objext
32261 if { (ac_try="$ac_compile"
32262 case "(($ac_try" in
32263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32264   *) ac_try_echo=$ac_try;;
32265 esac
32266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32267   (eval "$ac_compile") 2>conftest.er1
32268   ac_status=$?
32269   grep -v '^ *+' conftest.er1 >conftest.err
32270   rm -f conftest.er1
32271   cat conftest.err >&5
32272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32273   (exit $ac_status); } && {
32274          test -z "$ac_cxx_werror_flag" ||
32275          test ! -s conftest.err
32276        } && test -s conftest.$ac_objext; then
32277   ac_cv_struct_tm=time.h
32278 else
32279   echo "$as_me: failed program was:" >&5
32280 sed 's/^/| /' conftest.$ac_ext >&5
32281
32282         ac_cv_struct_tm=sys/time.h
32283 fi
32284
32285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32286 fi
32287 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32288 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32289 if test $ac_cv_struct_tm = sys/time.h; then
32290
32291 cat >>confdefs.h <<\_ACEOF
32292 #define TM_IN_SYS_TIME 1
32293 _ACEOF
32294
32295 fi
32296
32297 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32298 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32299 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32300   echo $ECHO_N "(cached) $ECHO_C" >&6
32301 else
32302   cat >conftest.$ac_ext <<_ACEOF
32303 /* confdefs.h.  */
32304 _ACEOF
32305 cat confdefs.h >>conftest.$ac_ext
32306 cat >>conftest.$ac_ext <<_ACEOF
32307 /* end confdefs.h.  */
32308 #include <sys/types.h>
32309 #include <$ac_cv_struct_tm>
32310
32311
32312 int
32313 main ()
32314 {
32315 static struct tm ac_aggr;
32316 if (ac_aggr.tm_zone)
32317 return 0;
32318   ;
32319   return 0;
32320 }
32321 _ACEOF
32322 rm -f conftest.$ac_objext
32323 if { (ac_try="$ac_compile"
32324 case "(($ac_try" in
32325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32326   *) ac_try_echo=$ac_try;;
32327 esac
32328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32329   (eval "$ac_compile") 2>conftest.er1
32330   ac_status=$?
32331   grep -v '^ *+' conftest.er1 >conftest.err
32332   rm -f conftest.er1
32333   cat conftest.err >&5
32334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32335   (exit $ac_status); } && {
32336          test -z "$ac_cxx_werror_flag" ||
32337          test ! -s conftest.err
32338        } && test -s conftest.$ac_objext; then
32339   ac_cv_member_struct_tm_tm_zone=yes
32340 else
32341   echo "$as_me: failed program was:" >&5
32342 sed 's/^/| /' conftest.$ac_ext >&5
32343
32344         cat >conftest.$ac_ext <<_ACEOF
32345 /* confdefs.h.  */
32346 _ACEOF
32347 cat confdefs.h >>conftest.$ac_ext
32348 cat >>conftest.$ac_ext <<_ACEOF
32349 /* end confdefs.h.  */
32350 #include <sys/types.h>
32351 #include <$ac_cv_struct_tm>
32352
32353
32354 int
32355 main ()
32356 {
32357 static struct tm ac_aggr;
32358 if (sizeof ac_aggr.tm_zone)
32359 return 0;
32360   ;
32361   return 0;
32362 }
32363 _ACEOF
32364 rm -f conftest.$ac_objext
32365 if { (ac_try="$ac_compile"
32366 case "(($ac_try" in
32367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32368   *) ac_try_echo=$ac_try;;
32369 esac
32370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32371   (eval "$ac_compile") 2>conftest.er1
32372   ac_status=$?
32373   grep -v '^ *+' conftest.er1 >conftest.err
32374   rm -f conftest.er1
32375   cat conftest.err >&5
32376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32377   (exit $ac_status); } && {
32378          test -z "$ac_cxx_werror_flag" ||
32379          test ! -s conftest.err
32380        } && test -s conftest.$ac_objext; then
32381   ac_cv_member_struct_tm_tm_zone=yes
32382 else
32383   echo "$as_me: failed program was:" >&5
32384 sed 's/^/| /' conftest.$ac_ext >&5
32385
32386         ac_cv_member_struct_tm_tm_zone=no
32387 fi
32388
32389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32390 fi
32391
32392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32393 fi
32394 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32395 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32396 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32397
32398 cat >>confdefs.h <<_ACEOF
32399 #define HAVE_STRUCT_TM_TM_ZONE 1
32400 _ACEOF
32401
32402
32403 fi
32404
32405 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32406
32407 cat >>confdefs.h <<\_ACEOF
32408 #define HAVE_TM_ZONE 1
32409 _ACEOF
32410
32411 else
32412   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32413 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32414 if test "${ac_cv_have_decl_tzname+set}" = set; then
32415   echo $ECHO_N "(cached) $ECHO_C" >&6
32416 else
32417   cat >conftest.$ac_ext <<_ACEOF
32418 /* confdefs.h.  */
32419 _ACEOF
32420 cat confdefs.h >>conftest.$ac_ext
32421 cat >>conftest.$ac_ext <<_ACEOF
32422 /* end confdefs.h.  */
32423 #include <time.h>
32424
32425 int
32426 main ()
32427 {
32428 #ifndef tzname
32429   (void) tzname;
32430 #endif
32431
32432   ;
32433   return 0;
32434 }
32435 _ACEOF
32436 rm -f conftest.$ac_objext
32437 if { (ac_try="$ac_compile"
32438 case "(($ac_try" in
32439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32440   *) ac_try_echo=$ac_try;;
32441 esac
32442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32443   (eval "$ac_compile") 2>conftest.er1
32444   ac_status=$?
32445   grep -v '^ *+' conftest.er1 >conftest.err
32446   rm -f conftest.er1
32447   cat conftest.err >&5
32448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32449   (exit $ac_status); } && {
32450          test -z "$ac_cxx_werror_flag" ||
32451          test ! -s conftest.err
32452        } && test -s conftest.$ac_objext; then
32453   ac_cv_have_decl_tzname=yes
32454 else
32455   echo "$as_me: failed program was:" >&5
32456 sed 's/^/| /' conftest.$ac_ext >&5
32457
32458         ac_cv_have_decl_tzname=no
32459 fi
32460
32461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32462 fi
32463 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32464 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32465 if test $ac_cv_have_decl_tzname = yes; then
32466
32467 cat >>confdefs.h <<_ACEOF
32468 #define HAVE_DECL_TZNAME 1
32469 _ACEOF
32470
32471
32472 else
32473   cat >>confdefs.h <<_ACEOF
32474 #define HAVE_DECL_TZNAME 0
32475 _ACEOF
32476
32477
32478 fi
32479
32480
32481   { echo "$as_me:$LINENO: checking for tzname" >&5
32482 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32483 if test "${ac_cv_var_tzname+set}" = set; then
32484   echo $ECHO_N "(cached) $ECHO_C" >&6
32485 else
32486   cat >conftest.$ac_ext <<_ACEOF
32487 /* confdefs.h.  */
32488 _ACEOF
32489 cat confdefs.h >>conftest.$ac_ext
32490 cat >>conftest.$ac_ext <<_ACEOF
32491 /* end confdefs.h.  */
32492 #include <time.h>
32493 #if !HAVE_DECL_TZNAME
32494 extern char *tzname[];
32495 #endif
32496
32497 int
32498 main ()
32499 {
32500 return tzname[0][0];
32501   ;
32502   return 0;
32503 }
32504 _ACEOF
32505 rm -f conftest.$ac_objext conftest$ac_exeext
32506 if { (ac_try="$ac_link"
32507 case "(($ac_try" in
32508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32509   *) ac_try_echo=$ac_try;;
32510 esac
32511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32512   (eval "$ac_link") 2>conftest.er1
32513   ac_status=$?
32514   grep -v '^ *+' conftest.er1 >conftest.err
32515   rm -f conftest.er1
32516   cat conftest.err >&5
32517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32518   (exit $ac_status); } && {
32519          test -z "$ac_cxx_werror_flag" ||
32520          test ! -s conftest.err
32521        } && test -s conftest$ac_exeext &&
32522        $as_test_x conftest$ac_exeext; then
32523   ac_cv_var_tzname=yes
32524 else
32525   echo "$as_me: failed program was:" >&5
32526 sed 's/^/| /' conftest.$ac_ext >&5
32527
32528         ac_cv_var_tzname=no
32529 fi
32530
32531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32532       conftest$ac_exeext conftest.$ac_ext
32533 fi
32534 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32535 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32536   if test $ac_cv_var_tzname = yes; then
32537
32538 cat >>confdefs.h <<\_ACEOF
32539 #define HAVE_TZNAME 1
32540 _ACEOF
32541
32542   fi
32543 fi
32544
32545
32546 { echo "$as_me:$LINENO: checking for utime.h" >&5
32547 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32548 if test "${ba_cv_header_utime_h+set}" = set; then
32549   echo $ECHO_N "(cached) $ECHO_C" >&6
32550 else
32551
32552        cat >conftest.$ac_ext <<_ACEOF
32553 /* confdefs.h.  */
32554 _ACEOF
32555 cat confdefs.h >>conftest.$ac_ext
32556 cat >>conftest.$ac_ext <<_ACEOF
32557 /* end confdefs.h.  */
32558
32559               #include <sys/types.h>
32560               #include <utime.h>
32561
32562 int
32563 main ()
32564 {
32565
32566               struct utimbuf foo
32567
32568   ;
32569   return 0;
32570 }
32571 _ACEOF
32572 rm -f conftest.$ac_objext
32573 if { (ac_try="$ac_compile"
32574 case "(($ac_try" in
32575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32576   *) ac_try_echo=$ac_try;;
32577 esac
32578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32579   (eval "$ac_compile") 2>conftest.er1
32580   ac_status=$?
32581   grep -v '^ *+' conftest.er1 >conftest.err
32582   rm -f conftest.er1
32583   cat conftest.err >&5
32584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32585   (exit $ac_status); } && {
32586          test -z "$ac_cxx_werror_flag" ||
32587          test ! -s conftest.err
32588        } && test -s conftest.$ac_objext; then
32589
32590               ba_cv_header_utime_h=yes
32591
32592 else
32593   echo "$as_me: failed program was:" >&5
32594 sed 's/^/| /' conftest.$ac_ext >&5
32595
32596
32597               ba_cv_header_utime_h=no
32598
32599
32600 fi
32601
32602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32603
32604
32605 fi
32606 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32607 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32608 test $ba_cv_header_utime_h = yes &&
32609 cat >>confdefs.h <<\_ACEOF
32610 #define HAVE_UTIME_H 1
32611 _ACEOF
32612
32613
32614 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32615 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32616 if test "${ba_cv_header_socklen_t+set}" = set; then
32617   echo $ECHO_N "(cached) $ECHO_C" >&6
32618 else
32619
32620        cat >conftest.$ac_ext <<_ACEOF
32621 /* confdefs.h.  */
32622 _ACEOF
32623 cat confdefs.h >>conftest.$ac_ext
32624 cat >>conftest.$ac_ext <<_ACEOF
32625 /* end confdefs.h.  */
32626
32627               #include <sys/types.h>
32628               #include <sys/socket.h>
32629
32630 int
32631 main ()
32632 {
32633
32634               socklen_t x
32635
32636   ;
32637   return 0;
32638 }
32639 _ACEOF
32640 rm -f conftest.$ac_objext
32641 if { (ac_try="$ac_compile"
32642 case "(($ac_try" in
32643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32644   *) ac_try_echo=$ac_try;;
32645 esac
32646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32647   (eval "$ac_compile") 2>conftest.er1
32648   ac_status=$?
32649   grep -v '^ *+' conftest.er1 >conftest.err
32650   rm -f conftest.er1
32651   cat conftest.err >&5
32652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32653   (exit $ac_status); } && {
32654          test -z "$ac_cxx_werror_flag" ||
32655          test ! -s conftest.err
32656        } && test -s conftest.$ac_objext; then
32657
32658              ba_cv_header_socklen_t=yes
32659
32660 else
32661   echo "$as_me: failed program was:" >&5
32662 sed 's/^/| /' conftest.$ac_ext >&5
32663
32664
32665              ba_cv_header_socklen_t=no
32666
32667
32668 fi
32669
32670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32671
32672
32673 fi
32674 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32675 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32676 test $ba_cv_header_socklen_t = yes &&
32677 cat >>confdefs.h <<\_ACEOF
32678 #define HAVE_SOCKLEN_T 1
32679 _ACEOF
32680
32681
32682 { echo "$as_me:$LINENO: checking for ioctl_req_t" >&5
32683 echo $ECHO_N "checking for ioctl_req_t... $ECHO_C" >&6; }
32684 if test "${ba_cv_header_ioctl_req_t+set}" = set; then
32685   echo $ECHO_N "(cached) $ECHO_C" >&6
32686 else
32687
32688        cat >conftest.$ac_ext <<_ACEOF
32689 /* confdefs.h.  */
32690 _ACEOF
32691 cat confdefs.h >>conftest.$ac_ext
32692 cat >>conftest.$ac_ext <<_ACEOF
32693 /* end confdefs.h.  */
32694
32695               #include <unistd.h>
32696               #include <sys/types.h>
32697               #include <sys/ioctl.h>
32698
32699 int
32700 main ()
32701 {
32702
32703               int (*d_ioctl)(int fd, unsigned long int request, ...);
32704               d_ioctl = ::ioctl;
32705
32706   ;
32707   return 0;
32708 }
32709 _ACEOF
32710 rm -f conftest.$ac_objext
32711 if { (ac_try="$ac_compile"
32712 case "(($ac_try" in
32713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32714   *) ac_try_echo=$ac_try;;
32715 esac
32716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32717   (eval "$ac_compile") 2>conftest.er1
32718   ac_status=$?
32719   grep -v '^ *+' conftest.er1 >conftest.err
32720   rm -f conftest.er1
32721   cat conftest.err >&5
32722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32723   (exit $ac_status); } && {
32724          test -z "$ac_cxx_werror_flag" ||
32725          test ! -s conftest.err
32726        } && test -s conftest.$ac_objext; then
32727
32728              ba_cv_header_ioctl_req_t=yes
32729
32730 else
32731   echo "$as_me: failed program was:" >&5
32732 sed 's/^/| /' conftest.$ac_ext >&5
32733
32734
32735              ba_cv_header_ioct_req_t_t=no
32736
32737
32738 fi
32739
32740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32741
32742
32743 fi
32744 { echo "$as_me:$LINENO: result: $ba_cv_header_ioctl_req_t" >&5
32745 echo "${ECHO_T}$ba_cv_header_ioctl_req_t" >&6; }
32746 test $ba_cv_header_ioctl_req_t = yes &&
32747 cat >>confdefs.h <<\_ACEOF
32748 #define HAVE_IOCTL_ULINT_REQUEST 1
32749 _ACEOF
32750
32751
32752
32753 ac_ext=cpp
32754 ac_cpp='$CXXCPP $CPPFLAGS'
32755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32758
32759 { echo "$as_me:$LINENO: checking for typeof" >&5
32760 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32761 if test "${ba_cv_have_typeof+set}" = set; then
32762   echo $ECHO_N "(cached) $ECHO_C" >&6
32763 else
32764
32765        if test "$cross_compiling" = yes; then
32766
32767               ba_cv_have_typeof=no
32768
32769
32770 else
32771   cat >conftest.$ac_ext <<_ACEOF
32772 /* confdefs.h.  */
32773 _ACEOF
32774 cat confdefs.h >>conftest.$ac_ext
32775 cat >>conftest.$ac_ext <<_ACEOF
32776 /* end confdefs.h.  */
32777
32778               main(){char *a = 0; a = (typeof a)a;}
32779
32780 _ACEOF
32781 rm -f conftest$ac_exeext
32782 if { (ac_try="$ac_link"
32783 case "(($ac_try" in
32784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32785   *) ac_try_echo=$ac_try;;
32786 esac
32787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32788   (eval "$ac_link") 2>&5
32789   ac_status=$?
32790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32791   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32792   { (case "(($ac_try" in
32793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32794   *) ac_try_echo=$ac_try;;
32795 esac
32796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32797   (eval "$ac_try") 2>&5
32798   ac_status=$?
32799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32800   (exit $ac_status); }; }; then
32801
32802               ba_cv_have_typeof=yes
32803
32804 else
32805   echo "$as_me: program exited with status $ac_status" >&5
32806 echo "$as_me: failed program was:" >&5
32807 sed 's/^/| /' conftest.$ac_ext >&5
32808
32809 ( exit $ac_status )
32810
32811               ba_cv_have_typeof=no
32812
32813 fi
32814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32815 fi
32816
32817
32818
32819
32820 fi
32821 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32822 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32823 test $ba_cv_have_typeof = yes &&
32824 cat >>confdefs.h <<\_ACEOF
32825 #define HAVE_TYPEOF 1
32826 _ACEOF
32827
32828 ac_ext=cpp
32829 ac_cpp='$CXXCPP $CPPFLAGS'
32830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32833
32834
32835 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32836 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32837 if test "${ac_cv_c_const+set}" = set; then
32838   echo $ECHO_N "(cached) $ECHO_C" >&6
32839 else
32840   cat >conftest.$ac_ext <<_ACEOF
32841 /* confdefs.h.  */
32842 _ACEOF
32843 cat confdefs.h >>conftest.$ac_ext
32844 cat >>conftest.$ac_ext <<_ACEOF
32845 /* end confdefs.h.  */
32846
32847 int
32848 main ()
32849 {
32850 /* FIXME: Include the comments suggested by Paul. */
32851 #ifndef __cplusplus
32852   /* Ultrix mips cc rejects this.  */
32853   typedef int charset[2];
32854   const charset cs;
32855   /* SunOS 4.1.1 cc rejects this.  */
32856   char const *const *pcpcc;
32857   char **ppc;
32858   /* NEC SVR4.0.2 mips cc rejects this.  */
32859   struct point {int x, y;};
32860   static struct point const zero = {0,0};
32861   /* AIX XL C 1.02.0.0 rejects this.
32862      It does not let you subtract one const X* pointer from another in
32863      an arm of an if-expression whose if-part is not a constant
32864      expression */
32865   const char *g = "string";
32866   pcpcc = &g + (g ? g-g : 0);
32867   /* HPUX 7.0 cc rejects these. */
32868   ++pcpcc;
32869   ppc = (char**) pcpcc;
32870   pcpcc = (char const *const *) ppc;
32871   { /* SCO 3.2v4 cc rejects this.  */
32872     char *t;
32873     char const *s = 0 ? (char *) 0 : (char const *) 0;
32874
32875     *t++ = 0;
32876     if (s) return 0;
32877   }
32878   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32879     int x[] = {25, 17};
32880     const int *foo = &x[0];
32881     ++foo;
32882   }
32883   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32884     typedef const int *iptr;
32885     iptr p = 0;
32886     ++p;
32887   }
32888   { /* AIX XL C 1.02.0.0 rejects this saying
32889        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32890     struct s { int j; const int *ap[3]; };
32891     struct s *b; b->j = 5;
32892   }
32893   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32894     const int foo = 10;
32895     if (!foo) return 0;
32896   }
32897   return !cs[0] && !zero.x;
32898 #endif
32899
32900   ;
32901   return 0;
32902 }
32903 _ACEOF
32904 rm -f conftest.$ac_objext
32905 if { (ac_try="$ac_compile"
32906 case "(($ac_try" in
32907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32908   *) ac_try_echo=$ac_try;;
32909 esac
32910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32911   (eval "$ac_compile") 2>conftest.er1
32912   ac_status=$?
32913   grep -v '^ *+' conftest.er1 >conftest.err
32914   rm -f conftest.er1
32915   cat conftest.err >&5
32916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32917   (exit $ac_status); } && {
32918          test -z "$ac_cxx_werror_flag" ||
32919          test ! -s conftest.err
32920        } && test -s conftest.$ac_objext; then
32921   ac_cv_c_const=yes
32922 else
32923   echo "$as_me: failed program was:" >&5
32924 sed 's/^/| /' conftest.$ac_ext >&5
32925
32926         ac_cv_c_const=no
32927 fi
32928
32929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32930 fi
32931 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32932 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32933 if test $ac_cv_c_const = no; then
32934
32935 cat >>confdefs.h <<\_ACEOF
32936 #define const
32937 _ACEOF
32938
32939 fi
32940
32941
32942 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32943 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32944 fstype=no
32945 # The order of these tests is important.
32946 cat >conftest.$ac_ext <<_ACEOF
32947 /* confdefs.h.  */
32948 _ACEOF
32949 cat confdefs.h >>conftest.$ac_ext
32950 cat >>conftest.$ac_ext <<_ACEOF
32951 /* end confdefs.h.  */
32952
32953        #include <sys/statvfs.h>
32954        #include <sys/fstyp.h>
32955
32956 _ACEOF
32957 if { (ac_try="$ac_cpp conftest.$ac_ext"
32958 case "(($ac_try" in
32959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32960   *) ac_try_echo=$ac_try;;
32961 esac
32962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32963   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32964   ac_status=$?
32965   grep -v '^ *+' conftest.er1 >conftest.err
32966   rm -f conftest.er1
32967   cat conftest.err >&5
32968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32969   (exit $ac_status); } >/dev/null && {
32970          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
32971          test ! -s conftest.err
32972        }; then
32973   cat >>confdefs.h <<\_ACEOF
32974 #define FSTYPE_STATVFS 1
32975 _ACEOF
32976  fstype=SVR4
32977
32978 else
32979   echo "$as_me: failed program was:" >&5
32980 sed 's/^/| /' conftest.$ac_ext >&5
32981
32982
32983 fi
32984
32985 rm -f conftest.err conftest.$ac_ext
32986 if test $fstype = no; then
32987    cat >conftest.$ac_ext <<_ACEOF
32988 /* confdefs.h.  */
32989 _ACEOF
32990 cat confdefs.h >>conftest.$ac_ext
32991 cat >>conftest.$ac_ext <<_ACEOF
32992 /* end confdefs.h.  */
32993
32994           #include <sys/statfs.h>
32995           #include <sys/fstyp.h>
32996
32997 _ACEOF
32998 if { (ac_try="$ac_cpp conftest.$ac_ext"
32999 case "(($ac_try" in
33000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33001   *) ac_try_echo=$ac_try;;
33002 esac
33003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33004   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33005   ac_status=$?
33006   grep -v '^ *+' conftest.er1 >conftest.err
33007   rm -f conftest.er1
33008   cat conftest.err >&5
33009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010   (exit $ac_status); } >/dev/null && {
33011          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33012          test ! -s conftest.err
33013        }; then
33014   cat >>confdefs.h <<\_ACEOF
33015 #define FSTYPE_USG_STATFS 1
33016 _ACEOF
33017  fstype=SVR3
33018
33019 else
33020   echo "$as_me: failed program was:" >&5
33021 sed 's/^/| /' conftest.$ac_ext >&5
33022
33023
33024 fi
33025
33026 rm -f conftest.err conftest.$ac_ext
33027 fi
33028 if test $fstype = no; then
33029    cat >conftest.$ac_ext <<_ACEOF
33030 /* confdefs.h.  */
33031 _ACEOF
33032 cat confdefs.h >>conftest.$ac_ext
33033 cat >>conftest.$ac_ext <<_ACEOF
33034 /* end confdefs.h.  */
33035
33036           #include <sys/statfs.h>
33037           #include <sys/vmount.h>
33038
33039 _ACEOF
33040 if { (ac_try="$ac_cpp conftest.$ac_ext"
33041 case "(($ac_try" in
33042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33043   *) ac_try_echo=$ac_try;;
33044 esac
33045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33046   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33047   ac_status=$?
33048   grep -v '^ *+' conftest.er1 >conftest.err
33049   rm -f conftest.er1
33050   cat conftest.err >&5
33051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33052   (exit $ac_status); } >/dev/null && {
33053          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33054          test ! -s conftest.err
33055        }; then
33056   cat >>confdefs.h <<\_ACEOF
33057 #define FSTYPE_AIX_STATFS 1
33058 _ACEOF
33059  fstype=AIX
33060
33061 else
33062   echo "$as_me: failed program was:" >&5
33063 sed 's/^/| /' conftest.$ac_ext >&5
33064
33065
33066 fi
33067
33068 rm -f conftest.err conftest.$ac_ext
33069 fi
33070 if test $fstype = no; then
33071    cat >conftest.$ac_ext <<_ACEOF
33072 /* confdefs.h.  */
33073 _ACEOF
33074 cat confdefs.h >>conftest.$ac_ext
33075 cat >>conftest.$ac_ext <<_ACEOF
33076 /* end confdefs.h.  */
33077
33078           #include <mntent.h>
33079
33080 _ACEOF
33081 if { (ac_try="$ac_cpp conftest.$ac_ext"
33082 case "(($ac_try" in
33083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33084   *) ac_try_echo=$ac_try;;
33085 esac
33086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33087   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33088   ac_status=$?
33089   grep -v '^ *+' conftest.er1 >conftest.err
33090   rm -f conftest.er1
33091   cat conftest.err >&5
33092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33093   (exit $ac_status); } >/dev/null && {
33094          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33095          test ! -s conftest.err
33096        }; then
33097   cat >>confdefs.h <<\_ACEOF
33098 #define FSTYPE_MNTENT 1
33099 _ACEOF
33100  fstype=4.3BSD
33101
33102 else
33103   echo "$as_me: failed program was:" >&5
33104 sed 's/^/| /' conftest.$ac_ext >&5
33105
33106
33107 fi
33108
33109 rm -f conftest.err conftest.$ac_ext
33110 fi
33111 if test $fstype = no; then
33112    cat >conftest.$ac_ext <<_ACEOF
33113 /* confdefs.h.  */
33114 _ACEOF
33115 cat confdefs.h >>conftest.$ac_ext
33116 cat >>conftest.$ac_ext <<_ACEOF
33117 /* end confdefs.h.  */
33118 #include <sys/mount.h>
33119
33120 _ACEOF
33121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33122   $EGREP "f_type;" >/dev/null 2>&1; then
33123   cat >>confdefs.h <<\_ACEOF
33124 #define FSTYPE_STATFS 1
33125 _ACEOF
33126  fstype=4.4BSD/OSF1
33127 fi
33128 rm -f conftest*
33129
33130 fi
33131 if test $fstype = no; then
33132    cat >conftest.$ac_ext <<_ACEOF
33133 /* confdefs.h.  */
33134 _ACEOF
33135 cat confdefs.h >>conftest.$ac_ext
33136 cat >>conftest.$ac_ext <<_ACEOF
33137 /* end confdefs.h.  */
33138
33139           #include <sys/mount.h>
33140           #include <sys/fs_types.h>
33141
33142 _ACEOF
33143 if { (ac_try="$ac_cpp conftest.$ac_ext"
33144 case "(($ac_try" in
33145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33146   *) ac_try_echo=$ac_try;;
33147 esac
33148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33149   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33150   ac_status=$?
33151   grep -v '^ *+' conftest.er1 >conftest.err
33152   rm -f conftest.er1
33153   cat conftest.err >&5
33154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33155   (exit $ac_status); } >/dev/null && {
33156          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33157          test ! -s conftest.err
33158        }; then
33159   cat >>confdefs.h <<\_ACEOF
33160 #define FSTYPE_GETMNT 1
33161 _ACEOF
33162  fstype=Ultrix
33163
33164 else
33165   echo "$as_me: failed program was:" >&5
33166 sed 's/^/| /' conftest.$ac_ext >&5
33167
33168
33169 fi
33170
33171 rm -f conftest.err conftest.$ac_ext
33172 fi
33173 { echo "$as_me:$LINENO: result: $fstype" >&5
33174 echo "${ECHO_T}$fstype" >&6; }
33175
33176 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33177   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33178 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33179 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33180   echo $ECHO_N "(cached) $ECHO_C" >&6
33181 fi
33182 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33183 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33184 else
33185   # Is the header compilable?
33186 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
33187 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
33188 cat >conftest.$ac_ext <<_ACEOF
33189 /* confdefs.h.  */
33190 _ACEOF
33191 cat confdefs.h >>conftest.$ac_ext
33192 cat >>conftest.$ac_ext <<_ACEOF
33193 /* end confdefs.h.  */
33194 $ac_includes_default
33195 #include <sys/statvfs.h>
33196 _ACEOF
33197 rm -f conftest.$ac_objext
33198 if { (ac_try="$ac_compile"
33199 case "(($ac_try" in
33200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33201   *) ac_try_echo=$ac_try;;
33202 esac
33203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33204   (eval "$ac_compile") 2>conftest.er1
33205   ac_status=$?
33206   grep -v '^ *+' conftest.er1 >conftest.err
33207   rm -f conftest.er1
33208   cat conftest.err >&5
33209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33210   (exit $ac_status); } && {
33211          test -z "$ac_cxx_werror_flag" ||
33212          test ! -s conftest.err
33213        } && test -s conftest.$ac_objext; then
33214   ac_header_compiler=yes
33215 else
33216   echo "$as_me: failed program was:" >&5
33217 sed 's/^/| /' conftest.$ac_ext >&5
33218
33219         ac_header_compiler=no
33220 fi
33221
33222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33224 echo "${ECHO_T}$ac_header_compiler" >&6; }
33225
33226 # Is the header present?
33227 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
33228 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
33229 cat >conftest.$ac_ext <<_ACEOF
33230 /* confdefs.h.  */
33231 _ACEOF
33232 cat confdefs.h >>conftest.$ac_ext
33233 cat >>conftest.$ac_ext <<_ACEOF
33234 /* end confdefs.h.  */
33235 #include <sys/statvfs.h>
33236 _ACEOF
33237 if { (ac_try="$ac_cpp conftest.$ac_ext"
33238 case "(($ac_try" in
33239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33240   *) ac_try_echo=$ac_try;;
33241 esac
33242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33243   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33244   ac_status=$?
33245   grep -v '^ *+' conftest.er1 >conftest.err
33246   rm -f conftest.er1
33247   cat conftest.err >&5
33248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33249   (exit $ac_status); } >/dev/null && {
33250          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33251          test ! -s conftest.err
33252        }; then
33253   ac_header_preproc=yes
33254 else
33255   echo "$as_me: failed program was:" >&5
33256 sed 's/^/| /' conftest.$ac_ext >&5
33257
33258   ac_header_preproc=no
33259 fi
33260
33261 rm -f conftest.err conftest.$ac_ext
33262 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33263 echo "${ECHO_T}$ac_header_preproc" >&6; }
33264
33265 # So?  What about this header?
33266 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
33267   yes:no: )
33268     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
33269 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33270     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33271 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33272     ac_header_preproc=yes
33273     ;;
33274   no:yes:* )
33275     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33276 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33277     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
33278 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
33279     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33280 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33281     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
33282 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33283     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33284 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33285     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33286 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33287
33288     ;;
33289 esac
33290 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33291 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33292 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33293   echo $ECHO_N "(cached) $ECHO_C" >&6
33294 else
33295   ac_cv_header_sys_statvfs_h=$ac_header_preproc
33296 fi
33297 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33298 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33299
33300 fi
33301 if test $ac_cv_header_sys_statvfs_h = yes; then
33302
33303 cat >>confdefs.h <<\_ACEOF
33304 #define HAVE_SYS_STATVFS_H 1
33305 _ACEOF
33306
33307 fi
33308
33309
33310
33311 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33312 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33313 if test "${ac_cv_type_signal+set}" = set; then
33314   echo $ECHO_N "(cached) $ECHO_C" >&6
33315 else
33316   cat >conftest.$ac_ext <<_ACEOF
33317 /* confdefs.h.  */
33318 _ACEOF
33319 cat confdefs.h >>conftest.$ac_ext
33320 cat >>conftest.$ac_ext <<_ACEOF
33321 /* end confdefs.h.  */
33322 #include <sys/types.h>
33323 #include <signal.h>
33324
33325 int
33326 main ()
33327 {
33328 return *(signal (0, 0)) (0) == 1;
33329   ;
33330   return 0;
33331 }
33332 _ACEOF
33333 rm -f conftest.$ac_objext
33334 if { (ac_try="$ac_compile"
33335 case "(($ac_try" in
33336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33337   *) ac_try_echo=$ac_try;;
33338 esac
33339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33340   (eval "$ac_compile") 2>conftest.er1
33341   ac_status=$?
33342   grep -v '^ *+' conftest.er1 >conftest.err
33343   rm -f conftest.er1
33344   cat conftest.err >&5
33345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33346   (exit $ac_status); } && {
33347          test -z "$ac_cxx_werror_flag" ||
33348          test ! -s conftest.err
33349        } && test -s conftest.$ac_objext; then
33350   ac_cv_type_signal=int
33351 else
33352   echo "$as_me: failed program was:" >&5
33353 sed 's/^/| /' conftest.$ac_ext >&5
33354
33355         ac_cv_type_signal=void
33356 fi
33357
33358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33359 fi
33360 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33361 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33362
33363 cat >>confdefs.h <<_ACEOF
33364 #define RETSIGTYPE $ac_cv_type_signal
33365 _ACEOF
33366
33367
33368
33369   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33370 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33371   if test "${bash_cv_signal_vintage+set}" = set; then
33372   echo $ECHO_N "(cached) $ECHO_C" >&6
33373 else
33374
33375     cat >conftest.$ac_ext <<_ACEOF
33376 /* confdefs.h.  */
33377 _ACEOF
33378 cat confdefs.h >>conftest.$ac_ext
33379 cat >>conftest.$ac_ext <<_ACEOF
33380 /* end confdefs.h.  */
33381 #include <signal.h>
33382 int
33383 main ()
33384 {
33385
33386       sigset_t ss;
33387       struct sigaction sa;
33388       sigemptyset(&ss); sigsuspend(&ss);
33389       sigaction(SIGINT, &sa, (struct sigaction *) 0);
33390       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33391
33392   ;
33393   return 0;
33394 }
33395 _ACEOF
33396 rm -f conftest.$ac_objext conftest$ac_exeext
33397 if { (ac_try="$ac_link"
33398 case "(($ac_try" in
33399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33400   *) ac_try_echo=$ac_try;;
33401 esac
33402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33403   (eval "$ac_link") 2>conftest.er1
33404   ac_status=$?
33405   grep -v '^ *+' conftest.er1 >conftest.err
33406   rm -f conftest.er1
33407   cat conftest.err >&5
33408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33409   (exit $ac_status); } && {
33410          test -z "$ac_cxx_werror_flag" ||
33411          test ! -s conftest.err
33412        } && test -s conftest$ac_exeext &&
33413        $as_test_x conftest$ac_exeext; then
33414   bash_cv_signal_vintage="posix"
33415 else
33416   echo "$as_me: failed program was:" >&5
33417 sed 's/^/| /' conftest.$ac_ext >&5
33418
33419
33420       cat >conftest.$ac_ext <<_ACEOF
33421 /* confdefs.h.  */
33422 _ACEOF
33423 cat confdefs.h >>conftest.$ac_ext
33424 cat >>conftest.$ac_ext <<_ACEOF
33425 /* end confdefs.h.  */
33426 #include <signal.h>
33427 int
33428 main ()
33429 {
33430
33431           int mask = sigmask(SIGINT);
33432           sigsetmask(mask); sigblock(mask); sigpause(mask);
33433
33434   ;
33435   return 0;
33436 }
33437 _ACEOF
33438 rm -f conftest.$ac_objext conftest$ac_exeext
33439 if { (ac_try="$ac_link"
33440 case "(($ac_try" in
33441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33442   *) ac_try_echo=$ac_try;;
33443 esac
33444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33445   (eval "$ac_link") 2>conftest.er1
33446   ac_status=$?
33447   grep -v '^ *+' conftest.er1 >conftest.err
33448   rm -f conftest.er1
33449   cat conftest.err >&5
33450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33451   (exit $ac_status); } && {
33452          test -z "$ac_cxx_werror_flag" ||
33453          test ! -s conftest.err
33454        } && test -s conftest$ac_exeext &&
33455        $as_test_x conftest$ac_exeext; then
33456   bash_cv_signal_vintage="4.2bsd"
33457 else
33458   echo "$as_me: failed program was:" >&5
33459 sed 's/^/| /' conftest.$ac_ext >&5
33460
33461
33462         cat >conftest.$ac_ext <<_ACEOF
33463 /* confdefs.h.  */
33464 _ACEOF
33465 cat confdefs.h >>conftest.$ac_ext
33466 cat >>conftest.$ac_ext <<_ACEOF
33467 /* end confdefs.h.  */
33468
33469           #include <signal.h>
33470           RETSIGTYPE foo() { }
33471 int
33472 main ()
33473 {
33474
33475                   int mask = sigmask(SIGINT);
33476                   sigset(SIGINT, foo); sigrelse(SIGINT);
33477                   sighold(SIGINT); sigpause(SIGINT);
33478
33479   ;
33480   return 0;
33481 }
33482 _ACEOF
33483 rm -f conftest.$ac_objext conftest$ac_exeext
33484 if { (ac_try="$ac_link"
33485 case "(($ac_try" in
33486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33487   *) ac_try_echo=$ac_try;;
33488 esac
33489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33490   (eval "$ac_link") 2>conftest.er1
33491   ac_status=$?
33492   grep -v '^ *+' conftest.er1 >conftest.err
33493   rm -f conftest.er1
33494   cat conftest.err >&5
33495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33496   (exit $ac_status); } && {
33497          test -z "$ac_cxx_werror_flag" ||
33498          test ! -s conftest.err
33499        } && test -s conftest$ac_exeext &&
33500        $as_test_x conftest$ac_exeext; then
33501   bash_cv_signal_vintage="svr3"
33502 else
33503   echo "$as_me: failed program was:" >&5
33504 sed 's/^/| /' conftest.$ac_ext >&5
33505
33506         bash_cv_signal_vintage="v7"
33507
33508 fi
33509
33510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33511       conftest$ac_exeext conftest.$ac_ext
33512
33513 fi
33514
33515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33516       conftest$ac_exeext conftest.$ac_ext
33517
33518 fi
33519
33520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33521       conftest$ac_exeext conftest.$ac_ext
33522
33523 fi
33524
33525   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33526 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33527   if test "$bash_cv_signal_vintage" = "posix"; then
33528     cat >>confdefs.h <<\_ACEOF
33529 #define HAVE_POSIX_SIGNALS 1
33530 _ACEOF
33531
33532   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33533     cat >>confdefs.h <<\_ACEOF
33534 #define HAVE_BSD_SIGNALS 1
33535 _ACEOF
33536
33537   elif test "$bash_cv_signal_vintage" = "svr3"; then
33538     cat >>confdefs.h <<\_ACEOF
33539 #define HAVE_USG_SIGHOLD 1
33540 _ACEOF
33541
33542   fi
33543
33544 { echo "$as_me:$LINENO: checking for mode_t" >&5
33545 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33546 if test "${ac_cv_type_mode_t+set}" = set; then
33547   echo $ECHO_N "(cached) $ECHO_C" >&6
33548 else
33549   cat >conftest.$ac_ext <<_ACEOF
33550 /* confdefs.h.  */
33551 _ACEOF
33552 cat confdefs.h >>conftest.$ac_ext
33553 cat >>conftest.$ac_ext <<_ACEOF
33554 /* end confdefs.h.  */
33555 $ac_includes_default
33556 typedef mode_t ac__type_new_;
33557 int
33558 main ()
33559 {
33560 if ((ac__type_new_ *) 0)
33561   return 0;
33562 if (sizeof (ac__type_new_))
33563   return 0;
33564   ;
33565   return 0;
33566 }
33567 _ACEOF
33568 rm -f conftest.$ac_objext
33569 if { (ac_try="$ac_compile"
33570 case "(($ac_try" in
33571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33572   *) ac_try_echo=$ac_try;;
33573 esac
33574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33575   (eval "$ac_compile") 2>conftest.er1
33576   ac_status=$?
33577   grep -v '^ *+' conftest.er1 >conftest.err
33578   rm -f conftest.er1
33579   cat conftest.err >&5
33580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33581   (exit $ac_status); } && {
33582          test -z "$ac_cxx_werror_flag" ||
33583          test ! -s conftest.err
33584        } && test -s conftest.$ac_objext; then
33585   ac_cv_type_mode_t=yes
33586 else
33587   echo "$as_me: failed program was:" >&5
33588 sed 's/^/| /' conftest.$ac_ext >&5
33589
33590         ac_cv_type_mode_t=no
33591 fi
33592
33593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33594 fi
33595 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33596 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33597 if test $ac_cv_type_mode_t = yes; then
33598   :
33599 else
33600
33601 cat >>confdefs.h <<_ACEOF
33602 #define mode_t int
33603 _ACEOF
33604
33605 fi
33606
33607 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33608 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33609 if test "${ac_cv_type_uid_t+set}" = set; then
33610   echo $ECHO_N "(cached) $ECHO_C" >&6
33611 else
33612   cat >conftest.$ac_ext <<_ACEOF
33613 /* confdefs.h.  */
33614 _ACEOF
33615 cat confdefs.h >>conftest.$ac_ext
33616 cat >>conftest.$ac_ext <<_ACEOF
33617 /* end confdefs.h.  */
33618 #include <sys/types.h>
33619
33620 _ACEOF
33621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33622   $EGREP "uid_t" >/dev/null 2>&1; then
33623   ac_cv_type_uid_t=yes
33624 else
33625   ac_cv_type_uid_t=no
33626 fi
33627 rm -f conftest*
33628
33629 fi
33630 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33631 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33632 if test $ac_cv_type_uid_t = no; then
33633
33634 cat >>confdefs.h <<\_ACEOF
33635 #define uid_t int
33636 _ACEOF
33637
33638
33639 cat >>confdefs.h <<\_ACEOF
33640 #define gid_t int
33641 _ACEOF
33642
33643 fi
33644
33645 { echo "$as_me:$LINENO: checking for size_t" >&5
33646 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33647 if test "${ac_cv_type_size_t+set}" = set; then
33648   echo $ECHO_N "(cached) $ECHO_C" >&6
33649 else
33650   cat >conftest.$ac_ext <<_ACEOF
33651 /* confdefs.h.  */
33652 _ACEOF
33653 cat confdefs.h >>conftest.$ac_ext
33654 cat >>conftest.$ac_ext <<_ACEOF
33655 /* end confdefs.h.  */
33656 $ac_includes_default
33657 typedef size_t ac__type_new_;
33658 int
33659 main ()
33660 {
33661 if ((ac__type_new_ *) 0)
33662   return 0;
33663 if (sizeof (ac__type_new_))
33664   return 0;
33665   ;
33666   return 0;
33667 }
33668 _ACEOF
33669 rm -f conftest.$ac_objext
33670 if { (ac_try="$ac_compile"
33671 case "(($ac_try" in
33672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33673   *) ac_try_echo=$ac_try;;
33674 esac
33675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33676   (eval "$ac_compile") 2>conftest.er1
33677   ac_status=$?
33678   grep -v '^ *+' conftest.er1 >conftest.err
33679   rm -f conftest.er1
33680   cat conftest.err >&5
33681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33682   (exit $ac_status); } && {
33683          test -z "$ac_cxx_werror_flag" ||
33684          test ! -s conftest.err
33685        } && test -s conftest.$ac_objext; then
33686   ac_cv_type_size_t=yes
33687 else
33688   echo "$as_me: failed program was:" >&5
33689 sed 's/^/| /' conftest.$ac_ext >&5
33690
33691         ac_cv_type_size_t=no
33692 fi
33693
33694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33695 fi
33696 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33697 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33698 if test $ac_cv_type_size_t = yes; then
33699   :
33700 else
33701
33702 cat >>confdefs.h <<_ACEOF
33703 #define size_t unsigned int
33704 _ACEOF
33705
33706 fi
33707
33708 { echo "$as_me:$LINENO: checking for pid_t" >&5
33709 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33710 if test "${ac_cv_type_pid_t+set}" = set; then
33711   echo $ECHO_N "(cached) $ECHO_C" >&6
33712 else
33713   cat >conftest.$ac_ext <<_ACEOF
33714 /* confdefs.h.  */
33715 _ACEOF
33716 cat confdefs.h >>conftest.$ac_ext
33717 cat >>conftest.$ac_ext <<_ACEOF
33718 /* end confdefs.h.  */
33719 $ac_includes_default
33720 typedef pid_t ac__type_new_;
33721 int
33722 main ()
33723 {
33724 if ((ac__type_new_ *) 0)
33725   return 0;
33726 if (sizeof (ac__type_new_))
33727   return 0;
33728   ;
33729   return 0;
33730 }
33731 _ACEOF
33732 rm -f conftest.$ac_objext
33733 if { (ac_try="$ac_compile"
33734 case "(($ac_try" in
33735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33736   *) ac_try_echo=$ac_try;;
33737 esac
33738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33739   (eval "$ac_compile") 2>conftest.er1
33740   ac_status=$?
33741   grep -v '^ *+' conftest.er1 >conftest.err
33742   rm -f conftest.er1
33743   cat conftest.err >&5
33744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33745   (exit $ac_status); } && {
33746          test -z "$ac_cxx_werror_flag" ||
33747          test ! -s conftest.err
33748        } && test -s conftest.$ac_objext; then
33749   ac_cv_type_pid_t=yes
33750 else
33751   echo "$as_me: failed program was:" >&5
33752 sed 's/^/| /' conftest.$ac_ext >&5
33753
33754         ac_cv_type_pid_t=no
33755 fi
33756
33757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33758 fi
33759 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33760 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33761 if test $ac_cv_type_pid_t = yes; then
33762   :
33763 else
33764
33765 cat >>confdefs.h <<_ACEOF
33766 #define pid_t int
33767 _ACEOF
33768
33769 fi
33770
33771 { echo "$as_me:$LINENO: checking for off_t" >&5
33772 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33773 if test "${ac_cv_type_off_t+set}" = set; then
33774   echo $ECHO_N "(cached) $ECHO_C" >&6
33775 else
33776   cat >conftest.$ac_ext <<_ACEOF
33777 /* confdefs.h.  */
33778 _ACEOF
33779 cat confdefs.h >>conftest.$ac_ext
33780 cat >>conftest.$ac_ext <<_ACEOF
33781 /* end confdefs.h.  */
33782 $ac_includes_default
33783 typedef off_t ac__type_new_;
33784 int
33785 main ()
33786 {
33787 if ((ac__type_new_ *) 0)
33788   return 0;
33789 if (sizeof (ac__type_new_))
33790   return 0;
33791   ;
33792   return 0;
33793 }
33794 _ACEOF
33795 rm -f conftest.$ac_objext
33796 if { (ac_try="$ac_compile"
33797 case "(($ac_try" in
33798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33799   *) ac_try_echo=$ac_try;;
33800 esac
33801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33802   (eval "$ac_compile") 2>conftest.er1
33803   ac_status=$?
33804   grep -v '^ *+' conftest.er1 >conftest.err
33805   rm -f conftest.er1
33806   cat conftest.err >&5
33807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33808   (exit $ac_status); } && {
33809          test -z "$ac_cxx_werror_flag" ||
33810          test ! -s conftest.err
33811        } && test -s conftest.$ac_objext; then
33812   ac_cv_type_off_t=yes
33813 else
33814   echo "$as_me: failed program was:" >&5
33815 sed 's/^/| /' conftest.$ac_ext >&5
33816
33817         ac_cv_type_off_t=no
33818 fi
33819
33820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33821 fi
33822 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33823 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33824 if test $ac_cv_type_off_t = yes; then
33825   :
33826 else
33827
33828 cat >>confdefs.h <<_ACEOF
33829 #define off_t long int
33830 _ACEOF
33831
33832 fi
33833
33834
33835   { echo "$as_me:$LINENO: checking for intptr_t" >&5
33836 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33837 if test "${ac_cv_type_intptr_t+set}" = set; then
33838   echo $ECHO_N "(cached) $ECHO_C" >&6
33839 else
33840   cat >conftest.$ac_ext <<_ACEOF
33841 /* confdefs.h.  */
33842 _ACEOF
33843 cat confdefs.h >>conftest.$ac_ext
33844 cat >>conftest.$ac_ext <<_ACEOF
33845 /* end confdefs.h.  */
33846 $ac_includes_default
33847 typedef intptr_t ac__type_new_;
33848 int
33849 main ()
33850 {
33851 if ((ac__type_new_ *) 0)
33852   return 0;
33853 if (sizeof (ac__type_new_))
33854   return 0;
33855   ;
33856   return 0;
33857 }
33858 _ACEOF
33859 rm -f conftest.$ac_objext
33860 if { (ac_try="$ac_compile"
33861 case "(($ac_try" in
33862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33863   *) ac_try_echo=$ac_try;;
33864 esac
33865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33866   (eval "$ac_compile") 2>conftest.er1
33867   ac_status=$?
33868   grep -v '^ *+' conftest.er1 >conftest.err
33869   rm -f conftest.er1
33870   cat conftest.err >&5
33871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33872   (exit $ac_status); } && {
33873          test -z "$ac_cxx_werror_flag" ||
33874          test ! -s conftest.err
33875        } && test -s conftest.$ac_objext; then
33876   ac_cv_type_intptr_t=yes
33877 else
33878   echo "$as_me: failed program was:" >&5
33879 sed 's/^/| /' conftest.$ac_ext >&5
33880
33881         ac_cv_type_intptr_t=no
33882 fi
33883
33884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33885 fi
33886 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33887 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33888 if test $ac_cv_type_intptr_t = yes; then
33889
33890 cat >>confdefs.h <<\_ACEOF
33891 #define HAVE_INTPTR_T 1
33892 _ACEOF
33893
33894 else
33895   for ac_type in 'int' 'long int' 'long long int'; do
33896        cat >conftest.$ac_ext <<_ACEOF
33897 /* confdefs.h.  */
33898 _ACEOF
33899 cat confdefs.h >>conftest.$ac_ext
33900 cat >>conftest.$ac_ext <<_ACEOF
33901 /* end confdefs.h.  */
33902 $ac_includes_default
33903 int
33904 main ()
33905 {
33906 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33907 test_array [0] = 0
33908
33909   ;
33910   return 0;
33911 }
33912 _ACEOF
33913 rm -f conftest.$ac_objext
33914 if { (ac_try="$ac_compile"
33915 case "(($ac_try" in
33916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33917   *) ac_try_echo=$ac_try;;
33918 esac
33919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33920   (eval "$ac_compile") 2>conftest.er1
33921   ac_status=$?
33922   grep -v '^ *+' conftest.er1 >conftest.err
33923   rm -f conftest.er1
33924   cat conftest.err >&5
33925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33926   (exit $ac_status); } && {
33927          test -z "$ac_cxx_werror_flag" ||
33928          test ! -s conftest.err
33929        } && test -s conftest.$ac_objext; then
33930
33931 cat >>confdefs.h <<_ACEOF
33932 #define intptr_t $ac_type
33933 _ACEOF
33934
33935           ac_type=
33936 else
33937   echo "$as_me: failed program was:" >&5
33938 sed 's/^/| /' conftest.$ac_ext >&5
33939
33940
33941 fi
33942
33943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33944        test -z "$ac_type" && break
33945      done
33946 fi
33947
33948
33949
33950   { echo "$as_me:$LINENO: checking for uintptr_t" >&5
33951 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
33952 if test "${ac_cv_type_uintptr_t+set}" = set; then
33953   echo $ECHO_N "(cached) $ECHO_C" >&6
33954 else
33955   cat >conftest.$ac_ext <<_ACEOF
33956 /* confdefs.h.  */
33957 _ACEOF
33958 cat confdefs.h >>conftest.$ac_ext
33959 cat >>conftest.$ac_ext <<_ACEOF
33960 /* end confdefs.h.  */
33961 $ac_includes_default
33962 typedef uintptr_t ac__type_new_;
33963 int
33964 main ()
33965 {
33966 if ((ac__type_new_ *) 0)
33967   return 0;
33968 if (sizeof (ac__type_new_))
33969   return 0;
33970   ;
33971   return 0;
33972 }
33973 _ACEOF
33974 rm -f conftest.$ac_objext
33975 if { (ac_try="$ac_compile"
33976 case "(($ac_try" in
33977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33978   *) ac_try_echo=$ac_try;;
33979 esac
33980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33981   (eval "$ac_compile") 2>conftest.er1
33982   ac_status=$?
33983   grep -v '^ *+' conftest.er1 >conftest.err
33984   rm -f conftest.er1
33985   cat conftest.err >&5
33986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33987   (exit $ac_status); } && {
33988          test -z "$ac_cxx_werror_flag" ||
33989          test ! -s conftest.err
33990        } && test -s conftest.$ac_objext; then
33991   ac_cv_type_uintptr_t=yes
33992 else
33993   echo "$as_me: failed program was:" >&5
33994 sed 's/^/| /' conftest.$ac_ext >&5
33995
33996         ac_cv_type_uintptr_t=no
33997 fi
33998
33999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34000 fi
34001 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
34002 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
34003 if test $ac_cv_type_uintptr_t = yes; then
34004
34005 cat >>confdefs.h <<\_ACEOF
34006 #define HAVE_UINTPTR_T 1
34007 _ACEOF
34008
34009 else
34010   for ac_type in 'unsigned int' 'unsigned long int' \
34011         'unsigned long long int'; do
34012        cat >conftest.$ac_ext <<_ACEOF
34013 /* confdefs.h.  */
34014 _ACEOF
34015 cat confdefs.h >>conftest.$ac_ext
34016 cat >>conftest.$ac_ext <<_ACEOF
34017 /* end confdefs.h.  */
34018 $ac_includes_default
34019 int
34020 main ()
34021 {
34022 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
34023 test_array [0] = 0
34024
34025   ;
34026   return 0;
34027 }
34028 _ACEOF
34029 rm -f conftest.$ac_objext
34030 if { (ac_try="$ac_compile"
34031 case "(($ac_try" in
34032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34033   *) ac_try_echo=$ac_try;;
34034 esac
34035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34036   (eval "$ac_compile") 2>conftest.er1
34037   ac_status=$?
34038   grep -v '^ *+' conftest.er1 >conftest.err
34039   rm -f conftest.er1
34040   cat conftest.err >&5
34041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34042   (exit $ac_status); } && {
34043          test -z "$ac_cxx_werror_flag" ||
34044          test ! -s conftest.err
34045        } && test -s conftest.$ac_objext; then
34046
34047 cat >>confdefs.h <<_ACEOF
34048 #define uintptr_t $ac_type
34049 _ACEOF
34050
34051           ac_type=
34052 else
34053   echo "$as_me: failed program was:" >&5
34054 sed 's/^/| /' conftest.$ac_ext >&5
34055
34056
34057 fi
34058
34059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34060        test -z "$ac_type" && break
34061      done
34062 fi
34063
34064
34065 { echo "$as_me:$LINENO: checking for ino_t" >&5
34066 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
34067 if test "${ac_cv_type_ino_t+set}" = set; then
34068   echo $ECHO_N "(cached) $ECHO_C" >&6
34069 else
34070   cat >conftest.$ac_ext <<_ACEOF
34071 /* confdefs.h.  */
34072 _ACEOF
34073 cat confdefs.h >>conftest.$ac_ext
34074 cat >>conftest.$ac_ext <<_ACEOF
34075 /* end confdefs.h.  */
34076 $ac_includes_default
34077 typedef ino_t ac__type_new_;
34078 int
34079 main ()
34080 {
34081 if ((ac__type_new_ *) 0)
34082   return 0;
34083 if (sizeof (ac__type_new_))
34084   return 0;
34085   ;
34086   return 0;
34087 }
34088 _ACEOF
34089 rm -f conftest.$ac_objext
34090 if { (ac_try="$ac_compile"
34091 case "(($ac_try" in
34092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34093   *) ac_try_echo=$ac_try;;
34094 esac
34095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34096   (eval "$ac_compile") 2>conftest.er1
34097   ac_status=$?
34098   grep -v '^ *+' conftest.er1 >conftest.err
34099   rm -f conftest.er1
34100   cat conftest.err >&5
34101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34102   (exit $ac_status); } && {
34103          test -z "$ac_cxx_werror_flag" ||
34104          test ! -s conftest.err
34105        } && test -s conftest.$ac_objext; then
34106   ac_cv_type_ino_t=yes
34107 else
34108   echo "$as_me: failed program was:" >&5
34109 sed 's/^/| /' conftest.$ac_ext >&5
34110
34111         ac_cv_type_ino_t=no
34112 fi
34113
34114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34115 fi
34116 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
34117 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
34118 if test $ac_cv_type_ino_t = yes; then
34119   :
34120 else
34121
34122 cat >>confdefs.h <<_ACEOF
34123 #define ino_t unsigned long
34124 _ACEOF
34125
34126 fi
34127
34128 { echo "$as_me:$LINENO: checking for dev_t" >&5
34129 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
34130 if test "${ac_cv_type_dev_t+set}" = set; then
34131   echo $ECHO_N "(cached) $ECHO_C" >&6
34132 else
34133   cat >conftest.$ac_ext <<_ACEOF
34134 /* confdefs.h.  */
34135 _ACEOF
34136 cat confdefs.h >>conftest.$ac_ext
34137 cat >>conftest.$ac_ext <<_ACEOF
34138 /* end confdefs.h.  */
34139 $ac_includes_default
34140 typedef dev_t ac__type_new_;
34141 int
34142 main ()
34143 {
34144 if ((ac__type_new_ *) 0)
34145   return 0;
34146 if (sizeof (ac__type_new_))
34147   return 0;
34148   ;
34149   return 0;
34150 }
34151 _ACEOF
34152 rm -f conftest.$ac_objext
34153 if { (ac_try="$ac_compile"
34154 case "(($ac_try" in
34155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34156   *) ac_try_echo=$ac_try;;
34157 esac
34158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34159   (eval "$ac_compile") 2>conftest.er1
34160   ac_status=$?
34161   grep -v '^ *+' conftest.er1 >conftest.err
34162   rm -f conftest.er1
34163   cat conftest.err >&5
34164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34165   (exit $ac_status); } && {
34166          test -z "$ac_cxx_werror_flag" ||
34167          test ! -s conftest.err
34168        } && test -s conftest.$ac_objext; then
34169   ac_cv_type_dev_t=yes
34170 else
34171   echo "$as_me: failed program was:" >&5
34172 sed 's/^/| /' conftest.$ac_ext >&5
34173
34174         ac_cv_type_dev_t=no
34175 fi
34176
34177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34178 fi
34179 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
34180 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
34181 if test $ac_cv_type_dev_t = yes; then
34182   :
34183 else
34184
34185 cat >>confdefs.h <<_ACEOF
34186 #define dev_t unsigned long
34187 _ACEOF
34188
34189 fi
34190
34191 { echo "$as_me:$LINENO: checking for daddr_t" >&5
34192 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
34193 if test "${ac_cv_type_daddr_t+set}" = set; then
34194   echo $ECHO_N "(cached) $ECHO_C" >&6
34195 else
34196   cat >conftest.$ac_ext <<_ACEOF
34197 /* confdefs.h.  */
34198 _ACEOF
34199 cat confdefs.h >>conftest.$ac_ext
34200 cat >>conftest.$ac_ext <<_ACEOF
34201 /* end confdefs.h.  */
34202 $ac_includes_default
34203 typedef daddr_t ac__type_new_;
34204 int
34205 main ()
34206 {
34207 if ((ac__type_new_ *) 0)
34208   return 0;
34209 if (sizeof (ac__type_new_))
34210   return 0;
34211   ;
34212   return 0;
34213 }
34214 _ACEOF
34215 rm -f conftest.$ac_objext
34216 if { (ac_try="$ac_compile"
34217 case "(($ac_try" in
34218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34219   *) ac_try_echo=$ac_try;;
34220 esac
34221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34222   (eval "$ac_compile") 2>conftest.er1
34223   ac_status=$?
34224   grep -v '^ *+' conftest.er1 >conftest.err
34225   rm -f conftest.er1
34226   cat conftest.err >&5
34227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34228   (exit $ac_status); } && {
34229          test -z "$ac_cxx_werror_flag" ||
34230          test ! -s conftest.err
34231        } && test -s conftest.$ac_objext; then
34232   ac_cv_type_daddr_t=yes
34233 else
34234   echo "$as_me: failed program was:" >&5
34235 sed 's/^/| /' conftest.$ac_ext >&5
34236
34237         ac_cv_type_daddr_t=no
34238 fi
34239
34240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34241 fi
34242 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
34243 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
34244 if test $ac_cv_type_daddr_t = yes; then
34245   :
34246 else
34247
34248 cat >>confdefs.h <<_ACEOF
34249 #define daddr_t long
34250 _ACEOF
34251
34252 fi
34253
34254 { echo "$as_me:$LINENO: checking for major_t" >&5
34255 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
34256 if test "${ac_cv_type_major_t+set}" = set; then
34257   echo $ECHO_N "(cached) $ECHO_C" >&6
34258 else
34259   cat >conftest.$ac_ext <<_ACEOF
34260 /* confdefs.h.  */
34261 _ACEOF
34262 cat confdefs.h >>conftest.$ac_ext
34263 cat >>conftest.$ac_ext <<_ACEOF
34264 /* end confdefs.h.  */
34265 $ac_includes_default
34266 typedef major_t ac__type_new_;
34267 int
34268 main ()
34269 {
34270 if ((ac__type_new_ *) 0)
34271   return 0;
34272 if (sizeof (ac__type_new_))
34273   return 0;
34274   ;
34275   return 0;
34276 }
34277 _ACEOF
34278 rm -f conftest.$ac_objext
34279 if { (ac_try="$ac_compile"
34280 case "(($ac_try" in
34281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34282   *) ac_try_echo=$ac_try;;
34283 esac
34284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34285   (eval "$ac_compile") 2>conftest.er1
34286   ac_status=$?
34287   grep -v '^ *+' conftest.er1 >conftest.err
34288   rm -f conftest.er1
34289   cat conftest.err >&5
34290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34291   (exit $ac_status); } && {
34292          test -z "$ac_cxx_werror_flag" ||
34293          test ! -s conftest.err
34294        } && test -s conftest.$ac_objext; then
34295   ac_cv_type_major_t=yes
34296 else
34297   echo "$as_me: failed program was:" >&5
34298 sed 's/^/| /' conftest.$ac_ext >&5
34299
34300         ac_cv_type_major_t=no
34301 fi
34302
34303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34304 fi
34305 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34306 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34307 if test $ac_cv_type_major_t = yes; then
34308   :
34309 else
34310
34311 cat >>confdefs.h <<_ACEOF
34312 #define major_t int
34313 _ACEOF
34314
34315 fi
34316
34317 { echo "$as_me:$LINENO: checking for minor_t" >&5
34318 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34319 if test "${ac_cv_type_minor_t+set}" = set; then
34320   echo $ECHO_N "(cached) $ECHO_C" >&6
34321 else
34322   cat >conftest.$ac_ext <<_ACEOF
34323 /* confdefs.h.  */
34324 _ACEOF
34325 cat confdefs.h >>conftest.$ac_ext
34326 cat >>conftest.$ac_ext <<_ACEOF
34327 /* end confdefs.h.  */
34328 $ac_includes_default
34329 typedef minor_t ac__type_new_;
34330 int
34331 main ()
34332 {
34333 if ((ac__type_new_ *) 0)
34334   return 0;
34335 if (sizeof (ac__type_new_))
34336   return 0;
34337   ;
34338   return 0;
34339 }
34340 _ACEOF
34341 rm -f conftest.$ac_objext
34342 if { (ac_try="$ac_compile"
34343 case "(($ac_try" in
34344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34345   *) ac_try_echo=$ac_try;;
34346 esac
34347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34348   (eval "$ac_compile") 2>conftest.er1
34349   ac_status=$?
34350   grep -v '^ *+' conftest.er1 >conftest.err
34351   rm -f conftest.er1
34352   cat conftest.err >&5
34353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34354   (exit $ac_status); } && {
34355          test -z "$ac_cxx_werror_flag" ||
34356          test ! -s conftest.err
34357        } && test -s conftest.$ac_objext; then
34358   ac_cv_type_minor_t=yes
34359 else
34360   echo "$as_me: failed program was:" >&5
34361 sed 's/^/| /' conftest.$ac_ext >&5
34362
34363         ac_cv_type_minor_t=no
34364 fi
34365
34366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34367 fi
34368 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34369 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34370 if test $ac_cv_type_minor_t = yes; then
34371   :
34372 else
34373
34374 cat >>confdefs.h <<_ACEOF
34375 #define minor_t int
34376 _ACEOF
34377
34378 fi
34379
34380 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34381 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34382 if test "${ac_cv_type_ssize_t+set}" = set; then
34383   echo $ECHO_N "(cached) $ECHO_C" >&6
34384 else
34385   cat >conftest.$ac_ext <<_ACEOF
34386 /* confdefs.h.  */
34387 _ACEOF
34388 cat confdefs.h >>conftest.$ac_ext
34389 cat >>conftest.$ac_ext <<_ACEOF
34390 /* end confdefs.h.  */
34391 $ac_includes_default
34392 typedef ssize_t ac__type_new_;
34393 int
34394 main ()
34395 {
34396 if ((ac__type_new_ *) 0)
34397   return 0;
34398 if (sizeof (ac__type_new_))
34399   return 0;
34400   ;
34401   return 0;
34402 }
34403 _ACEOF
34404 rm -f conftest.$ac_objext
34405 if { (ac_try="$ac_compile"
34406 case "(($ac_try" in
34407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34408   *) ac_try_echo=$ac_try;;
34409 esac
34410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34411   (eval "$ac_compile") 2>conftest.er1
34412   ac_status=$?
34413   grep -v '^ *+' conftest.er1 >conftest.err
34414   rm -f conftest.er1
34415   cat conftest.err >&5
34416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34417   (exit $ac_status); } && {
34418          test -z "$ac_cxx_werror_flag" ||
34419          test ! -s conftest.err
34420        } && test -s conftest.$ac_objext; then
34421   ac_cv_type_ssize_t=yes
34422 else
34423   echo "$as_me: failed program was:" >&5
34424 sed 's/^/| /' conftest.$ac_ext >&5
34425
34426         ac_cv_type_ssize_t=no
34427 fi
34428
34429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34430 fi
34431 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34432 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34433 if test $ac_cv_type_ssize_t = yes; then
34434   :
34435 else
34436
34437 cat >>confdefs.h <<_ACEOF
34438 #define ssize_t int
34439 _ACEOF
34440
34441 fi
34442
34443 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34444 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34445 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34446   echo $ECHO_N "(cached) $ECHO_C" >&6
34447 else
34448   cat >conftest.$ac_ext <<_ACEOF
34449 /* confdefs.h.  */
34450 _ACEOF
34451 cat confdefs.h >>conftest.$ac_ext
34452 cat >>conftest.$ac_ext <<_ACEOF
34453 /* end confdefs.h.  */
34454 $ac_includes_default
34455 int
34456 main ()
34457 {
34458 static struct stat ac_aggr;
34459 if (ac_aggr.st_blocks)
34460 return 0;
34461   ;
34462   return 0;
34463 }
34464 _ACEOF
34465 rm -f conftest.$ac_objext
34466 if { (ac_try="$ac_compile"
34467 case "(($ac_try" in
34468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34469   *) ac_try_echo=$ac_try;;
34470 esac
34471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34472   (eval "$ac_compile") 2>conftest.er1
34473   ac_status=$?
34474   grep -v '^ *+' conftest.er1 >conftest.err
34475   rm -f conftest.er1
34476   cat conftest.err >&5
34477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34478   (exit $ac_status); } && {
34479          test -z "$ac_cxx_werror_flag" ||
34480          test ! -s conftest.err
34481        } && test -s conftest.$ac_objext; then
34482   ac_cv_member_struct_stat_st_blocks=yes
34483 else
34484   echo "$as_me: failed program was:" >&5
34485 sed 's/^/| /' conftest.$ac_ext >&5
34486
34487         cat >conftest.$ac_ext <<_ACEOF
34488 /* confdefs.h.  */
34489 _ACEOF
34490 cat confdefs.h >>conftest.$ac_ext
34491 cat >>conftest.$ac_ext <<_ACEOF
34492 /* end confdefs.h.  */
34493 $ac_includes_default
34494 int
34495 main ()
34496 {
34497 static struct stat ac_aggr;
34498 if (sizeof ac_aggr.st_blocks)
34499 return 0;
34500   ;
34501   return 0;
34502 }
34503 _ACEOF
34504 rm -f conftest.$ac_objext
34505 if { (ac_try="$ac_compile"
34506 case "(($ac_try" in
34507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34508   *) ac_try_echo=$ac_try;;
34509 esac
34510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34511   (eval "$ac_compile") 2>conftest.er1
34512   ac_status=$?
34513   grep -v '^ *+' conftest.er1 >conftest.err
34514   rm -f conftest.er1
34515   cat conftest.err >&5
34516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34517   (exit $ac_status); } && {
34518          test -z "$ac_cxx_werror_flag" ||
34519          test ! -s conftest.err
34520        } && test -s conftest.$ac_objext; then
34521   ac_cv_member_struct_stat_st_blocks=yes
34522 else
34523   echo "$as_me: failed program was:" >&5
34524 sed 's/^/| /' conftest.$ac_ext >&5
34525
34526         ac_cv_member_struct_stat_st_blocks=no
34527 fi
34528
34529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34530 fi
34531
34532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34533 fi
34534 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34535 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34536 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34537
34538 cat >>confdefs.h <<_ACEOF
34539 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34540 _ACEOF
34541
34542
34543 cat >>confdefs.h <<\_ACEOF
34544 #define HAVE_ST_BLOCKS 1
34545 _ACEOF
34546
34547 else
34548   case " $LIBOBJS " in
34549   *" fileblocks.$ac_objext "* ) ;;
34550   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34551  ;;
34552 esac
34553
34554 fi
34555
34556
34557 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34558 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34559 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34560   echo $ECHO_N "(cached) $ECHO_C" >&6
34561 else
34562   cat >conftest.$ac_ext <<_ACEOF
34563 /* confdefs.h.  */
34564 _ACEOF
34565 cat confdefs.h >>conftest.$ac_ext
34566 cat >>conftest.$ac_ext <<_ACEOF
34567 /* end confdefs.h.  */
34568 $ac_includes_default
34569 int
34570 main ()
34571 {
34572 static struct stat ac_aggr;
34573 if (ac_aggr.st_rdev)
34574 return 0;
34575   ;
34576   return 0;
34577 }
34578 _ACEOF
34579 rm -f conftest.$ac_objext
34580 if { (ac_try="$ac_compile"
34581 case "(($ac_try" in
34582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34583   *) ac_try_echo=$ac_try;;
34584 esac
34585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34586   (eval "$ac_compile") 2>conftest.er1
34587   ac_status=$?
34588   grep -v '^ *+' conftest.er1 >conftest.err
34589   rm -f conftest.er1
34590   cat conftest.err >&5
34591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34592   (exit $ac_status); } && {
34593          test -z "$ac_cxx_werror_flag" ||
34594          test ! -s conftest.err
34595        } && test -s conftest.$ac_objext; then
34596   ac_cv_member_struct_stat_st_rdev=yes
34597 else
34598   echo "$as_me: failed program was:" >&5
34599 sed 's/^/| /' conftest.$ac_ext >&5
34600
34601         cat >conftest.$ac_ext <<_ACEOF
34602 /* confdefs.h.  */
34603 _ACEOF
34604 cat confdefs.h >>conftest.$ac_ext
34605 cat >>conftest.$ac_ext <<_ACEOF
34606 /* end confdefs.h.  */
34607 $ac_includes_default
34608 int
34609 main ()
34610 {
34611 static struct stat ac_aggr;
34612 if (sizeof ac_aggr.st_rdev)
34613 return 0;
34614   ;
34615   return 0;
34616 }
34617 _ACEOF
34618 rm -f conftest.$ac_objext
34619 if { (ac_try="$ac_compile"
34620 case "(($ac_try" in
34621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34622   *) ac_try_echo=$ac_try;;
34623 esac
34624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34625   (eval "$ac_compile") 2>conftest.er1
34626   ac_status=$?
34627   grep -v '^ *+' conftest.er1 >conftest.err
34628   rm -f conftest.er1
34629   cat conftest.err >&5
34630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34631   (exit $ac_status); } && {
34632          test -z "$ac_cxx_werror_flag" ||
34633          test ! -s conftest.err
34634        } && test -s conftest.$ac_objext; then
34635   ac_cv_member_struct_stat_st_rdev=yes
34636 else
34637   echo "$as_me: failed program was:" >&5
34638 sed 's/^/| /' conftest.$ac_ext >&5
34639
34640         ac_cv_member_struct_stat_st_rdev=no
34641 fi
34642
34643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34644 fi
34645
34646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34647 fi
34648 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34649 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34650 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34651
34652 cat >>confdefs.h <<_ACEOF
34653 #define HAVE_STRUCT_STAT_ST_RDEV 1
34654 _ACEOF
34655
34656
34657 cat >>confdefs.h <<\_ACEOF
34658 #define HAVE_ST_RDEV 1
34659 _ACEOF
34660
34661 fi
34662
34663
34664 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34665 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34666 if test "${ac_cv_struct_tm+set}" = set; then
34667   echo $ECHO_N "(cached) $ECHO_C" >&6
34668 else
34669   cat >conftest.$ac_ext <<_ACEOF
34670 /* confdefs.h.  */
34671 _ACEOF
34672 cat confdefs.h >>conftest.$ac_ext
34673 cat >>conftest.$ac_ext <<_ACEOF
34674 /* end confdefs.h.  */
34675 #include <sys/types.h>
34676 #include <time.h>
34677
34678 int
34679 main ()
34680 {
34681 struct tm tm;
34682                                      int *p = &tm.tm_sec;
34683                                      return !p;
34684   ;
34685   return 0;
34686 }
34687 _ACEOF
34688 rm -f conftest.$ac_objext
34689 if { (ac_try="$ac_compile"
34690 case "(($ac_try" in
34691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34692   *) ac_try_echo=$ac_try;;
34693 esac
34694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34695   (eval "$ac_compile") 2>conftest.er1
34696   ac_status=$?
34697   grep -v '^ *+' conftest.er1 >conftest.err
34698   rm -f conftest.er1
34699   cat conftest.err >&5
34700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34701   (exit $ac_status); } && {
34702          test -z "$ac_cxx_werror_flag" ||
34703          test ! -s conftest.err
34704        } && test -s conftest.$ac_objext; then
34705   ac_cv_struct_tm=time.h
34706 else
34707   echo "$as_me: failed program was:" >&5
34708 sed 's/^/| /' conftest.$ac_ext >&5
34709
34710         ac_cv_struct_tm=sys/time.h
34711 fi
34712
34713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34714 fi
34715 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34716 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34717 if test $ac_cv_struct_tm = sys/time.h; then
34718
34719 cat >>confdefs.h <<\_ACEOF
34720 #define TM_IN_SYS_TIME 1
34721 _ACEOF
34722
34723 fi
34724
34725 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34726 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34727 if test "${ac_cv_c_const+set}" = set; then
34728   echo $ECHO_N "(cached) $ECHO_C" >&6
34729 else
34730   cat >conftest.$ac_ext <<_ACEOF
34731 /* confdefs.h.  */
34732 _ACEOF
34733 cat confdefs.h >>conftest.$ac_ext
34734 cat >>conftest.$ac_ext <<_ACEOF
34735 /* end confdefs.h.  */
34736
34737 int
34738 main ()
34739 {
34740 /* FIXME: Include the comments suggested by Paul. */
34741 #ifndef __cplusplus
34742   /* Ultrix mips cc rejects this.  */
34743   typedef int charset[2];
34744   const charset cs;
34745   /* SunOS 4.1.1 cc rejects this.  */
34746   char const *const *pcpcc;
34747   char **ppc;
34748   /* NEC SVR4.0.2 mips cc rejects this.  */
34749   struct point {int x, y;};
34750   static struct point const zero = {0,0};
34751   /* AIX XL C 1.02.0.0 rejects this.
34752      It does not let you subtract one const X* pointer from another in
34753      an arm of an if-expression whose if-part is not a constant
34754      expression */
34755   const char *g = "string";
34756   pcpcc = &g + (g ? g-g : 0);
34757   /* HPUX 7.0 cc rejects these. */
34758   ++pcpcc;
34759   ppc = (char**) pcpcc;
34760   pcpcc = (char const *const *) ppc;
34761   { /* SCO 3.2v4 cc rejects this.  */
34762     char *t;
34763     char const *s = 0 ? (char *) 0 : (char const *) 0;
34764
34765     *t++ = 0;
34766     if (s) return 0;
34767   }
34768   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34769     int x[] = {25, 17};
34770     const int *foo = &x[0];
34771     ++foo;
34772   }
34773   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34774     typedef const int *iptr;
34775     iptr p = 0;
34776     ++p;
34777   }
34778   { /* AIX XL C 1.02.0.0 rejects this saying
34779        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34780     struct s { int j; const int *ap[3]; };
34781     struct s *b; b->j = 5;
34782   }
34783   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34784     const int foo = 10;
34785     if (!foo) return 0;
34786   }
34787   return !cs[0] && !zero.x;
34788 #endif
34789
34790   ;
34791   return 0;
34792 }
34793 _ACEOF
34794 rm -f conftest.$ac_objext
34795 if { (ac_try="$ac_compile"
34796 case "(($ac_try" in
34797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34798   *) ac_try_echo=$ac_try;;
34799 esac
34800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34801   (eval "$ac_compile") 2>conftest.er1
34802   ac_status=$?
34803   grep -v '^ *+' conftest.er1 >conftest.err
34804   rm -f conftest.er1
34805   cat conftest.err >&5
34806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34807   (exit $ac_status); } && {
34808          test -z "$ac_cxx_werror_flag" ||
34809          test ! -s conftest.err
34810        } && test -s conftest.$ac_objext; then
34811   ac_cv_c_const=yes
34812 else
34813   echo "$as_me: failed program was:" >&5
34814 sed 's/^/| /' conftest.$ac_ext >&5
34815
34816         ac_cv_c_const=no
34817 fi
34818
34819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34820 fi
34821 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34822 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34823 if test $ac_cv_c_const = no; then
34824
34825 cat >>confdefs.h <<\_ACEOF
34826 #define const
34827 _ACEOF
34828
34829 fi
34830
34831
34832 { echo "$as_me:$LINENO: checking for char" >&5
34833 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34834 if test "${ac_cv_type_char+set}" = set; then
34835   echo $ECHO_N "(cached) $ECHO_C" >&6
34836 else
34837   cat >conftest.$ac_ext <<_ACEOF
34838 /* confdefs.h.  */
34839 _ACEOF
34840 cat confdefs.h >>conftest.$ac_ext
34841 cat >>conftest.$ac_ext <<_ACEOF
34842 /* end confdefs.h.  */
34843 $ac_includes_default
34844 typedef char ac__type_new_;
34845 int
34846 main ()
34847 {
34848 if ((ac__type_new_ *) 0)
34849   return 0;
34850 if (sizeof (ac__type_new_))
34851   return 0;
34852   ;
34853   return 0;
34854 }
34855 _ACEOF
34856 rm -f conftest.$ac_objext
34857 if { (ac_try="$ac_compile"
34858 case "(($ac_try" in
34859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34860   *) ac_try_echo=$ac_try;;
34861 esac
34862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34863   (eval "$ac_compile") 2>conftest.er1
34864   ac_status=$?
34865   grep -v '^ *+' conftest.er1 >conftest.err
34866   rm -f conftest.er1
34867   cat conftest.err >&5
34868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34869   (exit $ac_status); } && {
34870          test -z "$ac_cxx_werror_flag" ||
34871          test ! -s conftest.err
34872        } && test -s conftest.$ac_objext; then
34873   ac_cv_type_char=yes
34874 else
34875   echo "$as_me: failed program was:" >&5
34876 sed 's/^/| /' conftest.$ac_ext >&5
34877
34878         ac_cv_type_char=no
34879 fi
34880
34881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34882 fi
34883 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34884 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34885
34886 # The cast to long int works around a bug in the HP C Compiler
34887 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34888 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34889 # This bug is HP SR number 8606223364.
34890 { echo "$as_me:$LINENO: checking size of char" >&5
34891 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34892 if test "${ac_cv_sizeof_char+set}" = set; then
34893   echo $ECHO_N "(cached) $ECHO_C" >&6
34894 else
34895   if test "$cross_compiling" = yes; then
34896   # Depending upon the size, compute the lo and hi bounds.
34897 cat >conftest.$ac_ext <<_ACEOF
34898 /* confdefs.h.  */
34899 _ACEOF
34900 cat confdefs.h >>conftest.$ac_ext
34901 cat >>conftest.$ac_ext <<_ACEOF
34902 /* end confdefs.h.  */
34903 $ac_includes_default
34904    typedef char ac__type_sizeof_;
34905 int
34906 main ()
34907 {
34908 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34909 test_array [0] = 0
34910
34911   ;
34912   return 0;
34913 }
34914 _ACEOF
34915 rm -f conftest.$ac_objext
34916 if { (ac_try="$ac_compile"
34917 case "(($ac_try" in
34918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34919   *) ac_try_echo=$ac_try;;
34920 esac
34921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34922   (eval "$ac_compile") 2>conftest.er1
34923   ac_status=$?
34924   grep -v '^ *+' conftest.er1 >conftest.err
34925   rm -f conftest.er1
34926   cat conftest.err >&5
34927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34928   (exit $ac_status); } && {
34929          test -z "$ac_cxx_werror_flag" ||
34930          test ! -s conftest.err
34931        } && test -s conftest.$ac_objext; then
34932   ac_lo=0 ac_mid=0
34933   while :; do
34934     cat >conftest.$ac_ext <<_ACEOF
34935 /* confdefs.h.  */
34936 _ACEOF
34937 cat confdefs.h >>conftest.$ac_ext
34938 cat >>conftest.$ac_ext <<_ACEOF
34939 /* end confdefs.h.  */
34940 $ac_includes_default
34941    typedef char ac__type_sizeof_;
34942 int
34943 main ()
34944 {
34945 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34946 test_array [0] = 0
34947
34948   ;
34949   return 0;
34950 }
34951 _ACEOF
34952 rm -f conftest.$ac_objext
34953 if { (ac_try="$ac_compile"
34954 case "(($ac_try" in
34955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34956   *) ac_try_echo=$ac_try;;
34957 esac
34958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34959   (eval "$ac_compile") 2>conftest.er1
34960   ac_status=$?
34961   grep -v '^ *+' conftest.er1 >conftest.err
34962   rm -f conftest.er1
34963   cat conftest.err >&5
34964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34965   (exit $ac_status); } && {
34966          test -z "$ac_cxx_werror_flag" ||
34967          test ! -s conftest.err
34968        } && test -s conftest.$ac_objext; then
34969   ac_hi=$ac_mid; break
34970 else
34971   echo "$as_me: failed program was:" >&5
34972 sed 's/^/| /' conftest.$ac_ext >&5
34973
34974         ac_lo=`expr $ac_mid + 1`
34975                         if test $ac_lo -le $ac_mid; then
34976                           ac_lo= ac_hi=
34977                           break
34978                         fi
34979                         ac_mid=`expr 2 '*' $ac_mid + 1`
34980 fi
34981
34982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34983   done
34984 else
34985   echo "$as_me: failed program was:" >&5
34986 sed 's/^/| /' conftest.$ac_ext >&5
34987
34988         cat >conftest.$ac_ext <<_ACEOF
34989 /* confdefs.h.  */
34990 _ACEOF
34991 cat confdefs.h >>conftest.$ac_ext
34992 cat >>conftest.$ac_ext <<_ACEOF
34993 /* end confdefs.h.  */
34994 $ac_includes_default
34995    typedef char ac__type_sizeof_;
34996 int
34997 main ()
34998 {
34999 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35000 test_array [0] = 0
35001
35002   ;
35003   return 0;
35004 }
35005 _ACEOF
35006 rm -f conftest.$ac_objext
35007 if { (ac_try="$ac_compile"
35008 case "(($ac_try" in
35009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35010   *) ac_try_echo=$ac_try;;
35011 esac
35012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35013   (eval "$ac_compile") 2>conftest.er1
35014   ac_status=$?
35015   grep -v '^ *+' conftest.er1 >conftest.err
35016   rm -f conftest.er1
35017   cat conftest.err >&5
35018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35019   (exit $ac_status); } && {
35020          test -z "$ac_cxx_werror_flag" ||
35021          test ! -s conftest.err
35022        } && test -s conftest.$ac_objext; then
35023   ac_hi=-1 ac_mid=-1
35024   while :; do
35025     cat >conftest.$ac_ext <<_ACEOF
35026 /* confdefs.h.  */
35027 _ACEOF
35028 cat confdefs.h >>conftest.$ac_ext
35029 cat >>conftest.$ac_ext <<_ACEOF
35030 /* end confdefs.h.  */
35031 $ac_includes_default
35032    typedef char ac__type_sizeof_;
35033 int
35034 main ()
35035 {
35036 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35037 test_array [0] = 0
35038
35039   ;
35040   return 0;
35041 }
35042 _ACEOF
35043 rm -f conftest.$ac_objext
35044 if { (ac_try="$ac_compile"
35045 case "(($ac_try" in
35046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35047   *) ac_try_echo=$ac_try;;
35048 esac
35049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35050   (eval "$ac_compile") 2>conftest.er1
35051   ac_status=$?
35052   grep -v '^ *+' conftest.er1 >conftest.err
35053   rm -f conftest.er1
35054   cat conftest.err >&5
35055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35056   (exit $ac_status); } && {
35057          test -z "$ac_cxx_werror_flag" ||
35058          test ! -s conftest.err
35059        } && test -s conftest.$ac_objext; then
35060   ac_lo=$ac_mid; break
35061 else
35062   echo "$as_me: failed program was:" >&5
35063 sed 's/^/| /' conftest.$ac_ext >&5
35064
35065         ac_hi=`expr '(' $ac_mid ')' - 1`
35066                         if test $ac_mid -le $ac_hi; then
35067                           ac_lo= ac_hi=
35068                           break
35069                         fi
35070                         ac_mid=`expr 2 '*' $ac_mid`
35071 fi
35072
35073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35074   done
35075 else
35076   echo "$as_me: failed program was:" >&5
35077 sed 's/^/| /' conftest.$ac_ext >&5
35078
35079         ac_lo= ac_hi=
35080 fi
35081
35082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35083 fi
35084
35085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35086 # Binary search between lo and hi bounds.
35087 while test "x$ac_lo" != "x$ac_hi"; do
35088   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35089   cat >conftest.$ac_ext <<_ACEOF
35090 /* confdefs.h.  */
35091 _ACEOF
35092 cat confdefs.h >>conftest.$ac_ext
35093 cat >>conftest.$ac_ext <<_ACEOF
35094 /* end confdefs.h.  */
35095 $ac_includes_default
35096    typedef char ac__type_sizeof_;
35097 int
35098 main ()
35099 {
35100 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35101 test_array [0] = 0
35102
35103   ;
35104   return 0;
35105 }
35106 _ACEOF
35107 rm -f conftest.$ac_objext
35108 if { (ac_try="$ac_compile"
35109 case "(($ac_try" in
35110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35111   *) ac_try_echo=$ac_try;;
35112 esac
35113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35114   (eval "$ac_compile") 2>conftest.er1
35115   ac_status=$?
35116   grep -v '^ *+' conftest.er1 >conftest.err
35117   rm -f conftest.er1
35118   cat conftest.err >&5
35119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35120   (exit $ac_status); } && {
35121          test -z "$ac_cxx_werror_flag" ||
35122          test ! -s conftest.err
35123        } && test -s conftest.$ac_objext; then
35124   ac_hi=$ac_mid
35125 else
35126   echo "$as_me: failed program was:" >&5
35127 sed 's/^/| /' conftest.$ac_ext >&5
35128
35129         ac_lo=`expr '(' $ac_mid ')' + 1`
35130 fi
35131
35132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35133 done
35134 case $ac_lo in
35135 ?*) ac_cv_sizeof_char=$ac_lo;;
35136 '') if test "$ac_cv_type_char" = yes; then
35137      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35138 See \`config.log' for more details." >&5
35139 echo "$as_me: error: cannot compute sizeof (char)
35140 See \`config.log' for more details." >&2;}
35141    { (exit 77); exit 77; }; }
35142    else
35143      ac_cv_sizeof_char=0
35144    fi ;;
35145 esac
35146 else
35147   cat >conftest.$ac_ext <<_ACEOF
35148 /* confdefs.h.  */
35149 _ACEOF
35150 cat confdefs.h >>conftest.$ac_ext
35151 cat >>conftest.$ac_ext <<_ACEOF
35152 /* end confdefs.h.  */
35153 $ac_includes_default
35154    typedef char ac__type_sizeof_;
35155 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35156 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35157 #include <stdio.h>
35158 #include <stdlib.h>
35159 int
35160 main ()
35161 {
35162
35163   FILE *f = fopen ("conftest.val", "w");
35164   if (! f)
35165     return 1;
35166   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35167     {
35168       long int i = longval ();
35169       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35170         return 1;
35171       fprintf (f, "%ld\n", i);
35172     }
35173   else
35174     {
35175       unsigned long int i = ulongval ();
35176       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35177         return 1;
35178       fprintf (f, "%lu\n", i);
35179     }
35180   return ferror (f) || fclose (f) != 0;
35181
35182   ;
35183   return 0;
35184 }
35185 _ACEOF
35186 rm -f conftest$ac_exeext
35187 if { (ac_try="$ac_link"
35188 case "(($ac_try" in
35189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35190   *) ac_try_echo=$ac_try;;
35191 esac
35192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35193   (eval "$ac_link") 2>&5
35194   ac_status=$?
35195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35196   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35197   { (case "(($ac_try" in
35198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35199   *) ac_try_echo=$ac_try;;
35200 esac
35201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35202   (eval "$ac_try") 2>&5
35203   ac_status=$?
35204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35205   (exit $ac_status); }; }; then
35206   ac_cv_sizeof_char=`cat conftest.val`
35207 else
35208   echo "$as_me: program exited with status $ac_status" >&5
35209 echo "$as_me: failed program was:" >&5
35210 sed 's/^/| /' conftest.$ac_ext >&5
35211
35212 ( exit $ac_status )
35213 if test "$ac_cv_type_char" = yes; then
35214      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35215 See \`config.log' for more details." >&5
35216 echo "$as_me: error: cannot compute sizeof (char)
35217 See \`config.log' for more details." >&2;}
35218    { (exit 77); exit 77; }; }
35219    else
35220      ac_cv_sizeof_char=0
35221    fi
35222 fi
35223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35224 fi
35225 rm -f conftest.val
35226 fi
35227 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
35228 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
35229
35230
35231
35232 cat >>confdefs.h <<_ACEOF
35233 #define SIZEOF_CHAR $ac_cv_sizeof_char
35234 _ACEOF
35235
35236
35237 { echo "$as_me:$LINENO: checking for short int" >&5
35238 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
35239 if test "${ac_cv_type_short_int+set}" = set; then
35240   echo $ECHO_N "(cached) $ECHO_C" >&6
35241 else
35242   cat >conftest.$ac_ext <<_ACEOF
35243 /* confdefs.h.  */
35244 _ACEOF
35245 cat confdefs.h >>conftest.$ac_ext
35246 cat >>conftest.$ac_ext <<_ACEOF
35247 /* end confdefs.h.  */
35248 $ac_includes_default
35249 typedef short int ac__type_new_;
35250 int
35251 main ()
35252 {
35253 if ((ac__type_new_ *) 0)
35254   return 0;
35255 if (sizeof (ac__type_new_))
35256   return 0;
35257   ;
35258   return 0;
35259 }
35260 _ACEOF
35261 rm -f conftest.$ac_objext
35262 if { (ac_try="$ac_compile"
35263 case "(($ac_try" in
35264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35265   *) ac_try_echo=$ac_try;;
35266 esac
35267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35268   (eval "$ac_compile") 2>conftest.er1
35269   ac_status=$?
35270   grep -v '^ *+' conftest.er1 >conftest.err
35271   rm -f conftest.er1
35272   cat conftest.err >&5
35273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35274   (exit $ac_status); } && {
35275          test -z "$ac_cxx_werror_flag" ||
35276          test ! -s conftest.err
35277        } && test -s conftest.$ac_objext; then
35278   ac_cv_type_short_int=yes
35279 else
35280   echo "$as_me: failed program was:" >&5
35281 sed 's/^/| /' conftest.$ac_ext >&5
35282
35283         ac_cv_type_short_int=no
35284 fi
35285
35286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35287 fi
35288 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35289 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35290
35291 # The cast to long int works around a bug in the HP C Compiler
35292 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35293 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35294 # This bug is HP SR number 8606223364.
35295 { echo "$as_me:$LINENO: checking size of short int" >&5
35296 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35297 if test "${ac_cv_sizeof_short_int+set}" = set; then
35298   echo $ECHO_N "(cached) $ECHO_C" >&6
35299 else
35300   if test "$cross_compiling" = yes; then
35301   # Depending upon the size, compute the lo and hi bounds.
35302 cat >conftest.$ac_ext <<_ACEOF
35303 /* confdefs.h.  */
35304 _ACEOF
35305 cat confdefs.h >>conftest.$ac_ext
35306 cat >>conftest.$ac_ext <<_ACEOF
35307 /* end confdefs.h.  */
35308 $ac_includes_default
35309    typedef short int ac__type_sizeof_;
35310 int
35311 main ()
35312 {
35313 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35314 test_array [0] = 0
35315
35316   ;
35317   return 0;
35318 }
35319 _ACEOF
35320 rm -f conftest.$ac_objext
35321 if { (ac_try="$ac_compile"
35322 case "(($ac_try" in
35323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35324   *) ac_try_echo=$ac_try;;
35325 esac
35326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35327   (eval "$ac_compile") 2>conftest.er1
35328   ac_status=$?
35329   grep -v '^ *+' conftest.er1 >conftest.err
35330   rm -f conftest.er1
35331   cat conftest.err >&5
35332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35333   (exit $ac_status); } && {
35334          test -z "$ac_cxx_werror_flag" ||
35335          test ! -s conftest.err
35336        } && test -s conftest.$ac_objext; then
35337   ac_lo=0 ac_mid=0
35338   while :; do
35339     cat >conftest.$ac_ext <<_ACEOF
35340 /* confdefs.h.  */
35341 _ACEOF
35342 cat confdefs.h >>conftest.$ac_ext
35343 cat >>conftest.$ac_ext <<_ACEOF
35344 /* end confdefs.h.  */
35345 $ac_includes_default
35346    typedef short int ac__type_sizeof_;
35347 int
35348 main ()
35349 {
35350 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35351 test_array [0] = 0
35352
35353   ;
35354   return 0;
35355 }
35356 _ACEOF
35357 rm -f conftest.$ac_objext
35358 if { (ac_try="$ac_compile"
35359 case "(($ac_try" in
35360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35361   *) ac_try_echo=$ac_try;;
35362 esac
35363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35364   (eval "$ac_compile") 2>conftest.er1
35365   ac_status=$?
35366   grep -v '^ *+' conftest.er1 >conftest.err
35367   rm -f conftest.er1
35368   cat conftest.err >&5
35369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35370   (exit $ac_status); } && {
35371          test -z "$ac_cxx_werror_flag" ||
35372          test ! -s conftest.err
35373        } && test -s conftest.$ac_objext; then
35374   ac_hi=$ac_mid; break
35375 else
35376   echo "$as_me: failed program was:" >&5
35377 sed 's/^/| /' conftest.$ac_ext >&5
35378
35379         ac_lo=`expr $ac_mid + 1`
35380                         if test $ac_lo -le $ac_mid; then
35381                           ac_lo= ac_hi=
35382                           break
35383                         fi
35384                         ac_mid=`expr 2 '*' $ac_mid + 1`
35385 fi
35386
35387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35388   done
35389 else
35390   echo "$as_me: failed program was:" >&5
35391 sed 's/^/| /' conftest.$ac_ext >&5
35392
35393         cat >conftest.$ac_ext <<_ACEOF
35394 /* confdefs.h.  */
35395 _ACEOF
35396 cat confdefs.h >>conftest.$ac_ext
35397 cat >>conftest.$ac_ext <<_ACEOF
35398 /* end confdefs.h.  */
35399 $ac_includes_default
35400    typedef short int ac__type_sizeof_;
35401 int
35402 main ()
35403 {
35404 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35405 test_array [0] = 0
35406
35407   ;
35408   return 0;
35409 }
35410 _ACEOF
35411 rm -f conftest.$ac_objext
35412 if { (ac_try="$ac_compile"
35413 case "(($ac_try" in
35414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35415   *) ac_try_echo=$ac_try;;
35416 esac
35417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35418   (eval "$ac_compile") 2>conftest.er1
35419   ac_status=$?
35420   grep -v '^ *+' conftest.er1 >conftest.err
35421   rm -f conftest.er1
35422   cat conftest.err >&5
35423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35424   (exit $ac_status); } && {
35425          test -z "$ac_cxx_werror_flag" ||
35426          test ! -s conftest.err
35427        } && test -s conftest.$ac_objext; then
35428   ac_hi=-1 ac_mid=-1
35429   while :; do
35430     cat >conftest.$ac_ext <<_ACEOF
35431 /* confdefs.h.  */
35432 _ACEOF
35433 cat confdefs.h >>conftest.$ac_ext
35434 cat >>conftest.$ac_ext <<_ACEOF
35435 /* end confdefs.h.  */
35436 $ac_includes_default
35437    typedef short int ac__type_sizeof_;
35438 int
35439 main ()
35440 {
35441 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35442 test_array [0] = 0
35443
35444   ;
35445   return 0;
35446 }
35447 _ACEOF
35448 rm -f conftest.$ac_objext
35449 if { (ac_try="$ac_compile"
35450 case "(($ac_try" in
35451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35452   *) ac_try_echo=$ac_try;;
35453 esac
35454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35455   (eval "$ac_compile") 2>conftest.er1
35456   ac_status=$?
35457   grep -v '^ *+' conftest.er1 >conftest.err
35458   rm -f conftest.er1
35459   cat conftest.err >&5
35460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35461   (exit $ac_status); } && {
35462          test -z "$ac_cxx_werror_flag" ||
35463          test ! -s conftest.err
35464        } && test -s conftest.$ac_objext; then
35465   ac_lo=$ac_mid; break
35466 else
35467   echo "$as_me: failed program was:" >&5
35468 sed 's/^/| /' conftest.$ac_ext >&5
35469
35470         ac_hi=`expr '(' $ac_mid ')' - 1`
35471                         if test $ac_mid -le $ac_hi; then
35472                           ac_lo= ac_hi=
35473                           break
35474                         fi
35475                         ac_mid=`expr 2 '*' $ac_mid`
35476 fi
35477
35478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35479   done
35480 else
35481   echo "$as_me: failed program was:" >&5
35482 sed 's/^/| /' conftest.$ac_ext >&5
35483
35484         ac_lo= ac_hi=
35485 fi
35486
35487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35488 fi
35489
35490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35491 # Binary search between lo and hi bounds.
35492 while test "x$ac_lo" != "x$ac_hi"; do
35493   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35494   cat >conftest.$ac_ext <<_ACEOF
35495 /* confdefs.h.  */
35496 _ACEOF
35497 cat confdefs.h >>conftest.$ac_ext
35498 cat >>conftest.$ac_ext <<_ACEOF
35499 /* end confdefs.h.  */
35500 $ac_includes_default
35501    typedef short int ac__type_sizeof_;
35502 int
35503 main ()
35504 {
35505 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35506 test_array [0] = 0
35507
35508   ;
35509   return 0;
35510 }
35511 _ACEOF
35512 rm -f conftest.$ac_objext
35513 if { (ac_try="$ac_compile"
35514 case "(($ac_try" in
35515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35516   *) ac_try_echo=$ac_try;;
35517 esac
35518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35519   (eval "$ac_compile") 2>conftest.er1
35520   ac_status=$?
35521   grep -v '^ *+' conftest.er1 >conftest.err
35522   rm -f conftest.er1
35523   cat conftest.err >&5
35524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35525   (exit $ac_status); } && {
35526          test -z "$ac_cxx_werror_flag" ||
35527          test ! -s conftest.err
35528        } && test -s conftest.$ac_objext; then
35529   ac_hi=$ac_mid
35530 else
35531   echo "$as_me: failed program was:" >&5
35532 sed 's/^/| /' conftest.$ac_ext >&5
35533
35534         ac_lo=`expr '(' $ac_mid ')' + 1`
35535 fi
35536
35537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35538 done
35539 case $ac_lo in
35540 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35541 '') if test "$ac_cv_type_short_int" = yes; then
35542      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35543 See \`config.log' for more details." >&5
35544 echo "$as_me: error: cannot compute sizeof (short int)
35545 See \`config.log' for more details." >&2;}
35546    { (exit 77); exit 77; }; }
35547    else
35548      ac_cv_sizeof_short_int=0
35549    fi ;;
35550 esac
35551 else
35552   cat >conftest.$ac_ext <<_ACEOF
35553 /* confdefs.h.  */
35554 _ACEOF
35555 cat confdefs.h >>conftest.$ac_ext
35556 cat >>conftest.$ac_ext <<_ACEOF
35557 /* end confdefs.h.  */
35558 $ac_includes_default
35559    typedef short int ac__type_sizeof_;
35560 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35561 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35562 #include <stdio.h>
35563 #include <stdlib.h>
35564 int
35565 main ()
35566 {
35567
35568   FILE *f = fopen ("conftest.val", "w");
35569   if (! f)
35570     return 1;
35571   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35572     {
35573       long int i = longval ();
35574       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35575         return 1;
35576       fprintf (f, "%ld\n", i);
35577     }
35578   else
35579     {
35580       unsigned long int i = ulongval ();
35581       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35582         return 1;
35583       fprintf (f, "%lu\n", i);
35584     }
35585   return ferror (f) || fclose (f) != 0;
35586
35587   ;
35588   return 0;
35589 }
35590 _ACEOF
35591 rm -f conftest$ac_exeext
35592 if { (ac_try="$ac_link"
35593 case "(($ac_try" in
35594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35595   *) ac_try_echo=$ac_try;;
35596 esac
35597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35598   (eval "$ac_link") 2>&5
35599   ac_status=$?
35600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35601   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35602   { (case "(($ac_try" in
35603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35604   *) ac_try_echo=$ac_try;;
35605 esac
35606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35607   (eval "$ac_try") 2>&5
35608   ac_status=$?
35609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35610   (exit $ac_status); }; }; then
35611   ac_cv_sizeof_short_int=`cat conftest.val`
35612 else
35613   echo "$as_me: program exited with status $ac_status" >&5
35614 echo "$as_me: failed program was:" >&5
35615 sed 's/^/| /' conftest.$ac_ext >&5
35616
35617 ( exit $ac_status )
35618 if test "$ac_cv_type_short_int" = yes; then
35619      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35620 See \`config.log' for more details." >&5
35621 echo "$as_me: error: cannot compute sizeof (short int)
35622 See \`config.log' for more details." >&2;}
35623    { (exit 77); exit 77; }; }
35624    else
35625      ac_cv_sizeof_short_int=0
35626    fi
35627 fi
35628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35629 fi
35630 rm -f conftest.val
35631 fi
35632 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35633 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35634
35635
35636
35637 cat >>confdefs.h <<_ACEOF
35638 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35639 _ACEOF
35640
35641
35642 { echo "$as_me:$LINENO: checking for int" >&5
35643 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35644 if test "${ac_cv_type_int+set}" = set; then
35645   echo $ECHO_N "(cached) $ECHO_C" >&6
35646 else
35647   cat >conftest.$ac_ext <<_ACEOF
35648 /* confdefs.h.  */
35649 _ACEOF
35650 cat confdefs.h >>conftest.$ac_ext
35651 cat >>conftest.$ac_ext <<_ACEOF
35652 /* end confdefs.h.  */
35653 $ac_includes_default
35654 typedef int ac__type_new_;
35655 int
35656 main ()
35657 {
35658 if ((ac__type_new_ *) 0)
35659   return 0;
35660 if (sizeof (ac__type_new_))
35661   return 0;
35662   ;
35663   return 0;
35664 }
35665 _ACEOF
35666 rm -f conftest.$ac_objext
35667 if { (ac_try="$ac_compile"
35668 case "(($ac_try" in
35669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35670   *) ac_try_echo=$ac_try;;
35671 esac
35672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35673   (eval "$ac_compile") 2>conftest.er1
35674   ac_status=$?
35675   grep -v '^ *+' conftest.er1 >conftest.err
35676   rm -f conftest.er1
35677   cat conftest.err >&5
35678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35679   (exit $ac_status); } && {
35680          test -z "$ac_cxx_werror_flag" ||
35681          test ! -s conftest.err
35682        } && test -s conftest.$ac_objext; then
35683   ac_cv_type_int=yes
35684 else
35685   echo "$as_me: failed program was:" >&5
35686 sed 's/^/| /' conftest.$ac_ext >&5
35687
35688         ac_cv_type_int=no
35689 fi
35690
35691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35692 fi
35693 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35694 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35695
35696 # The cast to long int works around a bug in the HP C Compiler
35697 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35698 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35699 # This bug is HP SR number 8606223364.
35700 { echo "$as_me:$LINENO: checking size of int" >&5
35701 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35702 if test "${ac_cv_sizeof_int+set}" = set; then
35703   echo $ECHO_N "(cached) $ECHO_C" >&6
35704 else
35705   if test "$cross_compiling" = yes; then
35706   # Depending upon the size, compute the lo and hi bounds.
35707 cat >conftest.$ac_ext <<_ACEOF
35708 /* confdefs.h.  */
35709 _ACEOF
35710 cat confdefs.h >>conftest.$ac_ext
35711 cat >>conftest.$ac_ext <<_ACEOF
35712 /* end confdefs.h.  */
35713 $ac_includes_default
35714    typedef int ac__type_sizeof_;
35715 int
35716 main ()
35717 {
35718 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35719 test_array [0] = 0
35720
35721   ;
35722   return 0;
35723 }
35724 _ACEOF
35725 rm -f conftest.$ac_objext
35726 if { (ac_try="$ac_compile"
35727 case "(($ac_try" in
35728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35729   *) ac_try_echo=$ac_try;;
35730 esac
35731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35732   (eval "$ac_compile") 2>conftest.er1
35733   ac_status=$?
35734   grep -v '^ *+' conftest.er1 >conftest.err
35735   rm -f conftest.er1
35736   cat conftest.err >&5
35737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35738   (exit $ac_status); } && {
35739          test -z "$ac_cxx_werror_flag" ||
35740          test ! -s conftest.err
35741        } && test -s conftest.$ac_objext; then
35742   ac_lo=0 ac_mid=0
35743   while :; do
35744     cat >conftest.$ac_ext <<_ACEOF
35745 /* confdefs.h.  */
35746 _ACEOF
35747 cat confdefs.h >>conftest.$ac_ext
35748 cat >>conftest.$ac_ext <<_ACEOF
35749 /* end confdefs.h.  */
35750 $ac_includes_default
35751    typedef int ac__type_sizeof_;
35752 int
35753 main ()
35754 {
35755 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35756 test_array [0] = 0
35757
35758   ;
35759   return 0;
35760 }
35761 _ACEOF
35762 rm -f conftest.$ac_objext
35763 if { (ac_try="$ac_compile"
35764 case "(($ac_try" in
35765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35766   *) ac_try_echo=$ac_try;;
35767 esac
35768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35769   (eval "$ac_compile") 2>conftest.er1
35770   ac_status=$?
35771   grep -v '^ *+' conftest.er1 >conftest.err
35772   rm -f conftest.er1
35773   cat conftest.err >&5
35774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35775   (exit $ac_status); } && {
35776          test -z "$ac_cxx_werror_flag" ||
35777          test ! -s conftest.err
35778        } && test -s conftest.$ac_objext; then
35779   ac_hi=$ac_mid; break
35780 else
35781   echo "$as_me: failed program was:" >&5
35782 sed 's/^/| /' conftest.$ac_ext >&5
35783
35784         ac_lo=`expr $ac_mid + 1`
35785                         if test $ac_lo -le $ac_mid; then
35786                           ac_lo= ac_hi=
35787                           break
35788                         fi
35789                         ac_mid=`expr 2 '*' $ac_mid + 1`
35790 fi
35791
35792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35793   done
35794 else
35795   echo "$as_me: failed program was:" >&5
35796 sed 's/^/| /' conftest.$ac_ext >&5
35797
35798         cat >conftest.$ac_ext <<_ACEOF
35799 /* confdefs.h.  */
35800 _ACEOF
35801 cat confdefs.h >>conftest.$ac_ext
35802 cat >>conftest.$ac_ext <<_ACEOF
35803 /* end confdefs.h.  */
35804 $ac_includes_default
35805    typedef int ac__type_sizeof_;
35806 int
35807 main ()
35808 {
35809 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35810 test_array [0] = 0
35811
35812   ;
35813   return 0;
35814 }
35815 _ACEOF
35816 rm -f conftest.$ac_objext
35817 if { (ac_try="$ac_compile"
35818 case "(($ac_try" in
35819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35820   *) ac_try_echo=$ac_try;;
35821 esac
35822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35823   (eval "$ac_compile") 2>conftest.er1
35824   ac_status=$?
35825   grep -v '^ *+' conftest.er1 >conftest.err
35826   rm -f conftest.er1
35827   cat conftest.err >&5
35828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35829   (exit $ac_status); } && {
35830          test -z "$ac_cxx_werror_flag" ||
35831          test ! -s conftest.err
35832        } && test -s conftest.$ac_objext; then
35833   ac_hi=-1 ac_mid=-1
35834   while :; do
35835     cat >conftest.$ac_ext <<_ACEOF
35836 /* confdefs.h.  */
35837 _ACEOF
35838 cat confdefs.h >>conftest.$ac_ext
35839 cat >>conftest.$ac_ext <<_ACEOF
35840 /* end confdefs.h.  */
35841 $ac_includes_default
35842    typedef int ac__type_sizeof_;
35843 int
35844 main ()
35845 {
35846 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35847 test_array [0] = 0
35848
35849   ;
35850   return 0;
35851 }
35852 _ACEOF
35853 rm -f conftest.$ac_objext
35854 if { (ac_try="$ac_compile"
35855 case "(($ac_try" in
35856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35857   *) ac_try_echo=$ac_try;;
35858 esac
35859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35860   (eval "$ac_compile") 2>conftest.er1
35861   ac_status=$?
35862   grep -v '^ *+' conftest.er1 >conftest.err
35863   rm -f conftest.er1
35864   cat conftest.err >&5
35865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35866   (exit $ac_status); } && {
35867          test -z "$ac_cxx_werror_flag" ||
35868          test ! -s conftest.err
35869        } && test -s conftest.$ac_objext; then
35870   ac_lo=$ac_mid; break
35871 else
35872   echo "$as_me: failed program was:" >&5
35873 sed 's/^/| /' conftest.$ac_ext >&5
35874
35875         ac_hi=`expr '(' $ac_mid ')' - 1`
35876                         if test $ac_mid -le $ac_hi; then
35877                           ac_lo= ac_hi=
35878                           break
35879                         fi
35880                         ac_mid=`expr 2 '*' $ac_mid`
35881 fi
35882
35883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35884   done
35885 else
35886   echo "$as_me: failed program was:" >&5
35887 sed 's/^/| /' conftest.$ac_ext >&5
35888
35889         ac_lo= ac_hi=
35890 fi
35891
35892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35893 fi
35894
35895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35896 # Binary search between lo and hi bounds.
35897 while test "x$ac_lo" != "x$ac_hi"; do
35898   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35899   cat >conftest.$ac_ext <<_ACEOF
35900 /* confdefs.h.  */
35901 _ACEOF
35902 cat confdefs.h >>conftest.$ac_ext
35903 cat >>conftest.$ac_ext <<_ACEOF
35904 /* end confdefs.h.  */
35905 $ac_includes_default
35906    typedef int ac__type_sizeof_;
35907 int
35908 main ()
35909 {
35910 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35911 test_array [0] = 0
35912
35913   ;
35914   return 0;
35915 }
35916 _ACEOF
35917 rm -f conftest.$ac_objext
35918 if { (ac_try="$ac_compile"
35919 case "(($ac_try" in
35920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35921   *) ac_try_echo=$ac_try;;
35922 esac
35923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35924   (eval "$ac_compile") 2>conftest.er1
35925   ac_status=$?
35926   grep -v '^ *+' conftest.er1 >conftest.err
35927   rm -f conftest.er1
35928   cat conftest.err >&5
35929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35930   (exit $ac_status); } && {
35931          test -z "$ac_cxx_werror_flag" ||
35932          test ! -s conftest.err
35933        } && test -s conftest.$ac_objext; then
35934   ac_hi=$ac_mid
35935 else
35936   echo "$as_me: failed program was:" >&5
35937 sed 's/^/| /' conftest.$ac_ext >&5
35938
35939         ac_lo=`expr '(' $ac_mid ')' + 1`
35940 fi
35941
35942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35943 done
35944 case $ac_lo in
35945 ?*) ac_cv_sizeof_int=$ac_lo;;
35946 '') if test "$ac_cv_type_int" = yes; then
35947      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35948 See \`config.log' for more details." >&5
35949 echo "$as_me: error: cannot compute sizeof (int)
35950 See \`config.log' for more details." >&2;}
35951    { (exit 77); exit 77; }; }
35952    else
35953      ac_cv_sizeof_int=0
35954    fi ;;
35955 esac
35956 else
35957   cat >conftest.$ac_ext <<_ACEOF
35958 /* confdefs.h.  */
35959 _ACEOF
35960 cat confdefs.h >>conftest.$ac_ext
35961 cat >>conftest.$ac_ext <<_ACEOF
35962 /* end confdefs.h.  */
35963 $ac_includes_default
35964    typedef int ac__type_sizeof_;
35965 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35966 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35967 #include <stdio.h>
35968 #include <stdlib.h>
35969 int
35970 main ()
35971 {
35972
35973   FILE *f = fopen ("conftest.val", "w");
35974   if (! f)
35975     return 1;
35976   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35977     {
35978       long int i = longval ();
35979       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35980         return 1;
35981       fprintf (f, "%ld\n", i);
35982     }
35983   else
35984     {
35985       unsigned long int i = ulongval ();
35986       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35987         return 1;
35988       fprintf (f, "%lu\n", i);
35989     }
35990   return ferror (f) || fclose (f) != 0;
35991
35992   ;
35993   return 0;
35994 }
35995 _ACEOF
35996 rm -f conftest$ac_exeext
35997 if { (ac_try="$ac_link"
35998 case "(($ac_try" in
35999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36000   *) ac_try_echo=$ac_try;;
36001 esac
36002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36003   (eval "$ac_link") 2>&5
36004   ac_status=$?
36005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36006   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36007   { (case "(($ac_try" in
36008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36009   *) ac_try_echo=$ac_try;;
36010 esac
36011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36012   (eval "$ac_try") 2>&5
36013   ac_status=$?
36014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36015   (exit $ac_status); }; }; then
36016   ac_cv_sizeof_int=`cat conftest.val`
36017 else
36018   echo "$as_me: program exited with status $ac_status" >&5
36019 echo "$as_me: failed program was:" >&5
36020 sed 's/^/| /' conftest.$ac_ext >&5
36021
36022 ( exit $ac_status )
36023 if test "$ac_cv_type_int" = yes; then
36024      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36025 See \`config.log' for more details." >&5
36026 echo "$as_me: error: cannot compute sizeof (int)
36027 See \`config.log' for more details." >&2;}
36028    { (exit 77); exit 77; }; }
36029    else
36030      ac_cv_sizeof_int=0
36031    fi
36032 fi
36033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36034 fi
36035 rm -f conftest.val
36036 fi
36037 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36038 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
36039
36040
36041
36042 cat >>confdefs.h <<_ACEOF
36043 #define SIZEOF_INT $ac_cv_sizeof_int
36044 _ACEOF
36045
36046
36047 { echo "$as_me:$LINENO: checking for long int" >&5
36048 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
36049 if test "${ac_cv_type_long_int+set}" = set; then
36050   echo $ECHO_N "(cached) $ECHO_C" >&6
36051 else
36052   cat >conftest.$ac_ext <<_ACEOF
36053 /* confdefs.h.  */
36054 _ACEOF
36055 cat confdefs.h >>conftest.$ac_ext
36056 cat >>conftest.$ac_ext <<_ACEOF
36057 /* end confdefs.h.  */
36058 $ac_includes_default
36059 typedef long int ac__type_new_;
36060 int
36061 main ()
36062 {
36063 if ((ac__type_new_ *) 0)
36064   return 0;
36065 if (sizeof (ac__type_new_))
36066   return 0;
36067   ;
36068   return 0;
36069 }
36070 _ACEOF
36071 rm -f conftest.$ac_objext
36072 if { (ac_try="$ac_compile"
36073 case "(($ac_try" in
36074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36075   *) ac_try_echo=$ac_try;;
36076 esac
36077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36078   (eval "$ac_compile") 2>conftest.er1
36079   ac_status=$?
36080   grep -v '^ *+' conftest.er1 >conftest.err
36081   rm -f conftest.er1
36082   cat conftest.err >&5
36083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36084   (exit $ac_status); } && {
36085          test -z "$ac_cxx_werror_flag" ||
36086          test ! -s conftest.err
36087        } && test -s conftest.$ac_objext; then
36088   ac_cv_type_long_int=yes
36089 else
36090   echo "$as_me: failed program was:" >&5
36091 sed 's/^/| /' conftest.$ac_ext >&5
36092
36093         ac_cv_type_long_int=no
36094 fi
36095
36096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36097 fi
36098 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
36099 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
36100
36101 # The cast to long int works around a bug in the HP C Compiler
36102 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36103 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36104 # This bug is HP SR number 8606223364.
36105 { echo "$as_me:$LINENO: checking size of long int" >&5
36106 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
36107 if test "${ac_cv_sizeof_long_int+set}" = set; then
36108   echo $ECHO_N "(cached) $ECHO_C" >&6
36109 else
36110   if test "$cross_compiling" = yes; then
36111   # Depending upon the size, compute the lo and hi bounds.
36112 cat >conftest.$ac_ext <<_ACEOF
36113 /* confdefs.h.  */
36114 _ACEOF
36115 cat confdefs.h >>conftest.$ac_ext
36116 cat >>conftest.$ac_ext <<_ACEOF
36117 /* end confdefs.h.  */
36118 $ac_includes_default
36119    typedef long int ac__type_sizeof_;
36120 int
36121 main ()
36122 {
36123 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36124 test_array [0] = 0
36125
36126   ;
36127   return 0;
36128 }
36129 _ACEOF
36130 rm -f conftest.$ac_objext
36131 if { (ac_try="$ac_compile"
36132 case "(($ac_try" in
36133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36134   *) ac_try_echo=$ac_try;;
36135 esac
36136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36137   (eval "$ac_compile") 2>conftest.er1
36138   ac_status=$?
36139   grep -v '^ *+' conftest.er1 >conftest.err
36140   rm -f conftest.er1
36141   cat conftest.err >&5
36142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36143   (exit $ac_status); } && {
36144          test -z "$ac_cxx_werror_flag" ||
36145          test ! -s conftest.err
36146        } && test -s conftest.$ac_objext; then
36147   ac_lo=0 ac_mid=0
36148   while :; do
36149     cat >conftest.$ac_ext <<_ACEOF
36150 /* confdefs.h.  */
36151 _ACEOF
36152 cat confdefs.h >>conftest.$ac_ext
36153 cat >>conftest.$ac_ext <<_ACEOF
36154 /* end confdefs.h.  */
36155 $ac_includes_default
36156    typedef long int ac__type_sizeof_;
36157 int
36158 main ()
36159 {
36160 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36161 test_array [0] = 0
36162
36163   ;
36164   return 0;
36165 }
36166 _ACEOF
36167 rm -f conftest.$ac_objext
36168 if { (ac_try="$ac_compile"
36169 case "(($ac_try" in
36170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36171   *) ac_try_echo=$ac_try;;
36172 esac
36173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36174   (eval "$ac_compile") 2>conftest.er1
36175   ac_status=$?
36176   grep -v '^ *+' conftest.er1 >conftest.err
36177   rm -f conftest.er1
36178   cat conftest.err >&5
36179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36180   (exit $ac_status); } && {
36181          test -z "$ac_cxx_werror_flag" ||
36182          test ! -s conftest.err
36183        } && test -s conftest.$ac_objext; then
36184   ac_hi=$ac_mid; break
36185 else
36186   echo "$as_me: failed program was:" >&5
36187 sed 's/^/| /' conftest.$ac_ext >&5
36188
36189         ac_lo=`expr $ac_mid + 1`
36190                         if test $ac_lo -le $ac_mid; then
36191                           ac_lo= ac_hi=
36192                           break
36193                         fi
36194                         ac_mid=`expr 2 '*' $ac_mid + 1`
36195 fi
36196
36197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36198   done
36199 else
36200   echo "$as_me: failed program was:" >&5
36201 sed 's/^/| /' conftest.$ac_ext >&5
36202
36203         cat >conftest.$ac_ext <<_ACEOF
36204 /* confdefs.h.  */
36205 _ACEOF
36206 cat confdefs.h >>conftest.$ac_ext
36207 cat >>conftest.$ac_ext <<_ACEOF
36208 /* end confdefs.h.  */
36209 $ac_includes_default
36210    typedef long int ac__type_sizeof_;
36211 int
36212 main ()
36213 {
36214 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36215 test_array [0] = 0
36216
36217   ;
36218   return 0;
36219 }
36220 _ACEOF
36221 rm -f conftest.$ac_objext
36222 if { (ac_try="$ac_compile"
36223 case "(($ac_try" in
36224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36225   *) ac_try_echo=$ac_try;;
36226 esac
36227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36228   (eval "$ac_compile") 2>conftest.er1
36229   ac_status=$?
36230   grep -v '^ *+' conftest.er1 >conftest.err
36231   rm -f conftest.er1
36232   cat conftest.err >&5
36233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36234   (exit $ac_status); } && {
36235          test -z "$ac_cxx_werror_flag" ||
36236          test ! -s conftest.err
36237        } && test -s conftest.$ac_objext; then
36238   ac_hi=-1 ac_mid=-1
36239   while :; do
36240     cat >conftest.$ac_ext <<_ACEOF
36241 /* confdefs.h.  */
36242 _ACEOF
36243 cat confdefs.h >>conftest.$ac_ext
36244 cat >>conftest.$ac_ext <<_ACEOF
36245 /* end confdefs.h.  */
36246 $ac_includes_default
36247    typedef long int ac__type_sizeof_;
36248 int
36249 main ()
36250 {
36251 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36252 test_array [0] = 0
36253
36254   ;
36255   return 0;
36256 }
36257 _ACEOF
36258 rm -f conftest.$ac_objext
36259 if { (ac_try="$ac_compile"
36260 case "(($ac_try" in
36261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36262   *) ac_try_echo=$ac_try;;
36263 esac
36264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36265   (eval "$ac_compile") 2>conftest.er1
36266   ac_status=$?
36267   grep -v '^ *+' conftest.er1 >conftest.err
36268   rm -f conftest.er1
36269   cat conftest.err >&5
36270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36271   (exit $ac_status); } && {
36272          test -z "$ac_cxx_werror_flag" ||
36273          test ! -s conftest.err
36274        } && test -s conftest.$ac_objext; then
36275   ac_lo=$ac_mid; break
36276 else
36277   echo "$as_me: failed program was:" >&5
36278 sed 's/^/| /' conftest.$ac_ext >&5
36279
36280         ac_hi=`expr '(' $ac_mid ')' - 1`
36281                         if test $ac_mid -le $ac_hi; then
36282                           ac_lo= ac_hi=
36283                           break
36284                         fi
36285                         ac_mid=`expr 2 '*' $ac_mid`
36286 fi
36287
36288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36289   done
36290 else
36291   echo "$as_me: failed program was:" >&5
36292 sed 's/^/| /' conftest.$ac_ext >&5
36293
36294         ac_lo= ac_hi=
36295 fi
36296
36297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36298 fi
36299
36300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36301 # Binary search between lo and hi bounds.
36302 while test "x$ac_lo" != "x$ac_hi"; do
36303   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36304   cat >conftest.$ac_ext <<_ACEOF
36305 /* confdefs.h.  */
36306 _ACEOF
36307 cat confdefs.h >>conftest.$ac_ext
36308 cat >>conftest.$ac_ext <<_ACEOF
36309 /* end confdefs.h.  */
36310 $ac_includes_default
36311    typedef long int ac__type_sizeof_;
36312 int
36313 main ()
36314 {
36315 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36316 test_array [0] = 0
36317
36318   ;
36319   return 0;
36320 }
36321 _ACEOF
36322 rm -f conftest.$ac_objext
36323 if { (ac_try="$ac_compile"
36324 case "(($ac_try" in
36325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36326   *) ac_try_echo=$ac_try;;
36327 esac
36328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36329   (eval "$ac_compile") 2>conftest.er1
36330   ac_status=$?
36331   grep -v '^ *+' conftest.er1 >conftest.err
36332   rm -f conftest.er1
36333   cat conftest.err >&5
36334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36335   (exit $ac_status); } && {
36336          test -z "$ac_cxx_werror_flag" ||
36337          test ! -s conftest.err
36338        } && test -s conftest.$ac_objext; then
36339   ac_hi=$ac_mid
36340 else
36341   echo "$as_me: failed program was:" >&5
36342 sed 's/^/| /' conftest.$ac_ext >&5
36343
36344         ac_lo=`expr '(' $ac_mid ')' + 1`
36345 fi
36346
36347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36348 done
36349 case $ac_lo in
36350 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36351 '') if test "$ac_cv_type_long_int" = yes; then
36352      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36353 See \`config.log' for more details." >&5
36354 echo "$as_me: error: cannot compute sizeof (long int)
36355 See \`config.log' for more details." >&2;}
36356    { (exit 77); exit 77; }; }
36357    else
36358      ac_cv_sizeof_long_int=0
36359    fi ;;
36360 esac
36361 else
36362   cat >conftest.$ac_ext <<_ACEOF
36363 /* confdefs.h.  */
36364 _ACEOF
36365 cat confdefs.h >>conftest.$ac_ext
36366 cat >>conftest.$ac_ext <<_ACEOF
36367 /* end confdefs.h.  */
36368 $ac_includes_default
36369    typedef long int ac__type_sizeof_;
36370 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36371 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36372 #include <stdio.h>
36373 #include <stdlib.h>
36374 int
36375 main ()
36376 {
36377
36378   FILE *f = fopen ("conftest.val", "w");
36379   if (! f)
36380     return 1;
36381   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36382     {
36383       long int i = longval ();
36384       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36385         return 1;
36386       fprintf (f, "%ld\n", i);
36387     }
36388   else
36389     {
36390       unsigned long int i = ulongval ();
36391       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36392         return 1;
36393       fprintf (f, "%lu\n", i);
36394     }
36395   return ferror (f) || fclose (f) != 0;
36396
36397   ;
36398   return 0;
36399 }
36400 _ACEOF
36401 rm -f conftest$ac_exeext
36402 if { (ac_try="$ac_link"
36403 case "(($ac_try" in
36404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36405   *) ac_try_echo=$ac_try;;
36406 esac
36407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36408   (eval "$ac_link") 2>&5
36409   ac_status=$?
36410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36411   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36412   { (case "(($ac_try" in
36413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36414   *) ac_try_echo=$ac_try;;
36415 esac
36416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36417   (eval "$ac_try") 2>&5
36418   ac_status=$?
36419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36420   (exit $ac_status); }; }; then
36421   ac_cv_sizeof_long_int=`cat conftest.val`
36422 else
36423   echo "$as_me: program exited with status $ac_status" >&5
36424 echo "$as_me: failed program was:" >&5
36425 sed 's/^/| /' conftest.$ac_ext >&5
36426
36427 ( exit $ac_status )
36428 if test "$ac_cv_type_long_int" = yes; then
36429      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36430 See \`config.log' for more details." >&5
36431 echo "$as_me: error: cannot compute sizeof (long int)
36432 See \`config.log' for more details." >&2;}
36433    { (exit 77); exit 77; }; }
36434    else
36435      ac_cv_sizeof_long_int=0
36436    fi
36437 fi
36438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36439 fi
36440 rm -f conftest.val
36441 fi
36442 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36443 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36444
36445
36446
36447 cat >>confdefs.h <<_ACEOF
36448 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36449 _ACEOF
36450
36451
36452 { echo "$as_me:$LINENO: checking for long long int" >&5
36453 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36454 if test "${ac_cv_type_long_long_int+set}" = set; then
36455   echo $ECHO_N "(cached) $ECHO_C" >&6
36456 else
36457   cat >conftest.$ac_ext <<_ACEOF
36458 /* confdefs.h.  */
36459 _ACEOF
36460 cat confdefs.h >>conftest.$ac_ext
36461 cat >>conftest.$ac_ext <<_ACEOF
36462 /* end confdefs.h.  */
36463 $ac_includes_default
36464 typedef long long int ac__type_new_;
36465 int
36466 main ()
36467 {
36468 if ((ac__type_new_ *) 0)
36469   return 0;
36470 if (sizeof (ac__type_new_))
36471   return 0;
36472   ;
36473   return 0;
36474 }
36475 _ACEOF
36476 rm -f conftest.$ac_objext
36477 if { (ac_try="$ac_compile"
36478 case "(($ac_try" in
36479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36480   *) ac_try_echo=$ac_try;;
36481 esac
36482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36483   (eval "$ac_compile") 2>conftest.er1
36484   ac_status=$?
36485   grep -v '^ *+' conftest.er1 >conftest.err
36486   rm -f conftest.er1
36487   cat conftest.err >&5
36488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36489   (exit $ac_status); } && {
36490          test -z "$ac_cxx_werror_flag" ||
36491          test ! -s conftest.err
36492        } && test -s conftest.$ac_objext; then
36493   ac_cv_type_long_long_int=yes
36494 else
36495   echo "$as_me: failed program was:" >&5
36496 sed 's/^/| /' conftest.$ac_ext >&5
36497
36498         ac_cv_type_long_long_int=no
36499 fi
36500
36501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36502 fi
36503 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36504 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36505
36506 # The cast to long int works around a bug in the HP C Compiler
36507 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36508 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36509 # This bug is HP SR number 8606223364.
36510 { echo "$as_me:$LINENO: checking size of long long int" >&5
36511 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36512 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36513   echo $ECHO_N "(cached) $ECHO_C" >&6
36514 else
36515   if test "$cross_compiling" = yes; then
36516   # Depending upon the size, compute the lo and hi bounds.
36517 cat >conftest.$ac_ext <<_ACEOF
36518 /* confdefs.h.  */
36519 _ACEOF
36520 cat confdefs.h >>conftest.$ac_ext
36521 cat >>conftest.$ac_ext <<_ACEOF
36522 /* end confdefs.h.  */
36523 $ac_includes_default
36524    typedef long long int ac__type_sizeof_;
36525 int
36526 main ()
36527 {
36528 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36529 test_array [0] = 0
36530
36531   ;
36532   return 0;
36533 }
36534 _ACEOF
36535 rm -f conftest.$ac_objext
36536 if { (ac_try="$ac_compile"
36537 case "(($ac_try" in
36538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36539   *) ac_try_echo=$ac_try;;
36540 esac
36541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36542   (eval "$ac_compile") 2>conftest.er1
36543   ac_status=$?
36544   grep -v '^ *+' conftest.er1 >conftest.err
36545   rm -f conftest.er1
36546   cat conftest.err >&5
36547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36548   (exit $ac_status); } && {
36549          test -z "$ac_cxx_werror_flag" ||
36550          test ! -s conftest.err
36551        } && test -s conftest.$ac_objext; then
36552   ac_lo=0 ac_mid=0
36553   while :; do
36554     cat >conftest.$ac_ext <<_ACEOF
36555 /* confdefs.h.  */
36556 _ACEOF
36557 cat confdefs.h >>conftest.$ac_ext
36558 cat >>conftest.$ac_ext <<_ACEOF
36559 /* end confdefs.h.  */
36560 $ac_includes_default
36561    typedef long long int ac__type_sizeof_;
36562 int
36563 main ()
36564 {
36565 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36566 test_array [0] = 0
36567
36568   ;
36569   return 0;
36570 }
36571 _ACEOF
36572 rm -f conftest.$ac_objext
36573 if { (ac_try="$ac_compile"
36574 case "(($ac_try" in
36575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36576   *) ac_try_echo=$ac_try;;
36577 esac
36578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36579   (eval "$ac_compile") 2>conftest.er1
36580   ac_status=$?
36581   grep -v '^ *+' conftest.er1 >conftest.err
36582   rm -f conftest.er1
36583   cat conftest.err >&5
36584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36585   (exit $ac_status); } && {
36586          test -z "$ac_cxx_werror_flag" ||
36587          test ! -s conftest.err
36588        } && test -s conftest.$ac_objext; then
36589   ac_hi=$ac_mid; break
36590 else
36591   echo "$as_me: failed program was:" >&5
36592 sed 's/^/| /' conftest.$ac_ext >&5
36593
36594         ac_lo=`expr $ac_mid + 1`
36595                         if test $ac_lo -le $ac_mid; then
36596                           ac_lo= ac_hi=
36597                           break
36598                         fi
36599                         ac_mid=`expr 2 '*' $ac_mid + 1`
36600 fi
36601
36602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36603   done
36604 else
36605   echo "$as_me: failed program was:" >&5
36606 sed 's/^/| /' conftest.$ac_ext >&5
36607
36608         cat >conftest.$ac_ext <<_ACEOF
36609 /* confdefs.h.  */
36610 _ACEOF
36611 cat confdefs.h >>conftest.$ac_ext
36612 cat >>conftest.$ac_ext <<_ACEOF
36613 /* end confdefs.h.  */
36614 $ac_includes_default
36615    typedef long long int ac__type_sizeof_;
36616 int
36617 main ()
36618 {
36619 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36620 test_array [0] = 0
36621
36622   ;
36623   return 0;
36624 }
36625 _ACEOF
36626 rm -f conftest.$ac_objext
36627 if { (ac_try="$ac_compile"
36628 case "(($ac_try" in
36629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36630   *) ac_try_echo=$ac_try;;
36631 esac
36632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36633   (eval "$ac_compile") 2>conftest.er1
36634   ac_status=$?
36635   grep -v '^ *+' conftest.er1 >conftest.err
36636   rm -f conftest.er1
36637   cat conftest.err >&5
36638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36639   (exit $ac_status); } && {
36640          test -z "$ac_cxx_werror_flag" ||
36641          test ! -s conftest.err
36642        } && test -s conftest.$ac_objext; then
36643   ac_hi=-1 ac_mid=-1
36644   while :; do
36645     cat >conftest.$ac_ext <<_ACEOF
36646 /* confdefs.h.  */
36647 _ACEOF
36648 cat confdefs.h >>conftest.$ac_ext
36649 cat >>conftest.$ac_ext <<_ACEOF
36650 /* end confdefs.h.  */
36651 $ac_includes_default
36652    typedef long long int ac__type_sizeof_;
36653 int
36654 main ()
36655 {
36656 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36657 test_array [0] = 0
36658
36659   ;
36660   return 0;
36661 }
36662 _ACEOF
36663 rm -f conftest.$ac_objext
36664 if { (ac_try="$ac_compile"
36665 case "(($ac_try" in
36666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36667   *) ac_try_echo=$ac_try;;
36668 esac
36669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36670   (eval "$ac_compile") 2>conftest.er1
36671   ac_status=$?
36672   grep -v '^ *+' conftest.er1 >conftest.err
36673   rm -f conftest.er1
36674   cat conftest.err >&5
36675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36676   (exit $ac_status); } && {
36677          test -z "$ac_cxx_werror_flag" ||
36678          test ! -s conftest.err
36679        } && test -s conftest.$ac_objext; then
36680   ac_lo=$ac_mid; break
36681 else
36682   echo "$as_me: failed program was:" >&5
36683 sed 's/^/| /' conftest.$ac_ext >&5
36684
36685         ac_hi=`expr '(' $ac_mid ')' - 1`
36686                         if test $ac_mid -le $ac_hi; then
36687                           ac_lo= ac_hi=
36688                           break
36689                         fi
36690                         ac_mid=`expr 2 '*' $ac_mid`
36691 fi
36692
36693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36694   done
36695 else
36696   echo "$as_me: failed program was:" >&5
36697 sed 's/^/| /' conftest.$ac_ext >&5
36698
36699         ac_lo= ac_hi=
36700 fi
36701
36702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36703 fi
36704
36705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36706 # Binary search between lo and hi bounds.
36707 while test "x$ac_lo" != "x$ac_hi"; do
36708   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36709   cat >conftest.$ac_ext <<_ACEOF
36710 /* confdefs.h.  */
36711 _ACEOF
36712 cat confdefs.h >>conftest.$ac_ext
36713 cat >>conftest.$ac_ext <<_ACEOF
36714 /* end confdefs.h.  */
36715 $ac_includes_default
36716    typedef long long int ac__type_sizeof_;
36717 int
36718 main ()
36719 {
36720 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36721 test_array [0] = 0
36722
36723   ;
36724   return 0;
36725 }
36726 _ACEOF
36727 rm -f conftest.$ac_objext
36728 if { (ac_try="$ac_compile"
36729 case "(($ac_try" in
36730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36731   *) ac_try_echo=$ac_try;;
36732 esac
36733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36734   (eval "$ac_compile") 2>conftest.er1
36735   ac_status=$?
36736   grep -v '^ *+' conftest.er1 >conftest.err
36737   rm -f conftest.er1
36738   cat conftest.err >&5
36739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36740   (exit $ac_status); } && {
36741          test -z "$ac_cxx_werror_flag" ||
36742          test ! -s conftest.err
36743        } && test -s conftest.$ac_objext; then
36744   ac_hi=$ac_mid
36745 else
36746   echo "$as_me: failed program was:" >&5
36747 sed 's/^/| /' conftest.$ac_ext >&5
36748
36749         ac_lo=`expr '(' $ac_mid ')' + 1`
36750 fi
36751
36752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36753 done
36754 case $ac_lo in
36755 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36756 '') if test "$ac_cv_type_long_long_int" = yes; then
36757      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36758 See \`config.log' for more details." >&5
36759 echo "$as_me: error: cannot compute sizeof (long long int)
36760 See \`config.log' for more details." >&2;}
36761    { (exit 77); exit 77; }; }
36762    else
36763      ac_cv_sizeof_long_long_int=0
36764    fi ;;
36765 esac
36766 else
36767   cat >conftest.$ac_ext <<_ACEOF
36768 /* confdefs.h.  */
36769 _ACEOF
36770 cat confdefs.h >>conftest.$ac_ext
36771 cat >>conftest.$ac_ext <<_ACEOF
36772 /* end confdefs.h.  */
36773 $ac_includes_default
36774    typedef long long int ac__type_sizeof_;
36775 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36776 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36777 #include <stdio.h>
36778 #include <stdlib.h>
36779 int
36780 main ()
36781 {
36782
36783   FILE *f = fopen ("conftest.val", "w");
36784   if (! f)
36785     return 1;
36786   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36787     {
36788       long int i = longval ();
36789       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36790         return 1;
36791       fprintf (f, "%ld\n", i);
36792     }
36793   else
36794     {
36795       unsigned long int i = ulongval ();
36796       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36797         return 1;
36798       fprintf (f, "%lu\n", i);
36799     }
36800   return ferror (f) || fclose (f) != 0;
36801
36802   ;
36803   return 0;
36804 }
36805 _ACEOF
36806 rm -f conftest$ac_exeext
36807 if { (ac_try="$ac_link"
36808 case "(($ac_try" in
36809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36810   *) ac_try_echo=$ac_try;;
36811 esac
36812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36813   (eval "$ac_link") 2>&5
36814   ac_status=$?
36815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36816   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36817   { (case "(($ac_try" in
36818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36819   *) ac_try_echo=$ac_try;;
36820 esac
36821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36822   (eval "$ac_try") 2>&5
36823   ac_status=$?
36824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36825   (exit $ac_status); }; }; then
36826   ac_cv_sizeof_long_long_int=`cat conftest.val`
36827 else
36828   echo "$as_me: program exited with status $ac_status" >&5
36829 echo "$as_me: failed program was:" >&5
36830 sed 's/^/| /' conftest.$ac_ext >&5
36831
36832 ( exit $ac_status )
36833 if test "$ac_cv_type_long_long_int" = yes; then
36834      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36835 See \`config.log' for more details." >&5
36836 echo "$as_me: error: cannot compute sizeof (long long int)
36837 See \`config.log' for more details." >&2;}
36838    { (exit 77); exit 77; }; }
36839    else
36840      ac_cv_sizeof_long_long_int=0
36841    fi
36842 fi
36843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36844 fi
36845 rm -f conftest.val
36846 fi
36847 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36848 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36849
36850
36851
36852 cat >>confdefs.h <<_ACEOF
36853 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36854 _ACEOF
36855
36856
36857 { echo "$as_me:$LINENO: checking for int *" >&5
36858 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36859 if test "${ac_cv_type_int_p+set}" = set; then
36860   echo $ECHO_N "(cached) $ECHO_C" >&6
36861 else
36862   cat >conftest.$ac_ext <<_ACEOF
36863 /* confdefs.h.  */
36864 _ACEOF
36865 cat confdefs.h >>conftest.$ac_ext
36866 cat >>conftest.$ac_ext <<_ACEOF
36867 /* end confdefs.h.  */
36868 $ac_includes_default
36869 typedef int * ac__type_new_;
36870 int
36871 main ()
36872 {
36873 if ((ac__type_new_ *) 0)
36874   return 0;
36875 if (sizeof (ac__type_new_))
36876   return 0;
36877   ;
36878   return 0;
36879 }
36880 _ACEOF
36881 rm -f conftest.$ac_objext
36882 if { (ac_try="$ac_compile"
36883 case "(($ac_try" in
36884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36885   *) ac_try_echo=$ac_try;;
36886 esac
36887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36888   (eval "$ac_compile") 2>conftest.er1
36889   ac_status=$?
36890   grep -v '^ *+' conftest.er1 >conftest.err
36891   rm -f conftest.er1
36892   cat conftest.err >&5
36893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36894   (exit $ac_status); } && {
36895          test -z "$ac_cxx_werror_flag" ||
36896          test ! -s conftest.err
36897        } && test -s conftest.$ac_objext; then
36898   ac_cv_type_int_p=yes
36899 else
36900   echo "$as_me: failed program was:" >&5
36901 sed 's/^/| /' conftest.$ac_ext >&5
36902
36903         ac_cv_type_int_p=no
36904 fi
36905
36906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36907 fi
36908 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36909 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36910
36911 # The cast to long int works around a bug in the HP C Compiler
36912 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36913 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36914 # This bug is HP SR number 8606223364.
36915 { echo "$as_me:$LINENO: checking size of int *" >&5
36916 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36917 if test "${ac_cv_sizeof_int_p+set}" = set; then
36918   echo $ECHO_N "(cached) $ECHO_C" >&6
36919 else
36920   if test "$cross_compiling" = yes; then
36921   # Depending upon the size, compute the lo and hi bounds.
36922 cat >conftest.$ac_ext <<_ACEOF
36923 /* confdefs.h.  */
36924 _ACEOF
36925 cat confdefs.h >>conftest.$ac_ext
36926 cat >>conftest.$ac_ext <<_ACEOF
36927 /* end confdefs.h.  */
36928 $ac_includes_default
36929    typedef int * ac__type_sizeof_;
36930 int
36931 main ()
36932 {
36933 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36934 test_array [0] = 0
36935
36936   ;
36937   return 0;
36938 }
36939 _ACEOF
36940 rm -f conftest.$ac_objext
36941 if { (ac_try="$ac_compile"
36942 case "(($ac_try" in
36943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36944   *) ac_try_echo=$ac_try;;
36945 esac
36946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36947   (eval "$ac_compile") 2>conftest.er1
36948   ac_status=$?
36949   grep -v '^ *+' conftest.er1 >conftest.err
36950   rm -f conftest.er1
36951   cat conftest.err >&5
36952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36953   (exit $ac_status); } && {
36954          test -z "$ac_cxx_werror_flag" ||
36955          test ! -s conftest.err
36956        } && test -s conftest.$ac_objext; then
36957   ac_lo=0 ac_mid=0
36958   while :; do
36959     cat >conftest.$ac_ext <<_ACEOF
36960 /* confdefs.h.  */
36961 _ACEOF
36962 cat confdefs.h >>conftest.$ac_ext
36963 cat >>conftest.$ac_ext <<_ACEOF
36964 /* end confdefs.h.  */
36965 $ac_includes_default
36966    typedef int * ac__type_sizeof_;
36967 int
36968 main ()
36969 {
36970 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36971 test_array [0] = 0
36972
36973   ;
36974   return 0;
36975 }
36976 _ACEOF
36977 rm -f conftest.$ac_objext
36978 if { (ac_try="$ac_compile"
36979 case "(($ac_try" in
36980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36981   *) ac_try_echo=$ac_try;;
36982 esac
36983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36984   (eval "$ac_compile") 2>conftest.er1
36985   ac_status=$?
36986   grep -v '^ *+' conftest.er1 >conftest.err
36987   rm -f conftest.er1
36988   cat conftest.err >&5
36989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36990   (exit $ac_status); } && {
36991          test -z "$ac_cxx_werror_flag" ||
36992          test ! -s conftest.err
36993        } && test -s conftest.$ac_objext; then
36994   ac_hi=$ac_mid; break
36995 else
36996   echo "$as_me: failed program was:" >&5
36997 sed 's/^/| /' conftest.$ac_ext >&5
36998
36999         ac_lo=`expr $ac_mid + 1`
37000                         if test $ac_lo -le $ac_mid; then
37001                           ac_lo= ac_hi=
37002                           break
37003                         fi
37004                         ac_mid=`expr 2 '*' $ac_mid + 1`
37005 fi
37006
37007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37008   done
37009 else
37010   echo "$as_me: failed program was:" >&5
37011 sed 's/^/| /' conftest.$ac_ext >&5
37012
37013         cat >conftest.$ac_ext <<_ACEOF
37014 /* confdefs.h.  */
37015 _ACEOF
37016 cat confdefs.h >>conftest.$ac_ext
37017 cat >>conftest.$ac_ext <<_ACEOF
37018 /* end confdefs.h.  */
37019 $ac_includes_default
37020    typedef int * ac__type_sizeof_;
37021 int
37022 main ()
37023 {
37024 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
37025 test_array [0] = 0
37026
37027   ;
37028   return 0;
37029 }
37030 _ACEOF
37031 rm -f conftest.$ac_objext
37032 if { (ac_try="$ac_compile"
37033 case "(($ac_try" in
37034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37035   *) ac_try_echo=$ac_try;;
37036 esac
37037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37038   (eval "$ac_compile") 2>conftest.er1
37039   ac_status=$?
37040   grep -v '^ *+' conftest.er1 >conftest.err
37041   rm -f conftest.er1
37042   cat conftest.err >&5
37043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37044   (exit $ac_status); } && {
37045          test -z "$ac_cxx_werror_flag" ||
37046          test ! -s conftest.err
37047        } && test -s conftest.$ac_objext; then
37048   ac_hi=-1 ac_mid=-1
37049   while :; do
37050     cat >conftest.$ac_ext <<_ACEOF
37051 /* confdefs.h.  */
37052 _ACEOF
37053 cat confdefs.h >>conftest.$ac_ext
37054 cat >>conftest.$ac_ext <<_ACEOF
37055 /* end confdefs.h.  */
37056 $ac_includes_default
37057    typedef int * ac__type_sizeof_;
37058 int
37059 main ()
37060 {
37061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
37062 test_array [0] = 0
37063
37064   ;
37065   return 0;
37066 }
37067 _ACEOF
37068 rm -f conftest.$ac_objext
37069 if { (ac_try="$ac_compile"
37070 case "(($ac_try" in
37071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37072   *) ac_try_echo=$ac_try;;
37073 esac
37074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37075   (eval "$ac_compile") 2>conftest.er1
37076   ac_status=$?
37077   grep -v '^ *+' conftest.er1 >conftest.err
37078   rm -f conftest.er1
37079   cat conftest.err >&5
37080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37081   (exit $ac_status); } && {
37082          test -z "$ac_cxx_werror_flag" ||
37083          test ! -s conftest.err
37084        } && test -s conftest.$ac_objext; then
37085   ac_lo=$ac_mid; break
37086 else
37087   echo "$as_me: failed program was:" >&5
37088 sed 's/^/| /' conftest.$ac_ext >&5
37089
37090         ac_hi=`expr '(' $ac_mid ')' - 1`
37091                         if test $ac_mid -le $ac_hi; then
37092                           ac_lo= ac_hi=
37093                           break
37094                         fi
37095                         ac_mid=`expr 2 '*' $ac_mid`
37096 fi
37097
37098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37099   done
37100 else
37101   echo "$as_me: failed program was:" >&5
37102 sed 's/^/| /' conftest.$ac_ext >&5
37103
37104         ac_lo= ac_hi=
37105 fi
37106
37107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37108 fi
37109
37110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37111 # Binary search between lo and hi bounds.
37112 while test "x$ac_lo" != "x$ac_hi"; do
37113   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37114   cat >conftest.$ac_ext <<_ACEOF
37115 /* confdefs.h.  */
37116 _ACEOF
37117 cat confdefs.h >>conftest.$ac_ext
37118 cat >>conftest.$ac_ext <<_ACEOF
37119 /* end confdefs.h.  */
37120 $ac_includes_default
37121    typedef int * ac__type_sizeof_;
37122 int
37123 main ()
37124 {
37125 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37126 test_array [0] = 0
37127
37128   ;
37129   return 0;
37130 }
37131 _ACEOF
37132 rm -f conftest.$ac_objext
37133 if { (ac_try="$ac_compile"
37134 case "(($ac_try" in
37135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37136   *) ac_try_echo=$ac_try;;
37137 esac
37138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37139   (eval "$ac_compile") 2>conftest.er1
37140   ac_status=$?
37141   grep -v '^ *+' conftest.er1 >conftest.err
37142   rm -f conftest.er1
37143   cat conftest.err >&5
37144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37145   (exit $ac_status); } && {
37146          test -z "$ac_cxx_werror_flag" ||
37147          test ! -s conftest.err
37148        } && test -s conftest.$ac_objext; then
37149   ac_hi=$ac_mid
37150 else
37151   echo "$as_me: failed program was:" >&5
37152 sed 's/^/| /' conftest.$ac_ext >&5
37153
37154         ac_lo=`expr '(' $ac_mid ')' + 1`
37155 fi
37156
37157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37158 done
37159 case $ac_lo in
37160 ?*) ac_cv_sizeof_int_p=$ac_lo;;
37161 '') if test "$ac_cv_type_int_p" = yes; then
37162      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37163 See \`config.log' for more details." >&5
37164 echo "$as_me: error: cannot compute sizeof (int *)
37165 See \`config.log' for more details." >&2;}
37166    { (exit 77); exit 77; }; }
37167    else
37168      ac_cv_sizeof_int_p=0
37169    fi ;;
37170 esac
37171 else
37172   cat >conftest.$ac_ext <<_ACEOF
37173 /* confdefs.h.  */
37174 _ACEOF
37175 cat confdefs.h >>conftest.$ac_ext
37176 cat >>conftest.$ac_ext <<_ACEOF
37177 /* end confdefs.h.  */
37178 $ac_includes_default
37179    typedef int * ac__type_sizeof_;
37180 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
37181 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
37182 #include <stdio.h>
37183 #include <stdlib.h>
37184 int
37185 main ()
37186 {
37187
37188   FILE *f = fopen ("conftest.val", "w");
37189   if (! f)
37190     return 1;
37191   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
37192     {
37193       long int i = longval ();
37194       if (i != ((long int) (sizeof (ac__type_sizeof_))))
37195         return 1;
37196       fprintf (f, "%ld\n", i);
37197     }
37198   else
37199     {
37200       unsigned long int i = ulongval ();
37201       if (i != ((long int) (sizeof (ac__type_sizeof_))))
37202         return 1;
37203       fprintf (f, "%lu\n", i);
37204     }
37205   return ferror (f) || fclose (f) != 0;
37206
37207   ;
37208   return 0;
37209 }
37210 _ACEOF
37211 rm -f conftest$ac_exeext
37212 if { (ac_try="$ac_link"
37213 case "(($ac_try" in
37214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37215   *) ac_try_echo=$ac_try;;
37216 esac
37217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37218   (eval "$ac_link") 2>&5
37219   ac_status=$?
37220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37221   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37222   { (case "(($ac_try" in
37223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37224   *) ac_try_echo=$ac_try;;
37225 esac
37226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37227   (eval "$ac_try") 2>&5
37228   ac_status=$?
37229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37230   (exit $ac_status); }; }; then
37231   ac_cv_sizeof_int_p=`cat conftest.val`
37232 else
37233   echo "$as_me: program exited with status $ac_status" >&5
37234 echo "$as_me: failed program was:" >&5
37235 sed 's/^/| /' conftest.$ac_ext >&5
37236
37237 ( exit $ac_status )
37238 if test "$ac_cv_type_int_p" = yes; then
37239      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37240 See \`config.log' for more details." >&5
37241 echo "$as_me: error: cannot compute sizeof (int *)
37242 See \`config.log' for more details." >&2;}
37243    { (exit 77); exit 77; }; }
37244    else
37245      ac_cv_sizeof_int_p=0
37246    fi
37247 fi
37248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37249 fi
37250 rm -f conftest.val
37251 fi
37252 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
37253 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
37254
37255
37256
37257 cat >>confdefs.h <<_ACEOF
37258 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
37259 _ACEOF
37260
37261
37262
37263 { echo "$as_me:$LINENO: checking for u_int type" >&5
37264 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
37265 if test "${ac_cv_have_u_int+set}" = set; then
37266   echo $ECHO_N "(cached) $ECHO_C" >&6
37267 else
37268
37269        cat >conftest.$ac_ext <<_ACEOF
37270 /* confdefs.h.  */
37271 _ACEOF
37272 cat confdefs.h >>conftest.$ac_ext
37273 cat >>conftest.$ac_ext <<_ACEOF
37274 /* end confdefs.h.  */
37275
37276               #include <sys/types.h>
37277
37278 int
37279 main ()
37280 {
37281
37282               u_int a; a = 1;
37283
37284   ;
37285   return 0;
37286 }
37287 _ACEOF
37288 rm -f conftest.$ac_objext
37289 if { (ac_try="$ac_compile"
37290 case "(($ac_try" in
37291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37292   *) ac_try_echo=$ac_try;;
37293 esac
37294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37295   (eval "$ac_compile") 2>conftest.er1
37296   ac_status=$?
37297   grep -v '^ *+' conftest.er1 >conftest.err
37298   rm -f conftest.er1
37299   cat conftest.err >&5
37300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37301   (exit $ac_status); } && {
37302          test -z "$ac_cxx_werror_flag" ||
37303          test ! -s conftest.err
37304        } && test -s conftest.$ac_objext; then
37305
37306               ac_cv_have_u_int="yes"
37307
37308 else
37309   echo "$as_me: failed program was:" >&5
37310 sed 's/^/| /' conftest.$ac_ext >&5
37311
37312
37313               ac_cv_have_u_int="no"
37314
37315
37316 fi
37317
37318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37319
37320
37321 fi
37322 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37323 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37324 if test "x$ac_cv_have_u_int" = "xyes" ; then
37325    cat >>confdefs.h <<\_ACEOF
37326 #define HAVE_U_INT 1
37327 _ACEOF
37328
37329    have_u_int=1
37330 fi
37331
37332 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37333 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37334 if test "${ac_cv_have_intmax_t+set}" = set; then
37335   echo $ECHO_N "(cached) $ECHO_C" >&6
37336 else
37337
37338        cat >conftest.$ac_ext <<_ACEOF
37339 /* confdefs.h.  */
37340 _ACEOF
37341 cat confdefs.h >>conftest.$ac_ext
37342 cat >>conftest.$ac_ext <<_ACEOF
37343 /* end confdefs.h.  */
37344
37345               #include <sys/types.h>
37346
37347 int
37348 main ()
37349 {
37350
37351               intmax_t a; a = 1;
37352
37353   ;
37354   return 0;
37355 }
37356 _ACEOF
37357 rm -f conftest.$ac_objext
37358 if { (ac_try="$ac_compile"
37359 case "(($ac_try" in
37360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37361   *) ac_try_echo=$ac_try;;
37362 esac
37363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37364   (eval "$ac_compile") 2>conftest.er1
37365   ac_status=$?
37366   grep -v '^ *+' conftest.er1 >conftest.err
37367   rm -f conftest.er1
37368   cat conftest.err >&5
37369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37370   (exit $ac_status); } && {
37371          test -z "$ac_cxx_werror_flag" ||
37372          test ! -s conftest.err
37373        } && test -s conftest.$ac_objext; then
37374
37375               ac_cv_have_intmax_t="yes"
37376
37377 else
37378   echo "$as_me: failed program was:" >&5
37379 sed 's/^/| /' conftest.$ac_ext >&5
37380
37381
37382               cat >conftest.$ac_ext <<_ACEOF
37383 /* confdefs.h.  */
37384 _ACEOF
37385 cat confdefs.h >>conftest.$ac_ext
37386 cat >>conftest.$ac_ext <<_ACEOF
37387 /* end confdefs.h.  */
37388
37389                      #include <stdint.h>
37390
37391 int
37392 main ()
37393 {
37394
37395                      intmax_t a; a = 1;
37396
37397   ;
37398   return 0;
37399 }
37400 _ACEOF
37401 rm -f conftest.$ac_objext
37402 if { (ac_try="$ac_compile"
37403 case "(($ac_try" in
37404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37405   *) ac_try_echo=$ac_try;;
37406 esac
37407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37408   (eval "$ac_compile") 2>conftest.er1
37409   ac_status=$?
37410   grep -v '^ *+' conftest.er1 >conftest.err
37411   rm -f conftest.er1
37412   cat conftest.err >&5
37413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37414   (exit $ac_status); } && {
37415          test -z "$ac_cxx_werror_flag" ||
37416          test ! -s conftest.err
37417        } && test -s conftest.$ac_objext; then
37418
37419                      ac_cv_have_intmax_t="yes"
37420
37421 else
37422   echo "$as_me: failed program was:" >&5
37423 sed 's/^/| /' conftest.$ac_ext >&5
37424
37425
37426                      ac_cv_have_intmax_t="no"
37427
37428
37429 fi
37430
37431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37432
37433
37434 fi
37435
37436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37437
37438
37439 fi
37440 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37441 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37442 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37443    cat >>confdefs.h <<\_ACEOF
37444 #define HAVE_INTMAX_T 1
37445 _ACEOF
37446
37447    have_intmax_t=1
37448 fi
37449
37450 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37451 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37452 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37453   echo $ECHO_N "(cached) $ECHO_C" >&6
37454 else
37455
37456        cat >conftest.$ac_ext <<_ACEOF
37457 /* confdefs.h.  */
37458 _ACEOF
37459 cat confdefs.h >>conftest.$ac_ext
37460 cat >>conftest.$ac_ext <<_ACEOF
37461 /* end confdefs.h.  */
37462
37463               #include <sys/types.h>
37464
37465 int
37466 main ()
37467 {
37468
37469               u_intmax_t a; a = 1;
37470
37471   ;
37472   return 0;
37473 }
37474 _ACEOF
37475 rm -f conftest.$ac_objext
37476 if { (ac_try="$ac_compile"
37477 case "(($ac_try" in
37478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37479   *) ac_try_echo=$ac_try;;
37480 esac
37481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37482   (eval "$ac_compile") 2>conftest.er1
37483   ac_status=$?
37484   grep -v '^ *+' conftest.er1 >conftest.err
37485   rm -f conftest.er1
37486   cat conftest.err >&5
37487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37488   (exit $ac_status); } && {
37489          test -z "$ac_cxx_werror_flag" ||
37490          test ! -s conftest.err
37491        } && test -s conftest.$ac_objext; then
37492
37493               ac_cv_have_u_intmax_t="yes"
37494
37495 else
37496   echo "$as_me: failed program was:" >&5
37497 sed 's/^/| /' conftest.$ac_ext >&5
37498
37499
37500               cat >conftest.$ac_ext <<_ACEOF
37501 /* confdefs.h.  */
37502 _ACEOF
37503 cat confdefs.h >>conftest.$ac_ext
37504 cat >>conftest.$ac_ext <<_ACEOF
37505 /* end confdefs.h.  */
37506
37507                      #include <stdint.h>
37508
37509 int
37510 main ()
37511 {
37512
37513                     u_intmax_t a; a = 1;
37514
37515   ;
37516   return 0;
37517 }
37518 _ACEOF
37519 rm -f conftest.$ac_objext
37520 if { (ac_try="$ac_compile"
37521 case "(($ac_try" in
37522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37523   *) ac_try_echo=$ac_try;;
37524 esac
37525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37526   (eval "$ac_compile") 2>conftest.er1
37527   ac_status=$?
37528   grep -v '^ *+' conftest.er1 >conftest.err
37529   rm -f conftest.er1
37530   cat conftest.err >&5
37531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37532   (exit $ac_status); } && {
37533          test -z "$ac_cxx_werror_flag" ||
37534          test ! -s conftest.err
37535        } && test -s conftest.$ac_objext; then
37536
37537                     ac_cv_have_u_intmax_t="yes"
37538
37539 else
37540   echo "$as_me: failed program was:" >&5
37541 sed 's/^/| /' conftest.$ac_ext >&5
37542
37543
37544                     ac_cv_have_u_intmax_t="no"
37545
37546
37547 fi
37548
37549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37550
37551
37552 fi
37553
37554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37555
37556
37557 fi
37558 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37559 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37560 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37561    cat >>confdefs.h <<\_ACEOF
37562 #define HAVE_U_INTMAX_T 1
37563 _ACEOF
37564
37565    have_u_intmax_t=1
37566 fi
37567
37568 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37569 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37570 if test "${ac_cv_have_intxx_t+set}" = set; then
37571   echo $ECHO_N "(cached) $ECHO_C" >&6
37572 else
37573
37574        cat >conftest.$ac_ext <<_ACEOF
37575 /* confdefs.h.  */
37576 _ACEOF
37577 cat confdefs.h >>conftest.$ac_ext
37578 cat >>conftest.$ac_ext <<_ACEOF
37579 /* end confdefs.h.  */
37580
37581               #include <sys/types.h>
37582
37583 int
37584 main ()
37585 {
37586
37587               int8_t a; int16_t b; int32_t c; a = b = c = 1;
37588
37589   ;
37590   return 0;
37591 }
37592 _ACEOF
37593 rm -f conftest.$ac_objext
37594 if { (ac_try="$ac_compile"
37595 case "(($ac_try" in
37596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37597   *) ac_try_echo=$ac_try;;
37598 esac
37599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37600   (eval "$ac_compile") 2>conftest.er1
37601   ac_status=$?
37602   grep -v '^ *+' conftest.er1 >conftest.err
37603   rm -f conftest.er1
37604   cat conftest.err >&5
37605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37606   (exit $ac_status); } && {
37607          test -z "$ac_cxx_werror_flag" ||
37608          test ! -s conftest.err
37609        } && test -s conftest.$ac_objext; then
37610
37611               ac_cv_have_intxx_t="yes"
37612
37613 else
37614   echo "$as_me: failed program was:" >&5
37615 sed 's/^/| /' conftest.$ac_ext >&5
37616
37617
37618               ac_cv_have_intxx_t="no"
37619
37620
37621 fi
37622
37623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37624
37625
37626 fi
37627 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37628 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37629 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37630    cat >>confdefs.h <<\_ACEOF
37631 #define HAVE_INTXX_T 1
37632 _ACEOF
37633
37634    have_intxx_t=1
37635 fi
37636
37637 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37638 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37639 if test "${ac_cv_have_int64_t+set}" = set; then
37640   echo $ECHO_N "(cached) $ECHO_C" >&6
37641 else
37642
37643        cat >conftest.$ac_ext <<_ACEOF
37644 /* confdefs.h.  */
37645 _ACEOF
37646 cat confdefs.h >>conftest.$ac_ext
37647 cat >>conftest.$ac_ext <<_ACEOF
37648 /* end confdefs.h.  */
37649
37650               #include <sys/types.h>
37651
37652 int
37653 main ()
37654 {
37655
37656               int64_t a; a = 1;
37657
37658   ;
37659   return 0;
37660 }
37661 _ACEOF
37662 rm -f conftest.$ac_objext
37663 if { (ac_try="$ac_compile"
37664 case "(($ac_try" in
37665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37666   *) ac_try_echo=$ac_try;;
37667 esac
37668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37669   (eval "$ac_compile") 2>conftest.er1
37670   ac_status=$?
37671   grep -v '^ *+' conftest.er1 >conftest.err
37672   rm -f conftest.er1
37673   cat conftest.err >&5
37674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37675   (exit $ac_status); } && {
37676          test -z "$ac_cxx_werror_flag" ||
37677          test ! -s conftest.err
37678        } && test -s conftest.$ac_objext; then
37679
37680               ac_cv_have_int64_t="yes"
37681
37682 else
37683   echo "$as_me: failed program was:" >&5
37684 sed 's/^/| /' conftest.$ac_ext >&5
37685
37686
37687               ac_cv_have_int64_t="no"
37688
37689
37690 fi
37691
37692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37693
37694
37695 fi
37696 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37697 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37698 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37699    cat >>confdefs.h <<\_ACEOF
37700 #define HAVE_INT64_T 1
37701 _ACEOF
37702
37703    have_int64_t=1
37704 fi
37705
37706 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37707 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37708 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37709   echo $ECHO_N "(cached) $ECHO_C" >&6
37710 else
37711
37712        cat >conftest.$ac_ext <<_ACEOF
37713 /* confdefs.h.  */
37714 _ACEOF
37715 cat confdefs.h >>conftest.$ac_ext
37716 cat >>conftest.$ac_ext <<_ACEOF
37717 /* end confdefs.h.  */
37718
37719               #include <sys/types.h>
37720
37721 int
37722 main ()
37723 {
37724
37725               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37726
37727   ;
37728   return 0;
37729 }
37730 _ACEOF
37731 rm -f conftest.$ac_objext
37732 if { (ac_try="$ac_compile"
37733 case "(($ac_try" in
37734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37735   *) ac_try_echo=$ac_try;;
37736 esac
37737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37738   (eval "$ac_compile") 2>conftest.er1
37739   ac_status=$?
37740   grep -v '^ *+' conftest.er1 >conftest.err
37741   rm -f conftest.er1
37742   cat conftest.err >&5
37743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37744   (exit $ac_status); } && {
37745          test -z "$ac_cxx_werror_flag" ||
37746          test ! -s conftest.err
37747        } && test -s conftest.$ac_objext; then
37748
37749              ac_cv_have_u_intxx_t="yes"
37750
37751 else
37752   echo "$as_me: failed program was:" >&5
37753 sed 's/^/| /' conftest.$ac_ext >&5
37754
37755
37756              ac_cv_have_u_intxx_t="no"
37757
37758
37759 fi
37760
37761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37762
37763
37764 fi
37765 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37766 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37767 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37768    cat >>confdefs.h <<\_ACEOF
37769 #define HAVE_U_INTXX_T 1
37770 _ACEOF
37771
37772    have_u_intxx_t=1
37773 fi
37774
37775 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37776 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37777 if test "${ac_cv_have_u_int64_t+set}" = set; then
37778   echo $ECHO_N "(cached) $ECHO_C" >&6
37779 else
37780
37781        cat >conftest.$ac_ext <<_ACEOF
37782 /* confdefs.h.  */
37783 _ACEOF
37784 cat confdefs.h >>conftest.$ac_ext
37785 cat >>conftest.$ac_ext <<_ACEOF
37786 /* end confdefs.h.  */
37787
37788               #include <sys/types.h>
37789
37790 int
37791 main ()
37792 {
37793
37794               u_int64_t a; a = 1;
37795
37796   ;
37797   return 0;
37798 }
37799 _ACEOF
37800 rm -f conftest.$ac_objext
37801 if { (ac_try="$ac_compile"
37802 case "(($ac_try" in
37803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37804   *) ac_try_echo=$ac_try;;
37805 esac
37806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37807   (eval "$ac_compile") 2>conftest.er1
37808   ac_status=$?
37809   grep -v '^ *+' conftest.er1 >conftest.err
37810   rm -f conftest.er1
37811   cat conftest.err >&5
37812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37813   (exit $ac_status); } && {
37814          test -z "$ac_cxx_werror_flag" ||
37815          test ! -s conftest.err
37816        } && test -s conftest.$ac_objext; then
37817
37818              ac_cv_have_u_int64_t="yes"
37819
37820 else
37821   echo "$as_me: failed program was:" >&5
37822 sed 's/^/| /' conftest.$ac_ext >&5
37823
37824
37825              ac_cv_have_u_int64_t="no"
37826
37827
37828 fi
37829
37830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37831
37832
37833 fi
37834 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37835 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37836 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37837    cat >>confdefs.h <<\_ACEOF
37838 #define HAVE_U_INT64_T 1
37839 _ACEOF
37840
37841    have_u_int64_t=1
37842 fi
37843
37844 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37845     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37846 then
37847    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37848 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37849    cat >conftest.$ac_ext <<_ACEOF
37850 /* confdefs.h.  */
37851 _ACEOF
37852 cat confdefs.h >>conftest.$ac_ext
37853 cat >>conftest.$ac_ext <<_ACEOF
37854 /* end confdefs.h.  */
37855
37856           #include <sys/bitypes.h>
37857
37858 int
37859 main ()
37860 {
37861
37862           int8_t a; int16_t b; int32_t c;
37863           u_int8_t e; u_int16_t f; u_int32_t g;
37864           a = b = c = e = f = g = 1;
37865
37866   ;
37867   return 0;
37868 }
37869 _ACEOF
37870 rm -f conftest.$ac_objext
37871 if { (ac_try="$ac_compile"
37872 case "(($ac_try" in
37873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37874   *) ac_try_echo=$ac_try;;
37875 esac
37876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37877   (eval "$ac_compile") 2>conftest.er1
37878   ac_status=$?
37879   grep -v '^ *+' conftest.er1 >conftest.err
37880   rm -f conftest.er1
37881   cat conftest.err >&5
37882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37883   (exit $ac_status); } && {
37884          test -z "$ac_cxx_werror_flag" ||
37885          test ! -s conftest.err
37886        } && test -s conftest.$ac_objext; then
37887
37888           cat >>confdefs.h <<\_ACEOF
37889 #define HAVE_U_INTXX_T 1
37890 _ACEOF
37891
37892           cat >>confdefs.h <<\_ACEOF
37893 #define HAVE_INTXX_T 1
37894 _ACEOF
37895
37896           cat >>confdefs.h <<\_ACEOF
37897 #define HAVE_SYS_BITYPES_H 1
37898 _ACEOF
37899
37900           { echo "$as_me:$LINENO: result: yes" >&5
37901 echo "${ECHO_T}yes" >&6; }
37902
37903 else
37904   echo "$as_me: failed program was:" >&5
37905 sed 's/^/| /' conftest.$ac_ext >&5
37906
37907
37908           { echo "$as_me:$LINENO: result: no" >&5
37909 echo "${ECHO_T}no" >&6; }
37910
37911
37912 fi
37913
37914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37915 fi
37916
37917 if test -z "$have_u_intxx_t" ; then
37918    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37919 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37920 if test "${ac_cv_have_uintxx_t+set}" = set; then
37921   echo $ECHO_N "(cached) $ECHO_C" >&6
37922 else
37923
37924           cat >conftest.$ac_ext <<_ACEOF
37925 /* confdefs.h.  */
37926 _ACEOF
37927 cat confdefs.h >>conftest.$ac_ext
37928 cat >>conftest.$ac_ext <<_ACEOF
37929 /* end confdefs.h.  */
37930
37931                  #include <sys/types.h>
37932
37933 int
37934 main ()
37935 {
37936
37937                  uint8_t a; uint16_t b;
37938                  uint32_t c; a = b = c = 1;
37939
37940   ;
37941   return 0;
37942 }
37943 _ACEOF
37944 rm -f conftest.$ac_objext
37945 if { (ac_try="$ac_compile"
37946 case "(($ac_try" in
37947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37948   *) ac_try_echo=$ac_try;;
37949 esac
37950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37951   (eval "$ac_compile") 2>conftest.er1
37952   ac_status=$?
37953   grep -v '^ *+' conftest.er1 >conftest.err
37954   rm -f conftest.er1
37955   cat conftest.err >&5
37956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37957   (exit $ac_status); } && {
37958          test -z "$ac_cxx_werror_flag" ||
37959          test ! -s conftest.err
37960        } && test -s conftest.$ac_objext; then
37961
37962                 ac_cv_have_uintxx_t="yes"
37963
37964 else
37965   echo "$as_me: failed program was:" >&5
37966 sed 's/^/| /' conftest.$ac_ext >&5
37967
37968
37969                 ac_cv_have_uintxx_t="no"
37970
37971
37972 fi
37973
37974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37975
37976
37977 fi
37978 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37979 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37980    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37981       cat >>confdefs.h <<\_ACEOF
37982 #define HAVE_UINTXX_T 1
37983 _ACEOF
37984
37985    fi
37986 fi
37987
37988 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37989     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37990 then
37991    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37992 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37993    cat >conftest.$ac_ext <<_ACEOF
37994 /* confdefs.h.  */
37995 _ACEOF
37996 cat confdefs.h >>conftest.$ac_ext
37997 cat >>conftest.$ac_ext <<_ACEOF
37998 /* end confdefs.h.  */
37999
38000           #include <sys/bitypes.h>
38001
38002 int
38003 main ()
38004 {
38005
38006           int64_t a; u_int64_t b;
38007           a = b = 1;
38008
38009   ;
38010   return 0;
38011 }
38012 _ACEOF
38013 rm -f conftest.$ac_objext
38014 if { (ac_try="$ac_compile"
38015 case "(($ac_try" in
38016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38017   *) ac_try_echo=$ac_try;;
38018 esac
38019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38020   (eval "$ac_compile") 2>conftest.er1
38021   ac_status=$?
38022   grep -v '^ *+' conftest.er1 >conftest.err
38023   rm -f conftest.er1
38024   cat conftest.err >&5
38025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38026   (exit $ac_status); } && {
38027          test -z "$ac_cxx_werror_flag" ||
38028          test ! -s conftest.err
38029        } && test -s conftest.$ac_objext; then
38030
38031           cat >>confdefs.h <<\_ACEOF
38032 #define HAVE_U_INT64_T 1
38033 _ACEOF
38034
38035           cat >>confdefs.h <<\_ACEOF
38036 #define HAVE_INT64_T 1
38037 _ACEOF
38038
38039           { echo "$as_me:$LINENO: result: yes" >&5
38040 echo "${ECHO_T}yes" >&6; }
38041
38042 else
38043   echo "$as_me: failed program was:" >&5
38044 sed 's/^/| /' conftest.$ac_ext >&5
38045
38046
38047           { echo "$as_me:$LINENO: result: no" >&5
38048 echo "${ECHO_T}no" >&6; }
38049
38050
38051 fi
38052
38053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38054 fi
38055
38056 if (test -z "$have_uintxx_t" && \
38057     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38058 then
38059    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
38060 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
38061    cat >conftest.$ac_ext <<_ACEOF
38062 /* confdefs.h.  */
38063 _ACEOF
38064 cat confdefs.h >>conftest.$ac_ext
38065 cat >>conftest.$ac_ext <<_ACEOF
38066 /* end confdefs.h.  */
38067
38068           #include <sys/bitypes.h>
38069
38070 int
38071 main ()
38072 {
38073
38074           uint8_t a; uint16_t b;
38075           uint32_t c; a = b = c = 1;
38076
38077   ;
38078   return 0;
38079 }
38080 _ACEOF
38081 rm -f conftest.$ac_objext
38082 if { (ac_try="$ac_compile"
38083 case "(($ac_try" in
38084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38085   *) ac_try_echo=$ac_try;;
38086 esac
38087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38088   (eval "$ac_compile") 2>conftest.er1
38089   ac_status=$?
38090   grep -v '^ *+' conftest.er1 >conftest.err
38091   rm -f conftest.er1
38092   cat conftest.err >&5
38093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38094   (exit $ac_status); } && {
38095          test -z "$ac_cxx_werror_flag" ||
38096          test ! -s conftest.err
38097        } && test -s conftest.$ac_objext; then
38098
38099           cat >>confdefs.h <<\_ACEOF
38100 #define HAVE_UINTXX_T 1
38101 _ACEOF
38102
38103           { echo "$as_me:$LINENO: result: yes" >&5
38104 echo "${ECHO_T}yes" >&6; }
38105
38106 else
38107   echo "$as_me: failed program was:" >&5
38108 sed 's/^/| /' conftest.$ac_ext >&5
38109
38110
38111           { echo "$as_me:$LINENO: result: no" >&5
38112 echo "${ECHO_T}no" >&6; }
38113
38114
38115 fi
38116
38117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38118 fi
38119
38120
38121
38122
38123
38124
38125
38126
38127
38128
38129
38130
38131
38132
38133 for ac_func in \
38134    fork \
38135    getcwd \
38136    gethostname \
38137    getpid \
38138    gettimeofday \
38139    setpgid \
38140    setpgrp \
38141    setsid \
38142    signal \
38143    strerror \
38144    strncmp \
38145    strncpy \
38146    vfprintf \
38147
38148 do
38149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38150 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38153   echo $ECHO_N "(cached) $ECHO_C" >&6
38154 else
38155   cat >conftest.$ac_ext <<_ACEOF
38156 /* confdefs.h.  */
38157 _ACEOF
38158 cat confdefs.h >>conftest.$ac_ext
38159 cat >>conftest.$ac_ext <<_ACEOF
38160 /* end confdefs.h.  */
38161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38162    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38163 #define $ac_func innocuous_$ac_func
38164
38165 /* System header to define __stub macros and hopefully few prototypes,
38166     which can conflict with char $ac_func (); below.
38167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38168     <limits.h> exists even on freestanding compilers.  */
38169
38170 #ifdef __STDC__
38171 # include <limits.h>
38172 #else
38173 # include <assert.h>
38174 #endif
38175
38176 #undef $ac_func
38177
38178 /* Override any GCC internal prototype to avoid an error.
38179    Use char because int might match the return type of a GCC
38180    builtin and then its argument prototype would still apply.  */
38181 #ifdef __cplusplus
38182 extern "C"
38183 #endif
38184 char $ac_func ();
38185 /* The GNU C library defines this for functions which it implements
38186     to always fail with ENOSYS.  Some functions are actually named
38187     something starting with __ and the normal name is an alias.  */
38188 #if defined __stub_$ac_func || defined __stub___$ac_func
38189 choke me
38190 #endif
38191
38192 int
38193 main ()
38194 {
38195 return $ac_func ();
38196   ;
38197   return 0;
38198 }
38199 _ACEOF
38200 rm -f conftest.$ac_objext conftest$ac_exeext
38201 if { (ac_try="$ac_link"
38202 case "(($ac_try" in
38203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38204   *) ac_try_echo=$ac_try;;
38205 esac
38206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38207   (eval "$ac_link") 2>conftest.er1
38208   ac_status=$?
38209   grep -v '^ *+' conftest.er1 >conftest.err
38210   rm -f conftest.er1
38211   cat conftest.err >&5
38212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38213   (exit $ac_status); } && {
38214          test -z "$ac_cxx_werror_flag" ||
38215          test ! -s conftest.err
38216        } && test -s conftest$ac_exeext &&
38217        $as_test_x conftest$ac_exeext; then
38218   eval "$as_ac_var=yes"
38219 else
38220   echo "$as_me: failed program was:" >&5
38221 sed 's/^/| /' conftest.$ac_ext >&5
38222
38223         eval "$as_ac_var=no"
38224 fi
38225
38226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38227       conftest$ac_exeext conftest.$ac_ext
38228 fi
38229 ac_res=`eval echo '${'$as_ac_var'}'`
38230                { echo "$as_me:$LINENO: result: $ac_res" >&5
38231 echo "${ECHO_T}$ac_res" >&6; }
38232 if test `eval echo '${'$as_ac_var'}'` = yes; then
38233   cat >>confdefs.h <<_ACEOF
38234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38235 _ACEOF
38236
38237 else
38238   echo 'configure: cannot find needed function.'; exit 1
38239
38240 fi
38241 done
38242
38243
38244
38245 for ac_func in fchdir
38246 do
38247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38248 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38250 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38251   echo $ECHO_N "(cached) $ECHO_C" >&6
38252 else
38253   cat >conftest.$ac_ext <<_ACEOF
38254 /* confdefs.h.  */
38255 _ACEOF
38256 cat confdefs.h >>conftest.$ac_ext
38257 cat >>conftest.$ac_ext <<_ACEOF
38258 /* end confdefs.h.  */
38259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38260    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38261 #define $ac_func innocuous_$ac_func
38262
38263 /* System header to define __stub macros and hopefully few prototypes,
38264     which can conflict with char $ac_func (); below.
38265     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38266     <limits.h> exists even on freestanding compilers.  */
38267
38268 #ifdef __STDC__
38269 # include <limits.h>
38270 #else
38271 # include <assert.h>
38272 #endif
38273
38274 #undef $ac_func
38275
38276 /* Override any GCC internal prototype to avoid an error.
38277    Use char because int might match the return type of a GCC
38278    builtin and then its argument prototype would still apply.  */
38279 #ifdef __cplusplus
38280 extern "C"
38281 #endif
38282 char $ac_func ();
38283 /* The GNU C library defines this for functions which it implements
38284     to always fail with ENOSYS.  Some functions are actually named
38285     something starting with __ and the normal name is an alias.  */
38286 #if defined __stub_$ac_func || defined __stub___$ac_func
38287 choke me
38288 #endif
38289
38290 int
38291 main ()
38292 {
38293 return $ac_func ();
38294   ;
38295   return 0;
38296 }
38297 _ACEOF
38298 rm -f conftest.$ac_objext conftest$ac_exeext
38299 if { (ac_try="$ac_link"
38300 case "(($ac_try" in
38301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38302   *) ac_try_echo=$ac_try;;
38303 esac
38304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38305   (eval "$ac_link") 2>conftest.er1
38306   ac_status=$?
38307   grep -v '^ *+' conftest.er1 >conftest.err
38308   rm -f conftest.er1
38309   cat conftest.err >&5
38310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38311   (exit $ac_status); } && {
38312          test -z "$ac_cxx_werror_flag" ||
38313          test ! -s conftest.err
38314        } && test -s conftest$ac_exeext &&
38315        $as_test_x conftest$ac_exeext; then
38316   eval "$as_ac_var=yes"
38317 else
38318   echo "$as_me: failed program was:" >&5
38319 sed 's/^/| /' conftest.$ac_ext >&5
38320
38321         eval "$as_ac_var=no"
38322 fi
38323
38324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38325       conftest$ac_exeext conftest.$ac_ext
38326 fi
38327 ac_res=`eval echo '${'$as_ac_var'}'`
38328                { echo "$as_me:$LINENO: result: $ac_res" >&5
38329 echo "${ECHO_T}$ac_res" >&6; }
38330 if test `eval echo '${'$as_ac_var'}'` = yes; then
38331   cat >>confdefs.h <<_ACEOF
38332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38333 _ACEOF
38334  cat >>confdefs.h <<\_ACEOF
38335 #define HAVE_FCHDIR 1
38336 _ACEOF
38337
38338 fi
38339 done
38340
38341
38342 for ac_func in strtoll
38343 do
38344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38345 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38347 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38348   echo $ECHO_N "(cached) $ECHO_C" >&6
38349 else
38350   cat >conftest.$ac_ext <<_ACEOF
38351 /* confdefs.h.  */
38352 _ACEOF
38353 cat confdefs.h >>conftest.$ac_ext
38354 cat >>conftest.$ac_ext <<_ACEOF
38355 /* end confdefs.h.  */
38356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38357    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38358 #define $ac_func innocuous_$ac_func
38359
38360 /* System header to define __stub macros and hopefully few prototypes,
38361     which can conflict with char $ac_func (); below.
38362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38363     <limits.h> exists even on freestanding compilers.  */
38364
38365 #ifdef __STDC__
38366 # include <limits.h>
38367 #else
38368 # include <assert.h>
38369 #endif
38370
38371 #undef $ac_func
38372
38373 /* Override any GCC internal prototype to avoid an error.
38374    Use char because int might match the return type of a GCC
38375    builtin and then its argument prototype would still apply.  */
38376 #ifdef __cplusplus
38377 extern "C"
38378 #endif
38379 char $ac_func ();
38380 /* The GNU C library defines this for functions which it implements
38381     to always fail with ENOSYS.  Some functions are actually named
38382     something starting with __ and the normal name is an alias.  */
38383 #if defined __stub_$ac_func || defined __stub___$ac_func
38384 choke me
38385 #endif
38386
38387 int
38388 main ()
38389 {
38390 return $ac_func ();
38391   ;
38392   return 0;
38393 }
38394 _ACEOF
38395 rm -f conftest.$ac_objext conftest$ac_exeext
38396 if { (ac_try="$ac_link"
38397 case "(($ac_try" in
38398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38399   *) ac_try_echo=$ac_try;;
38400 esac
38401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38402   (eval "$ac_link") 2>conftest.er1
38403   ac_status=$?
38404   grep -v '^ *+' conftest.er1 >conftest.err
38405   rm -f conftest.er1
38406   cat conftest.err >&5
38407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38408   (exit $ac_status); } && {
38409          test -z "$ac_cxx_werror_flag" ||
38410          test ! -s conftest.err
38411        } && test -s conftest$ac_exeext &&
38412        $as_test_x conftest$ac_exeext; then
38413   eval "$as_ac_var=yes"
38414 else
38415   echo "$as_me: failed program was:" >&5
38416 sed 's/^/| /' conftest.$ac_ext >&5
38417
38418         eval "$as_ac_var=no"
38419 fi
38420
38421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38422       conftest$ac_exeext conftest.$ac_ext
38423 fi
38424 ac_res=`eval echo '${'$as_ac_var'}'`
38425                { echo "$as_me:$LINENO: result: $ac_res" >&5
38426 echo "${ECHO_T}$ac_res" >&6; }
38427 if test `eval echo '${'$as_ac_var'}'` = yes; then
38428   cat >>confdefs.h <<_ACEOF
38429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38430 _ACEOF
38431  cat >>confdefs.h <<\_ACEOF
38432 #define HAVE_STRTOLL 1
38433 _ACEOF
38434
38435 fi
38436 done
38437
38438
38439 for ac_func in posix_fadvise
38440 do
38441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38442 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38444 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38445   echo $ECHO_N "(cached) $ECHO_C" >&6
38446 else
38447   cat >conftest.$ac_ext <<_ACEOF
38448 /* confdefs.h.  */
38449 _ACEOF
38450 cat confdefs.h >>conftest.$ac_ext
38451 cat >>conftest.$ac_ext <<_ACEOF
38452 /* end confdefs.h.  */
38453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38454    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38455 #define $ac_func innocuous_$ac_func
38456
38457 /* System header to define __stub macros and hopefully few prototypes,
38458     which can conflict with char $ac_func (); below.
38459     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38460     <limits.h> exists even on freestanding compilers.  */
38461
38462 #ifdef __STDC__
38463 # include <limits.h>
38464 #else
38465 # include <assert.h>
38466 #endif
38467
38468 #undef $ac_func
38469
38470 /* Override any GCC internal prototype to avoid an error.
38471    Use char because int might match the return type of a GCC
38472    builtin and then its argument prototype would still apply.  */
38473 #ifdef __cplusplus
38474 extern "C"
38475 #endif
38476 char $ac_func ();
38477 /* The GNU C library defines this for functions which it implements
38478     to always fail with ENOSYS.  Some functions are actually named
38479     something starting with __ and the normal name is an alias.  */
38480 #if defined __stub_$ac_func || defined __stub___$ac_func
38481 choke me
38482 #endif
38483
38484 int
38485 main ()
38486 {
38487 return $ac_func ();
38488   ;
38489   return 0;
38490 }
38491 _ACEOF
38492 rm -f conftest.$ac_objext conftest$ac_exeext
38493 if { (ac_try="$ac_link"
38494 case "(($ac_try" in
38495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38496   *) ac_try_echo=$ac_try;;
38497 esac
38498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38499   (eval "$ac_link") 2>conftest.er1
38500   ac_status=$?
38501   grep -v '^ *+' conftest.er1 >conftest.err
38502   rm -f conftest.er1
38503   cat conftest.err >&5
38504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38505   (exit $ac_status); } && {
38506          test -z "$ac_cxx_werror_flag" ||
38507          test ! -s conftest.err
38508        } && test -s conftest$ac_exeext &&
38509        $as_test_x conftest$ac_exeext; then
38510   eval "$as_ac_var=yes"
38511 else
38512   echo "$as_me: failed program was:" >&5
38513 sed 's/^/| /' conftest.$ac_ext >&5
38514
38515         eval "$as_ac_var=no"
38516 fi
38517
38518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38519       conftest$ac_exeext conftest.$ac_ext
38520 fi
38521 ac_res=`eval echo '${'$as_ac_var'}'`
38522                { echo "$as_me:$LINENO: result: $ac_res" >&5
38523 echo "${ECHO_T}$ac_res" >&6; }
38524 if test `eval echo '${'$as_ac_var'}'` = yes; then
38525   cat >>confdefs.h <<_ACEOF
38526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38527 _ACEOF
38528
38529 fi
38530 done
38531
38532
38533 for ac_func in fdatasync
38534 do
38535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38536 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38538 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38539   echo $ECHO_N "(cached) $ECHO_C" >&6
38540 else
38541   cat >conftest.$ac_ext <<_ACEOF
38542 /* confdefs.h.  */
38543 _ACEOF
38544 cat confdefs.h >>conftest.$ac_ext
38545 cat >>conftest.$ac_ext <<_ACEOF
38546 /* end confdefs.h.  */
38547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38548    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38549 #define $ac_func innocuous_$ac_func
38550
38551 /* System header to define __stub macros and hopefully few prototypes,
38552     which can conflict with char $ac_func (); below.
38553     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38554     <limits.h> exists even on freestanding compilers.  */
38555
38556 #ifdef __STDC__
38557 # include <limits.h>
38558 #else
38559 # include <assert.h>
38560 #endif
38561
38562 #undef $ac_func
38563
38564 /* Override any GCC internal prototype to avoid an error.
38565    Use char because int might match the return type of a GCC
38566    builtin and then its argument prototype would still apply.  */
38567 #ifdef __cplusplus
38568 extern "C"
38569 #endif
38570 char $ac_func ();
38571 /* The GNU C library defines this for functions which it implements
38572     to always fail with ENOSYS.  Some functions are actually named
38573     something starting with __ and the normal name is an alias.  */
38574 #if defined __stub_$ac_func || defined __stub___$ac_func
38575 choke me
38576 #endif
38577
38578 int
38579 main ()
38580 {
38581 return $ac_func ();
38582   ;
38583   return 0;
38584 }
38585 _ACEOF
38586 rm -f conftest.$ac_objext conftest$ac_exeext
38587 if { (ac_try="$ac_link"
38588 case "(($ac_try" in
38589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38590   *) ac_try_echo=$ac_try;;
38591 esac
38592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38593   (eval "$ac_link") 2>conftest.er1
38594   ac_status=$?
38595   grep -v '^ *+' conftest.er1 >conftest.err
38596   rm -f conftest.er1
38597   cat conftest.err >&5
38598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38599   (exit $ac_status); } && {
38600          test -z "$ac_cxx_werror_flag" ||
38601          test ! -s conftest.err
38602        } && test -s conftest$ac_exeext &&
38603        $as_test_x conftest$ac_exeext; then
38604   eval "$as_ac_var=yes"
38605 else
38606   echo "$as_me: failed program was:" >&5
38607 sed 's/^/| /' conftest.$ac_ext >&5
38608
38609         eval "$as_ac_var=no"
38610 fi
38611
38612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38613       conftest$ac_exeext conftest.$ac_ext
38614 fi
38615 ac_res=`eval echo '${'$as_ac_var'}'`
38616                { echo "$as_me:$LINENO: result: $ac_res" >&5
38617 echo "${ECHO_T}$ac_res" >&6; }
38618 if test `eval echo '${'$as_ac_var'}'` = yes; then
38619   cat >>confdefs.h <<_ACEOF
38620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38621 _ACEOF
38622
38623 fi
38624 done
38625
38626
38627
38628 for ac_func in chflags
38629 do
38630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38631 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38633 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38634   echo $ECHO_N "(cached) $ECHO_C" >&6
38635 else
38636   cat >conftest.$ac_ext <<_ACEOF
38637 /* confdefs.h.  */
38638 _ACEOF
38639 cat confdefs.h >>conftest.$ac_ext
38640 cat >>conftest.$ac_ext <<_ACEOF
38641 /* end confdefs.h.  */
38642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38643    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38644 #define $ac_func innocuous_$ac_func
38645
38646 /* System header to define __stub macros and hopefully few prototypes,
38647     which can conflict with char $ac_func (); below.
38648     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38649     <limits.h> exists even on freestanding compilers.  */
38650
38651 #ifdef __STDC__
38652 # include <limits.h>
38653 #else
38654 # include <assert.h>
38655 #endif
38656
38657 #undef $ac_func
38658
38659 /* Override any GCC internal prototype to avoid an error.
38660    Use char because int might match the return type of a GCC
38661    builtin and then its argument prototype would still apply.  */
38662 #ifdef __cplusplus
38663 extern "C"
38664 #endif
38665 char $ac_func ();
38666 /* The GNU C library defines this for functions which it implements
38667     to always fail with ENOSYS.  Some functions are actually named
38668     something starting with __ and the normal name is an alias.  */
38669 #if defined __stub_$ac_func || defined __stub___$ac_func
38670 choke me
38671 #endif
38672
38673 int
38674 main ()
38675 {
38676 return $ac_func ();
38677   ;
38678   return 0;
38679 }
38680 _ACEOF
38681 rm -f conftest.$ac_objext conftest$ac_exeext
38682 if { (ac_try="$ac_link"
38683 case "(($ac_try" in
38684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38685   *) ac_try_echo=$ac_try;;
38686 esac
38687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38688   (eval "$ac_link") 2>conftest.er1
38689   ac_status=$?
38690   grep -v '^ *+' conftest.er1 >conftest.err
38691   rm -f conftest.er1
38692   cat conftest.err >&5
38693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38694   (exit $ac_status); } && {
38695          test -z "$ac_cxx_werror_flag" ||
38696          test ! -s conftest.err
38697        } && test -s conftest$ac_exeext &&
38698        $as_test_x conftest$ac_exeext; then
38699   eval "$as_ac_var=yes"
38700 else
38701   echo "$as_me: failed program was:" >&5
38702 sed 's/^/| /' conftest.$ac_ext >&5
38703
38704         eval "$as_ac_var=no"
38705 fi
38706
38707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38708       conftest$ac_exeext conftest.$ac_ext
38709 fi
38710 ac_res=`eval echo '${'$as_ac_var'}'`
38711                { echo "$as_me:$LINENO: result: $ac_res" >&5
38712 echo "${ECHO_T}$ac_res" >&6; }
38713 if test `eval echo '${'$as_ac_var'}'` = yes; then
38714   cat >>confdefs.h <<_ACEOF
38715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38716 _ACEOF
38717
38718 fi
38719 done
38720
38721
38722
38723
38724
38725
38726 for ac_func in snprintf vsnprintf gethostid fseeko
38727 do
38728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38729 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38732   echo $ECHO_N "(cached) $ECHO_C" >&6
38733 else
38734   cat >conftest.$ac_ext <<_ACEOF
38735 /* confdefs.h.  */
38736 _ACEOF
38737 cat confdefs.h >>conftest.$ac_ext
38738 cat >>conftest.$ac_ext <<_ACEOF
38739 /* end confdefs.h.  */
38740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38741    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38742 #define $ac_func innocuous_$ac_func
38743
38744 /* System header to define __stub macros and hopefully few prototypes,
38745     which can conflict with char $ac_func (); below.
38746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38747     <limits.h> exists even on freestanding compilers.  */
38748
38749 #ifdef __STDC__
38750 # include <limits.h>
38751 #else
38752 # include <assert.h>
38753 #endif
38754
38755 #undef $ac_func
38756
38757 /* Override any GCC internal prototype to avoid an error.
38758    Use char because int might match the return type of a GCC
38759    builtin and then its argument prototype would still apply.  */
38760 #ifdef __cplusplus
38761 extern "C"
38762 #endif
38763 char $ac_func ();
38764 /* The GNU C library defines this for functions which it implements
38765     to always fail with ENOSYS.  Some functions are actually named
38766     something starting with __ and the normal name is an alias.  */
38767 #if defined __stub_$ac_func || defined __stub___$ac_func
38768 choke me
38769 #endif
38770
38771 int
38772 main ()
38773 {
38774 return $ac_func ();
38775   ;
38776   return 0;
38777 }
38778 _ACEOF
38779 rm -f conftest.$ac_objext conftest$ac_exeext
38780 if { (ac_try="$ac_link"
38781 case "(($ac_try" in
38782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38783   *) ac_try_echo=$ac_try;;
38784 esac
38785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38786   (eval "$ac_link") 2>conftest.er1
38787   ac_status=$?
38788   grep -v '^ *+' conftest.er1 >conftest.err
38789   rm -f conftest.er1
38790   cat conftest.err >&5
38791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38792   (exit $ac_status); } && {
38793          test -z "$ac_cxx_werror_flag" ||
38794          test ! -s conftest.err
38795        } && test -s conftest$ac_exeext &&
38796        $as_test_x conftest$ac_exeext; then
38797   eval "$as_ac_var=yes"
38798 else
38799   echo "$as_me: failed program was:" >&5
38800 sed 's/^/| /' conftest.$ac_ext >&5
38801
38802         eval "$as_ac_var=no"
38803 fi
38804
38805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38806       conftest$ac_exeext conftest.$ac_ext
38807 fi
38808 ac_res=`eval echo '${'$as_ac_var'}'`
38809                { echo "$as_me:$LINENO: result: $ac_res" >&5
38810 echo "${ECHO_T}$ac_res" >&6; }
38811 if test `eval echo '${'$as_ac_var'}'` = yes; then
38812   cat >>confdefs.h <<_ACEOF
38813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38814 _ACEOF
38815
38816 fi
38817 done
38818
38819
38820 { echo "$as_me:$LINENO: checking for va_copy" >&5
38821 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38822 if test "${ba_cv_va_copy+set}" = set; then
38823   echo $ECHO_N "(cached) $ECHO_C" >&6
38824 else
38825
38826        cat >conftest.$ac_ext <<_ACEOF
38827 /* confdefs.h.  */
38828 _ACEOF
38829 cat confdefs.h >>conftest.$ac_ext
38830 cat >>conftest.$ac_ext <<_ACEOF
38831 /* end confdefs.h.  */
38832
38833               #include <stdarg.h>
38834               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38835               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38836
38837 int
38838 main ()
38839 {
38840
38841               call_use_va_copy(1,2,3)
38842
38843   ;
38844   return 0;
38845 }
38846 _ACEOF
38847 rm -f conftest.$ac_objext conftest$ac_exeext
38848 if { (ac_try="$ac_link"
38849 case "(($ac_try" in
38850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38851   *) ac_try_echo=$ac_try;;
38852 esac
38853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38854   (eval "$ac_link") 2>conftest.er1
38855   ac_status=$?
38856   grep -v '^ *+' conftest.er1 >conftest.err
38857   rm -f conftest.er1
38858   cat conftest.err >&5
38859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38860   (exit $ac_status); } && {
38861          test -z "$ac_cxx_werror_flag" ||
38862          test ! -s conftest.err
38863        } && test -s conftest$ac_exeext &&
38864        $as_test_x conftest$ac_exeext; then
38865
38866               ba_cv_va_copy=yes,
38867
38868 else
38869   echo "$as_me: failed program was:" >&5
38870 sed 's/^/| /' conftest.$ac_ext >&5
38871
38872
38873               ba_cv_va_copy=no
38874
38875
38876 fi
38877
38878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38879       conftest$ac_exeext conftest.$ac_ext
38880
38881
38882 fi
38883 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38884 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38885 test $ba_cv_va_copy = yes &&
38886 cat >>confdefs.h <<\_ACEOF
38887 #define HAVE_VA_COPY 1
38888 _ACEOF
38889
38890
38891
38892
38893
38894
38895 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38896 do
38897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38898 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38901   echo $ECHO_N "(cached) $ECHO_C" >&6
38902 else
38903   cat >conftest.$ac_ext <<_ACEOF
38904 /* confdefs.h.  */
38905 _ACEOF
38906 cat confdefs.h >>conftest.$ac_ext
38907 cat >>conftest.$ac_ext <<_ACEOF
38908 /* end confdefs.h.  */
38909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38910    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38911 #define $ac_func innocuous_$ac_func
38912
38913 /* System header to define __stub macros and hopefully few prototypes,
38914     which can conflict with char $ac_func (); below.
38915     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38916     <limits.h> exists even on freestanding compilers.  */
38917
38918 #ifdef __STDC__
38919 # include <limits.h>
38920 #else
38921 # include <assert.h>
38922 #endif
38923
38924 #undef $ac_func
38925
38926 /* Override any GCC internal prototype to avoid an error.
38927    Use char because int might match the return type of a GCC
38928    builtin and then its argument prototype would still apply.  */
38929 #ifdef __cplusplus
38930 extern "C"
38931 #endif
38932 char $ac_func ();
38933 /* The GNU C library defines this for functions which it implements
38934     to always fail with ENOSYS.  Some functions are actually named
38935     something starting with __ and the normal name is an alias.  */
38936 #if defined __stub_$ac_func || defined __stub___$ac_func
38937 choke me
38938 #endif
38939
38940 int
38941 main ()
38942 {
38943 return $ac_func ();
38944   ;
38945   return 0;
38946 }
38947 _ACEOF
38948 rm -f conftest.$ac_objext conftest$ac_exeext
38949 if { (ac_try="$ac_link"
38950 case "(($ac_try" in
38951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38952   *) ac_try_echo=$ac_try;;
38953 esac
38954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38955   (eval "$ac_link") 2>conftest.er1
38956   ac_status=$?
38957   grep -v '^ *+' conftest.er1 >conftest.err
38958   rm -f conftest.er1
38959   cat conftest.err >&5
38960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38961   (exit $ac_status); } && {
38962          test -z "$ac_cxx_werror_flag" ||
38963          test ! -s conftest.err
38964        } && test -s conftest$ac_exeext &&
38965        $as_test_x conftest$ac_exeext; then
38966   eval "$as_ac_var=yes"
38967 else
38968   echo "$as_me: failed program was:" >&5
38969 sed 's/^/| /' conftest.$ac_ext >&5
38970
38971         eval "$as_ac_var=no"
38972 fi
38973
38974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38975       conftest$ac_exeext conftest.$ac_ext
38976 fi
38977 ac_res=`eval echo '${'$as_ac_var'}'`
38978                { echo "$as_me:$LINENO: result: $ac_res" >&5
38979 echo "${ECHO_T}$ac_res" >&6; }
38980 if test `eval echo '${'$as_ac_var'}'` = yes; then
38981   cat >>confdefs.h <<_ACEOF
38982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38983 _ACEOF
38984
38985 fi
38986 done
38987
38988
38989 # If resolver functions are not in libc check for -lnsl or -lresolv.
38990 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38991 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38992 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38993   echo $ECHO_N "(cached) $ECHO_C" >&6
38994 else
38995   cat >conftest.$ac_ext <<_ACEOF
38996 /* confdefs.h.  */
38997 _ACEOF
38998 cat confdefs.h >>conftest.$ac_ext
38999 cat >>conftest.$ac_ext <<_ACEOF
39000 /* end confdefs.h.  */
39001 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
39002    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39003 #define gethostbyname_r innocuous_gethostbyname_r
39004
39005 /* System header to define __stub macros and hopefully few prototypes,
39006     which can conflict with char gethostbyname_r (); below.
39007     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39008     <limits.h> exists even on freestanding compilers.  */
39009
39010 #ifdef __STDC__
39011 # include <limits.h>
39012 #else
39013 # include <assert.h>
39014 #endif
39015
39016 #undef gethostbyname_r
39017
39018 /* Override any GCC internal prototype to avoid an error.
39019    Use char because int might match the return type of a GCC
39020    builtin and then its argument prototype would still apply.  */
39021 #ifdef __cplusplus
39022 extern "C"
39023 #endif
39024 char gethostbyname_r ();
39025 /* The GNU C library defines this for functions which it implements
39026     to always fail with ENOSYS.  Some functions are actually named
39027     something starting with __ and the normal name is an alias.  */
39028 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
39029 choke me
39030 #endif
39031
39032 int
39033 main ()
39034 {
39035 return gethostbyname_r ();
39036   ;
39037   return 0;
39038 }
39039 _ACEOF
39040 rm -f conftest.$ac_objext conftest$ac_exeext
39041 if { (ac_try="$ac_link"
39042 case "(($ac_try" in
39043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39044   *) ac_try_echo=$ac_try;;
39045 esac
39046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39047   (eval "$ac_link") 2>conftest.er1
39048   ac_status=$?
39049   grep -v '^ *+' conftest.er1 >conftest.err
39050   rm -f conftest.er1
39051   cat conftest.err >&5
39052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39053   (exit $ac_status); } && {
39054          test -z "$ac_cxx_werror_flag" ||
39055          test ! -s conftest.err
39056        } && test -s conftest$ac_exeext &&
39057        $as_test_x conftest$ac_exeext; then
39058   ac_cv_func_gethostbyname_r=yes
39059 else
39060   echo "$as_me: failed program was:" >&5
39061 sed 's/^/| /' conftest.$ac_ext >&5
39062
39063         ac_cv_func_gethostbyname_r=no
39064 fi
39065
39066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39067       conftest$ac_exeext conftest.$ac_ext
39068 fi
39069 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
39070 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
39071 if test $ac_cv_func_gethostbyname_r = yes; then
39072   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
39073 echo "${ECHO_T}using libc's resolver" >&6; }
39074 else
39075
39076 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
39077 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
39078 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
39079   echo $ECHO_N "(cached) $ECHO_C" >&6
39080 else
39081   ac_check_lib_save_LIBS=$LIBS
39082 LIBS="-lnsl  $LIBS"
39083 cat >conftest.$ac_ext <<_ACEOF
39084 /* confdefs.h.  */
39085 _ACEOF
39086 cat confdefs.h >>conftest.$ac_ext
39087 cat >>conftest.$ac_ext <<_ACEOF
39088 /* end confdefs.h.  */
39089
39090 /* Override any GCC internal prototype to avoid an error.
39091    Use char because int might match the return type of a GCC
39092    builtin and then its argument prototype would still apply.  */
39093 #ifdef __cplusplus
39094 extern "C"
39095 #endif
39096 char gethostbyname_r ();
39097 int
39098 main ()
39099 {
39100 return gethostbyname_r ();
39101   ;
39102   return 0;
39103 }
39104 _ACEOF
39105 rm -f conftest.$ac_objext conftest$ac_exeext
39106 if { (ac_try="$ac_link"
39107 case "(($ac_try" in
39108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39109   *) ac_try_echo=$ac_try;;
39110 esac
39111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39112   (eval "$ac_link") 2>conftest.er1
39113   ac_status=$?
39114   grep -v '^ *+' conftest.er1 >conftest.err
39115   rm -f conftest.er1
39116   cat conftest.err >&5
39117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39118   (exit $ac_status); } && {
39119          test -z "$ac_cxx_werror_flag" ||
39120          test ! -s conftest.err
39121        } && test -s conftest$ac_exeext &&
39122        $as_test_x conftest$ac_exeext; then
39123   ac_cv_lib_nsl_gethostbyname_r=yes
39124 else
39125   echo "$as_me: failed program was:" >&5
39126 sed 's/^/| /' conftest.$ac_ext >&5
39127
39128         ac_cv_lib_nsl_gethostbyname_r=no
39129 fi
39130
39131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39132       conftest$ac_exeext conftest.$ac_ext
39133 LIBS=$ac_check_lib_save_LIBS
39134 fi
39135 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
39136 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
39137 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
39138   cat >>confdefs.h <<_ACEOF
39139 #define HAVE_LIBNSL 1
39140 _ACEOF
39141
39142   LIBS="-lnsl $LIBS"
39143
39144 fi
39145
39146
39147 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
39148 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
39149 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
39150   echo $ECHO_N "(cached) $ECHO_C" >&6
39151 else
39152   ac_check_lib_save_LIBS=$LIBS
39153 LIBS="-lresolv  $LIBS"
39154 cat >conftest.$ac_ext <<_ACEOF
39155 /* confdefs.h.  */
39156 _ACEOF
39157 cat confdefs.h >>conftest.$ac_ext
39158 cat >>conftest.$ac_ext <<_ACEOF
39159 /* end confdefs.h.  */
39160
39161 /* Override any GCC internal prototype to avoid an error.
39162    Use char because int might match the return type of a GCC
39163    builtin and then its argument prototype would still apply.  */
39164 #ifdef __cplusplus
39165 extern "C"
39166 #endif
39167 char gethostbyname_r ();
39168 int
39169 main ()
39170 {
39171 return gethostbyname_r ();
39172   ;
39173   return 0;
39174 }
39175 _ACEOF
39176 rm -f conftest.$ac_objext conftest$ac_exeext
39177 if { (ac_try="$ac_link"
39178 case "(($ac_try" in
39179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39180   *) ac_try_echo=$ac_try;;
39181 esac
39182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39183   (eval "$ac_link") 2>conftest.er1
39184   ac_status=$?
39185   grep -v '^ *+' conftest.er1 >conftest.err
39186   rm -f conftest.er1
39187   cat conftest.err >&5
39188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39189   (exit $ac_status); } && {
39190          test -z "$ac_cxx_werror_flag" ||
39191          test ! -s conftest.err
39192        } && test -s conftest$ac_exeext &&
39193        $as_test_x conftest$ac_exeext; then
39194   ac_cv_lib_resolv_gethostbyname_r=yes
39195 else
39196   echo "$as_me: failed program was:" >&5
39197 sed 's/^/| /' conftest.$ac_ext >&5
39198
39199         ac_cv_lib_resolv_gethostbyname_r=no
39200 fi
39201
39202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39203       conftest$ac_exeext conftest.$ac_ext
39204 LIBS=$ac_check_lib_save_LIBS
39205 fi
39206 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
39207 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
39208 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
39209   cat >>confdefs.h <<_ACEOF
39210 #define HAVE_LIBRESOLV 1
39211 _ACEOF
39212
39213   LIBS="-lresolv $LIBS"
39214
39215 fi
39216
39217 fi
39218
39219
39220
39221 for ac_func in inet_pton
39222 do
39223 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39224 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39226 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39227   echo $ECHO_N "(cached) $ECHO_C" >&6
39228 else
39229   cat >conftest.$ac_ext <<_ACEOF
39230 /* confdefs.h.  */
39231 _ACEOF
39232 cat confdefs.h >>conftest.$ac_ext
39233 cat >>conftest.$ac_ext <<_ACEOF
39234 /* end confdefs.h.  */
39235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39236    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39237 #define $ac_func innocuous_$ac_func
39238
39239 /* System header to define __stub macros and hopefully few prototypes,
39240     which can conflict with char $ac_func (); below.
39241     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39242     <limits.h> exists even on freestanding compilers.  */
39243
39244 #ifdef __STDC__
39245 # include <limits.h>
39246 #else
39247 # include <assert.h>
39248 #endif
39249
39250 #undef $ac_func
39251
39252 /* Override any GCC internal prototype to avoid an error.
39253    Use char because int might match the return type of a GCC
39254    builtin and then its argument prototype would still apply.  */
39255 #ifdef __cplusplus
39256 extern "C"
39257 #endif
39258 char $ac_func ();
39259 /* The GNU C library defines this for functions which it implements
39260     to always fail with ENOSYS.  Some functions are actually named
39261     something starting with __ and the normal name is an alias.  */
39262 #if defined __stub_$ac_func || defined __stub___$ac_func
39263 choke me
39264 #endif
39265
39266 int
39267 main ()
39268 {
39269 return $ac_func ();
39270   ;
39271   return 0;
39272 }
39273 _ACEOF
39274 rm -f conftest.$ac_objext conftest$ac_exeext
39275 if { (ac_try="$ac_link"
39276 case "(($ac_try" in
39277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39278   *) ac_try_echo=$ac_try;;
39279 esac
39280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39281   (eval "$ac_link") 2>conftest.er1
39282   ac_status=$?
39283   grep -v '^ *+' conftest.er1 >conftest.err
39284   rm -f conftest.er1
39285   cat conftest.err >&5
39286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39287   (exit $ac_status); } && {
39288          test -z "$ac_cxx_werror_flag" ||
39289          test ! -s conftest.err
39290        } && test -s conftest$ac_exeext &&
39291        $as_test_x conftest$ac_exeext; then
39292   eval "$as_ac_var=yes"
39293 else
39294   echo "$as_me: failed program was:" >&5
39295 sed 's/^/| /' conftest.$ac_ext >&5
39296
39297         eval "$as_ac_var=no"
39298 fi
39299
39300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39301       conftest$ac_exeext conftest.$ac_ext
39302 fi
39303 ac_res=`eval echo '${'$as_ac_var'}'`
39304                { echo "$as_me:$LINENO: result: $ac_res" >&5
39305 echo "${ECHO_T}$ac_res" >&6; }
39306 if test `eval echo '${'$as_ac_var'}'` = yes; then
39307   cat >>confdefs.h <<_ACEOF
39308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39309 _ACEOF
39310  cat >>confdefs.h <<\_ACEOF
39311 #define HAVE_INET_PTON 1
39312 _ACEOF
39313
39314 fi
39315 done
39316
39317
39318 for ac_func in inet_ntop
39319 do
39320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39324   echo $ECHO_N "(cached) $ECHO_C" >&6
39325 else
39326   cat >conftest.$ac_ext <<_ACEOF
39327 /* confdefs.h.  */
39328 _ACEOF
39329 cat confdefs.h >>conftest.$ac_ext
39330 cat >>conftest.$ac_ext <<_ACEOF
39331 /* end confdefs.h.  */
39332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39333    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39334 #define $ac_func innocuous_$ac_func
39335
39336 /* System header to define __stub macros and hopefully few prototypes,
39337     which can conflict with char $ac_func (); below.
39338     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39339     <limits.h> exists even on freestanding compilers.  */
39340
39341 #ifdef __STDC__
39342 # include <limits.h>
39343 #else
39344 # include <assert.h>
39345 #endif
39346
39347 #undef $ac_func
39348
39349 /* Override any GCC internal prototype to avoid an error.
39350    Use char because int might match the return type of a GCC
39351    builtin and then its argument prototype would still apply.  */
39352 #ifdef __cplusplus
39353 extern "C"
39354 #endif
39355 char $ac_func ();
39356 /* The GNU C library defines this for functions which it implements
39357     to always fail with ENOSYS.  Some functions are actually named
39358     something starting with __ and the normal name is an alias.  */
39359 #if defined __stub_$ac_func || defined __stub___$ac_func
39360 choke me
39361 #endif
39362
39363 int
39364 main ()
39365 {
39366 return $ac_func ();
39367   ;
39368   return 0;
39369 }
39370 _ACEOF
39371 rm -f conftest.$ac_objext conftest$ac_exeext
39372 if { (ac_try="$ac_link"
39373 case "(($ac_try" in
39374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39375   *) ac_try_echo=$ac_try;;
39376 esac
39377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39378   (eval "$ac_link") 2>conftest.er1
39379   ac_status=$?
39380   grep -v '^ *+' conftest.er1 >conftest.err
39381   rm -f conftest.er1
39382   cat conftest.err >&5
39383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39384   (exit $ac_status); } && {
39385          test -z "$ac_cxx_werror_flag" ||
39386          test ! -s conftest.err
39387        } && test -s conftest$ac_exeext &&
39388        $as_test_x conftest$ac_exeext; then
39389   eval "$as_ac_var=yes"
39390 else
39391   echo "$as_me: failed program was:" >&5
39392 sed 's/^/| /' conftest.$ac_ext >&5
39393
39394         eval "$as_ac_var=no"
39395 fi
39396
39397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39398       conftest$ac_exeext conftest.$ac_ext
39399 fi
39400 ac_res=`eval echo '${'$as_ac_var'}'`
39401                { echo "$as_me:$LINENO: result: $ac_res" >&5
39402 echo "${ECHO_T}$ac_res" >&6; }
39403 if test `eval echo '${'$as_ac_var'}'` = yes; then
39404   cat >>confdefs.h <<_ACEOF
39405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39406 _ACEOF
39407  cat >>confdefs.h <<\_ACEOF
39408 #define HAVE_INET_NTOP 1
39409 _ACEOF
39410
39411 fi
39412 done
39413
39414
39415 for ac_func in gethostbyname2
39416 do
39417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39418 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39420 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39421   echo $ECHO_N "(cached) $ECHO_C" >&6
39422 else
39423   cat >conftest.$ac_ext <<_ACEOF
39424 /* confdefs.h.  */
39425 _ACEOF
39426 cat confdefs.h >>conftest.$ac_ext
39427 cat >>conftest.$ac_ext <<_ACEOF
39428 /* end confdefs.h.  */
39429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39430    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39431 #define $ac_func innocuous_$ac_func
39432
39433 /* System header to define __stub macros and hopefully few prototypes,
39434     which can conflict with char $ac_func (); below.
39435     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39436     <limits.h> exists even on freestanding compilers.  */
39437
39438 #ifdef __STDC__
39439 # include <limits.h>
39440 #else
39441 # include <assert.h>
39442 #endif
39443
39444 #undef $ac_func
39445
39446 /* Override any GCC internal prototype to avoid an error.
39447    Use char because int might match the return type of a GCC
39448    builtin and then its argument prototype would still apply.  */
39449 #ifdef __cplusplus
39450 extern "C"
39451 #endif
39452 char $ac_func ();
39453 /* The GNU C library defines this for functions which it implements
39454     to always fail with ENOSYS.  Some functions are actually named
39455     something starting with __ and the normal name is an alias.  */
39456 #if defined __stub_$ac_func || defined __stub___$ac_func
39457 choke me
39458 #endif
39459
39460 int
39461 main ()
39462 {
39463 return $ac_func ();
39464   ;
39465   return 0;
39466 }
39467 _ACEOF
39468 rm -f conftest.$ac_objext conftest$ac_exeext
39469 if { (ac_try="$ac_link"
39470 case "(($ac_try" in
39471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39472   *) ac_try_echo=$ac_try;;
39473 esac
39474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39475   (eval "$ac_link") 2>conftest.er1
39476   ac_status=$?
39477   grep -v '^ *+' conftest.er1 >conftest.err
39478   rm -f conftest.er1
39479   cat conftest.err >&5
39480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39481   (exit $ac_status); } && {
39482          test -z "$ac_cxx_werror_flag" ||
39483          test ! -s conftest.err
39484        } && test -s conftest$ac_exeext &&
39485        $as_test_x conftest$ac_exeext; then
39486   eval "$as_ac_var=yes"
39487 else
39488   echo "$as_me: failed program was:" >&5
39489 sed 's/^/| /' conftest.$ac_ext >&5
39490
39491         eval "$as_ac_var=no"
39492 fi
39493
39494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39495       conftest$ac_exeext conftest.$ac_ext
39496 fi
39497 ac_res=`eval echo '${'$as_ac_var'}'`
39498                { echo "$as_me:$LINENO: result: $ac_res" >&5
39499 echo "${ECHO_T}$ac_res" >&6; }
39500 if test `eval echo '${'$as_ac_var'}'` = yes; then
39501   cat >>confdefs.h <<_ACEOF
39502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39503 _ACEOF
39504  cat >>confdefs.h <<\_ACEOF
39505 #define HAVE_GETHOSTBYNAME2 1
39506 _ACEOF
39507
39508 fi
39509 done
39510
39511
39512 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39513 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39514 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39515   echo $ECHO_N "(cached) $ECHO_C" >&6
39516 else
39517
39518        cat >conftest.$ac_ext <<_ACEOF
39519 /* confdefs.h.  */
39520 _ACEOF
39521 cat confdefs.h >>conftest.$ac_ext
39522 cat >>conftest.$ac_ext <<_ACEOF
39523 /* end confdefs.h.  */
39524
39525               #include <sys/socket.h>
39526
39527 int
39528 main ()
39529 {
39530
39531               struct sockaddr s; s.sa_len;
39532
39533   ;
39534   return 0;
39535 }
39536 _ACEOF
39537 rm -f conftest.$ac_objext
39538 if { (ac_try="$ac_compile"
39539 case "(($ac_try" in
39540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39541   *) ac_try_echo=$ac_try;;
39542 esac
39543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39544   (eval "$ac_compile") 2>conftest.er1
39545   ac_status=$?
39546   grep -v '^ *+' conftest.er1 >conftest.err
39547   rm -f conftest.er1
39548   cat conftest.err >&5
39549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39550   (exit $ac_status); } && {
39551          test -z "$ac_cxx_werror_flag" ||
39552          test ! -s conftest.err
39553        } && test -s conftest.$ac_objext; then
39554
39555              ac_cv_struct_sockaddr_sa_len=yes
39556
39557 else
39558   echo "$as_me: failed program was:" >&5
39559 sed 's/^/| /' conftest.$ac_ext >&5
39560
39561         ac_cv_struct_sockaddr_sa_len=no
39562
39563
39564 fi
39565
39566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39567
39568
39569 fi
39570 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39571 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39572
39573 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39574
39575 cat >>confdefs.h <<\_ACEOF
39576 #define HAVE_SA_LEN 1
39577 _ACEOF
39578
39579 fi
39580
39581
39582 for ac_func in strftime
39583 do
39584 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39585 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39586 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39587 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39588   echo $ECHO_N "(cached) $ECHO_C" >&6
39589 else
39590   cat >conftest.$ac_ext <<_ACEOF
39591 /* confdefs.h.  */
39592 _ACEOF
39593 cat confdefs.h >>conftest.$ac_ext
39594 cat >>conftest.$ac_ext <<_ACEOF
39595 /* end confdefs.h.  */
39596 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39597    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39598 #define $ac_func innocuous_$ac_func
39599
39600 /* System header to define __stub macros and hopefully few prototypes,
39601     which can conflict with char $ac_func (); below.
39602     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39603     <limits.h> exists even on freestanding compilers.  */
39604
39605 #ifdef __STDC__
39606 # include <limits.h>
39607 #else
39608 # include <assert.h>
39609 #endif
39610
39611 #undef $ac_func
39612
39613 /* Override any GCC internal prototype to avoid an error.
39614    Use char because int might match the return type of a GCC
39615    builtin and then its argument prototype would still apply.  */
39616 #ifdef __cplusplus
39617 extern "C"
39618 #endif
39619 char $ac_func ();
39620 /* The GNU C library defines this for functions which it implements
39621     to always fail with ENOSYS.  Some functions are actually named
39622     something starting with __ and the normal name is an alias.  */
39623 #if defined __stub_$ac_func || defined __stub___$ac_func
39624 choke me
39625 #endif
39626
39627 int
39628 main ()
39629 {
39630 return $ac_func ();
39631   ;
39632   return 0;
39633 }
39634 _ACEOF
39635 rm -f conftest.$ac_objext conftest$ac_exeext
39636 if { (ac_try="$ac_link"
39637 case "(($ac_try" in
39638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39639   *) ac_try_echo=$ac_try;;
39640 esac
39641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39642   (eval "$ac_link") 2>conftest.er1
39643   ac_status=$?
39644   grep -v '^ *+' conftest.er1 >conftest.err
39645   rm -f conftest.er1
39646   cat conftest.err >&5
39647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39648   (exit $ac_status); } && {
39649          test -z "$ac_cxx_werror_flag" ||
39650          test ! -s conftest.err
39651        } && test -s conftest$ac_exeext &&
39652        $as_test_x conftest$ac_exeext; then
39653   eval "$as_ac_var=yes"
39654 else
39655   echo "$as_me: failed program was:" >&5
39656 sed 's/^/| /' conftest.$ac_ext >&5
39657
39658         eval "$as_ac_var=no"
39659 fi
39660
39661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39662       conftest$ac_exeext conftest.$ac_ext
39663 fi
39664 ac_res=`eval echo '${'$as_ac_var'}'`
39665                { echo "$as_me:$LINENO: result: $ac_res" >&5
39666 echo "${ECHO_T}$ac_res" >&6; }
39667 if test `eval echo '${'$as_ac_var'}'` = yes; then
39668   cat >>confdefs.h <<_ACEOF
39669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39670 _ACEOF
39671
39672 else
39673   # strftime is in -lintl on SCO UNIX.
39674 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39675 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39676 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39677   echo $ECHO_N "(cached) $ECHO_C" >&6
39678 else
39679   ac_check_lib_save_LIBS=$LIBS
39680 LIBS="-lintl  $LIBS"
39681 cat >conftest.$ac_ext <<_ACEOF
39682 /* confdefs.h.  */
39683 _ACEOF
39684 cat confdefs.h >>conftest.$ac_ext
39685 cat >>conftest.$ac_ext <<_ACEOF
39686 /* end confdefs.h.  */
39687
39688 /* Override any GCC internal prototype to avoid an error.
39689    Use char because int might match the return type of a GCC
39690    builtin and then its argument prototype would still apply.  */
39691 #ifdef __cplusplus
39692 extern "C"
39693 #endif
39694 char strftime ();
39695 int
39696 main ()
39697 {
39698 return strftime ();
39699   ;
39700   return 0;
39701 }
39702 _ACEOF
39703 rm -f conftest.$ac_objext conftest$ac_exeext
39704 if { (ac_try="$ac_link"
39705 case "(($ac_try" in
39706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39707   *) ac_try_echo=$ac_try;;
39708 esac
39709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39710   (eval "$ac_link") 2>conftest.er1
39711   ac_status=$?
39712   grep -v '^ *+' conftest.er1 >conftest.err
39713   rm -f conftest.er1
39714   cat conftest.err >&5
39715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39716   (exit $ac_status); } && {
39717          test -z "$ac_cxx_werror_flag" ||
39718          test ! -s conftest.err
39719        } && test -s conftest$ac_exeext &&
39720        $as_test_x conftest$ac_exeext; then
39721   ac_cv_lib_intl_strftime=yes
39722 else
39723   echo "$as_me: failed program was:" >&5
39724 sed 's/^/| /' conftest.$ac_ext >&5
39725
39726         ac_cv_lib_intl_strftime=no
39727 fi
39728
39729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39730       conftest$ac_exeext conftest.$ac_ext
39731 LIBS=$ac_check_lib_save_LIBS
39732 fi
39733 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39734 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39735 if test $ac_cv_lib_intl_strftime = yes; then
39736   cat >>confdefs.h <<\_ACEOF
39737 #define HAVE_STRFTIME 1
39738 _ACEOF
39739
39740 LIBS="-lintl $LIBS"
39741 fi
39742
39743 fi
39744 done
39745
39746
39747 for ac_func in vprintf
39748 do
39749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39753   echo $ECHO_N "(cached) $ECHO_C" >&6
39754 else
39755   cat >conftest.$ac_ext <<_ACEOF
39756 /* confdefs.h.  */
39757 _ACEOF
39758 cat confdefs.h >>conftest.$ac_ext
39759 cat >>conftest.$ac_ext <<_ACEOF
39760 /* end confdefs.h.  */
39761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39762    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39763 #define $ac_func innocuous_$ac_func
39764
39765 /* System header to define __stub macros and hopefully few prototypes,
39766     which can conflict with char $ac_func (); below.
39767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39768     <limits.h> exists even on freestanding compilers.  */
39769
39770 #ifdef __STDC__
39771 # include <limits.h>
39772 #else
39773 # include <assert.h>
39774 #endif
39775
39776 #undef $ac_func
39777
39778 /* Override any GCC internal prototype to avoid an error.
39779    Use char because int might match the return type of a GCC
39780    builtin and then its argument prototype would still apply.  */
39781 #ifdef __cplusplus
39782 extern "C"
39783 #endif
39784 char $ac_func ();
39785 /* The GNU C library defines this for functions which it implements
39786     to always fail with ENOSYS.  Some functions are actually named
39787     something starting with __ and the normal name is an alias.  */
39788 #if defined __stub_$ac_func || defined __stub___$ac_func
39789 choke me
39790 #endif
39791
39792 int
39793 main ()
39794 {
39795 return $ac_func ();
39796   ;
39797   return 0;
39798 }
39799 _ACEOF
39800 rm -f conftest.$ac_objext conftest$ac_exeext
39801 if { (ac_try="$ac_link"
39802 case "(($ac_try" in
39803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39804   *) ac_try_echo=$ac_try;;
39805 esac
39806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39807   (eval "$ac_link") 2>conftest.er1
39808   ac_status=$?
39809   grep -v '^ *+' conftest.er1 >conftest.err
39810   rm -f conftest.er1
39811   cat conftest.err >&5
39812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39813   (exit $ac_status); } && {
39814          test -z "$ac_cxx_werror_flag" ||
39815          test ! -s conftest.err
39816        } && test -s conftest$ac_exeext &&
39817        $as_test_x conftest$ac_exeext; then
39818   eval "$as_ac_var=yes"
39819 else
39820   echo "$as_me: failed program was:" >&5
39821 sed 's/^/| /' conftest.$ac_ext >&5
39822
39823         eval "$as_ac_var=no"
39824 fi
39825
39826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39827       conftest$ac_exeext conftest.$ac_ext
39828 fi
39829 ac_res=`eval echo '${'$as_ac_var'}'`
39830                { echo "$as_me:$LINENO: result: $ac_res" >&5
39831 echo "${ECHO_T}$ac_res" >&6; }
39832 if test `eval echo '${'$as_ac_var'}'` = yes; then
39833   cat >>confdefs.h <<_ACEOF
39834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39835 _ACEOF
39836
39837 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39838 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39839 if test "${ac_cv_func__doprnt+set}" = set; then
39840   echo $ECHO_N "(cached) $ECHO_C" >&6
39841 else
39842   cat >conftest.$ac_ext <<_ACEOF
39843 /* confdefs.h.  */
39844 _ACEOF
39845 cat confdefs.h >>conftest.$ac_ext
39846 cat >>conftest.$ac_ext <<_ACEOF
39847 /* end confdefs.h.  */
39848 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39849    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39850 #define _doprnt innocuous__doprnt
39851
39852 /* System header to define __stub macros and hopefully few prototypes,
39853     which can conflict with char _doprnt (); below.
39854     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39855     <limits.h> exists even on freestanding compilers.  */
39856
39857 #ifdef __STDC__
39858 # include <limits.h>
39859 #else
39860 # include <assert.h>
39861 #endif
39862
39863 #undef _doprnt
39864
39865 /* Override any GCC internal prototype to avoid an error.
39866    Use char because int might match the return type of a GCC
39867    builtin and then its argument prototype would still apply.  */
39868 #ifdef __cplusplus
39869 extern "C"
39870 #endif
39871 char _doprnt ();
39872 /* The GNU C library defines this for functions which it implements
39873     to always fail with ENOSYS.  Some functions are actually named
39874     something starting with __ and the normal name is an alias.  */
39875 #if defined __stub__doprnt || defined __stub____doprnt
39876 choke me
39877 #endif
39878
39879 int
39880 main ()
39881 {
39882 return _doprnt ();
39883   ;
39884   return 0;
39885 }
39886 _ACEOF
39887 rm -f conftest.$ac_objext conftest$ac_exeext
39888 if { (ac_try="$ac_link"
39889 case "(($ac_try" in
39890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39891   *) ac_try_echo=$ac_try;;
39892 esac
39893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39894   (eval "$ac_link") 2>conftest.er1
39895   ac_status=$?
39896   grep -v '^ *+' conftest.er1 >conftest.err
39897   rm -f conftest.er1
39898   cat conftest.err >&5
39899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39900   (exit $ac_status); } && {
39901          test -z "$ac_cxx_werror_flag" ||
39902          test ! -s conftest.err
39903        } && test -s conftest$ac_exeext &&
39904        $as_test_x conftest$ac_exeext; then
39905   ac_cv_func__doprnt=yes
39906 else
39907   echo "$as_me: failed program was:" >&5
39908 sed 's/^/| /' conftest.$ac_ext >&5
39909
39910         ac_cv_func__doprnt=no
39911 fi
39912
39913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39914       conftest$ac_exeext conftest.$ac_ext
39915 fi
39916 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39917 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39918 if test $ac_cv_func__doprnt = yes; then
39919
39920 cat >>confdefs.h <<\_ACEOF
39921 #define HAVE_DOPRNT 1
39922 _ACEOF
39923
39924 fi
39925
39926 fi
39927 done
39928
39929
39930 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39931 # for constant arguments.  Useless!
39932 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39933 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39934 if test "${ac_cv_working_alloca_h+set}" = set; then
39935   echo $ECHO_N "(cached) $ECHO_C" >&6
39936 else
39937   cat >conftest.$ac_ext <<_ACEOF
39938 /* confdefs.h.  */
39939 _ACEOF
39940 cat confdefs.h >>conftest.$ac_ext
39941 cat >>conftest.$ac_ext <<_ACEOF
39942 /* end confdefs.h.  */
39943 #include <alloca.h>
39944 int
39945 main ()
39946 {
39947 char *p = (char *) alloca (2 * sizeof (int));
39948                           if (p) return 0;
39949   ;
39950   return 0;
39951 }
39952 _ACEOF
39953 rm -f conftest.$ac_objext conftest$ac_exeext
39954 if { (ac_try="$ac_link"
39955 case "(($ac_try" in
39956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39957   *) ac_try_echo=$ac_try;;
39958 esac
39959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39960   (eval "$ac_link") 2>conftest.er1
39961   ac_status=$?
39962   grep -v '^ *+' conftest.er1 >conftest.err
39963   rm -f conftest.er1
39964   cat conftest.err >&5
39965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39966   (exit $ac_status); } && {
39967          test -z "$ac_cxx_werror_flag" ||
39968          test ! -s conftest.err
39969        } && test -s conftest$ac_exeext &&
39970        $as_test_x conftest$ac_exeext; then
39971   ac_cv_working_alloca_h=yes
39972 else
39973   echo "$as_me: failed program was:" >&5
39974 sed 's/^/| /' conftest.$ac_ext >&5
39975
39976         ac_cv_working_alloca_h=no
39977 fi
39978
39979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39980       conftest$ac_exeext conftest.$ac_ext
39981 fi
39982 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39983 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39984 if test $ac_cv_working_alloca_h = yes; then
39985
39986 cat >>confdefs.h <<\_ACEOF
39987 #define HAVE_ALLOCA_H 1
39988 _ACEOF
39989
39990 fi
39991
39992 { echo "$as_me:$LINENO: checking for alloca" >&5
39993 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39994 if test "${ac_cv_func_alloca_works+set}" = set; then
39995   echo $ECHO_N "(cached) $ECHO_C" >&6
39996 else
39997   cat >conftest.$ac_ext <<_ACEOF
39998 /* confdefs.h.  */
39999 _ACEOF
40000 cat confdefs.h >>conftest.$ac_ext
40001 cat >>conftest.$ac_ext <<_ACEOF
40002 /* end confdefs.h.  */
40003 #ifdef __GNUC__
40004 # define alloca __builtin_alloca
40005 #else
40006 # ifdef _MSC_VER
40007 #  include <malloc.h>
40008 #  define alloca _alloca
40009 # else
40010 #  ifdef HAVE_ALLOCA_H
40011 #   include <alloca.h>
40012 #  else
40013 #   ifdef _AIX
40014  #pragma alloca
40015 #   else
40016 #    ifndef alloca /* predefined by HP cc +Olibcalls */
40017 char *alloca ();
40018 #    endif
40019 #   endif
40020 #  endif
40021 # endif
40022 #endif
40023
40024 int
40025 main ()
40026 {
40027 char *p = (char *) alloca (1);
40028                                     if (p) return 0;
40029   ;
40030   return 0;
40031 }
40032 _ACEOF
40033 rm -f conftest.$ac_objext conftest$ac_exeext
40034 if { (ac_try="$ac_link"
40035 case "(($ac_try" in
40036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40037   *) ac_try_echo=$ac_try;;
40038 esac
40039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40040   (eval "$ac_link") 2>conftest.er1
40041   ac_status=$?
40042   grep -v '^ *+' conftest.er1 >conftest.err
40043   rm -f conftest.er1
40044   cat conftest.err >&5
40045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40046   (exit $ac_status); } && {
40047          test -z "$ac_cxx_werror_flag" ||
40048          test ! -s conftest.err
40049        } && test -s conftest$ac_exeext &&
40050        $as_test_x conftest$ac_exeext; then
40051   ac_cv_func_alloca_works=yes
40052 else
40053   echo "$as_me: failed program was:" >&5
40054 sed 's/^/| /' conftest.$ac_ext >&5
40055
40056         ac_cv_func_alloca_works=no
40057 fi
40058
40059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40060       conftest$ac_exeext conftest.$ac_ext
40061 fi
40062 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
40063 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
40064
40065 if test $ac_cv_func_alloca_works = yes; then
40066
40067 cat >>confdefs.h <<\_ACEOF
40068 #define HAVE_ALLOCA 1
40069 _ACEOF
40070
40071 else
40072   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
40073 # that cause trouble.  Some versions do not even contain alloca or
40074 # contain a buggy version.  If you still want to use their alloca,
40075 # use ar to extract alloca.o from them instead of compiling alloca.c.
40076
40077 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
40078
40079 cat >>confdefs.h <<\_ACEOF
40080 #define C_ALLOCA 1
40081 _ACEOF
40082
40083
40084 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
40085 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
40086 if test "${ac_cv_os_cray+set}" = set; then
40087   echo $ECHO_N "(cached) $ECHO_C" >&6
40088 else
40089   cat >conftest.$ac_ext <<_ACEOF
40090 /* confdefs.h.  */
40091 _ACEOF
40092 cat confdefs.h >>conftest.$ac_ext
40093 cat >>conftest.$ac_ext <<_ACEOF
40094 /* end confdefs.h.  */
40095 #if defined CRAY && ! defined CRAY2
40096 webecray
40097 #else
40098 wenotbecray
40099 #endif
40100
40101 _ACEOF
40102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40103   $EGREP "webecray" >/dev/null 2>&1; then
40104   ac_cv_os_cray=yes
40105 else
40106   ac_cv_os_cray=no
40107 fi
40108 rm -f conftest*
40109
40110 fi
40111 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
40112 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
40113 if test $ac_cv_os_cray = yes; then
40114   for ac_func in _getb67 GETB67 getb67; do
40115     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40116 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40118 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40119   echo $ECHO_N "(cached) $ECHO_C" >&6
40120 else
40121   cat >conftest.$ac_ext <<_ACEOF
40122 /* confdefs.h.  */
40123 _ACEOF
40124 cat confdefs.h >>conftest.$ac_ext
40125 cat >>conftest.$ac_ext <<_ACEOF
40126 /* end confdefs.h.  */
40127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40128    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40129 #define $ac_func innocuous_$ac_func
40130
40131 /* System header to define __stub macros and hopefully few prototypes,
40132     which can conflict with char $ac_func (); below.
40133     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40134     <limits.h> exists even on freestanding compilers.  */
40135
40136 #ifdef __STDC__
40137 # include <limits.h>
40138 #else
40139 # include <assert.h>
40140 #endif
40141
40142 #undef $ac_func
40143
40144 /* Override any GCC internal prototype to avoid an error.
40145    Use char because int might match the return type of a GCC
40146    builtin and then its argument prototype would still apply.  */
40147 #ifdef __cplusplus
40148 extern "C"
40149 #endif
40150 char $ac_func ();
40151 /* The GNU C library defines this for functions which it implements
40152     to always fail with ENOSYS.  Some functions are actually named
40153     something starting with __ and the normal name is an alias.  */
40154 #if defined __stub_$ac_func || defined __stub___$ac_func
40155 choke me
40156 #endif
40157
40158 int
40159 main ()
40160 {
40161 return $ac_func ();
40162   ;
40163   return 0;
40164 }
40165 _ACEOF
40166 rm -f conftest.$ac_objext conftest$ac_exeext
40167 if { (ac_try="$ac_link"
40168 case "(($ac_try" in
40169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40170   *) ac_try_echo=$ac_try;;
40171 esac
40172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40173   (eval "$ac_link") 2>conftest.er1
40174   ac_status=$?
40175   grep -v '^ *+' conftest.er1 >conftest.err
40176   rm -f conftest.er1
40177   cat conftest.err >&5
40178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40179   (exit $ac_status); } && {
40180          test -z "$ac_cxx_werror_flag" ||
40181          test ! -s conftest.err
40182        } && test -s conftest$ac_exeext &&
40183        $as_test_x conftest$ac_exeext; then
40184   eval "$as_ac_var=yes"
40185 else
40186   echo "$as_me: failed program was:" >&5
40187 sed 's/^/| /' conftest.$ac_ext >&5
40188
40189         eval "$as_ac_var=no"
40190 fi
40191
40192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40193       conftest$ac_exeext conftest.$ac_ext
40194 fi
40195 ac_res=`eval echo '${'$as_ac_var'}'`
40196                { echo "$as_me:$LINENO: result: $ac_res" >&5
40197 echo "${ECHO_T}$ac_res" >&6; }
40198 if test `eval echo '${'$as_ac_var'}'` = yes; then
40199
40200 cat >>confdefs.h <<_ACEOF
40201 #define CRAY_STACKSEG_END $ac_func
40202 _ACEOF
40203
40204     break
40205 fi
40206
40207   done
40208 fi
40209
40210 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
40211 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
40212 if test "${ac_cv_c_stack_direction+set}" = set; then
40213   echo $ECHO_N "(cached) $ECHO_C" >&6
40214 else
40215   if test "$cross_compiling" = yes; then
40216   ac_cv_c_stack_direction=0
40217 else
40218   cat >conftest.$ac_ext <<_ACEOF
40219 /* confdefs.h.  */
40220 _ACEOF
40221 cat confdefs.h >>conftest.$ac_ext
40222 cat >>conftest.$ac_ext <<_ACEOF
40223 /* end confdefs.h.  */
40224 $ac_includes_default
40225 int
40226 find_stack_direction ()
40227 {
40228   static char *addr = 0;
40229   auto char dummy;
40230   if (addr == 0)
40231     {
40232       addr = &dummy;
40233       return find_stack_direction ();
40234     }
40235   else
40236     return (&dummy > addr) ? 1 : -1;
40237 }
40238
40239 int
40240 main ()
40241 {
40242   return find_stack_direction () < 0;
40243 }
40244 _ACEOF
40245 rm -f conftest$ac_exeext
40246 if { (ac_try="$ac_link"
40247 case "(($ac_try" in
40248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40249   *) ac_try_echo=$ac_try;;
40250 esac
40251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40252   (eval "$ac_link") 2>&5
40253   ac_status=$?
40254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40255   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40256   { (case "(($ac_try" in
40257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40258   *) ac_try_echo=$ac_try;;
40259 esac
40260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40261   (eval "$ac_try") 2>&5
40262   ac_status=$?
40263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40264   (exit $ac_status); }; }; then
40265   ac_cv_c_stack_direction=1
40266 else
40267   echo "$as_me: program exited with status $ac_status" >&5
40268 echo "$as_me: failed program was:" >&5
40269 sed 's/^/| /' conftest.$ac_ext >&5
40270
40271 ( exit $ac_status )
40272 ac_cv_c_stack_direction=-1
40273 fi
40274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40275 fi
40276
40277
40278 fi
40279 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40280 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40281
40282 cat >>confdefs.h <<_ACEOF
40283 #define STACK_DIRECTION $ac_cv_c_stack_direction
40284 _ACEOF
40285
40286
40287 fi
40288
40289 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40290 # -lseq on Dynix/PTX, -lgen on Unixware.
40291 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40292 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40293 if test "${ac_cv_search_getmntent+set}" = set; then
40294   echo $ECHO_N "(cached) $ECHO_C" >&6
40295 else
40296   ac_func_search_save_LIBS=$LIBS
40297 cat >conftest.$ac_ext <<_ACEOF
40298 /* confdefs.h.  */
40299 _ACEOF
40300 cat confdefs.h >>conftest.$ac_ext
40301 cat >>conftest.$ac_ext <<_ACEOF
40302 /* end confdefs.h.  */
40303
40304 /* Override any GCC internal prototype to avoid an error.
40305    Use char because int might match the return type of a GCC
40306    builtin and then its argument prototype would still apply.  */
40307 #ifdef __cplusplus
40308 extern "C"
40309 #endif
40310 char getmntent ();
40311 int
40312 main ()
40313 {
40314 return getmntent ();
40315   ;
40316   return 0;
40317 }
40318 _ACEOF
40319 for ac_lib in '' sun seq gen; do
40320   if test -z "$ac_lib"; then
40321     ac_res="none required"
40322   else
40323     ac_res=-l$ac_lib
40324     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
40325   fi
40326   rm -f conftest.$ac_objext conftest$ac_exeext
40327 if { (ac_try="$ac_link"
40328 case "(($ac_try" in
40329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40330   *) ac_try_echo=$ac_try;;
40331 esac
40332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40333   (eval "$ac_link") 2>conftest.er1
40334   ac_status=$?
40335   grep -v '^ *+' conftest.er1 >conftest.err
40336   rm -f conftest.er1
40337   cat conftest.err >&5
40338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40339   (exit $ac_status); } && {
40340          test -z "$ac_cxx_werror_flag" ||
40341          test ! -s conftest.err
40342        } && test -s conftest$ac_exeext &&
40343        $as_test_x conftest$ac_exeext; then
40344   ac_cv_search_getmntent=$ac_res
40345 else
40346   echo "$as_me: failed program was:" >&5
40347 sed 's/^/| /' conftest.$ac_ext >&5
40348
40349
40350 fi
40351
40352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40353       conftest$ac_exeext
40354   if test "${ac_cv_search_getmntent+set}" = set; then
40355   break
40356 fi
40357 done
40358 if test "${ac_cv_search_getmntent+set}" = set; then
40359   :
40360 else
40361   ac_cv_search_getmntent=no
40362 fi
40363 rm conftest.$ac_ext
40364 LIBS=$ac_func_search_save_LIBS
40365 fi
40366 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40367 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40368 ac_res=$ac_cv_search_getmntent
40369 if test "$ac_res" != no; then
40370   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40371   ac_cv_func_getmntent=yes
40372
40373 cat >>confdefs.h <<\_ACEOF
40374 #define HAVE_GETMNTENT 1
40375 _ACEOF
40376
40377 else
40378   ac_cv_func_getmntent=no
40379 fi
40380
40381
40382 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40383 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40384 if test "${ac_cv_func_closedir_void+set}" = set; then
40385   echo $ECHO_N "(cached) $ECHO_C" >&6
40386 else
40387   if test "$cross_compiling" = yes; then
40388   ac_cv_func_closedir_void=yes
40389 else
40390   cat >conftest.$ac_ext <<_ACEOF
40391 /* confdefs.h.  */
40392 _ACEOF
40393 cat confdefs.h >>conftest.$ac_ext
40394 cat >>conftest.$ac_ext <<_ACEOF
40395 /* end confdefs.h.  */
40396 $ac_includes_default
40397 #include <$ac_header_dirent>
40398 #ifndef __cplusplus
40399 int closedir ();
40400 #endif
40401
40402 int
40403 main ()
40404 {
40405 return closedir (opendir (".")) != 0;
40406   ;
40407   return 0;
40408 }
40409 _ACEOF
40410 rm -f conftest$ac_exeext
40411 if { (ac_try="$ac_link"
40412 case "(($ac_try" in
40413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40414   *) ac_try_echo=$ac_try;;
40415 esac
40416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40417   (eval "$ac_link") 2>&5
40418   ac_status=$?
40419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40420   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40421   { (case "(($ac_try" in
40422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40423   *) ac_try_echo=$ac_try;;
40424 esac
40425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40426   (eval "$ac_try") 2>&5
40427   ac_status=$?
40428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40429   (exit $ac_status); }; }; then
40430   ac_cv_func_closedir_void=no
40431 else
40432   echo "$as_me: program exited with status $ac_status" >&5
40433 echo "$as_me: failed program was:" >&5
40434 sed 's/^/| /' conftest.$ac_ext >&5
40435
40436 ( exit $ac_status )
40437 ac_cv_func_closedir_void=yes
40438 fi
40439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40440 fi
40441
40442
40443 fi
40444 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40445 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40446 if test $ac_cv_func_closedir_void = yes; then
40447
40448 cat >>confdefs.h <<\_ACEOF
40449 #define CLOSEDIR_VOID 1
40450 _ACEOF
40451
40452 fi
40453
40454 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40455 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40456 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40457   echo $ECHO_N "(cached) $ECHO_C" >&6
40458 else
40459   if test "$cross_compiling" = yes; then
40460   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40461 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40462    { (exit 1); exit 1; }; }
40463 else
40464   cat >conftest.$ac_ext <<_ACEOF
40465 /* confdefs.h.  */
40466 _ACEOF
40467 cat confdefs.h >>conftest.$ac_ext
40468 cat >>conftest.$ac_ext <<_ACEOF
40469 /* end confdefs.h.  */
40470 $ac_includes_default
40471 int
40472 main ()
40473 {
40474 /* If this system has a BSD-style setpgrp which takes arguments,
40475   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40476   exit successfully. */
40477   return setpgrp (1,1) != -1;
40478   ;
40479   return 0;
40480 }
40481 _ACEOF
40482 rm -f conftest$ac_exeext
40483 if { (ac_try="$ac_link"
40484 case "(($ac_try" in
40485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40486   *) ac_try_echo=$ac_try;;
40487 esac
40488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40489   (eval "$ac_link") 2>&5
40490   ac_status=$?
40491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40492   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40493   { (case "(($ac_try" in
40494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40495   *) ac_try_echo=$ac_try;;
40496 esac
40497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40498   (eval "$ac_try") 2>&5
40499   ac_status=$?
40500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40501   (exit $ac_status); }; }; then
40502   ac_cv_func_setpgrp_void=no
40503 else
40504   echo "$as_me: program exited with status $ac_status" >&5
40505 echo "$as_me: failed program was:" >&5
40506 sed 's/^/| /' conftest.$ac_ext >&5
40507
40508 ( exit $ac_status )
40509 ac_cv_func_setpgrp_void=yes
40510 fi
40511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40512 fi
40513
40514
40515 fi
40516 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40517 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40518 if test $ac_cv_func_setpgrp_void = yes; then
40519
40520 cat >>confdefs.h <<\_ACEOF
40521 #define SETPGRP_VOID 1
40522 _ACEOF
40523
40524 fi
40525             # AC_FUNC_FNMATCH    dnl use local version
40526
40527 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40528 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40529 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40530   echo $ECHO_N "(cached) $ECHO_C" >&6
40531 else
40532   ac_check_lib_save_LIBS=$LIBS
40533 LIBS="-lintl  $LIBS"
40534 cat >conftest.$ac_ext <<_ACEOF
40535 /* confdefs.h.  */
40536 _ACEOF
40537 cat confdefs.h >>conftest.$ac_ext
40538 cat >>conftest.$ac_ext <<_ACEOF
40539 /* end confdefs.h.  */
40540
40541 /* Override any GCC internal prototype to avoid an error.
40542    Use char because int might match the return type of a GCC
40543    builtin and then its argument prototype would still apply.  */
40544 #ifdef __cplusplus
40545 extern "C"
40546 #endif
40547 char gettext ();
40548 int
40549 main ()
40550 {
40551 return gettext ();
40552   ;
40553   return 0;
40554 }
40555 _ACEOF
40556 rm -f conftest.$ac_objext conftest$ac_exeext
40557 if { (ac_try="$ac_link"
40558 case "(($ac_try" in
40559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40560   *) ac_try_echo=$ac_try;;
40561 esac
40562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40563   (eval "$ac_link") 2>conftest.er1
40564   ac_status=$?
40565   grep -v '^ *+' conftest.er1 >conftest.err
40566   rm -f conftest.er1
40567   cat conftest.err >&5
40568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40569   (exit $ac_status); } && {
40570          test -z "$ac_cxx_werror_flag" ||
40571          test ! -s conftest.err
40572        } && test -s conftest$ac_exeext &&
40573        $as_test_x conftest$ac_exeext; then
40574   ac_cv_lib_intl_gettext=yes
40575 else
40576   echo "$as_me: failed program was:" >&5
40577 sed 's/^/| /' conftest.$ac_ext >&5
40578
40579         ac_cv_lib_intl_gettext=no
40580 fi
40581
40582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40583       conftest$ac_exeext conftest.$ac_ext
40584 LIBS=$ac_check_lib_save_LIBS
40585 fi
40586 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40587 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40588 if test $ac_cv_lib_intl_gettext = yes; then
40589   LIBS="$LIBS -lintl"
40590 fi
40591
40592
40593
40594 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40595 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40596 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40597   echo $ECHO_N "(cached) $ECHO_C" >&6
40598 else
40599   ac_check_lib_save_LIBS=$LIBS
40600 LIBS="-lsun  $LIBS"
40601 cat >conftest.$ac_ext <<_ACEOF
40602 /* confdefs.h.  */
40603 _ACEOF
40604 cat confdefs.h >>conftest.$ac_ext
40605 cat >>conftest.$ac_ext <<_ACEOF
40606 /* end confdefs.h.  */
40607
40608 /* Override any GCC internal prototype to avoid an error.
40609    Use char because int might match the return type of a GCC
40610    builtin and then its argument prototype would still apply.  */
40611 #ifdef __cplusplus
40612 extern "C"
40613 #endif
40614 char getpwnam ();
40615 int
40616 main ()
40617 {
40618 return getpwnam ();
40619   ;
40620   return 0;
40621 }
40622 _ACEOF
40623 rm -f conftest.$ac_objext conftest$ac_exeext
40624 if { (ac_try="$ac_link"
40625 case "(($ac_try" in
40626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40627   *) ac_try_echo=$ac_try;;
40628 esac
40629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40630   (eval "$ac_link") 2>conftest.er1
40631   ac_status=$?
40632   grep -v '^ *+' conftest.er1 >conftest.err
40633   rm -f conftest.er1
40634   cat conftest.err >&5
40635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40636   (exit $ac_status); } && {
40637          test -z "$ac_cxx_werror_flag" ||
40638          test ! -s conftest.err
40639        } && test -s conftest$ac_exeext &&
40640        $as_test_x conftest$ac_exeext; then
40641   ac_cv_lib_sun_getpwnam=yes
40642 else
40643   echo "$as_me: failed program was:" >&5
40644 sed 's/^/| /' conftest.$ac_ext >&5
40645
40646         ac_cv_lib_sun_getpwnam=no
40647 fi
40648
40649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40650       conftest$ac_exeext conftest.$ac_ext
40651 LIBS=$ac_check_lib_save_LIBS
40652 fi
40653 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40654 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40655 if test $ac_cv_lib_sun_getpwnam = yes; then
40656   cat >>confdefs.h <<_ACEOF
40657 #define HAVE_LIBSUN 1
40658 _ACEOF
40659
40660   LIBS="-lsun $LIBS"
40661
40662 fi
40663
40664
40665
40666 for ac_header in zlib.h
40667 do
40668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40670   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40673   echo $ECHO_N "(cached) $ECHO_C" >&6
40674 fi
40675 ac_res=`eval echo '${'$as_ac_Header'}'`
40676                { echo "$as_me:$LINENO: result: $ac_res" >&5
40677 echo "${ECHO_T}$ac_res" >&6; }
40678 else
40679   # Is the header compilable?
40680 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40682 cat >conftest.$ac_ext <<_ACEOF
40683 /* confdefs.h.  */
40684 _ACEOF
40685 cat confdefs.h >>conftest.$ac_ext
40686 cat >>conftest.$ac_ext <<_ACEOF
40687 /* end confdefs.h.  */
40688 $ac_includes_default
40689 #include <$ac_header>
40690 _ACEOF
40691 rm -f conftest.$ac_objext
40692 if { (ac_try="$ac_compile"
40693 case "(($ac_try" in
40694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40695   *) ac_try_echo=$ac_try;;
40696 esac
40697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40698   (eval "$ac_compile") 2>conftest.er1
40699   ac_status=$?
40700   grep -v '^ *+' conftest.er1 >conftest.err
40701   rm -f conftest.er1
40702   cat conftest.err >&5
40703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40704   (exit $ac_status); } && {
40705          test -z "$ac_cxx_werror_flag" ||
40706          test ! -s conftest.err
40707        } && test -s conftest.$ac_objext; then
40708   ac_header_compiler=yes
40709 else
40710   echo "$as_me: failed program was:" >&5
40711 sed 's/^/| /' conftest.$ac_ext >&5
40712
40713         ac_header_compiler=no
40714 fi
40715
40716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40718 echo "${ECHO_T}$ac_header_compiler" >&6; }
40719
40720 # Is the header present?
40721 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40723 cat >conftest.$ac_ext <<_ACEOF
40724 /* confdefs.h.  */
40725 _ACEOF
40726 cat confdefs.h >>conftest.$ac_ext
40727 cat >>conftest.$ac_ext <<_ACEOF
40728 /* end confdefs.h.  */
40729 #include <$ac_header>
40730 _ACEOF
40731 if { (ac_try="$ac_cpp conftest.$ac_ext"
40732 case "(($ac_try" in
40733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40734   *) ac_try_echo=$ac_try;;
40735 esac
40736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40737   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40738   ac_status=$?
40739   grep -v '^ *+' conftest.er1 >conftest.err
40740   rm -f conftest.er1
40741   cat conftest.err >&5
40742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40743   (exit $ac_status); } >/dev/null && {
40744          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40745          test ! -s conftest.err
40746        }; then
40747   ac_header_preproc=yes
40748 else
40749   echo "$as_me: failed program was:" >&5
40750 sed 's/^/| /' conftest.$ac_ext >&5
40751
40752   ac_header_preproc=no
40753 fi
40754
40755 rm -f conftest.err conftest.$ac_ext
40756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40757 echo "${ECHO_T}$ac_header_preproc" >&6; }
40758
40759 # So?  What about this header?
40760 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40761   yes:no: )
40762     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40764     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40766     ac_header_preproc=yes
40767     ;;
40768   no:yes:* )
40769     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40771     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40772 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40773     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40775     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40776 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40777     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40779     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40781
40782     ;;
40783 esac
40784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40787   echo $ECHO_N "(cached) $ECHO_C" >&6
40788 else
40789   eval "$as_ac_Header=\$ac_header_preproc"
40790 fi
40791 ac_res=`eval echo '${'$as_ac_Header'}'`
40792                { echo "$as_me:$LINENO: result: $ac_res" >&5
40793 echo "${ECHO_T}$ac_res" >&6; }
40794
40795 fi
40796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40797   cat >>confdefs.h <<_ACEOF
40798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40799 _ACEOF
40800
40801 fi
40802
40803 done
40804
40805 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40806 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40807 if test "${ac_cv_lib_z_deflate+set}" = set; then
40808   echo $ECHO_N "(cached) $ECHO_C" >&6
40809 else
40810   ac_check_lib_save_LIBS=$LIBS
40811 LIBS="-lz  $LIBS"
40812 cat >conftest.$ac_ext <<_ACEOF
40813 /* confdefs.h.  */
40814 _ACEOF
40815 cat confdefs.h >>conftest.$ac_ext
40816 cat >>conftest.$ac_ext <<_ACEOF
40817 /* end confdefs.h.  */
40818
40819 /* Override any GCC internal prototype to avoid an error.
40820    Use char because int might match the return type of a GCC
40821    builtin and then its argument prototype would still apply.  */
40822 #ifdef __cplusplus
40823 extern "C"
40824 #endif
40825 char deflate ();
40826 int
40827 main ()
40828 {
40829 return deflate ();
40830   ;
40831   return 0;
40832 }
40833 _ACEOF
40834 rm -f conftest.$ac_objext conftest$ac_exeext
40835 if { (ac_try="$ac_link"
40836 case "(($ac_try" in
40837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40838   *) ac_try_echo=$ac_try;;
40839 esac
40840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40841   (eval "$ac_link") 2>conftest.er1
40842   ac_status=$?
40843   grep -v '^ *+' conftest.er1 >conftest.err
40844   rm -f conftest.er1
40845   cat conftest.err >&5
40846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40847   (exit $ac_status); } && {
40848          test -z "$ac_cxx_werror_flag" ||
40849          test ! -s conftest.err
40850        } && test -s conftest$ac_exeext &&
40851        $as_test_x conftest$ac_exeext; then
40852   ac_cv_lib_z_deflate=yes
40853 else
40854   echo "$as_me: failed program was:" >&5
40855 sed 's/^/| /' conftest.$ac_ext >&5
40856
40857         ac_cv_lib_z_deflate=no
40858 fi
40859
40860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40861       conftest$ac_exeext conftest.$ac_ext
40862 LIBS=$ac_check_lib_save_LIBS
40863 fi
40864 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40865 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40866 if test $ac_cv_lib_z_deflate = yes; then
40867   FDLIBS="-lz"
40868 fi
40869
40870 have_zlib=no
40871 if test x$FDLIBS = x-lz; then
40872    cat >>confdefs.h <<\_ACEOF
40873 #define HAVE_LIBZ 1
40874 _ACEOF
40875
40876    have_zlib=yes
40877 fi
40878
40879 support_acl=auto
40880 # Check whether --enable-acl was given.
40881 if test "${enable_acl+set}" = set; then
40882   enableval=$enable_acl;
40883        if test x$enableval = xyes; then
40884           support_acl=yes
40885        elif test x$enableval = xno; then
40886           support_acl=no
40887        fi
40888
40889
40890 fi
40891
40892
40893 have_acl=no
40894 have_extended_acl=no
40895 if test x$support_acl = xyes -o x$support_acl = xauto; then
40896    if test "${ac_cv_header_sys_acl_h+set}" = set; then
40897   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40898 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40899 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40900   echo $ECHO_N "(cached) $ECHO_C" >&6
40901 fi
40902 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40903 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40904 else
40905   # Is the header compilable?
40906 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40907 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40908 cat >conftest.$ac_ext <<_ACEOF
40909 /* confdefs.h.  */
40910 _ACEOF
40911 cat confdefs.h >>conftest.$ac_ext
40912 cat >>conftest.$ac_ext <<_ACEOF
40913 /* end confdefs.h.  */
40914 $ac_includes_default
40915 #include <sys/acl.h>
40916 _ACEOF
40917 rm -f conftest.$ac_objext
40918 if { (ac_try="$ac_compile"
40919 case "(($ac_try" in
40920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40921   *) ac_try_echo=$ac_try;;
40922 esac
40923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40924   (eval "$ac_compile") 2>conftest.er1
40925   ac_status=$?
40926   grep -v '^ *+' conftest.er1 >conftest.err
40927   rm -f conftest.er1
40928   cat conftest.err >&5
40929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40930   (exit $ac_status); } && {
40931          test -z "$ac_cxx_werror_flag" ||
40932          test ! -s conftest.err
40933        } && test -s conftest.$ac_objext; then
40934   ac_header_compiler=yes
40935 else
40936   echo "$as_me: failed program was:" >&5
40937 sed 's/^/| /' conftest.$ac_ext >&5
40938
40939         ac_header_compiler=no
40940 fi
40941
40942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40943 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40944 echo "${ECHO_T}$ac_header_compiler" >&6; }
40945
40946 # Is the header present?
40947 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40948 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40949 cat >conftest.$ac_ext <<_ACEOF
40950 /* confdefs.h.  */
40951 _ACEOF
40952 cat confdefs.h >>conftest.$ac_ext
40953 cat >>conftest.$ac_ext <<_ACEOF
40954 /* end confdefs.h.  */
40955 #include <sys/acl.h>
40956 _ACEOF
40957 if { (ac_try="$ac_cpp conftest.$ac_ext"
40958 case "(($ac_try" in
40959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40960   *) ac_try_echo=$ac_try;;
40961 esac
40962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40963   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40964   ac_status=$?
40965   grep -v '^ *+' conftest.er1 >conftest.err
40966   rm -f conftest.er1
40967   cat conftest.err >&5
40968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40969   (exit $ac_status); } >/dev/null && {
40970          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40971          test ! -s conftest.err
40972        }; then
40973   ac_header_preproc=yes
40974 else
40975   echo "$as_me: failed program was:" >&5
40976 sed 's/^/| /' conftest.$ac_ext >&5
40977
40978   ac_header_preproc=no
40979 fi
40980
40981 rm -f conftest.err conftest.$ac_ext
40982 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40983 echo "${ECHO_T}$ac_header_preproc" >&6; }
40984
40985 # So?  What about this header?
40986 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40987   yes:no: )
40988     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40989 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40990     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40991 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40992     ac_header_preproc=yes
40993     ;;
40994   no:yes:* )
40995     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40996 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40997     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
40998 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
40999     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
41000 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
41001     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
41002 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41003     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
41004 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
41005     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
41006 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
41007
41008     ;;
41009 esac
41010 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
41011 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
41012 if test "${ac_cv_header_sys_acl_h+set}" = set; then
41013   echo $ECHO_N "(cached) $ECHO_C" >&6
41014 else
41015   ac_cv_header_sys_acl_h=$ac_header_preproc
41016 fi
41017 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
41018 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
41019
41020 fi
41021 if test $ac_cv_header_sys_acl_h = yes; then
41022
41023 cat >>confdefs.h <<\_ACEOF
41024 #define HAVE_SYS_ACL_H 1
41025 _ACEOF
41026
41027 fi
41028
41029
41030    { echo "$as_me:$LINENO: checking for acl_get_file" >&5
41031 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
41032 if test "${ac_cv_func_acl_get_file+set}" = set; then
41033   echo $ECHO_N "(cached) $ECHO_C" >&6
41034 else
41035   cat >conftest.$ac_ext <<_ACEOF
41036 /* confdefs.h.  */
41037 _ACEOF
41038 cat confdefs.h >>conftest.$ac_ext
41039 cat >>conftest.$ac_ext <<_ACEOF
41040 /* end confdefs.h.  */
41041 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
41042    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41043 #define acl_get_file innocuous_acl_get_file
41044
41045 /* System header to define __stub macros and hopefully few prototypes,
41046     which can conflict with char acl_get_file (); below.
41047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41048     <limits.h> exists even on freestanding compilers.  */
41049
41050 #ifdef __STDC__
41051 # include <limits.h>
41052 #else
41053 # include <assert.h>
41054 #endif
41055
41056 #undef acl_get_file
41057
41058 /* Override any GCC internal prototype to avoid an error.
41059    Use char because int might match the return type of a GCC
41060    builtin and then its argument prototype would still apply.  */
41061 #ifdef __cplusplus
41062 extern "C"
41063 #endif
41064 char acl_get_file ();
41065 /* The GNU C library defines this for functions which it implements
41066     to always fail with ENOSYS.  Some functions are actually named
41067     something starting with __ and the normal name is an alias.  */
41068 #if defined __stub_acl_get_file || defined __stub___acl_get_file
41069 choke me
41070 #endif
41071
41072 int
41073 main ()
41074 {
41075 return acl_get_file ();
41076   ;
41077   return 0;
41078 }
41079 _ACEOF
41080 rm -f conftest.$ac_objext conftest$ac_exeext
41081 if { (ac_try="$ac_link"
41082 case "(($ac_try" in
41083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41084   *) ac_try_echo=$ac_try;;
41085 esac
41086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41087   (eval "$ac_link") 2>conftest.er1
41088   ac_status=$?
41089   grep -v '^ *+' conftest.er1 >conftest.err
41090   rm -f conftest.er1
41091   cat conftest.err >&5
41092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41093   (exit $ac_status); } && {
41094          test -z "$ac_cxx_werror_flag" ||
41095          test ! -s conftest.err
41096        } && test -s conftest$ac_exeext &&
41097        $as_test_x conftest$ac_exeext; then
41098   ac_cv_func_acl_get_file=yes
41099 else
41100   echo "$as_me: failed program was:" >&5
41101 sed 's/^/| /' conftest.$ac_ext >&5
41102
41103         ac_cv_func_acl_get_file=no
41104 fi
41105
41106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41107       conftest$ac_exeext conftest.$ac_ext
41108 fi
41109 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
41110 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
41111 if test $ac_cv_func_acl_get_file = yes; then
41112
41113           have_acl=yes
41114
41115 else
41116
41117           { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
41118 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
41119 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
41120   echo $ECHO_N "(cached) $ECHO_C" >&6
41121 else
41122   ac_check_lib_save_LIBS=$LIBS
41123 LIBS="-lacl  $LIBS"
41124 cat >conftest.$ac_ext <<_ACEOF
41125 /* confdefs.h.  */
41126 _ACEOF
41127 cat confdefs.h >>conftest.$ac_ext
41128 cat >>conftest.$ac_ext <<_ACEOF
41129 /* end confdefs.h.  */
41130
41131 /* Override any GCC internal prototype to avoid an error.
41132    Use char because int might match the return type of a GCC
41133    builtin and then its argument prototype would still apply.  */
41134 #ifdef __cplusplus
41135 extern "C"
41136 #endif
41137 char acl_get_file ();
41138 int
41139 main ()
41140 {
41141 return acl_get_file ();
41142   ;
41143   return 0;
41144 }
41145 _ACEOF
41146 rm -f conftest.$ac_objext conftest$ac_exeext
41147 if { (ac_try="$ac_link"
41148 case "(($ac_try" in
41149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41150   *) ac_try_echo=$ac_try;;
41151 esac
41152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41153   (eval "$ac_link") 2>conftest.er1
41154   ac_status=$?
41155   grep -v '^ *+' conftest.er1 >conftest.err
41156   rm -f conftest.er1
41157   cat conftest.err >&5
41158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41159   (exit $ac_status); } && {
41160          test -z "$ac_cxx_werror_flag" ||
41161          test ! -s conftest.err
41162        } && test -s conftest$ac_exeext &&
41163        $as_test_x conftest$ac_exeext; then
41164   ac_cv_lib_acl_acl_get_file=yes
41165 else
41166   echo "$as_me: failed program was:" >&5
41167 sed 's/^/| /' conftest.$ac_ext >&5
41168
41169         ac_cv_lib_acl_acl_get_file=no
41170 fi
41171
41172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41173       conftest$ac_exeext conftest.$ac_ext
41174 LIBS=$ac_check_lib_save_LIBS
41175 fi
41176 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
41177 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
41178 if test $ac_cv_lib_acl_acl_get_file = yes; then
41179
41180                  have_acl=yes;
41181                  FDLIBS="-lacl $FDLIBS"
41182
41183 else
41184
41185                  { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
41186 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
41187 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
41188   echo $ECHO_N "(cached) $ECHO_C" >&6
41189 else
41190   ac_check_lib_save_LIBS=$LIBS
41191 LIBS="-lpacl  $LIBS"
41192 cat >conftest.$ac_ext <<_ACEOF
41193 /* confdefs.h.  */
41194 _ACEOF
41195 cat confdefs.h >>conftest.$ac_ext
41196 cat >>conftest.$ac_ext <<_ACEOF
41197 /* end confdefs.h.  */
41198
41199 /* Override any GCC internal prototype to avoid an error.
41200    Use char because int might match the return type of a GCC
41201    builtin and then its argument prototype would still apply.  */
41202 #ifdef __cplusplus
41203 extern "C"
41204 #endif
41205 char acl_get_file ();
41206 int
41207 main ()
41208 {
41209 return acl_get_file ();
41210   ;
41211   return 0;
41212 }
41213 _ACEOF
41214 rm -f conftest.$ac_objext conftest$ac_exeext
41215 if { (ac_try="$ac_link"
41216 case "(($ac_try" in
41217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41218   *) ac_try_echo=$ac_try;;
41219 esac
41220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41221   (eval "$ac_link") 2>conftest.er1
41222   ac_status=$?
41223   grep -v '^ *+' conftest.er1 >conftest.err
41224   rm -f conftest.er1
41225   cat conftest.err >&5
41226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41227   (exit $ac_status); } && {
41228          test -z "$ac_cxx_werror_flag" ||
41229          test ! -s conftest.err
41230        } && test -s conftest$ac_exeext &&
41231        $as_test_x conftest$ac_exeext; then
41232   ac_cv_lib_pacl_acl_get_file=yes
41233 else
41234   echo "$as_me: failed program was:" >&5
41235 sed 's/^/| /' conftest.$ac_ext >&5
41236
41237         ac_cv_lib_pacl_acl_get_file=no
41238 fi
41239
41240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41241       conftest$ac_exeext conftest.$ac_ext
41242 LIBS=$ac_check_lib_save_LIBS
41243 fi
41244 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
41245 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
41246 if test $ac_cv_lib_pacl_acl_get_file = yes; then
41247
41248                         have_acl=yes;
41249                         FDLIBS="-lpacl $FDLIBS"
41250
41251 else
41252
41253                         { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
41254 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
41255 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
41256   echo $ECHO_N "(cached) $ECHO_C" >&6
41257 else
41258   ac_check_lib_save_LIBS=$LIBS
41259 LIBS="-lsec  $LIBS"
41260 cat >conftest.$ac_ext <<_ACEOF
41261 /* confdefs.h.  */
41262 _ACEOF
41263 cat confdefs.h >>conftest.$ac_ext
41264 cat >>conftest.$ac_ext <<_ACEOF
41265 /* end confdefs.h.  */
41266
41267 /* Override any GCC internal prototype to avoid an error.
41268    Use char because int might match the return type of a GCC
41269    builtin and then its argument prototype would still apply.  */
41270 #ifdef __cplusplus
41271 extern "C"
41272 #endif
41273 char acltotext ();
41274 int
41275 main ()
41276 {
41277 return acltotext ();
41278   ;
41279   return 0;
41280 }
41281 _ACEOF
41282 rm -f conftest.$ac_objext conftest$ac_exeext
41283 if { (ac_try="$ac_link"
41284 case "(($ac_try" in
41285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41286   *) ac_try_echo=$ac_try;;
41287 esac
41288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41289   (eval "$ac_link") 2>conftest.er1
41290   ac_status=$?
41291   grep -v '^ *+' conftest.er1 >conftest.err
41292   rm -f conftest.er1
41293   cat conftest.err >&5
41294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41295   (exit $ac_status); } && {
41296          test -z "$ac_cxx_werror_flag" ||
41297          test ! -s conftest.err
41298        } && test -s conftest$ac_exeext &&
41299        $as_test_x conftest$ac_exeext; then
41300   ac_cv_lib_sec_acltotext=yes
41301 else
41302   echo "$as_me: failed program was:" >&5
41303 sed 's/^/| /' conftest.$ac_ext >&5
41304
41305         ac_cv_lib_sec_acltotext=no
41306 fi
41307
41308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41309       conftest$ac_exeext conftest.$ac_ext
41310 LIBS=$ac_check_lib_save_LIBS
41311 fi
41312 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41313 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41314 if test $ac_cv_lib_sec_acltotext = yes; then
41315
41316                                have_acl=yes;
41317                                FDLIBS="-lsec $FDLIBS"
41318
41319                                { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41320 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41321 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41322   echo $ECHO_N "(cached) $ECHO_C" >&6
41323 else
41324   ac_check_lib_save_LIBS=$LIBS
41325 LIBS="-lsec  $LIBS"
41326 cat >conftest.$ac_ext <<_ACEOF
41327 /* confdefs.h.  */
41328 _ACEOF
41329 cat confdefs.h >>conftest.$ac_ext
41330 cat >>conftest.$ac_ext <<_ACEOF
41331 /* end confdefs.h.  */
41332
41333 /* Override any GCC internal prototype to avoid an error.
41334    Use char because int might match the return type of a GCC
41335    builtin and then its argument prototype would still apply.  */
41336 #ifdef __cplusplus
41337 extern "C"
41338 #endif
41339 char acl_totext ();
41340 int
41341 main ()
41342 {
41343 return acl_totext ();
41344   ;
41345   return 0;
41346 }
41347 _ACEOF
41348 rm -f conftest.$ac_objext conftest$ac_exeext
41349 if { (ac_try="$ac_link"
41350 case "(($ac_try" in
41351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41352   *) ac_try_echo=$ac_try;;
41353 esac
41354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41355   (eval "$ac_link") 2>conftest.er1
41356   ac_status=$?
41357   grep -v '^ *+' conftest.er1 >conftest.err
41358   rm -f conftest.er1
41359   cat conftest.err >&5
41360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41361   (exit $ac_status); } && {
41362          test -z "$ac_cxx_werror_flag" ||
41363          test ! -s conftest.err
41364        } && test -s conftest$ac_exeext &&
41365        $as_test_x conftest$ac_exeext; then
41366   ac_cv_lib_sec_acl_totext=yes
41367 else
41368   echo "$as_me: failed program was:" >&5
41369 sed 's/^/| /' conftest.$ac_ext >&5
41370
41371         ac_cv_lib_sec_acl_totext=no
41372 fi
41373
41374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41375       conftest$ac_exeext conftest.$ac_ext
41376 LIBS=$ac_check_lib_save_LIBS
41377 fi
41378 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41379 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41380 if test $ac_cv_lib_sec_acl_totext = yes; then
41381
41382                                       have_extended_acl=yes
41383
41384
41385 fi
41386
41387
41388
41389 fi
41390
41391
41392
41393 fi
41394
41395
41396
41397 fi
41398
41399
41400
41401 fi
41402
41403
41404    if test x$support_acl = xyes -a $have_acl != yes; then
41405       { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41406   please either load the acl libraries or rerun configure without --enable-acl" >&5
41407 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41408   please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41409    { (exit 1); exit 1; }; }
41410    else
41411       if test $have_acl = yes; then
41412
41413 cat >>confdefs.h <<\_ACEOF
41414 #define HAVE_ACL 1
41415 _ACEOF
41416
41417       fi
41418
41419       if test $have_extended_acl = yes; then
41420
41421 cat >>confdefs.h <<\_ACEOF
41422 #define HAVE_EXTENDED_ACL 1
41423 _ACEOF
41424
41425       fi
41426    fi
41427 fi
41428
41429 support_xattr=auto
41430 # Check whether --enable-xattr was given.
41431 if test "${enable_xattr+set}" = set; then
41432   enableval=$enable_xattr;
41433        if test x$enableval = xyes; then
41434           support_xattr=yes
41435        elif test x$enableval = xno; then
41436           support_xattr=no
41437        fi
41438
41439
41440 fi
41441
41442
41443 have_xattr=no
41444 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
41445             if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41446   { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41447 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41448 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41449   echo $ECHO_N "(cached) $ECHO_C" >&6
41450 fi
41451 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41452 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41453 else
41454   # Is the header compilable?
41455 { echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
41456 echo $ECHO_N "checking sys/extattr.h usability... $ECHO_C" >&6; }
41457 cat >conftest.$ac_ext <<_ACEOF
41458 /* confdefs.h.  */
41459 _ACEOF
41460 cat confdefs.h >>conftest.$ac_ext
41461 cat >>conftest.$ac_ext <<_ACEOF
41462 /* end confdefs.h.  */
41463 $ac_includes_default
41464 #include <sys/extattr.h>
41465 _ACEOF
41466 rm -f conftest.$ac_objext
41467 if { (ac_try="$ac_compile"
41468 case "(($ac_try" in
41469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41470   *) ac_try_echo=$ac_try;;
41471 esac
41472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41473   (eval "$ac_compile") 2>conftest.er1
41474   ac_status=$?
41475   grep -v '^ *+' conftest.er1 >conftest.err
41476   rm -f conftest.er1
41477   cat conftest.err >&5
41478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41479   (exit $ac_status); } && {
41480          test -z "$ac_cxx_werror_flag" ||
41481          test ! -s conftest.err
41482        } && test -s conftest.$ac_objext; then
41483   ac_header_compiler=yes
41484 else
41485   echo "$as_me: failed program was:" >&5
41486 sed 's/^/| /' conftest.$ac_ext >&5
41487
41488         ac_header_compiler=no
41489 fi
41490
41491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41492 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41493 echo "${ECHO_T}$ac_header_compiler" >&6; }
41494
41495 # Is the header present?
41496 { echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
41497 echo $ECHO_N "checking sys/extattr.h presence... $ECHO_C" >&6; }
41498 cat >conftest.$ac_ext <<_ACEOF
41499 /* confdefs.h.  */
41500 _ACEOF
41501 cat confdefs.h >>conftest.$ac_ext
41502 cat >>conftest.$ac_ext <<_ACEOF
41503 /* end confdefs.h.  */
41504 #include <sys/extattr.h>
41505 _ACEOF
41506 if { (ac_try="$ac_cpp conftest.$ac_ext"
41507 case "(($ac_try" in
41508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41509   *) ac_try_echo=$ac_try;;
41510 esac
41511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41512   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41513   ac_status=$?
41514   grep -v '^ *+' conftest.er1 >conftest.err
41515   rm -f conftest.er1
41516   cat conftest.err >&5
41517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41518   (exit $ac_status); } >/dev/null && {
41519          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
41520          test ! -s conftest.err
41521        }; then
41522   ac_header_preproc=yes
41523 else
41524   echo "$as_me: failed program was:" >&5
41525 sed 's/^/| /' conftest.$ac_ext >&5
41526
41527   ac_header_preproc=no
41528 fi
41529
41530 rm -f conftest.err conftest.$ac_ext
41531 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41532 echo "${ECHO_T}$ac_header_preproc" >&6; }
41533
41534 # So?  What about this header?
41535 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
41536   yes:no: )
41537     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41538 echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41539     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
41540 echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
41541     ac_header_preproc=yes
41542     ;;
41543   no:yes:* )
41544     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
41545 echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
41546     { echo "$as_me:$LINENO: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&5
41547 echo "$as_me: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&2;}
41548     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
41549 echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
41550     { echo "$as_me:$LINENO: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&5
41551 echo "$as_me: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41552     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
41553 echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
41554     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
41555 echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
41556
41557     ;;
41558 esac
41559 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41560 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41561 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41562   echo $ECHO_N "(cached) $ECHO_C" >&6
41563 else
41564   ac_cv_header_sys_extattr_h=$ac_header_preproc
41565 fi
41566 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41567 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41568
41569 fi
41570 if test $ac_cv_header_sys_extattr_h = yes; then
41571
41572 cat >>confdefs.h <<\_ACEOF
41573 #define HAVE_SYS_EXTATTR_H 1
41574 _ACEOF
41575
41576 fi
41577
41578
41579    if test "${ac_cv_header_libutil_h+set}" = set; then
41580   { echo "$as_me:$LINENO: checking for libutil.h" >&5
41581 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41582 if test "${ac_cv_header_libutil_h+set}" = set; then
41583   echo $ECHO_N "(cached) $ECHO_C" >&6
41584 fi
41585 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41586 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41587 else
41588   # Is the header compilable?
41589 { echo "$as_me:$LINENO: checking libutil.h usability" >&5
41590 echo $ECHO_N "checking libutil.h usability... $ECHO_C" >&6; }
41591 cat >conftest.$ac_ext <<_ACEOF
41592 /* confdefs.h.  */
41593 _ACEOF
41594 cat confdefs.h >>conftest.$ac_ext
41595 cat >>conftest.$ac_ext <<_ACEOF
41596 /* end confdefs.h.  */
41597 $ac_includes_default
41598 #include <libutil.h>
41599 _ACEOF
41600 rm -f conftest.$ac_objext
41601 if { (ac_try="$ac_compile"
41602 case "(($ac_try" in
41603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41604   *) ac_try_echo=$ac_try;;
41605 esac
41606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41607   (eval "$ac_compile") 2>conftest.er1
41608   ac_status=$?
41609   grep -v '^ *+' conftest.er1 >conftest.err
41610   rm -f conftest.er1
41611   cat conftest.err >&5
41612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41613   (exit $ac_status); } && {
41614          test -z "$ac_cxx_werror_flag" ||
41615          test ! -s conftest.err
41616        } && test -s conftest.$ac_objext; then
41617   ac_header_compiler=yes
41618 else
41619   echo "$as_me: failed program was:" >&5
41620 sed 's/^/| /' conftest.$ac_ext >&5
41621
41622         ac_header_compiler=no
41623 fi
41624
41625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41626 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41627 echo "${ECHO_T}$ac_header_compiler" >&6; }
41628
41629 # Is the header present?
41630 { echo "$as_me:$LINENO: checking libutil.h presence" >&5
41631 echo $ECHO_N "checking libutil.h presence... $ECHO_C" >&6; }
41632 cat >conftest.$ac_ext <<_ACEOF
41633 /* confdefs.h.  */
41634 _ACEOF
41635 cat confdefs.h >>conftest.$ac_ext
41636 cat >>conftest.$ac_ext <<_ACEOF
41637 /* end confdefs.h.  */
41638 #include <libutil.h>
41639 _ACEOF
41640 if { (ac_try="$ac_cpp conftest.$ac_ext"
41641 case "(($ac_try" in
41642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41643   *) ac_try_echo=$ac_try;;
41644 esac
41645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41646   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41647   ac_status=$?
41648   grep -v '^ *+' conftest.er1 >conftest.err
41649   rm -f conftest.er1
41650   cat conftest.err >&5
41651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41652   (exit $ac_status); } >/dev/null && {
41653          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
41654          test ! -s conftest.err
41655        }; then
41656   ac_header_preproc=yes
41657 else
41658   echo "$as_me: failed program was:" >&5
41659 sed 's/^/| /' conftest.$ac_ext >&5
41660
41661   ac_header_preproc=no
41662 fi
41663
41664 rm -f conftest.err conftest.$ac_ext
41665 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41666 echo "${ECHO_T}$ac_header_preproc" >&6; }
41667
41668 # So?  What about this header?
41669 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
41670   yes:no: )
41671     { echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
41672 echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41673     { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
41674 echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
41675     ac_header_preproc=yes
41676     ;;
41677   no:yes:* )
41678     { echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
41679 echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
41680     { echo "$as_me:$LINENO: WARNING: libutil.h:     check for missing prerequisite headers?" >&5
41681 echo "$as_me: WARNING: libutil.h:     check for missing prerequisite headers?" >&2;}
41682     { echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
41683 echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
41684     { echo "$as_me:$LINENO: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&5
41685 echo "$as_me: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41686     { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
41687 echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
41688     { echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
41689 echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
41690
41691     ;;
41692 esac
41693 { echo "$as_me:$LINENO: checking for libutil.h" >&5
41694 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41695 if test "${ac_cv_header_libutil_h+set}" = set; then
41696   echo $ECHO_N "(cached) $ECHO_C" >&6
41697 else
41698   ac_cv_header_libutil_h=$ac_header_preproc
41699 fi
41700 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41701 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41702
41703 fi
41704 if test $ac_cv_header_libutil_h = yes; then
41705
41706 cat >>confdefs.h <<\_ACEOF
41707 #define HAVE_LIBUTIL_H 1
41708 _ACEOF
41709
41710 fi
41711
41712
41713
41714
41715
41716 for ac_func in extattr_get_link extattr_set_link extattr_list_link
41717 do
41718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41719 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41721 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41722   echo $ECHO_N "(cached) $ECHO_C" >&6
41723 else
41724   cat >conftest.$ac_ext <<_ACEOF
41725 /* confdefs.h.  */
41726 _ACEOF
41727 cat confdefs.h >>conftest.$ac_ext
41728 cat >>conftest.$ac_ext <<_ACEOF
41729 /* end confdefs.h.  */
41730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41731    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41732 #define $ac_func innocuous_$ac_func
41733
41734 /* System header to define __stub macros and hopefully few prototypes,
41735     which can conflict with char $ac_func (); below.
41736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41737     <limits.h> exists even on freestanding compilers.  */
41738
41739 #ifdef __STDC__
41740 # include <limits.h>
41741 #else
41742 # include <assert.h>
41743 #endif
41744
41745 #undef $ac_func
41746
41747 /* Override any GCC internal prototype to avoid an error.
41748    Use char because int might match the return type of a GCC
41749    builtin and then its argument prototype would still apply.  */
41750 #ifdef __cplusplus
41751 extern "C"
41752 #endif
41753 char $ac_func ();
41754 /* The GNU C library defines this for functions which it implements
41755     to always fail with ENOSYS.  Some functions are actually named
41756     something starting with __ and the normal name is an alias.  */
41757 #if defined __stub_$ac_func || defined __stub___$ac_func
41758 choke me
41759 #endif
41760
41761 int
41762 main ()
41763 {
41764 return $ac_func ();
41765   ;
41766   return 0;
41767 }
41768 _ACEOF
41769 rm -f conftest.$ac_objext conftest$ac_exeext
41770 if { (ac_try="$ac_link"
41771 case "(($ac_try" in
41772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41773   *) ac_try_echo=$ac_try;;
41774 esac
41775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41776   (eval "$ac_link") 2>conftest.er1
41777   ac_status=$?
41778   grep -v '^ *+' conftest.er1 >conftest.err
41779   rm -f conftest.er1
41780   cat conftest.err >&5
41781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41782   (exit $ac_status); } && {
41783          test -z "$ac_cxx_werror_flag" ||
41784          test ! -s conftest.err
41785        } && test -s conftest$ac_exeext &&
41786        $as_test_x conftest$ac_exeext; then
41787   eval "$as_ac_var=yes"
41788 else
41789   echo "$as_me: failed program was:" >&5
41790 sed 's/^/| /' conftest.$ac_ext >&5
41791
41792         eval "$as_ac_var=no"
41793 fi
41794
41795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41796       conftest$ac_exeext conftest.$ac_ext
41797 fi
41798 ac_res=`eval echo '${'$as_ac_var'}'`
41799                { echo "$as_me:$LINENO: result: $ac_res" >&5
41800 echo "${ECHO_T}$ac_res" >&6; }
41801 if test `eval echo '${'$as_ac_var'}'` = yes; then
41802   cat >>confdefs.h <<_ACEOF
41803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41804 _ACEOF
41805
41806           have_xattr=yes
41807
41808 cat >>confdefs.h <<\_ACEOF
41809 #define HAVE_EXTATTR_GET_LINK 1
41810 _ACEOF
41811
41812
41813 cat >>confdefs.h <<\_ACEOF
41814 #define HAVE_EXTATTR_SET_LINK 1
41815 _ACEOF
41816
41817
41818 cat >>confdefs.h <<\_ACEOF
41819 #define HAVE_EXTATTR_LIST_LINK 1
41820 _ACEOF
41821
41822
41823
41824 fi
41825 done
41826
41827
41828    if test $have_xattr = no; then
41829
41830
41831
41832 for ac_func in extattr_get_file extattr_set_file extattr_list_file
41833 do
41834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41835 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41837 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41838   echo $ECHO_N "(cached) $ECHO_C" >&6
41839 else
41840   cat >conftest.$ac_ext <<_ACEOF
41841 /* confdefs.h.  */
41842 _ACEOF
41843 cat confdefs.h >>conftest.$ac_ext
41844 cat >>conftest.$ac_ext <<_ACEOF
41845 /* end confdefs.h.  */
41846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41847    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41848 #define $ac_func innocuous_$ac_func
41849
41850 /* System header to define __stub macros and hopefully few prototypes,
41851     which can conflict with char $ac_func (); below.
41852     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41853     <limits.h> exists even on freestanding compilers.  */
41854
41855 #ifdef __STDC__
41856 # include <limits.h>
41857 #else
41858 # include <assert.h>
41859 #endif
41860
41861 #undef $ac_func
41862
41863 /* Override any GCC internal prototype to avoid an error.
41864    Use char because int might match the return type of a GCC
41865    builtin and then its argument prototype would still apply.  */
41866 #ifdef __cplusplus
41867 extern "C"
41868 #endif
41869 char $ac_func ();
41870 /* The GNU C library defines this for functions which it implements
41871     to always fail with ENOSYS.  Some functions are actually named
41872     something starting with __ and the normal name is an alias.  */
41873 #if defined __stub_$ac_func || defined __stub___$ac_func
41874 choke me
41875 #endif
41876
41877 int
41878 main ()
41879 {
41880 return $ac_func ();
41881   ;
41882   return 0;
41883 }
41884 _ACEOF
41885 rm -f conftest.$ac_objext conftest$ac_exeext
41886 if { (ac_try="$ac_link"
41887 case "(($ac_try" in
41888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41889   *) ac_try_echo=$ac_try;;
41890 esac
41891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41892   (eval "$ac_link") 2>conftest.er1
41893   ac_status=$?
41894   grep -v '^ *+' conftest.er1 >conftest.err
41895   rm -f conftest.er1
41896   cat conftest.err >&5
41897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41898   (exit $ac_status); } && {
41899          test -z "$ac_cxx_werror_flag" ||
41900          test ! -s conftest.err
41901        } && test -s conftest$ac_exeext &&
41902        $as_test_x conftest$ac_exeext; then
41903   eval "$as_ac_var=yes"
41904 else
41905   echo "$as_me: failed program was:" >&5
41906 sed 's/^/| /' conftest.$ac_ext >&5
41907
41908         eval "$as_ac_var=no"
41909 fi
41910
41911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41912       conftest$ac_exeext conftest.$ac_ext
41913 fi
41914 ac_res=`eval echo '${'$as_ac_var'}'`
41915                { echo "$as_me:$LINENO: result: $ac_res" >&5
41916 echo "${ECHO_T}$ac_res" >&6; }
41917 if test `eval echo '${'$as_ac_var'}'` = yes; then
41918   cat >>confdefs.h <<_ACEOF
41919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41920 _ACEOF
41921
41922              have_xattr=yes
41923
41924 cat >>confdefs.h <<\_ACEOF
41925 #define HAVE_EXTATTR_GET_FILE 1
41926 _ACEOF
41927
41928
41929 cat >>confdefs.h <<\_ACEOF
41930 #define HAVE_EXTATTR_SET_FILE 1
41931 _ACEOF
41932
41933
41934 cat >>confdefs.h <<\_ACEOF
41935 #define HAVE_EXTATTR_LIST_FILE 1
41936 _ACEOF
41937
41938
41939
41940 fi
41941 done
41942
41943    fi
41944
41945    if test $have_xattr = yes; then
41946       have_extattr_string_in_libc=no
41947
41948
41949 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
41950 do
41951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41955   echo $ECHO_N "(cached) $ECHO_C" >&6
41956 else
41957   cat >conftest.$ac_ext <<_ACEOF
41958 /* confdefs.h.  */
41959 _ACEOF
41960 cat confdefs.h >>conftest.$ac_ext
41961 cat >>conftest.$ac_ext <<_ACEOF
41962 /* end confdefs.h.  */
41963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41965 #define $ac_func innocuous_$ac_func
41966
41967 /* System header to define __stub macros and hopefully few prototypes,
41968     which can conflict with char $ac_func (); below.
41969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41970     <limits.h> exists even on freestanding compilers.  */
41971
41972 #ifdef __STDC__
41973 # include <limits.h>
41974 #else
41975 # include <assert.h>
41976 #endif
41977
41978 #undef $ac_func
41979
41980 /* Override any GCC internal prototype to avoid an error.
41981    Use char because int might match the return type of a GCC
41982    builtin and then its argument prototype would still apply.  */
41983 #ifdef __cplusplus
41984 extern "C"
41985 #endif
41986 char $ac_func ();
41987 /* The GNU C library defines this for functions which it implements
41988     to always fail with ENOSYS.  Some functions are actually named
41989     something starting with __ and the normal name is an alias.  */
41990 #if defined __stub_$ac_func || defined __stub___$ac_func
41991 choke me
41992 #endif
41993
41994 int
41995 main ()
41996 {
41997 return $ac_func ();
41998   ;
41999   return 0;
42000 }
42001 _ACEOF
42002 rm -f conftest.$ac_objext conftest$ac_exeext
42003 if { (ac_try="$ac_link"
42004 case "(($ac_try" in
42005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42006   *) ac_try_echo=$ac_try;;
42007 esac
42008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42009   (eval "$ac_link") 2>conftest.er1
42010   ac_status=$?
42011   grep -v '^ *+' conftest.er1 >conftest.err
42012   rm -f conftest.er1
42013   cat conftest.err >&5
42014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42015   (exit $ac_status); } && {
42016          test -z "$ac_cxx_werror_flag" ||
42017          test ! -s conftest.err
42018        } && test -s conftest$ac_exeext &&
42019        $as_test_x conftest$ac_exeext; then
42020   eval "$as_ac_var=yes"
42021 else
42022   echo "$as_me: failed program was:" >&5
42023 sed 's/^/| /' conftest.$ac_ext >&5
42024
42025         eval "$as_ac_var=no"
42026 fi
42027
42028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42029       conftest$ac_exeext conftest.$ac_ext
42030 fi
42031 ac_res=`eval echo '${'$as_ac_var'}'`
42032                { echo "$as_me:$LINENO: result: $ac_res" >&5
42033 echo "${ECHO_T}$ac_res" >&6; }
42034 if test `eval echo '${'$as_ac_var'}'` = yes; then
42035   cat >>confdefs.h <<_ACEOF
42036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42037 _ACEOF
42038
42039              have_extattr_string_in_libc=yes
42040
42041 cat >>confdefs.h <<\_ACEOF
42042 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42043 _ACEOF
42044
42045
42046 cat >>confdefs.h <<\_ACEOF
42047 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42048 _ACEOF
42049
42050
42051
42052 fi
42053 done
42054
42055
42056                         if test $have_extattr_string_in_libc = no; then
42057          { echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
42058 echo $ECHO_N "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... $ECHO_C" >&6; }
42059 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
42060   echo $ECHO_N "(cached) $ECHO_C" >&6
42061 else
42062   ac_check_lib_save_LIBS=$LIBS
42063 LIBS="-lutil  $LIBS"
42064 cat >conftest.$ac_ext <<_ACEOF
42065 /* confdefs.h.  */
42066 _ACEOF
42067 cat confdefs.h >>conftest.$ac_ext
42068 cat >>conftest.$ac_ext <<_ACEOF
42069 /* end confdefs.h.  */
42070
42071 /* Override any GCC internal prototype to avoid an error.
42072    Use char because int might match the return type of a GCC
42073    builtin and then its argument prototype would still apply.  */
42074 #ifdef __cplusplus
42075 extern "C"
42076 #endif
42077 char extattr_namespace_to_string extattr_string_to_namespace ();
42078 int
42079 main ()
42080 {
42081 return extattr_namespace_to_string extattr_string_to_namespace ();
42082   ;
42083   return 0;
42084 }
42085 _ACEOF
42086 rm -f conftest.$ac_objext conftest$ac_exeext
42087 if { (ac_try="$ac_link"
42088 case "(($ac_try" in
42089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42090   *) ac_try_echo=$ac_try;;
42091 esac
42092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42093   (eval "$ac_link") 2>conftest.er1
42094   ac_status=$?
42095   grep -v '^ *+' conftest.er1 >conftest.err
42096   rm -f conftest.er1
42097   cat conftest.err >&5
42098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42099   (exit $ac_status); } && {
42100          test -z "$ac_cxx_werror_flag" ||
42101          test ! -s conftest.err
42102        } && test -s conftest$ac_exeext &&
42103        $as_test_x conftest$ac_exeext; then
42104   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
42105 else
42106   echo "$as_me: failed program was:" >&5
42107 sed 's/^/| /' conftest.$ac_ext >&5
42108
42109         ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
42110 fi
42111
42112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42113       conftest$ac_exeext conftest.$ac_ext
42114 LIBS=$ac_check_lib_save_LIBS
42115 fi
42116 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
42117 echo "${ECHO_T}$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
42118 if test $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace = yes; then
42119
42120
42121 cat >>confdefs.h <<\_ACEOF
42122 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42123 _ACEOF
42124
42125
42126 cat >>confdefs.h <<\_ACEOF
42127 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42128 _ACEOF
42129
42130                 FDLIBS="-lutil $FDLIBS"
42131
42132
42133 fi
42134
42135       fi
42136    fi
42137
42138             if test $have_xattr = no; then
42139       if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42140   { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42141 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42142 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42143   echo $ECHO_N "(cached) $ECHO_C" >&6
42144 fi
42145 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42146 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42147 else
42148   # Is the header compilable?
42149 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
42150 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
42151 cat >conftest.$ac_ext <<_ACEOF
42152 /* confdefs.h.  */
42153 _ACEOF
42154 cat confdefs.h >>conftest.$ac_ext
42155 cat >>conftest.$ac_ext <<_ACEOF
42156 /* end confdefs.h.  */
42157 $ac_includes_default
42158 #include <sys/xattr.h>
42159 _ACEOF
42160 rm -f conftest.$ac_objext
42161 if { (ac_try="$ac_compile"
42162 case "(($ac_try" in
42163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42164   *) ac_try_echo=$ac_try;;
42165 esac
42166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42167   (eval "$ac_compile") 2>conftest.er1
42168   ac_status=$?
42169   grep -v '^ *+' conftest.er1 >conftest.err
42170   rm -f conftest.er1
42171   cat conftest.err >&5
42172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42173   (exit $ac_status); } && {
42174          test -z "$ac_cxx_werror_flag" ||
42175          test ! -s conftest.err
42176        } && test -s conftest.$ac_objext; then
42177   ac_header_compiler=yes
42178 else
42179   echo "$as_me: failed program was:" >&5
42180 sed 's/^/| /' conftest.$ac_ext >&5
42181
42182         ac_header_compiler=no
42183 fi
42184
42185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42186 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42187 echo "${ECHO_T}$ac_header_compiler" >&6; }
42188
42189 # Is the header present?
42190 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
42191 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
42192 cat >conftest.$ac_ext <<_ACEOF
42193 /* confdefs.h.  */
42194 _ACEOF
42195 cat confdefs.h >>conftest.$ac_ext
42196 cat >>conftest.$ac_ext <<_ACEOF
42197 /* end confdefs.h.  */
42198 #include <sys/xattr.h>
42199 _ACEOF
42200 if { (ac_try="$ac_cpp conftest.$ac_ext"
42201 case "(($ac_try" in
42202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42203   *) ac_try_echo=$ac_try;;
42204 esac
42205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42206   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42207   ac_status=$?
42208   grep -v '^ *+' conftest.er1 >conftest.err
42209   rm -f conftest.er1
42210   cat conftest.err >&5
42211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42212   (exit $ac_status); } >/dev/null && {
42213          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
42214          test ! -s conftest.err
42215        }; then
42216   ac_header_preproc=yes
42217 else
42218   echo "$as_me: failed program was:" >&5
42219 sed 's/^/| /' conftest.$ac_ext >&5
42220
42221   ac_header_preproc=no
42222 fi
42223
42224 rm -f conftest.err conftest.$ac_ext
42225 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42226 echo "${ECHO_T}$ac_header_preproc" >&6; }
42227
42228 # So?  What about this header?
42229 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
42230   yes:no: )
42231     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42232 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42233     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
42234 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
42235     ac_header_preproc=yes
42236     ;;
42237   no:yes:* )
42238     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
42239 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
42240     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&5
42241 echo "$as_me: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&2;}
42242     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
42243 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
42244     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&5
42245 echo "$as_me: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42246     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
42247 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
42248     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
42249 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
42250
42251     ;;
42252 esac
42253 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42254 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42255 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42256   echo $ECHO_N "(cached) $ECHO_C" >&6
42257 else
42258   ac_cv_header_sys_xattr_h=$ac_header_preproc
42259 fi
42260 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42261 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42262
42263 fi
42264 if test $ac_cv_header_sys_xattr_h = yes; then
42265
42266 cat >>confdefs.h <<\_ACEOF
42267 #define HAVE_SYS_XATTR_H 1
42268 _ACEOF
42269
42270 fi
42271
42272
42273
42274
42275
42276 for ac_func in llistxattr lgetxattr lsetxattr
42277 do
42278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42279 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42281 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42282   echo $ECHO_N "(cached) $ECHO_C" >&6
42283 else
42284   cat >conftest.$ac_ext <<_ACEOF
42285 /* confdefs.h.  */
42286 _ACEOF
42287 cat confdefs.h >>conftest.$ac_ext
42288 cat >>conftest.$ac_ext <<_ACEOF
42289 /* end confdefs.h.  */
42290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42291    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42292 #define $ac_func innocuous_$ac_func
42293
42294 /* System header to define __stub macros and hopefully few prototypes,
42295     which can conflict with char $ac_func (); below.
42296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42297     <limits.h> exists even on freestanding compilers.  */
42298
42299 #ifdef __STDC__
42300 # include <limits.h>
42301 #else
42302 # include <assert.h>
42303 #endif
42304
42305 #undef $ac_func
42306
42307 /* Override any GCC internal prototype to avoid an error.
42308    Use char because int might match the return type of a GCC
42309    builtin and then its argument prototype would still apply.  */
42310 #ifdef __cplusplus
42311 extern "C"
42312 #endif
42313 char $ac_func ();
42314 /* The GNU C library defines this for functions which it implements
42315     to always fail with ENOSYS.  Some functions are actually named
42316     something starting with __ and the normal name is an alias.  */
42317 #if defined __stub_$ac_func || defined __stub___$ac_func
42318 choke me
42319 #endif
42320
42321 int
42322 main ()
42323 {
42324 return $ac_func ();
42325   ;
42326   return 0;
42327 }
42328 _ACEOF
42329 rm -f conftest.$ac_objext conftest$ac_exeext
42330 if { (ac_try="$ac_link"
42331 case "(($ac_try" in
42332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42333   *) ac_try_echo=$ac_try;;
42334 esac
42335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42336   (eval "$ac_link") 2>conftest.er1
42337   ac_status=$?
42338   grep -v '^ *+' conftest.er1 >conftest.err
42339   rm -f conftest.er1
42340   cat conftest.err >&5
42341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42342   (exit $ac_status); } && {
42343          test -z "$ac_cxx_werror_flag" ||
42344          test ! -s conftest.err
42345        } && test -s conftest$ac_exeext &&
42346        $as_test_x conftest$ac_exeext; then
42347   eval "$as_ac_var=yes"
42348 else
42349   echo "$as_me: failed program was:" >&5
42350 sed 's/^/| /' conftest.$ac_ext >&5
42351
42352         eval "$as_ac_var=no"
42353 fi
42354
42355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42356       conftest$ac_exeext conftest.$ac_ext
42357 fi
42358 ac_res=`eval echo '${'$as_ac_var'}'`
42359                { echo "$as_me:$LINENO: result: $ac_res" >&5
42360 echo "${ECHO_T}$ac_res" >&6; }
42361 if test `eval echo '${'$as_ac_var'}'` = yes; then
42362   cat >>confdefs.h <<_ACEOF
42363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42364 _ACEOF
42365
42366              have_xattr=yes
42367
42368 cat >>confdefs.h <<\_ACEOF
42369 #define HAVE_LLISTXATTR 1
42370 _ACEOF
42371
42372
42373 cat >>confdefs.h <<\_ACEOF
42374 #define HAVE_LGETXATTR 1
42375 _ACEOF
42376
42377
42378 cat >>confdefs.h <<\_ACEOF
42379 #define HAVE_LSETXATTR 1
42380 _ACEOF
42381
42382
42383
42384 fi
42385 done
42386
42387
42388       if test $have_xattr = no; then
42389
42390
42391
42392 for ac_func in listxattr getxattr setxattr
42393 do
42394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42395 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42397 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42398   echo $ECHO_N "(cached) $ECHO_C" >&6
42399 else
42400   cat >conftest.$ac_ext <<_ACEOF
42401 /* confdefs.h.  */
42402 _ACEOF
42403 cat confdefs.h >>conftest.$ac_ext
42404 cat >>conftest.$ac_ext <<_ACEOF
42405 /* end confdefs.h.  */
42406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42407    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42408 #define $ac_func innocuous_$ac_func
42409
42410 /* System header to define __stub macros and hopefully few prototypes,
42411     which can conflict with char $ac_func (); below.
42412     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42413     <limits.h> exists even on freestanding compilers.  */
42414
42415 #ifdef __STDC__
42416 # include <limits.h>
42417 #else
42418 # include <assert.h>
42419 #endif
42420
42421 #undef $ac_func
42422
42423 /* Override any GCC internal prototype to avoid an error.
42424    Use char because int might match the return type of a GCC
42425    builtin and then its argument prototype would still apply.  */
42426 #ifdef __cplusplus
42427 extern "C"
42428 #endif
42429 char $ac_func ();
42430 /* The GNU C library defines this for functions which it implements
42431     to always fail with ENOSYS.  Some functions are actually named
42432     something starting with __ and the normal name is an alias.  */
42433 #if defined __stub_$ac_func || defined __stub___$ac_func
42434 choke me
42435 #endif
42436
42437 int
42438 main ()
42439 {
42440 return $ac_func ();
42441   ;
42442   return 0;
42443 }
42444 _ACEOF
42445 rm -f conftest.$ac_objext conftest$ac_exeext
42446 if { (ac_try="$ac_link"
42447 case "(($ac_try" in
42448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42449   *) ac_try_echo=$ac_try;;
42450 esac
42451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42452   (eval "$ac_link") 2>conftest.er1
42453   ac_status=$?
42454   grep -v '^ *+' conftest.er1 >conftest.err
42455   rm -f conftest.er1
42456   cat conftest.err >&5
42457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42458   (exit $ac_status); } && {
42459          test -z "$ac_cxx_werror_flag" ||
42460          test ! -s conftest.err
42461        } && test -s conftest$ac_exeext &&
42462        $as_test_x conftest$ac_exeext; then
42463   eval "$as_ac_var=yes"
42464 else
42465   echo "$as_me: failed program was:" >&5
42466 sed 's/^/| /' conftest.$ac_ext >&5
42467
42468         eval "$as_ac_var=no"
42469 fi
42470
42471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42472       conftest$ac_exeext conftest.$ac_ext
42473 fi
42474 ac_res=`eval echo '${'$as_ac_var'}'`
42475                { echo "$as_me:$LINENO: result: $ac_res" >&5
42476 echo "${ECHO_T}$ac_res" >&6; }
42477 if test `eval echo '${'$as_ac_var'}'` = yes; then
42478   cat >>confdefs.h <<_ACEOF
42479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42480 _ACEOF
42481
42482                 have_xattr=yes
42483
42484 cat >>confdefs.h <<\_ACEOF
42485 #define HAVE_LISTXATTR 1
42486 _ACEOF
42487
42488
42489 cat >>confdefs.h <<\_ACEOF
42490 #define HAVE_GETXATTR 1
42491 _ACEOF
42492
42493
42494 cat >>confdefs.h <<\_ACEOF
42495 #define HAVE_SETXATTR 1
42496 _ACEOF
42497
42498
42499
42500 fi
42501 done
42502
42503       fi
42504    fi
42505
42506             if test $have_xattr = no; then
42507       if test "${ac_cv_header_sys_attr_h+set}" = set; then
42508   { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42509 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42510 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42511   echo $ECHO_N "(cached) $ECHO_C" >&6
42512 fi
42513 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42514 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42515 else
42516   # Is the header compilable?
42517 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
42518 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
42519 cat >conftest.$ac_ext <<_ACEOF
42520 /* confdefs.h.  */
42521 _ACEOF
42522 cat confdefs.h >>conftest.$ac_ext
42523 cat >>conftest.$ac_ext <<_ACEOF
42524 /* end confdefs.h.  */
42525 $ac_includes_default
42526 #include <sys/attr.h>
42527 _ACEOF
42528 rm -f conftest.$ac_objext
42529 if { (ac_try="$ac_compile"
42530 case "(($ac_try" in
42531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42532   *) ac_try_echo=$ac_try;;
42533 esac
42534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42535   (eval "$ac_compile") 2>conftest.er1
42536   ac_status=$?
42537   grep -v '^ *+' conftest.er1 >conftest.err
42538   rm -f conftest.er1
42539   cat conftest.err >&5
42540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42541   (exit $ac_status); } && {
42542          test -z "$ac_cxx_werror_flag" ||
42543          test ! -s conftest.err
42544        } && test -s conftest.$ac_objext; then
42545   ac_header_compiler=yes
42546 else
42547   echo "$as_me: failed program was:" >&5
42548 sed 's/^/| /' conftest.$ac_ext >&5
42549
42550         ac_header_compiler=no
42551 fi
42552
42553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42554 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42555 echo "${ECHO_T}$ac_header_compiler" >&6; }
42556
42557 # Is the header present?
42558 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
42559 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
42560 cat >conftest.$ac_ext <<_ACEOF
42561 /* confdefs.h.  */
42562 _ACEOF
42563 cat confdefs.h >>conftest.$ac_ext
42564 cat >>conftest.$ac_ext <<_ACEOF
42565 /* end confdefs.h.  */
42566 #include <sys/attr.h>
42567 _ACEOF
42568 if { (ac_try="$ac_cpp conftest.$ac_ext"
42569 case "(($ac_try" in
42570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42571   *) ac_try_echo=$ac_try;;
42572 esac
42573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42574   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42575   ac_status=$?
42576   grep -v '^ *+' conftest.er1 >conftest.err
42577   rm -f conftest.er1
42578   cat conftest.err >&5
42579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42580   (exit $ac_status); } >/dev/null && {
42581          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
42582          test ! -s conftest.err
42583        }; then
42584   ac_header_preproc=yes
42585 else
42586   echo "$as_me: failed program was:" >&5
42587 sed 's/^/| /' conftest.$ac_ext >&5
42588
42589   ac_header_preproc=no
42590 fi
42591
42592 rm -f conftest.err conftest.$ac_ext
42593 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42594 echo "${ECHO_T}$ac_header_preproc" >&6; }
42595
42596 # So?  What about this header?
42597 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
42598   yes:no: )
42599     { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42600 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42601     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
42602 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
42603     ac_header_preproc=yes
42604     ;;
42605   no:yes:* )
42606     { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
42607 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
42608     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&5
42609 echo "$as_me: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&2;}
42610     { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
42611 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
42612     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&5
42613 echo "$as_me: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42614     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
42615 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
42616     { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
42617 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
42618
42619     ;;
42620 esac
42621 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42622 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42623 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42624   echo $ECHO_N "(cached) $ECHO_C" >&6
42625 else
42626   ac_cv_header_sys_attr_h=$ac_header_preproc
42627 fi
42628 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42629 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42630
42631 fi
42632 if test $ac_cv_header_sys_attr_h = yes; then
42633
42634 cat >>confdefs.h <<\_ACEOF
42635 #define HAVE_SYS_ATTR_H 1
42636 _ACEOF
42637
42638 fi
42639
42640
42641       if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42642   { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42643 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42644 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42645   echo $ECHO_N "(cached) $ECHO_C" >&6
42646 fi
42647 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42648 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42649 else
42650   # Is the header compilable?
42651 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
42652 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
42653 cat >conftest.$ac_ext <<_ACEOF
42654 /* confdefs.h.  */
42655 _ACEOF
42656 cat confdefs.h >>conftest.$ac_ext
42657 cat >>conftest.$ac_ext <<_ACEOF
42658 /* end confdefs.h.  */
42659 $ac_includes_default
42660 #include <sys/nvpair.h>
42661 _ACEOF
42662 rm -f conftest.$ac_objext
42663 if { (ac_try="$ac_compile"
42664 case "(($ac_try" in
42665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42666   *) ac_try_echo=$ac_try;;
42667 esac
42668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42669   (eval "$ac_compile") 2>conftest.er1
42670   ac_status=$?
42671   grep -v '^ *+' conftest.er1 >conftest.err
42672   rm -f conftest.er1
42673   cat conftest.err >&5
42674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42675   (exit $ac_status); } && {
42676          test -z "$ac_cxx_werror_flag" ||
42677          test ! -s conftest.err
42678        } && test -s conftest.$ac_objext; then
42679   ac_header_compiler=yes
42680 else
42681   echo "$as_me: failed program was:" >&5
42682 sed 's/^/| /' conftest.$ac_ext >&5
42683
42684         ac_header_compiler=no
42685 fi
42686
42687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42689 echo "${ECHO_T}$ac_header_compiler" >&6; }
42690
42691 # Is the header present?
42692 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
42693 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
42694 cat >conftest.$ac_ext <<_ACEOF
42695 /* confdefs.h.  */
42696 _ACEOF
42697 cat confdefs.h >>conftest.$ac_ext
42698 cat >>conftest.$ac_ext <<_ACEOF
42699 /* end confdefs.h.  */
42700 #include <sys/nvpair.h>
42701 _ACEOF
42702 if { (ac_try="$ac_cpp conftest.$ac_ext"
42703 case "(($ac_try" in
42704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42705   *) ac_try_echo=$ac_try;;
42706 esac
42707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42708   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42709   ac_status=$?
42710   grep -v '^ *+' conftest.er1 >conftest.err
42711   rm -f conftest.er1
42712   cat conftest.err >&5
42713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42714   (exit $ac_status); } >/dev/null && {
42715          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
42716          test ! -s conftest.err
42717        }; then
42718   ac_header_preproc=yes
42719 else
42720   echo "$as_me: failed program was:" >&5
42721 sed 's/^/| /' conftest.$ac_ext >&5
42722
42723   ac_header_preproc=no
42724 fi
42725
42726 rm -f conftest.err conftest.$ac_ext
42727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42728 echo "${ECHO_T}$ac_header_preproc" >&6; }
42729
42730 # So?  What about this header?
42731 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
42732   yes:no: )
42733     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
42734 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42735     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
42736 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
42737     ac_header_preproc=yes
42738     ;;
42739   no:yes:* )
42740     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
42741 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
42742     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&5
42743 echo "$as_me: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&2;}
42744     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
42745 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
42746     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&5
42747 echo "$as_me: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42748     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
42749 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
42750     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
42751 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
42752
42753     ;;
42754 esac
42755 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42756 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42757 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42758   echo $ECHO_N "(cached) $ECHO_C" >&6
42759 else
42760   ac_cv_header_sys_nvpair_h=$ac_header_preproc
42761 fi
42762 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42763 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42764
42765 fi
42766 if test $ac_cv_header_sys_nvpair_h = yes; then
42767
42768 cat >>confdefs.h <<\_ACEOF
42769 #define HAVE_SYS_NVPAIR_H 1
42770 _ACEOF
42771
42772 fi
42773
42774
42775       if test "${ac_cv_header_attr_h+set}" = set; then
42776   { echo "$as_me:$LINENO: checking for attr.h" >&5
42777 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42778 if test "${ac_cv_header_attr_h+set}" = set; then
42779   echo $ECHO_N "(cached) $ECHO_C" >&6
42780 fi
42781 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42782 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42783 else
42784   # Is the header compilable?
42785 { echo "$as_me:$LINENO: checking attr.h usability" >&5
42786 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
42787 cat >conftest.$ac_ext <<_ACEOF
42788 /* confdefs.h.  */
42789 _ACEOF
42790 cat confdefs.h >>conftest.$ac_ext
42791 cat >>conftest.$ac_ext <<_ACEOF
42792 /* end confdefs.h.  */
42793 $ac_includes_default
42794 #include <attr.h>
42795 _ACEOF
42796 rm -f conftest.$ac_objext
42797 if { (ac_try="$ac_compile"
42798 case "(($ac_try" in
42799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42800   *) ac_try_echo=$ac_try;;
42801 esac
42802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42803   (eval "$ac_compile") 2>conftest.er1
42804   ac_status=$?
42805   grep -v '^ *+' conftest.er1 >conftest.err
42806   rm -f conftest.er1
42807   cat conftest.err >&5
42808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42809   (exit $ac_status); } && {
42810          test -z "$ac_cxx_werror_flag" ||
42811          test ! -s conftest.err
42812        } && test -s conftest.$ac_objext; then
42813   ac_header_compiler=yes
42814 else
42815   echo "$as_me: failed program was:" >&5
42816 sed 's/^/| /' conftest.$ac_ext >&5
42817
42818         ac_header_compiler=no
42819 fi
42820
42821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42822 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42823 echo "${ECHO_T}$ac_header_compiler" >&6; }
42824
42825 # Is the header present?
42826 { echo "$as_me:$LINENO: checking attr.h presence" >&5
42827 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
42828 cat >conftest.$ac_ext <<_ACEOF
42829 /* confdefs.h.  */
42830 _ACEOF
42831 cat confdefs.h >>conftest.$ac_ext
42832 cat >>conftest.$ac_ext <<_ACEOF
42833 /* end confdefs.h.  */
42834 #include <attr.h>
42835 _ACEOF
42836 if { (ac_try="$ac_cpp conftest.$ac_ext"
42837 case "(($ac_try" in
42838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42839   *) ac_try_echo=$ac_try;;
42840 esac
42841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42842   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42843   ac_status=$?
42844   grep -v '^ *+' conftest.er1 >conftest.err
42845   rm -f conftest.er1
42846   cat conftest.err >&5
42847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42848   (exit $ac_status); } >/dev/null && {
42849          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
42850          test ! -s conftest.err
42851        }; then
42852   ac_header_preproc=yes
42853 else
42854   echo "$as_me: failed program was:" >&5
42855 sed 's/^/| /' conftest.$ac_ext >&5
42856
42857   ac_header_preproc=no
42858 fi
42859
42860 rm -f conftest.err conftest.$ac_ext
42861 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42862 echo "${ECHO_T}$ac_header_preproc" >&6; }
42863
42864 # So?  What about this header?
42865 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
42866   yes:no: )
42867     { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42868 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42869     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
42870 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
42871     ac_header_preproc=yes
42872     ;;
42873   no:yes:* )
42874     { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
42875 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
42876     { echo "$as_me:$LINENO: WARNING: attr.h:     check for missing prerequisite headers?" >&5
42877 echo "$as_me: WARNING: attr.h:     check for missing prerequisite headers?" >&2;}
42878     { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
42879 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
42880     { echo "$as_me:$LINENO: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&5
42881 echo "$as_me: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42882     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
42883 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
42884     { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
42885 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
42886
42887     ;;
42888 esac
42889 { echo "$as_me:$LINENO: checking for attr.h" >&5
42890 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42891 if test "${ac_cv_header_attr_h+set}" = set; then
42892   echo $ECHO_N "(cached) $ECHO_C" >&6
42893 else
42894   ac_cv_header_attr_h=$ac_header_preproc
42895 fi
42896 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42897 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42898
42899 fi
42900 if test $ac_cv_header_attr_h = yes; then
42901
42902 cat >>confdefs.h <<\_ACEOF
42903 #define HAVE_ATTR_H 1
42904 _ACEOF
42905
42906 fi
42907
42908
42909
42910
42911
42912
42913
42914
42915 for ac_func in openat fstatat unlinkat fchownat futimesat
42916 do
42917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42918 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42920 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42921   echo $ECHO_N "(cached) $ECHO_C" >&6
42922 else
42923   cat >conftest.$ac_ext <<_ACEOF
42924 /* confdefs.h.  */
42925 _ACEOF
42926 cat confdefs.h >>conftest.$ac_ext
42927 cat >>conftest.$ac_ext <<_ACEOF
42928 /* end confdefs.h.  */
42929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42930    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42931 #define $ac_func innocuous_$ac_func
42932
42933 /* System header to define __stub macros and hopefully few prototypes,
42934     which can conflict with char $ac_func (); below.
42935     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42936     <limits.h> exists even on freestanding compilers.  */
42937
42938 #ifdef __STDC__
42939 # include <limits.h>
42940 #else
42941 # include <assert.h>
42942 #endif
42943
42944 #undef $ac_func
42945
42946 /* Override any GCC internal prototype to avoid an error.
42947    Use char because int might match the return type of a GCC
42948    builtin and then its argument prototype would still apply.  */
42949 #ifdef __cplusplus
42950 extern "C"
42951 #endif
42952 char $ac_func ();
42953 /* The GNU C library defines this for functions which it implements
42954     to always fail with ENOSYS.  Some functions are actually named
42955     something starting with __ and the normal name is an alias.  */
42956 #if defined __stub_$ac_func || defined __stub___$ac_func
42957 choke me
42958 #endif
42959
42960 int
42961 main ()
42962 {
42963 return $ac_func ();
42964   ;
42965   return 0;
42966 }
42967 _ACEOF
42968 rm -f conftest.$ac_objext conftest$ac_exeext
42969 if { (ac_try="$ac_link"
42970 case "(($ac_try" in
42971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42972   *) ac_try_echo=$ac_try;;
42973 esac
42974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42975   (eval "$ac_link") 2>conftest.er1
42976   ac_status=$?
42977   grep -v '^ *+' conftest.er1 >conftest.err
42978   rm -f conftest.er1
42979   cat conftest.err >&5
42980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42981   (exit $ac_status); } && {
42982          test -z "$ac_cxx_werror_flag" ||
42983          test ! -s conftest.err
42984        } && test -s conftest$ac_exeext &&
42985        $as_test_x conftest$ac_exeext; then
42986   eval "$as_ac_var=yes"
42987 else
42988   echo "$as_me: failed program was:" >&5
42989 sed 's/^/| /' conftest.$ac_ext >&5
42990
42991         eval "$as_ac_var=no"
42992 fi
42993
42994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42995       conftest$ac_exeext conftest.$ac_ext
42996 fi
42997 ac_res=`eval echo '${'$as_ac_var'}'`
42998                { echo "$as_me:$LINENO: result: $ac_res" >&5
42999 echo "${ECHO_T}$ac_res" >&6; }
43000 if test `eval echo '${'$as_ac_var'}'` = yes; then
43001   cat >>confdefs.h <<_ACEOF
43002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43003 _ACEOF
43004
43005              have_xattr=yes
43006
43007 cat >>confdefs.h <<\_ACEOF
43008 #define HAVE_OPENAT 1
43009 _ACEOF
43010
43011
43012 cat >>confdefs.h <<\_ACEOF
43013 #define HAVE_FSTATAT 1
43014 _ACEOF
43015
43016
43017 cat >>confdefs.h <<\_ACEOF
43018 #define HAVE_UNLINKAT 1
43019 _ACEOF
43020
43021
43022 cat >>confdefs.h <<\_ACEOF
43023 #define HAVE_FCHOWNAT 1
43024 _ACEOF
43025
43026
43027 cat >>confdefs.h <<\_ACEOF
43028 #define HAVE_FUTIMESAT 1
43029 _ACEOF
43030
43031
43032
43033 fi
43034 done
43035
43036
43037       if test $have_xattr = yes; then
43038          { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
43039 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
43040 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
43041   echo $ECHO_N "(cached) $ECHO_C" >&6
43042 else
43043   ac_check_lib_save_LIBS=$LIBS
43044 LIBS="-lnvpair  $LIBS"
43045 cat >conftest.$ac_ext <<_ACEOF
43046 /* confdefs.h.  */
43047 _ACEOF
43048 cat confdefs.h >>conftest.$ac_ext
43049 cat >>conftest.$ac_ext <<_ACEOF
43050 /* end confdefs.h.  */
43051
43052 /* Override any GCC internal prototype to avoid an error.
43053    Use char because int might match the return type of a GCC
43054    builtin and then its argument prototype would still apply.  */
43055 #ifdef __cplusplus
43056 extern "C"
43057 #endif
43058 char nvlist_next_nvpair ();
43059 int
43060 main ()
43061 {
43062 return nvlist_next_nvpair ();
43063   ;
43064   return 0;
43065 }
43066 _ACEOF
43067 rm -f conftest.$ac_objext conftest$ac_exeext
43068 if { (ac_try="$ac_link"
43069 case "(($ac_try" in
43070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43071   *) ac_try_echo=$ac_try;;
43072 esac
43073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43074   (eval "$ac_link") 2>conftest.er1
43075   ac_status=$?
43076   grep -v '^ *+' conftest.er1 >conftest.err
43077   rm -f conftest.er1
43078   cat conftest.err >&5
43079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43080   (exit $ac_status); } && {
43081          test -z "$ac_cxx_werror_flag" ||
43082          test ! -s conftest.err
43083        } && test -s conftest$ac_exeext &&
43084        $as_test_x conftest$ac_exeext; then
43085   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
43086 else
43087   echo "$as_me: failed program was:" >&5
43088 sed 's/^/| /' conftest.$ac_ext >&5
43089
43090         ac_cv_lib_nvpair_nvlist_next_nvpair=no
43091 fi
43092
43093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43094       conftest$ac_exeext conftest.$ac_ext
43095 LIBS=$ac_check_lib_save_LIBS
43096 fi
43097 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
43098 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
43099 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
43100
43101
43102 cat >>confdefs.h <<\_ACEOF
43103 #define HAVE_NVLIST_NEXT_NVPAIR 1
43104 _ACEOF
43105
43106                 FDLIBS="-lnvpair $FDLIBS"
43107
43108
43109 fi
43110
43111       fi
43112    fi
43113
43114    if test x$support_xattr = xyes -a $have_xattr != yes; then
43115       { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
43116   please either load the xattr libraries or rerun configure without --enable-xattr" >&5
43117 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
43118   please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
43119    { (exit 1); exit 1; }; }
43120    else
43121       if test $have_xattr = yes; then
43122
43123 cat >>confdefs.h <<\_ACEOF
43124 #define HAVE_XATTR 1
43125 _ACEOF
43126
43127       fi
43128    fi
43129 fi
43130
43131 PTHREAD_LIB=""
43132 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
43133 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
43134 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
43135   echo $ECHO_N "(cached) $ECHO_C" >&6
43136 else
43137   ac_check_lib_save_LIBS=$LIBS
43138 LIBS="-lpthread  $LIBS"
43139 cat >conftest.$ac_ext <<_ACEOF
43140 /* confdefs.h.  */
43141 _ACEOF
43142 cat confdefs.h >>conftest.$ac_ext
43143 cat >>conftest.$ac_ext <<_ACEOF
43144 /* end confdefs.h.  */
43145
43146 /* Override any GCC internal prototype to avoid an error.
43147    Use char because int might match the return type of a GCC
43148    builtin and then its argument prototype would still apply.  */
43149 #ifdef __cplusplus
43150 extern "C"
43151 #endif
43152 char pthread_create ();
43153 int
43154 main ()
43155 {
43156 return pthread_create ();
43157   ;
43158   return 0;
43159 }
43160 _ACEOF
43161 rm -f conftest.$ac_objext conftest$ac_exeext
43162 if { (ac_try="$ac_link"
43163 case "(($ac_try" in
43164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43165   *) ac_try_echo=$ac_try;;
43166 esac
43167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43168   (eval "$ac_link") 2>conftest.er1
43169   ac_status=$?
43170   grep -v '^ *+' conftest.er1 >conftest.err
43171   rm -f conftest.er1
43172   cat conftest.err >&5
43173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43174   (exit $ac_status); } && {
43175          test -z "$ac_cxx_werror_flag" ||
43176          test ! -s conftest.err
43177        } && test -s conftest$ac_exeext &&
43178        $as_test_x conftest$ac_exeext; then
43179   ac_cv_lib_pthread_pthread_create=yes
43180 else
43181   echo "$as_me: failed program was:" >&5
43182 sed 's/^/| /' conftest.$ac_ext >&5
43183
43184         ac_cv_lib_pthread_pthread_create=no
43185 fi
43186
43187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43188       conftest$ac_exeext conftest.$ac_ext
43189 LIBS=$ac_check_lib_save_LIBS
43190 fi
43191 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
43192 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
43193 if test $ac_cv_lib_pthread_pthread_create = yes; then
43194   PTHREAD_LIB="-lpthread"
43195 else
43196
43197        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
43198 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
43199 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
43200   echo $ECHO_N "(cached) $ECHO_C" >&6
43201 else
43202   ac_check_lib_save_LIBS=$LIBS
43203 LIBS="-lpthreads  $LIBS"
43204 cat >conftest.$ac_ext <<_ACEOF
43205 /* confdefs.h.  */
43206 _ACEOF
43207 cat confdefs.h >>conftest.$ac_ext
43208 cat >>conftest.$ac_ext <<_ACEOF
43209 /* end confdefs.h.  */
43210
43211 /* Override any GCC internal prototype to avoid an error.
43212    Use char because int might match the return type of a GCC
43213    builtin and then its argument prototype would still apply.  */
43214 #ifdef __cplusplus
43215 extern "C"
43216 #endif
43217 char pthread_create ();
43218 int
43219 main ()
43220 {
43221 return pthread_create ();
43222   ;
43223   return 0;
43224 }
43225 _ACEOF
43226 rm -f conftest.$ac_objext conftest$ac_exeext
43227 if { (ac_try="$ac_link"
43228 case "(($ac_try" in
43229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43230   *) ac_try_echo=$ac_try;;
43231 esac
43232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43233   (eval "$ac_link") 2>conftest.er1
43234   ac_status=$?
43235   grep -v '^ *+' conftest.er1 >conftest.err
43236   rm -f conftest.er1
43237   cat conftest.err >&5
43238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43239   (exit $ac_status); } && {
43240          test -z "$ac_cxx_werror_flag" ||
43241          test ! -s conftest.err
43242        } && test -s conftest$ac_exeext &&
43243        $as_test_x conftest$ac_exeext; then
43244   ac_cv_lib_pthreads_pthread_create=yes
43245 else
43246   echo "$as_me: failed program was:" >&5
43247 sed 's/^/| /' conftest.$ac_ext >&5
43248
43249         ac_cv_lib_pthreads_pthread_create=no
43250 fi
43251
43252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43253       conftest$ac_exeext conftest.$ac_ext
43254 LIBS=$ac_check_lib_save_LIBS
43255 fi
43256 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
43257 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
43258 if test $ac_cv_lib_pthreads_pthread_create = yes; then
43259   PTHREAD_LIB="-lpthreads"
43260 else
43261
43262               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
43263 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
43264 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
43265   echo $ECHO_N "(cached) $ECHO_C" >&6
43266 else
43267   ac_check_lib_save_LIBS=$LIBS
43268 LIBS="-lc_r  $LIBS"
43269 cat >conftest.$ac_ext <<_ACEOF
43270 /* confdefs.h.  */
43271 _ACEOF
43272 cat confdefs.h >>conftest.$ac_ext
43273 cat >>conftest.$ac_ext <<_ACEOF
43274 /* end confdefs.h.  */
43275
43276 /* Override any GCC internal prototype to avoid an error.
43277    Use char because int might match the return type of a GCC
43278    builtin and then its argument prototype would still apply.  */
43279 #ifdef __cplusplus
43280 extern "C"
43281 #endif
43282 char pthread_create ();
43283 int
43284 main ()
43285 {
43286 return pthread_create ();
43287   ;
43288   return 0;
43289 }
43290 _ACEOF
43291 rm -f conftest.$ac_objext conftest$ac_exeext
43292 if { (ac_try="$ac_link"
43293 case "(($ac_try" in
43294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43295   *) ac_try_echo=$ac_try;;
43296 esac
43297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43298   (eval "$ac_link") 2>conftest.er1
43299   ac_status=$?
43300   grep -v '^ *+' conftest.er1 >conftest.err
43301   rm -f conftest.er1
43302   cat conftest.err >&5
43303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43304   (exit $ac_status); } && {
43305          test -z "$ac_cxx_werror_flag" ||
43306          test ! -s conftest.err
43307        } && test -s conftest$ac_exeext &&
43308        $as_test_x conftest$ac_exeext; then
43309   ac_cv_lib_c_r_pthread_create=yes
43310 else
43311   echo "$as_me: failed program was:" >&5
43312 sed 's/^/| /' conftest.$ac_ext >&5
43313
43314         ac_cv_lib_c_r_pthread_create=no
43315 fi
43316
43317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43318       conftest$ac_exeext conftest.$ac_ext
43319 LIBS=$ac_check_lib_save_LIBS
43320 fi
43321 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
43322 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
43323 if test $ac_cv_lib_c_r_pthread_create = yes; then
43324   PTHREAD_LIB="-lc_r"
43325 else
43326
43327                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
43328 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
43329 if test "${ac_cv_func_pthread_create+set}" = set; then
43330   echo $ECHO_N "(cached) $ECHO_C" >&6
43331 else
43332   cat >conftest.$ac_ext <<_ACEOF
43333 /* confdefs.h.  */
43334 _ACEOF
43335 cat confdefs.h >>conftest.$ac_ext
43336 cat >>conftest.$ac_ext <<_ACEOF
43337 /* end confdefs.h.  */
43338 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
43339    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43340 #define pthread_create innocuous_pthread_create
43341
43342 /* System header to define __stub macros and hopefully few prototypes,
43343     which can conflict with char pthread_create (); below.
43344     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43345     <limits.h> exists even on freestanding compilers.  */
43346
43347 #ifdef __STDC__
43348 # include <limits.h>
43349 #else
43350 # include <assert.h>
43351 #endif
43352
43353 #undef pthread_create
43354
43355 /* Override any GCC internal prototype to avoid an error.
43356    Use char because int might match the return type of a GCC
43357    builtin and then its argument prototype would still apply.  */
43358 #ifdef __cplusplus
43359 extern "C"
43360 #endif
43361 char pthread_create ();
43362 /* The GNU C library defines this for functions which it implements
43363     to always fail with ENOSYS.  Some functions are actually named
43364     something starting with __ and the normal name is an alias.  */
43365 #if defined __stub_pthread_create || defined __stub___pthread_create
43366 choke me
43367 #endif
43368
43369 int
43370 main ()
43371 {
43372 return pthread_create ();
43373   ;
43374   return 0;
43375 }
43376 _ACEOF
43377 rm -f conftest.$ac_objext conftest$ac_exeext
43378 if { (ac_try="$ac_link"
43379 case "(($ac_try" in
43380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43381   *) ac_try_echo=$ac_try;;
43382 esac
43383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43384   (eval "$ac_link") 2>conftest.er1
43385   ac_status=$?
43386   grep -v '^ *+' conftest.er1 >conftest.err
43387   rm -f conftest.er1
43388   cat conftest.err >&5
43389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43390   (exit $ac_status); } && {
43391          test -z "$ac_cxx_werror_flag" ||
43392          test ! -s conftest.err
43393        } && test -s conftest$ac_exeext &&
43394        $as_test_x conftest$ac_exeext; then
43395   ac_cv_func_pthread_create=yes
43396 else
43397   echo "$as_me: failed program was:" >&5
43398 sed 's/^/| /' conftest.$ac_ext >&5
43399
43400         ac_cv_func_pthread_create=no
43401 fi
43402
43403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43404       conftest$ac_exeext conftest.$ac_ext
43405 fi
43406 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
43407 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
43408
43409
43410
43411 fi
43412
43413
43414
43415 fi
43416
43417
43418
43419 fi
43420
43421
43422
43423
43424 for ac_header in sys/prctl.h sys/capability.h
43425 do
43426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43428   { echo "$as_me:$LINENO: checking for $ac_header" >&5
43429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43431   echo $ECHO_N "(cached) $ECHO_C" >&6
43432 fi
43433 ac_res=`eval echo '${'$as_ac_Header'}'`
43434                { echo "$as_me:$LINENO: result: $ac_res" >&5
43435 echo "${ECHO_T}$ac_res" >&6; }
43436 else
43437   # Is the header compilable?
43438 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
43439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
43440 cat >conftest.$ac_ext <<_ACEOF
43441 /* confdefs.h.  */
43442 _ACEOF
43443 cat confdefs.h >>conftest.$ac_ext
43444 cat >>conftest.$ac_ext <<_ACEOF
43445 /* end confdefs.h.  */
43446 $ac_includes_default
43447 #include <$ac_header>
43448 _ACEOF
43449 rm -f conftest.$ac_objext
43450 if { (ac_try="$ac_compile"
43451 case "(($ac_try" in
43452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43453   *) ac_try_echo=$ac_try;;
43454 esac
43455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43456   (eval "$ac_compile") 2>conftest.er1
43457   ac_status=$?
43458   grep -v '^ *+' conftest.er1 >conftest.err
43459   rm -f conftest.er1
43460   cat conftest.err >&5
43461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43462   (exit $ac_status); } && {
43463          test -z "$ac_cxx_werror_flag" ||
43464          test ! -s conftest.err
43465        } && test -s conftest.$ac_objext; then
43466   ac_header_compiler=yes
43467 else
43468   echo "$as_me: failed program was:" >&5
43469 sed 's/^/| /' conftest.$ac_ext >&5
43470
43471         ac_header_compiler=no
43472 fi
43473
43474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43476 echo "${ECHO_T}$ac_header_compiler" >&6; }
43477
43478 # Is the header present?
43479 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
43480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
43481 cat >conftest.$ac_ext <<_ACEOF
43482 /* confdefs.h.  */
43483 _ACEOF
43484 cat confdefs.h >>conftest.$ac_ext
43485 cat >>conftest.$ac_ext <<_ACEOF
43486 /* end confdefs.h.  */
43487 #include <$ac_header>
43488 _ACEOF
43489 if { (ac_try="$ac_cpp conftest.$ac_ext"
43490 case "(($ac_try" in
43491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43492   *) ac_try_echo=$ac_try;;
43493 esac
43494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43495   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43496   ac_status=$?
43497   grep -v '^ *+' conftest.er1 >conftest.err
43498   rm -f conftest.er1
43499   cat conftest.err >&5
43500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43501   (exit $ac_status); } >/dev/null && {
43502          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
43503          test ! -s conftest.err
43504        }; then
43505   ac_header_preproc=yes
43506 else
43507   echo "$as_me: failed program was:" >&5
43508 sed 's/^/| /' conftest.$ac_ext >&5
43509
43510   ac_header_preproc=no
43511 fi
43512
43513 rm -f conftest.err conftest.$ac_ext
43514 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43515 echo "${ECHO_T}$ac_header_preproc" >&6; }
43516
43517 # So?  What about this header?
43518 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
43519   yes:no: )
43520     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43522     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43524     ac_header_preproc=yes
43525     ;;
43526   no:yes:* )
43527     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43529     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43530 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43531     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43532 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43533     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43534 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43535     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43537     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43538 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43539
43540     ;;
43541 esac
43542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43545   echo $ECHO_N "(cached) $ECHO_C" >&6
43546 else
43547   eval "$as_ac_Header=\$ac_header_preproc"
43548 fi
43549 ac_res=`eval echo '${'$as_ac_Header'}'`
43550                { echo "$as_me:$LINENO: result: $ac_res" >&5
43551 echo "${ECHO_T}$ac_res" >&6; }
43552
43553 fi
43554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43555   cat >>confdefs.h <<_ACEOF
43556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43557 _ACEOF
43558
43559 fi
43560
43561 done
43562
43563
43564
43565 for ac_func in prctl setreuid
43566 do
43567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43568 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43571   echo $ECHO_N "(cached) $ECHO_C" >&6
43572 else
43573   cat >conftest.$ac_ext <<_ACEOF
43574 /* confdefs.h.  */
43575 _ACEOF
43576 cat confdefs.h >>conftest.$ac_ext
43577 cat >>conftest.$ac_ext <<_ACEOF
43578 /* end confdefs.h.  */
43579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43580    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43581 #define $ac_func innocuous_$ac_func
43582
43583 /* System header to define __stub macros and hopefully few prototypes,
43584     which can conflict with char $ac_func (); below.
43585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43586     <limits.h> exists even on freestanding compilers.  */
43587
43588 #ifdef __STDC__
43589 # include <limits.h>
43590 #else
43591 # include <assert.h>
43592 #endif
43593
43594 #undef $ac_func
43595
43596 /* Override any GCC internal prototype to avoid an error.
43597    Use char because int might match the return type of a GCC
43598    builtin and then its argument prototype would still apply.  */
43599 #ifdef __cplusplus
43600 extern "C"
43601 #endif
43602 char $ac_func ();
43603 /* The GNU C library defines this for functions which it implements
43604     to always fail with ENOSYS.  Some functions are actually named
43605     something starting with __ and the normal name is an alias.  */
43606 #if defined __stub_$ac_func || defined __stub___$ac_func
43607 choke me
43608 #endif
43609
43610 int
43611 main ()
43612 {
43613 return $ac_func ();
43614   ;
43615   return 0;
43616 }
43617 _ACEOF
43618 rm -f conftest.$ac_objext conftest$ac_exeext
43619 if { (ac_try="$ac_link"
43620 case "(($ac_try" in
43621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43622   *) ac_try_echo=$ac_try;;
43623 esac
43624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43625   (eval "$ac_link") 2>conftest.er1
43626   ac_status=$?
43627   grep -v '^ *+' conftest.er1 >conftest.err
43628   rm -f conftest.er1
43629   cat conftest.err >&5
43630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43631   (exit $ac_status); } && {
43632          test -z "$ac_cxx_werror_flag" ||
43633          test ! -s conftest.err
43634        } && test -s conftest$ac_exeext &&
43635        $as_test_x conftest$ac_exeext; then
43636   eval "$as_ac_var=yes"
43637 else
43638   echo "$as_me: failed program was:" >&5
43639 sed 's/^/| /' conftest.$ac_ext >&5
43640
43641         eval "$as_ac_var=no"
43642 fi
43643
43644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43645       conftest$ac_exeext conftest.$ac_ext
43646 fi
43647 ac_res=`eval echo '${'$as_ac_var'}'`
43648                { echo "$as_me:$LINENO: result: $ac_res" >&5
43649 echo "${ECHO_T}$ac_res" >&6; }
43650 if test `eval echo '${'$as_ac_var'}'` = yes; then
43651   cat >>confdefs.h <<_ACEOF
43652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43653 _ACEOF
43654
43655 fi
43656 done
43657
43658 { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
43659 echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
43660 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
43661   echo $ECHO_N "(cached) $ECHO_C" >&6
43662 else
43663   ac_check_lib_save_LIBS=$LIBS
43664 LIBS="-lcap  $LIBS"
43665 cat >conftest.$ac_ext <<_ACEOF
43666 /* confdefs.h.  */
43667 _ACEOF
43668 cat confdefs.h >>conftest.$ac_ext
43669 cat >>conftest.$ac_ext <<_ACEOF
43670 /* end confdefs.h.  */
43671
43672 /* Override any GCC internal prototype to avoid an error.
43673    Use char because int might match the return type of a GCC
43674    builtin and then its argument prototype would still apply.  */
43675 #ifdef __cplusplus
43676 extern "C"
43677 #endif
43678 char cap_set_proc ();
43679 int
43680 main ()
43681 {
43682 return cap_set_proc ();
43683   ;
43684   return 0;
43685 }
43686 _ACEOF
43687 rm -f conftest.$ac_objext conftest$ac_exeext
43688 if { (ac_try="$ac_link"
43689 case "(($ac_try" in
43690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43691   *) ac_try_echo=$ac_try;;
43692 esac
43693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43694   (eval "$ac_link") 2>conftest.er1
43695   ac_status=$?
43696   grep -v '^ *+' conftest.er1 >conftest.err
43697   rm -f conftest.er1
43698   cat conftest.err >&5
43699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43700   (exit $ac_status); } && {
43701          test -z "$ac_cxx_werror_flag" ||
43702          test ! -s conftest.err
43703        } && test -s conftest$ac_exeext &&
43704        $as_test_x conftest$ac_exeext; then
43705   ac_cv_lib_cap_cap_set_proc=yes
43706 else
43707   echo "$as_me: failed program was:" >&5
43708 sed 's/^/| /' conftest.$ac_ext >&5
43709
43710         ac_cv_lib_cap_cap_set_proc=no
43711 fi
43712
43713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43714       conftest$ac_exeext conftest.$ac_ext
43715 LIBS=$ac_check_lib_save_LIBS
43716 fi
43717 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
43718 echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
43719 if test $ac_cv_lib_cap_cap_set_proc = yes; then
43720   CAP_LIBS="-lcap"
43721 else
43722   CAP_LIBS=
43723 fi
43724
43725 if test x$CAP_LIBS = x-lcap; then
43726
43727 cat >>confdefs.h <<\_ACEOF
43728 #define HAVE_LIBCAP 1
43729 _ACEOF
43730
43731 fi
43732
43733
43734
43735 cat >>confdefs.h <<\_ACEOF
43736 #define FDLIBS 1
43737 _ACEOF
43738
43739
43740 CFLAGS=${CFLAGS--O}
43741
43742 if test x$have_gcc = xyes ; then
43743    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43744    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43745 fi
43746 LDFLAGS=${LDFLAGS--O}
43747 DB_LIBS="${SQL_LFLAGS}"
43748 CPPFLAGS="$CPPFLAGS"
43749 CFLAGS="$CFLAGS"
43750
43751
43752
43753
43754
43755
43756
43757
43758
43759
43760
43761
43762
43763
43764
43765
43766 OBJLIST=
43767
43768
43769 lld="lld"
43770 llu="llu"
43771
43772 WCFLAGS=
43773 WLDFLAGS=
43774
43775 PFILES="platforms/Makefile"
43776 PSCMD="ps -e"
43777 WIN32=
43778 MACOSX=
43779
43780 hostname=`uname -n | cut -d '.' -f 1`
43781 if test x${hostname} = x ; then
43782    hostname="localhost"
43783 fi
43784 ping -c 1 $hostname 2>/dev/null 1>/dev/null
43785 if test ! $? = 0; then
43786   hostname="localhost"
43787 fi
43788
43789 case "$DISTNAME" in
43790 aix)
43791    DISTVER=`uname -r`
43792    PSCMD="ps -e -o pid,comm"
43793    PFILES="${PFILES} \
43794       platforms/aix/Makefile"
43795    TAPEDRIVE="/dev/rmt0.1"
43796   ;;
43797 alpha)
43798    DISTVER=`uname -r`
43799    PTHREAD_LIB="-lpthread -lexc"
43800    if test "${CC}" = "gcc" ; then
43801       lld="lld"
43802       llu="llu"
43803    else
43804       lld="ld"
43805       llu="lu"
43806    fi
43807    TAPEDRIVE="/dev/nrmt0"
43808   ;;
43809 bsdi)
43810    DISTVER=`uname -a |awk '{print $3}'`
43811    TAPEDRIVE="/dev/nrmt0"
43812    PTHREAD_LIB="-pthread"
43813    CFLAGS="${CFLAGS} -pthread"
43814    PSCMD="ps -ax -o pid,command"
43815    lld="qd"
43816    llu="qu"
43817    PFILES="${PFILES} \
43818        platforms/bsdi/Makefile \
43819        platforms/bsdi/bacula-fd \
43820        platforms/bsdi/bacula-sd \
43821        platforms/bsdi/bacula-dir"
43822    largefile_support="yes"
43823   ;;
43824 cygwin)
43825    DISTVER=`uname -a |awk '{print $3}'`
43826    TAPEDRIVE="/dev/nrst0"
43827    WIN32=win32
43828    WCFLAGS="-mwindows"
43829    WLDFLAGS="-mwindows"
43830   ;;
43831 darwin)
43832    DISTVER=`uname -r`
43833    TAPEDRIVE="/dev/nst0"
43834    PSCMD="ps -e -o pid,command"
43835    MACOSX=macosx
43836    PFILES="${PFILES} \
43837       platforms/darwin/Makefile"
43838   ;;
43839 osx)
43840    DISTVER=`uname -r`
43841    TAPEDRIVE="/dev/nst0"
43842    PSCMD="ps -e -o pid,command"
43843    MACOSX=macosx
43844    PFILES="${PFILES} \
43845       platforms/osx/Makefile"
43846   ;;
43847 debian)
43848    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
43849       DISTNAME="ubuntu"
43850    fi
43851    DISTVER=`cat /etc/debian_version`
43852    if test -f /etc/lsb-release ; then
43853       . /etc/lsb-release
43854       if test "x$DISTRIB_ID" != "x" ; then
43855          DISTNAME=$DISTRIB_ID
43856       fi
43857       if test "x$DISTRIB_RELEASE" != "x" ; then
43858          DISTVER=$DISTRIB_RELEASE
43859       fi
43860    fi
43861    if test "$DISTNAME" = "Ubuntu" ; then
43862       DISTNAME="ubuntu"
43863    fi
43864    TAPEDRIVE="/dev/nst0"
43865    PSCMD="ps -e -o pid,command"
43866    if test "$DISTNAME" = "ubuntu" ; then
43867       PFILES="${PFILES} \
43868          platforms/ubuntu/Makefile \
43869          platforms/ubuntu/bacula-fd \
43870          platforms/ubuntu/bacula-sd \
43871          platforms/ubuntu/bacula-dir"
43872    else
43873       PFILES="${PFILES} \
43874          platforms/debian/Makefile \
43875          platforms/debian/bacula-fd \
43876          platforms/debian/bacula-sd \
43877          platforms/debian/bacula-dir"
43878    fi
43879   ;;
43880 freebsd)
43881    DISTVER=`uname -a |awk '{print $3}'`
43882    VER=`echo $DISTVER | cut -c 1`
43883    if test x$VER = x4 ; then
43884       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
43885       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
43886    fi
43887    lld="qd"
43888    llu="qu"
43889    TAPEDRIVE="/dev/nrsa0"
43890    PSCMD="ps -ax -o pid,command"
43891    PFILES="${PFILES} \
43892        platforms/freebsd/Makefile \
43893        platforms/freebsd/bacula-fd \
43894        platforms/freebsd/bacula-sd \
43895        platforms/freebsd/bacula-dir"
43896    largefile_support="yes"
43897   ;;
43898 hpux)
43899    PSCMD="UNIX95=1; ps -e -o pid,comm"
43900    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
43901    DISTVER=`uname -r`
43902    TAPEDRIVE="/dev/rmt/0hnb"
43903    PTHREAD_LIB="-lpthread"
43904    cat >>confdefs.h <<\_ACEOF
43905 #define _INCLUDE_LONGLONG 1
43906 _ACEOF
43907
43908   ;;
43909 irix)
43910    DISTVER=`uname -r`
43911    TAPEDRIVE="/dev/rmt/0cbn"
43912    PSCMD="ps -e -o pid,comm"
43913    PFILES="${PFILES} \
43914        platforms/irix/Makefile \
43915        platforms/irix/bacula-fd \
43916        platforms/irix/bacula-sd \
43917        platforms/irix/bacula-dir"
43918   ;;
43919 netbsd)
43920    DISTVER=`uname -a |awk '{print $3}'`
43921    lld="qd"
43922    llu="qu"
43923    TAPEDRIVE="/dev/nrst0"
43924    PSCMD="ps -ax -o pid,command"
43925    PTHREAD_LIB="-pthread"
43926    CFLAGS="${CFLAGS} -pthread"
43927   ;;
43928 openbsd)
43929    DISTVER=`uname -a |awk '{print $3}'`
43930    lld="qd"
43931    llu="qu"
43932    TAPEDRIVE="/dev/nrst0"
43933    PSCMD="ps -ax -o pid,command"
43934    PTHREAD_LIB="-pthread"
43935    CFLAGS="${CFLAGS} -pthread"
43936    PFILES="${PFILES} \
43937        platforms/openbsd/Makefile \
43938        platforms/openbsd/bacula-fd \
43939        platforms/openbsd/bacula-sd \
43940        platforms/openbsd/bacula-dir"
43941   ;;
43942 redhat)
43943    if test -f /etc/whitebox-release ; then
43944       f=/etc/whitebox-release
43945    else
43946       f=/etc/redhat-release
43947    fi
43948    if test `cat $f | grep release |\
43949          cut -f 3 -d ' '`x = "Enterprise"x ; then
43950       DISTVER="Enterprise "`cat $f | grep release |\
43951           cut -f 6 -d ' '`
43952    else
43953        DISTVER=`cat /etc/redhat-release | grep release |\
43954            cut -f 5 -d ' '`
43955    fi
43956    TAPEDRIVE="/dev/nst0"
43957    PSCMD="ps -e -o pid,command"
43958    PFILES="${PFILES} \
43959        platforms/redhat/Makefile \
43960        platforms/redhat/bacula-fd \
43961        platforms/redhat/bacula-sd \
43962        platforms/redhat/bacula-dir
43963        "
43964   ;;
43965 mandrake)
43966    DISTVER=`cat /etc/mandrake-release | grep release |\
43967       cut -f 5 -d ' '`
43968    TAPEDRIVE="/dev/nst0"
43969    PSCMD="ps -e -o pid,command"
43970    PFILES="${PFILES} \
43971        platforms/mandrake/Makefile \
43972        platforms/mandrake/bacula-fd \
43973        platforms/mandrake/bacula-sd \
43974        platforms/mandrake/bacula-dir \
43975        platforms/mandrake/bacula.spec \
43976        "
43977   ;;
43978 gentoo)
43979    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
43980    TAPEDRIVE="/dev/nst0"
43981    PSCMD="ps -e -o pid,command"
43982    PFILES="${PFILES} \
43983        platforms/gentoo/Makefile \
43984     platforms/gentoo/bacula-init \
43985        platforms/gentoo/bacula-fd \
43986        platforms/gentoo/bacula-sd \
43987        platforms/gentoo/bacula-dir"
43988   ;;
43989 slackware)
43990    DISTVER=`cat /etc/slackware-version`
43991    TAPEDRIVE="/dev/nst0"
43992    PSCMD="ps -e -o pid,command"
43993    PFILES="${PFILES} \
43994        platforms/slackware/Makefile \
43995        platforms/slackware/rc.bacula-fd \
43996        platforms/slackware/rc.bacula-sd \
43997        platforms/slackware/rc.bacula-dir\
43998        platforms/slackware/functions.bacula"
43999   ;;
44000 solaris)
44001    DISTVER=`uname -r`
44002    TAPEDRIVE="/dev/rmt/0cbn"
44003    PSCMD="ps -e -o pid,comm"
44004    PFILES="${PFILES} \
44005        platforms/solaris/Makefile \
44006        platforms/solaris/bacula-fd \
44007        platforms/solaris/bacula-sd \
44008        platforms/solaris/bacula-dir"
44009    if test x$DISTVER = x5.6 ; then
44010        cat >>confdefs.h <<\_ACEOF
44011 #define HAVE_OLD_SOCKOPT 1
44012 _ACEOF
44013
44014    fi
44015    LIBS="$LIBS -lresolv"
44016   ;;
44017 suse)
44018    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
44019        cut -f 3 -d ' '`
44020    TAPEDRIVE="/dev/nst0"
44021    PSCMD="ps -e -o pid,command"
44022    PFILES="${PFILES} \
44023        platforms/suse/Makefile \
44024        platforms/suse/bacula-fd \
44025        platforms/suse/bacula-sd \
44026        platforms/suse/bacula-dir \
44027        platforms/suse/bacula \
44028        platforms/suse/bacula.spec"
44029   ;;
44030 suse5)
44031    DISTNAME=suse
44032    DISTVER=5.x
44033    TAPEDRIVE="/dev/nst0"
44034    PSCMD="ps -e -o pid,command"
44035    PFILES="${PFILES} \
44036        platforms/suse/Makefile \
44037        platforms/suse/bacula-fd \
44038        platforms/suse/bacula-sd \
44039        platforms/suse/bacula-dir"
44040   ;;
44041 unknown)
44042    DISTVER=unknown
44043    TAPEDRIVE="/dev/nst0"
44044   ;;
44045 *)
44046   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
44047   ;;
44048 esac
44049
44050
44051
44052 LIBS="$PTHREAD_LIB $LIBS"
44053
44054 cat >>confdefs.h <<_ACEOF
44055 #define lld "$lld"
44056 _ACEOF
44057
44058 cat >>confdefs.h <<_ACEOF
44059 #define llu "$llu"
44060 _ACEOF
44061
44062
44063
44064
44065
44066
44067
44068
44069 MCOMMON=./autoconf/Make.common
44070
44071
44072 if test "x${subsysdir}" = "x${sbindir}" ; then
44073    echo " "
44074    echo " "
44075    echo "You have set both --sbindir and --with-subsys-dir"
44076    echo "  equal to: ${subsysdir} "
44077    echo "This is not permitted. Please reconfigure."
44078    echo " "
44079    echo "Aborting configuration ..."
44080    echo " "
44081    echo " "
44082    exit 1
44083 fi
44084
44085 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 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/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 examples/nagios/check_bacula/Makefile $PFILES"
44086
44087 ac_config_commands="$ac_config_commands default"
44088
44089 cat >confcache <<\_ACEOF
44090 # This file is a shell script that caches the results of configure
44091 # tests run on this system so they can be shared between configure
44092 # scripts and configure runs, see configure's option --config-cache.
44093 # It is not useful on other systems.  If it contains results you don't
44094 # want to keep, you may remove or edit it.
44095 #
44096 # config.status only pays attention to the cache file if you give it
44097 # the --recheck option to rerun configure.
44098 #
44099 # `ac_cv_env_foo' variables (set or unset) will be overridden when
44100 # loading this file, other *unset* `ac_cv_foo' will be assigned the
44101 # following values.
44102
44103 _ACEOF
44104
44105 # The following way of writing the cache mishandles newlines in values,
44106 # but we know of no workaround that is simple, portable, and efficient.
44107 # So, we kill variables containing newlines.
44108 # Ultrix sh set writes to stderr and can't be redirected directly,
44109 # and sets the high bit in the cache file unless we assign to the vars.
44110 (
44111   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
44112     eval ac_val=\$$ac_var
44113     case $ac_val in #(
44114     *${as_nl}*)
44115       case $ac_var in #(
44116       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
44117 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
44118       esac
44119       case $ac_var in #(
44120       _ | IFS | as_nl) ;; #(
44121       *) $as_unset $ac_var ;;
44122       esac ;;
44123     esac
44124   done
44125
44126   (set) 2>&1 |
44127     case $as_nl`(ac_space=' '; set) 2>&1` in #(
44128     *${as_nl}ac_space=\ *)
44129       # `set' does not quote correctly, so add quotes (double-quote
44130       # substitution turns \\\\ into \\, and sed turns \\ into \).
44131       sed -n \
44132         "s/'/'\\\\''/g;
44133           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
44134       ;; #(
44135     *)
44136       # `set' quotes correctly as required by POSIX, so do not add quotes.
44137       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
44138       ;;
44139     esac |
44140     sort
44141 ) |
44142   sed '
44143      /^ac_cv_env_/b end
44144      t clear
44145      :clear
44146      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44147      t end
44148      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44149      :end' >>confcache
44150 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
44151   if test -w "$cache_file"; then
44152     test "x$cache_file" != "x/dev/null" &&
44153       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
44154 echo "$as_me: updating cache $cache_file" >&6;}
44155     cat confcache >$cache_file
44156   else
44157     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
44158 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
44159   fi
44160 fi
44161 rm -f confcache
44162
44163 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44164 # Let make expand exec_prefix.
44165 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44166
44167 DEFS=-DHAVE_CONFIG_H
44168
44169 ac_libobjs=
44170 ac_ltlibobjs=
44171 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44172   # 1. Remove the extension, and $U if already installed.
44173   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
44174   ac_i=`echo "$ac_i" | sed "$ac_script"`
44175   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
44176   #    will be set to the directory where LIBOBJS objects are built.
44177   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
44178   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
44179 done
44180 LIBOBJS=$ac_libobjs
44181
44182 LTLIBOBJS=$ac_ltlibobjs
44183
44184
44185
44186 : ${CONFIG_STATUS=./config.status}
44187 ac_clean_files_save=$ac_clean_files
44188 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44189 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44190 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44191 cat >$CONFIG_STATUS <<_ACEOF
44192 #! $SHELL
44193 # Generated by $as_me.
44194 # Run this file to recreate the current configuration.
44195 # Compiler output produced by configure, useful for debugging
44196 # configure, is in config.log if it exists.
44197
44198 debug=false
44199 ac_cs_recheck=false
44200 ac_cs_silent=false
44201 SHELL=\${CONFIG_SHELL-$SHELL}
44202 _ACEOF
44203
44204 cat >>$CONFIG_STATUS <<\_ACEOF
44205 ## --------------------- ##
44206 ## M4sh Initialization.  ##
44207 ## --------------------- ##
44208
44209 # Be more Bourne compatible
44210 DUALCASE=1; export DUALCASE # for MKS sh
44211 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44212   emulate sh
44213   NULLCMD=:
44214   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44215   # is contrary to our usage.  Disable this feature.
44216   alias -g '${1+"$@"}'='"$@"'
44217   setopt NO_GLOB_SUBST
44218 else
44219   case `(set -o) 2>/dev/null` in
44220   *posix*) set -o posix ;;
44221 esac
44222
44223 fi
44224
44225
44226
44227
44228 # PATH needs CR
44229 # Avoid depending upon Character Ranges.
44230 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44231 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44232 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44233 as_cr_digits='0123456789'
44234 as_cr_alnum=$as_cr_Letters$as_cr_digits
44235
44236 # The user is always right.
44237 if test "${PATH_SEPARATOR+set}" != set; then
44238   echo "#! /bin/sh" >conf$$.sh
44239   echo  "exit 0"   >>conf$$.sh
44240   chmod +x conf$$.sh
44241   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44242     PATH_SEPARATOR=';'
44243   else
44244     PATH_SEPARATOR=:
44245   fi
44246   rm -f conf$$.sh
44247 fi
44248
44249 # Support unset when possible.
44250 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44251   as_unset=unset
44252 else
44253   as_unset=false
44254 fi
44255
44256
44257 # IFS
44258 # We need space, tab and new line, in precisely that order.  Quoting is
44259 # there to prevent editors from complaining about space-tab.
44260 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
44261 # splitting by setting IFS to empty value.)
44262 as_nl='
44263 '
44264 IFS=" ""        $as_nl"
44265
44266 # Find who we are.  Look in the path if we contain no directory separator.
44267 case $0 in
44268   *[\\/]* ) as_myself=$0 ;;
44269   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44270 for as_dir in $PATH
44271 do
44272   IFS=$as_save_IFS
44273   test -z "$as_dir" && as_dir=.
44274   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44275 done
44276 IFS=$as_save_IFS
44277
44278      ;;
44279 esac
44280 # We did not find ourselves, most probably we were run as `sh COMMAND'
44281 # in which case we are not to be found in the path.
44282 if test "x$as_myself" = x; then
44283   as_myself=$0
44284 fi
44285 if test ! -f "$as_myself"; then
44286   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
44287   { (exit 1); exit 1; }
44288 fi
44289
44290 # Work around bugs in pre-3.0 UWIN ksh.
44291 for as_var in ENV MAIL MAILPATH
44292 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44293 done
44294 PS1='$ '
44295 PS2='> '
44296 PS4='+ '
44297
44298 # NLS nuisances.
44299 for as_var in \
44300   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44301   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44302   LC_TELEPHONE LC_TIME
44303 do
44304   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44305     eval $as_var=C; export $as_var
44306   else
44307     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44308   fi
44309 done
44310
44311 # Required to use basename.
44312 if expr a : '\(a\)' >/dev/null 2>&1 &&
44313    test "X`expr 00001 : '.*\(...\)'`" = X001; then
44314   as_expr=expr
44315 else
44316   as_expr=false
44317 fi
44318
44319 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
44320   as_basename=basename
44321 else
44322   as_basename=false
44323 fi
44324
44325
44326 # Name of the executable.
44327 as_me=`$as_basename -- "$0" ||
44328 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44329          X"$0" : 'X\(//\)$' \| \
44330          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
44331 echo X/"$0" |
44332     sed '/^.*\/\([^/][^/]*\)\/*$/{
44333             s//\1/
44334             q
44335           }
44336           /^X\/\(\/\/\)$/{
44337             s//\1/
44338             q
44339           }
44340           /^X\/\(\/\).*/{
44341             s//\1/
44342             q
44343           }
44344           s/.*/./; q'`
44345
44346 # CDPATH.
44347 $as_unset CDPATH
44348
44349
44350
44351   as_lineno_1=$LINENO
44352   as_lineno_2=$LINENO
44353   test "x$as_lineno_1" != "x$as_lineno_2" &&
44354   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
44355
44356   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44357   # uniformly replaced by the line number.  The first 'sed' inserts a
44358   # line-number line after each line using $LINENO; the second 'sed'
44359   # does the real work.  The second script uses 'N' to pair each
44360   # line-number line with the line containing $LINENO, and appends
44361   # trailing '-' during substitution so that $LINENO is not a special
44362   # case at line end.
44363   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44364   # scripts with optimization help from Paolo Bonzini.  Blame Lee
44365   # E. McMahon (1931-1989) for sed's syntax.  :-)
44366   sed -n '
44367     p
44368     /[$]LINENO/=
44369   ' <$as_myself |
44370     sed '
44371       s/[$]LINENO.*/&-/
44372       t lineno
44373       b
44374       :lineno
44375       N
44376       :loop
44377       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
44378       t loop
44379       s/-\n.*//
44380     ' >$as_me.lineno &&
44381   chmod +x "$as_me.lineno" ||
44382     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
44383    { (exit 1); exit 1; }; }
44384
44385   # Don't try to exec as it changes $[0], causing all sort of problems
44386   # (the dirname of $[0] is not the place where we might find the
44387   # original and so on.  Autoconf is especially sensitive to this).
44388   . "./$as_me.lineno"
44389   # Exit status is that of the last command.
44390   exit
44391 }
44392
44393
44394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
44395   as_dirname=dirname
44396 else
44397   as_dirname=false
44398 fi
44399
44400 ECHO_C= ECHO_N= ECHO_T=
44401 case `echo -n x` in
44402 -n*)
44403   case `echo 'x\c'` in
44404   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
44405   *)   ECHO_C='\c';;
44406   esac;;
44407 *)
44408   ECHO_N='-n';;
44409 esac
44410
44411 if expr a : '\(a\)' >/dev/null 2>&1 &&
44412    test "X`expr 00001 : '.*\(...\)'`" = X001; then
44413   as_expr=expr
44414 else
44415   as_expr=false
44416 fi
44417
44418 rm -f conf$$ conf$$.exe conf$$.file
44419 if test -d conf$$.dir; then
44420   rm -f conf$$.dir/conf$$.file
44421 else
44422   rm -f conf$$.dir
44423   mkdir conf$$.dir
44424 fi
44425 echo >conf$$.file
44426 if ln -s conf$$.file conf$$ 2>/dev/null; then
44427   as_ln_s='ln -s'
44428   # ... but there are two gotchas:
44429   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
44430   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
44431   # In both cases, we have to default to `cp -p'.
44432   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
44433     as_ln_s='cp -p'
44434 elif ln conf$$.file conf$$ 2>/dev/null; then
44435   as_ln_s=ln
44436 else
44437   as_ln_s='cp -p'
44438 fi
44439 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
44440 rmdir conf$$.dir 2>/dev/null
44441
44442 if mkdir -p . 2>/dev/null; then
44443   as_mkdir_p=:
44444 else
44445   test -d ./-p && rmdir ./-p
44446   as_mkdir_p=false
44447 fi
44448
44449 if test -x / >/dev/null 2>&1; then
44450   as_test_x='test -x'
44451 else
44452   if ls -dL / >/dev/null 2>&1; then
44453     as_ls_L_option=L
44454   else
44455     as_ls_L_option=
44456   fi
44457   as_test_x='
44458     eval sh -c '\''
44459       if test -d "$1"; then
44460         test -d "$1/.";
44461       else
44462         case $1 in
44463         -*)set "./$1";;
44464         esac;
44465         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
44466         ???[sx]*):;;*)false;;esac;fi
44467     '\'' sh
44468   '
44469 fi
44470 as_executable_p=$as_test_x
44471
44472 # Sed expression to map a string onto a valid CPP name.
44473 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
44474
44475 # Sed expression to map a string onto a valid variable name.
44476 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
44477
44478
44479 exec 6>&1
44480
44481 # Save the log message, to keep $[0] and so on meaningful, and to
44482 # report actual input values of CONFIG_FILES etc. instead of their
44483 # values after options handling.
44484 ac_log="
44485 This file was extended by $as_me, which was
44486 generated by GNU Autoconf 2.61.  Invocation command line was
44487
44488   CONFIG_FILES    = $CONFIG_FILES
44489   CONFIG_HEADERS  = $CONFIG_HEADERS
44490   CONFIG_LINKS    = $CONFIG_LINKS
44491   CONFIG_COMMANDS = $CONFIG_COMMANDS
44492   $ $0 $@
44493
44494 on `(hostname || uname -n) 2>/dev/null | sed 1q`
44495 "
44496
44497 _ACEOF
44498
44499 cat >>$CONFIG_STATUS <<_ACEOF
44500 # Files that config.status was made for.
44501 config_files="$ac_config_files"
44502 config_headers="$ac_config_headers"
44503 config_commands="$ac_config_commands"
44504
44505 _ACEOF
44506
44507 cat >>$CONFIG_STATUS <<\_ACEOF
44508 ac_cs_usage="\
44509 \`$as_me' instantiates files from templates according to the
44510 current configuration.
44511
44512 Usage: $0 [OPTIONS] [FILE]...
44513
44514   -h, --help       print this help, then exit
44515   -V, --version    print version number and configuration settings, then exit
44516   -q, --quiet      do not print progress messages
44517   -d, --debug      don't remove temporary files
44518       --recheck    update $as_me by reconfiguring in the same conditions
44519   --file=FILE[:TEMPLATE]
44520                    instantiate the configuration file FILE
44521   --header=FILE[:TEMPLATE]
44522                    instantiate the configuration header FILE
44523
44524 Configuration files:
44525 $config_files
44526
44527 Configuration headers:
44528 $config_headers
44529
44530 Configuration commands:
44531 $config_commands
44532
44533 Report bugs to <bug-autoconf@gnu.org>."
44534
44535 _ACEOF
44536 cat >>$CONFIG_STATUS <<_ACEOF
44537 ac_cs_version="\\
44538 config.status
44539 configured by $0, generated by GNU Autoconf 2.61,
44540   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
44541
44542 Copyright (C) 2006 Free Software Foundation, Inc.
44543 This config.status script is free software; the Free Software Foundation
44544 gives unlimited permission to copy, distribute and modify it."
44545
44546 ac_pwd='$ac_pwd'
44547 srcdir='$srcdir'
44548 INSTALL='$INSTALL'
44549 _ACEOF
44550
44551 cat >>$CONFIG_STATUS <<\_ACEOF
44552 # If no file are specified by the user, then we need to provide default
44553 # value.  By we need to know if files were specified by the user.
44554 ac_need_defaults=:
44555 while test $# != 0
44556 do
44557   case $1 in
44558   --*=*)
44559     ac_option=`expr "X$1" : 'X\([^=]*\)='`
44560     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
44561     ac_shift=:
44562     ;;
44563   *)
44564     ac_option=$1
44565     ac_optarg=$2
44566     ac_shift=shift
44567     ;;
44568   esac
44569
44570   case $ac_option in
44571   # Handling of the options.
44572   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44573     ac_cs_recheck=: ;;
44574   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
44575     echo "$ac_cs_version"; exit ;;
44576   --debug | --debu | --deb | --de | --d | -d )
44577     debug=: ;;
44578   --file | --fil | --fi | --f )
44579     $ac_shift
44580     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44581     ac_need_defaults=false;;
44582   --header | --heade | --head | --hea )
44583     $ac_shift
44584     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44585     ac_need_defaults=false;;
44586   --he | --h)
44587     # Conflict between --help and --header
44588     { echo "$as_me: error: ambiguous option: $1
44589 Try \`$0 --help' for more information." >&2
44590    { (exit 1); exit 1; }; };;
44591   --help | --hel | -h )
44592     echo "$ac_cs_usage"; exit ;;
44593   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44594   | -silent | --silent | --silen | --sile | --sil | --si | --s)
44595     ac_cs_silent=: ;;
44596
44597   # This is an error.
44598   -*) { echo "$as_me: error: unrecognized option: $1
44599 Try \`$0 --help' for more information." >&2
44600    { (exit 1); exit 1; }; } ;;
44601
44602   *) ac_config_targets="$ac_config_targets $1"
44603      ac_need_defaults=false ;;
44604
44605   esac
44606   shift
44607 done
44608
44609 ac_configure_extra_args=
44610
44611 if $ac_cs_silent; then
44612   exec 6>/dev/null
44613   ac_configure_extra_args="$ac_configure_extra_args --silent"
44614 fi
44615
44616 _ACEOF
44617 cat >>$CONFIG_STATUS <<_ACEOF
44618 if \$ac_cs_recheck; then
44619   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44620   CONFIG_SHELL=$SHELL
44621   export CONFIG_SHELL
44622   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44623 fi
44624
44625 _ACEOF
44626 cat >>$CONFIG_STATUS <<\_ACEOF
44627 exec 5>>config.log
44628 {
44629   echo
44630   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44631 ## Running $as_me. ##
44632 _ASBOX
44633   echo "$ac_log"
44634 } >&5
44635
44636 _ACEOF
44637 cat >>$CONFIG_STATUS <<_ACEOF
44638 #
44639 # INIT-COMMANDS
44640 #
44641
44642
44643 # The HP-UX ksh and POSIX shell print the target directory to stdout
44644 # if CDPATH is set.
44645 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
44646
44647 sed_quote_subst='$sed_quote_subst'
44648 double_quote_subst='$double_quote_subst'
44649 delay_variable_subst='$delay_variable_subst'
44650 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
44651 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
44652 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
44653 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
44654 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
44655 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
44656 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
44657 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
44658 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
44659 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
44660 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
44661 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
44662 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
44663 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
44664 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
44665 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
44666 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
44667 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
44668 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
44669 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
44670 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
44671 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
44672 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
44673 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
44674 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
44675 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
44676 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
44677 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44678 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
44679 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
44680 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
44681 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
44682 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44683 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
44684 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
44685 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44686 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44687 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44688 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
44689 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44690 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
44691 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
44692 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
44693 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
44694 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"`'
44695 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"`'
44696 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
44697 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
44698 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
44699 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
44700 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
44701 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
44702 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
44703 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
44704 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
44705 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
44706 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
44707 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
44708 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
44709 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
44710 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
44711 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
44712 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44713 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44714 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
44715 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
44716 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44717 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44718 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
44719 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44720 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44721 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44722 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44723 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44724 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44725 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
44726 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44727 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44728 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44729 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
44730 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
44731 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
44732 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
44733 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
44734 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44735 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
44736 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
44737 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
44738 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
44739 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
44740 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44741 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44742 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44743 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44744 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
44745 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
44746 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
44747 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
44748 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
44749 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44750 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44751 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
44752 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44753 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
44754 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44755 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44756 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44757 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44758 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
44759 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
44760 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44761 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44762 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
44763 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
44764 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
44765 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
44766 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
44767 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
44768 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
44769 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44770 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44771 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
44772 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
44773 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
44774 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44775 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44776 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44777 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44778 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44779 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44780 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44781 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44782 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44783 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44784 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44785 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44786 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44787 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44788 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44789 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44790 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44791 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44792 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44793 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44794 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44795 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44796 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44797 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44798 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44799 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44800 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44801 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44802 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44803 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44804 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44805 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44806 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44807 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44808 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44809 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44810 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44811 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44812 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44813 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44814 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44815 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44816 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44817 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44818 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44819 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44820 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44821
44822 LTCC='$LTCC'
44823 LTCFLAGS='$LTCFLAGS'
44824 compiler='$compiler_DEFAULT'
44825
44826 # Quote evaled strings.
44827 for var in SED \
44828 GREP \
44829 EGREP \
44830 FGREP \
44831 LD \
44832 NM \
44833 LN_S \
44834 lt_SP2NL \
44835 lt_NL2SP \
44836 reload_flag \
44837 OBJDUMP \
44838 deplibs_check_method \
44839 file_magic_cmd \
44840 AR \
44841 AR_FLAGS \
44842 STRIP \
44843 RANLIB \
44844 CC \
44845 CFLAGS \
44846 compiler \
44847 lt_cv_sys_global_symbol_pipe \
44848 lt_cv_sys_global_symbol_to_cdecl \
44849 lt_cv_sys_global_symbol_to_c_name_address \
44850 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
44851 SHELL \
44852 ECHO \
44853 lt_prog_compiler_no_builtin_flag \
44854 lt_prog_compiler_wl \
44855 lt_prog_compiler_pic \
44856 lt_prog_compiler_static \
44857 lt_cv_prog_compiler_c_o \
44858 need_locks \
44859 DSYMUTIL \
44860 NMEDIT \
44861 LIPO \
44862 OTOOL \
44863 OTOOL64 \
44864 shrext_cmds \
44865 export_dynamic_flag_spec \
44866 whole_archive_flag_spec \
44867 compiler_needs_object \
44868 with_gnu_ld \
44869 allow_undefined_flag \
44870 no_undefined_flag \
44871 hardcode_libdir_flag_spec \
44872 hardcode_libdir_flag_spec_ld \
44873 hardcode_libdir_separator \
44874 fix_srcfile_path \
44875 exclude_expsyms \
44876 include_expsyms \
44877 file_list_spec \
44878 variables_saved_for_relink \
44879 libname_spec \
44880 library_names_spec \
44881 soname_spec \
44882 finish_eval \
44883 old_striplib \
44884 striplib \
44885 compiler_lib_search_dirs \
44886 predep_objects \
44887 postdep_objects \
44888 predeps \
44889 postdeps \
44890 compiler_lib_search_path \
44891 LD_CXX \
44892 compiler_CXX \
44893 lt_prog_compiler_no_builtin_flag_CXX \
44894 lt_prog_compiler_wl_CXX \
44895 lt_prog_compiler_pic_CXX \
44896 lt_prog_compiler_static_CXX \
44897 lt_cv_prog_compiler_c_o_CXX \
44898 export_dynamic_flag_spec_CXX \
44899 whole_archive_flag_spec_CXX \
44900 compiler_needs_object_CXX \
44901 with_gnu_ld_CXX \
44902 allow_undefined_flag_CXX \
44903 no_undefined_flag_CXX \
44904 hardcode_libdir_flag_spec_CXX \
44905 hardcode_libdir_flag_spec_ld_CXX \
44906 hardcode_libdir_separator_CXX \
44907 fix_srcfile_path_CXX \
44908 exclude_expsyms_CXX \
44909 include_expsyms_CXX \
44910 file_list_spec_CXX \
44911 compiler_lib_search_dirs_CXX \
44912 predep_objects_CXX \
44913 postdep_objects_CXX \
44914 predeps_CXX \
44915 postdeps_CXX \
44916 compiler_lib_search_path_CXX; do
44917     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44918     *[\\\\\\\`\\"\\\$]*)
44919       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
44920       ;;
44921     *)
44922       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44923       ;;
44924     esac
44925 done
44926
44927 # Double-quote double-evaled strings.
44928 for var in reload_cmds \
44929 old_postinstall_cmds \
44930 old_postuninstall_cmds \
44931 old_archive_cmds \
44932 extract_expsyms_cmds \
44933 old_archive_from_new_cmds \
44934 old_archive_from_expsyms_cmds \
44935 archive_cmds \
44936 archive_expsym_cmds \
44937 module_cmds \
44938 module_expsym_cmds \
44939 export_symbols_cmds \
44940 prelink_cmds \
44941 postinstall_cmds \
44942 postuninstall_cmds \
44943 finish_cmds \
44944 sys_lib_search_path_spec \
44945 sys_lib_dlsearch_path_spec \
44946 old_archive_cmds_CXX \
44947 old_archive_from_new_cmds_CXX \
44948 old_archive_from_expsyms_cmds_CXX \
44949 archive_cmds_CXX \
44950 archive_expsym_cmds_CXX \
44951 module_cmds_CXX \
44952 module_expsym_cmds_CXX \
44953 export_symbols_cmds_CXX \
44954 prelink_cmds_CXX; do
44955     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44956     *[\\\\\\\`\\"\\\$]*)
44957       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
44958       ;;
44959     *)
44960       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44961       ;;
44962     esac
44963 done
44964
44965 # Fix-up fallback echo if it was mangled by the above quoting rules.
44966 case \$lt_ECHO in
44967 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
44968   ;;
44969 esac
44970
44971 ac_aux_dir='$ac_aux_dir'
44972 xsi_shell='$xsi_shell'
44973 lt_shell_append='$lt_shell_append'
44974
44975 # See if we are running on zsh, and set the options which allow our
44976 # commands through without removal of \ escapes INIT.
44977 if test -n "\${ZSH_VERSION+set}" ; then
44978    setopt NO_GLOB_SUBST
44979 fi
44980
44981
44982     PACKAGE='$PACKAGE'
44983     VERSION='$VERSION'
44984     TIMESTAMP='$TIMESTAMP'
44985     RM='$RM'
44986     ofile='$ofile'
44987
44988
44989
44990
44991
44992 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
44993     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
44994     # from automake.
44995     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
44996     # Capture the value of LINGUAS because we need it to compute CATALOGS.
44997     LINGUAS="${LINGUAS-%UNSET%}"
44998
44999
45000 _ACEOF
45001
45002 cat >>$CONFIG_STATUS <<\_ACEOF
45003
45004 # Handling of arguments.
45005 for ac_config_target in $ac_config_targets
45006 do
45007   case $ac_config_target in
45008     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
45009     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
45010     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
45011     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
45012     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
45013     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
45014     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
45015     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
45016     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
45017     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
45018     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
45019     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
45020     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
45021     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
45022     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
45023     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
45024     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
45025     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
45026     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
45027     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
45028     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
45029     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
45030     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
45031     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
45032     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
45033     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
45034     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
45035     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
45036     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
45037     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
45038     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
45039     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
45040     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
45041     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
45042     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
45043     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
45044     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
45045     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
45046     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
45047     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
45048     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
45049     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
45050     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
45051     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
45052     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
45053     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
45054     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
45055     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
45056     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
45057     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
45058     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
45059     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
45060     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
45061     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
45062     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
45063     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
45064     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
45065     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
45066     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
45067     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
45068     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
45069     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
45070     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
45071     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
45072     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
45073     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
45074     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
45075     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
45076     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
45077     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
45078     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
45079     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
45080     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
45081     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
45082     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
45083     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
45084     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
45085     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
45086     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
45087     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
45088     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
45089     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
45090     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
45091     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
45092     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
45093     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
45094     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
45095     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
45096     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
45097     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
45098     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
45099     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
45100     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
45101     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
45102     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
45103     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
45104     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
45105     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
45106     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
45107     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
45108     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
45109     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
45110     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
45111     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
45112     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
45113     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
45114     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
45115     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
45116     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
45117     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
45118     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45119
45120   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45121 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45122    { (exit 1); exit 1; }; };;
45123   esac
45124 done
45125
45126
45127 # If the user did not use the arguments to specify the items to instantiate,
45128 # then the envvar interface is used.  Set only those that are not.
45129 # We use the long form for the default assignment because of an extremely
45130 # bizarre bug on SunOS 4.1.3.
45131 if $ac_need_defaults; then
45132   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45133   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45134   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45135 fi
45136
45137 # Have a temporary directory for convenience.  Make it in the build tree
45138 # simply because there is no reason against having it here, and in addition,
45139 # creating and moving files from /tmp can sometimes cause problems.
45140 # Hook for its removal unless debugging.
45141 # Note that there is a small window in which the directory will not be cleaned:
45142 # after its creation but before its name has been assigned to `$tmp'.
45143 $debug ||
45144 {
45145   tmp=
45146   trap 'exit_status=$?
45147   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
45148 ' 0
45149   trap '{ (exit 1); exit 1; }' 1 2 13 15
45150 }
45151 # Create a (secure) tmp directory for tmp files.
45152
45153 {
45154   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
45155   test -n "$tmp" && test -d "$tmp"
45156 }  ||
45157 {
45158   tmp=./conf$$-$RANDOM
45159   (umask 077 && mkdir "$tmp")
45160 } ||
45161 {
45162    echo "$me: cannot create a temporary directory in ." >&2
45163    { (exit 1); exit 1; }
45164 }
45165
45166 #
45167 # Set up the sed scripts for CONFIG_FILES section.
45168 #
45169
45170 # No need to generate the scripts if there are no CONFIG_FILES.
45171 # This happens for instance when ./config.status config.h
45172 if test -n "$CONFIG_FILES"; then
45173
45174 _ACEOF
45175
45176 # Create sed commands to just substitute file output variables.
45177
45178 # Remaining file output variables are in a fragment that also has non-file
45179 # output varibles.
45180
45181
45182
45183 ac_delim='%!_!# '
45184 for ac_last_try in false false false false false :; do
45185   cat >conf$$subs.sed <<_ACEOF
45186 SHELL!$SHELL$ac_delim
45187 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
45188 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
45189 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
45190 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
45191 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
45192 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
45193 exec_prefix!$exec_prefix$ac_delim
45194 prefix!$prefix$ac_delim
45195 program_transform_name!$program_transform_name$ac_delim
45196 bindir!$bindir$ac_delim
45197 sbindir!$sbindir$ac_delim
45198 libexecdir!$libexecdir$ac_delim
45199 datarootdir!$datarootdir$ac_delim
45200 datadir!$datadir$ac_delim
45201 sysconfdir!$sysconfdir$ac_delim
45202 sharedstatedir!$sharedstatedir$ac_delim
45203 localstatedir!$localstatedir$ac_delim
45204 includedir!$includedir$ac_delim
45205 oldincludedir!$oldincludedir$ac_delim
45206 docdir!$docdir$ac_delim
45207 infodir!$infodir$ac_delim
45208 htmldir!$htmldir$ac_delim
45209 dvidir!$dvidir$ac_delim
45210 pdfdir!$pdfdir$ac_delim
45211 psdir!$psdir$ac_delim
45212 libdir!$libdir$ac_delim
45213 localedir!$localedir$ac_delim
45214 mandir!$mandir$ac_delim
45215 DEFS!$DEFS$ac_delim
45216 ECHO_C!$ECHO_C$ac_delim
45217 ECHO_N!$ECHO_N$ac_delim
45218 ECHO_T!$ECHO_T$ac_delim
45219 LIBS!$LIBS$ac_delim
45220 build_alias!$build_alias$ac_delim
45221 host_alias!$host_alias$ac_delim
45222 target_alias!$target_alias$ac_delim
45223 BUILD_DIR!$BUILD_DIR$ac_delim
45224 TOP_DIR!$TOP_DIR$ac_delim
45225 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
45226 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
45227 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
45228 TRUEPRG!$TRUEPRG$ac_delim
45229 FALSEPRG!$FALSEPRG$ac_delim
45230 VERSION!$VERSION$ac_delim
45231 DATE!$DATE$ac_delim
45232 LSMDATE!$LSMDATE$ac_delim
45233 BACULA!$BACULA$ac_delim
45234 post_host!$post_host$ac_delim
45235 CC!$CC$ac_delim
45236 CFLAGS!$CFLAGS$ac_delim
45237 LDFLAGS!$LDFLAGS$ac_delim
45238 CPPFLAGS!$CPPFLAGS$ac_delim
45239 ac_ct_CC!$ac_ct_CC$ac_delim
45240 EXEEXT!$EXEEXT$ac_delim
45241 OBJEXT!$OBJEXT$ac_delim
45242 CXX!$CXX$ac_delim
45243 CXXFLAGS!$CXXFLAGS$ac_delim
45244 ac_ct_CXX!$ac_ct_CXX$ac_delim
45245 CPP!$CPP$ac_delim
45246 GREP!$GREP$ac_delim
45247 EGREP!$EGREP$ac_delim
45248 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
45249 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
45250 INSTALL_DATA!$INSTALL_DATA$ac_delim
45251 MV!$MV$ac_delim
45252 REMOVE!$REMOVE$ac_delim
45253 CP!$CP$ac_delim
45254 SED!$SED$ac_delim
45255 ECHO!$ECHO$ac_delim
45256 CMP!$CMP$ac_delim
45257 TBL!$TBL$ac_delim
45258 AR!$AR$ac_delim
45259 OPENSSL!$OPENSSL$ac_delim
45260 MTX!$MTX$ac_delim
45261 DD!$DD$ac_delim
45262 MKISOFS!$MKISOFS$ac_delim
45263 PYTHON!$PYTHON$ac_delim
45264 GROWISOFS!$GROWISOFS$ac_delim
45265 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
45266 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
45267 PKGCONFIG!$PKGCONFIG$ac_delim
45268 QMAKE!$QMAKE$ac_delim
45269 QMAKEQT4!$QMAKEQT4$ac_delim
45270 GMAKE!$GMAKE$ac_delim
45271 WXCONFIG!$WXCONFIG$ac_delim
45272 WXFLAGS!$WXFLAGS$ac_delim
45273 CDRECORD!$CDRECORD$ac_delim
45274 PIDOF!$PIDOF$ac_delim
45275 AWK!$AWK$ac_delim
45276 ARFLAGS!$ARFLAGS$ac_delim
45277 MAKE_SHELL!$MAKE_SHELL$ac_delim
45278 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
45279 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
45280 _ACEOF
45281
45282   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
45283     break
45284   elif $ac_last_try; then
45285     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45286 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45287    { (exit 1); exit 1; }; }
45288   else
45289     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45290   fi
45291 done
45292
45293 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45294 if test -n "$ac_eof"; then
45295   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45296   ac_eof=`expr $ac_eof + 1`
45297 fi
45298
45299 cat >>$CONFIG_STATUS <<_ACEOF
45300 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
45301 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45302 /^[      ]*@MCOMMON@[    ]*$/{
45303 r $MCOMMON
45304 d
45305 }
45306 _ACEOF
45307 sed '
45308 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45309 s/^/s,@/; s/!/@,|#_!!_#|/
45310 :n
45311 t n
45312 s/'"$ac_delim"'$/,g/; t
45313 s/$/\\/; p
45314 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45315 ' >>$CONFIG_STATUS <conf$$subs.sed
45316 rm -f conf$$subs.sed
45317 cat >>$CONFIG_STATUS <<_ACEOF
45318 CEOF$ac_eof
45319 _ACEOF
45320
45321
45322 ac_delim='%!_!# '
45323 for ac_last_try in false false false false false :; do
45324   cat >conf$$subs.sed <<_ACEOF
45325 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
45326 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
45327 LIBTOOL!$LIBTOOL$ac_delim
45328 build!$build$ac_delim
45329 build_cpu!$build_cpu$ac_delim
45330 build_vendor!$build_vendor$ac_delim
45331 build_os!$build_os$ac_delim
45332 host!$host$ac_delim
45333 host_cpu!$host_cpu$ac_delim
45334 host_vendor!$host_vendor$ac_delim
45335 host_os!$host_os$ac_delim
45336 FGREP!$FGREP$ac_delim
45337 LD!$LD$ac_delim
45338 DUMPBIN!$DUMPBIN$ac_delim
45339 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
45340 NM!$NM$ac_delim
45341 LN_S!$LN_S$ac_delim
45342 OBJDUMP!$OBJDUMP$ac_delim
45343 STRIP!$STRIP$ac_delim
45344 RANLIB!$RANLIB$ac_delim
45345 lt_ECHO!$lt_ECHO$ac_delim
45346 DSYMUTIL!$DSYMUTIL$ac_delim
45347 NMEDIT!$NMEDIT$ac_delim
45348 LIPO!$LIPO$ac_delim
45349 OTOOL!$OTOOL$ac_delim
45350 OTOOL64!$OTOOL64$ac_delim
45351 CXXCPP!$CXXCPP$ac_delim
45352 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
45353 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
45354 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
45355 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
45356 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
45357 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
45358 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
45359 FD_PLUGIN_DIR!$FD_PLUGIN_DIR$ac_delim
45360 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
45361 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
45362 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
45363 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
45364 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
45365 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
45366 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
45367 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
45368 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
45369 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
45370 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
45371 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
45372 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
45373 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
45374 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
45375 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
45376 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
45377 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
45378 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
45379 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
45380 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
45381 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
45382 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
45383 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
45384 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
45385 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
45386 SET_MAKE!$SET_MAKE$ac_delim
45387 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
45388 USE_NLS!$USE_NLS$ac_delim
45389 MSGFMT!$MSGFMT$ac_delim
45390 GMSGFMT!$GMSGFMT$ac_delim
45391 XGETTEXT!$XGETTEXT$ac_delim
45392 MSGMERGE!$MSGMERGE$ac_delim
45393 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
45394 LIBICONV!$LIBICONV$ac_delim
45395 LTLIBICONV!$LTLIBICONV$ac_delim
45396 INTLLIBS!$INTLLIBS$ac_delim
45397 LIBINTL!$LIBINTL$ac_delim
45398 LTLIBINTL!$LTLIBINTL$ac_delim
45399 POSUB!$POSUB$ac_delim
45400 GLIBC2!$GLIBC2$ac_delim
45401 ALLOCA!$ALLOCA$ac_delim
45402 GLIBC21!$GLIBC21$ac_delim
45403 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
45404 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
45405 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
45406 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
45407 INTLBISON!$INTLBISON$ac_delim
45408 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
45409 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
45410 CATOBJEXT!$CATOBJEXT$ac_delim
45411 DATADIRNAME!$DATADIRNAME$ac_delim
45412 INSTOBJEXT!$INSTOBJEXT$ac_delim
45413 GENCAT!$GENCAT$ac_delim
45414 INTLOBJS!$INTLOBJS$ac_delim
45415 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
45416 BAT_DIR!$BAT_DIR$ac_delim
45417 QWT_INC!$QWT_INC$ac_delim
45418 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
45419 QWT_LIB!$QWT_LIB$ac_delim
45420 QWT!$QWT$ac_delim
45421 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
45422 _ACEOF
45423
45424   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45425     break
45426   elif $ac_last_try; then
45427     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45428 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45429    { (exit 1); exit 1; }; }
45430   else
45431     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45432   fi
45433 done
45434
45435 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45436 if test -n "$ac_eof"; then
45437   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45438   ac_eof=`expr $ac_eof + 1`
45439 fi
45440
45441 cat >>$CONFIG_STATUS <<_ACEOF
45442 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
45443 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45444 _ACEOF
45445 sed '
45446 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45447 s/^/s,@/; s/!/@,|#_!!_#|/
45448 :n
45449 t n
45450 s/'"$ac_delim"'$/,g/; t
45451 s/$/\\/; p
45452 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45453 ' >>$CONFIG_STATUS <conf$$subs.sed
45454 rm -f conf$$subs.sed
45455 cat >>$CONFIG_STATUS <<_ACEOF
45456 CEOF$ac_eof
45457 _ACEOF
45458
45459
45460 ac_delim='%!_!# '
45461 for ac_last_try in false false false false false :; do
45462   cat >conf$$subs.sed <<_ACEOF
45463 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
45464 WX_DIR!$WX_DIR$ac_delim
45465 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
45466 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
45467 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
45468 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
45469 STATIC_FD!$STATIC_FD$ac_delim
45470 STATIC_SD!$STATIC_SD$ac_delim
45471 STATIC_DIR!$STATIC_DIR$ac_delim
45472 STATIC_CONS!$STATIC_CONS$ac_delim
45473 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
45474 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
45475 ALL_DIRS!$ALL_DIRS$ac_delim
45476 DIRD_DIR!$DIRD_DIR$ac_delim
45477 DIR_TOOLS!$DIR_TOOLS$ac_delim
45478 STORED_DIR!$STORED_DIR$ac_delim
45479 CONS_INC!$CONS_INC$ac_delim
45480 CONS_OBJ!$CONS_OBJ$ac_delim
45481 CONS_SRC!$CONS_SRC$ac_delim
45482 CONS_LIBS!$CONS_LIBS$ac_delim
45483 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
45484 READLINE_SRC!$READLINE_SRC$ac_delim
45485 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
45486 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
45487 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
45488 OPENSSL_INC!$OPENSSL_INC$ac_delim
45489 working_dir!$working_dir$ac_delim
45490 archivedir!$archivedir$ac_delim
45491 basename!$basename$ac_delim
45492 hostname!$hostname$ac_delim
45493 scriptdir!$scriptdir$ac_delim
45494 bsrdir!$bsrdir$ac_delim
45495 logdir!$logdir$ac_delim
45496 plugindir!$plugindir$ac_delim
45497 dump_email!$dump_email$ac_delim
45498 job_email!$job_email$ac_delim
45499 smtp_host!$smtp_host$ac_delim
45500 piddir!$piddir$ac_delim
45501 subsysdir!$subsysdir$ac_delim
45502 baseport!$baseport$ac_delim
45503 dir_port!$dir_port$ac_delim
45504 fd_port!$fd_port$ac_delim
45505 sd_port!$sd_port$ac_delim
45506 dir_password!$dir_password$ac_delim
45507 fd_password!$fd_password$ac_delim
45508 sd_password!$sd_password$ac_delim
45509 mon_dir_password!$mon_dir_password$ac_delim
45510 mon_fd_password!$mon_fd_password$ac_delim
45511 mon_sd_password!$mon_sd_password$ac_delim
45512 db_name!$db_name$ac_delim
45513 db_user!$db_user$ac_delim
45514 db_password!$db_password$ac_delim
45515 db_port!$db_port$ac_delim
45516 dir_user!$dir_user$ac_delim
45517 dir_group!$dir_group$ac_delim
45518 sd_user!$sd_user$ac_delim
45519 sd_group!$sd_group$ac_delim
45520 fd_user!$fd_user$ac_delim
45521 fd_group!$fd_group$ac_delim
45522 SBINPERM!$SBINPERM$ac_delim
45523 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
45524 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
45525 SQL_BINDIR!$SQL_BINDIR$ac_delim
45526 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
45527 uncomment_dbi!$uncomment_dbi$ac_delim
45528 DB_PROG!$DB_PROG$ac_delim
45529 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
45530 cats!$cats$ac_delim
45531 DB_TYPE!$DB_TYPE$ac_delim
45532 GETCONF!$GETCONF$ac_delim
45533 XMKMF!$XMKMF$ac_delim
45534 X_CFLAGS!$X_CFLAGS$ac_delim
45535 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
45536 X_LIBS!$X_LIBS$ac_delim
45537 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
45538 LIBOBJS!$LIBOBJS$ac_delim
45539 CAP_LIBS!$CAP_LIBS$ac_delim
45540 FDLIBS!$FDLIBS$ac_delim
45541 DEBUG!$DEBUG$ac_delim
45542 DINCLUDE!$DINCLUDE$ac_delim
45543 DLIB!$DLIB$ac_delim
45544 DB_LIBS!$DB_LIBS$ac_delim
45545 WCFLAGS!$WCFLAGS$ac_delim
45546 WLDFLAGS!$WLDFLAGS$ac_delim
45547 WRAPLIBS!$WRAPLIBS$ac_delim
45548 OBJLIST!$OBJLIST$ac_delim
45549 TAPEDRIVE!$TAPEDRIVE$ac_delim
45550 PSCMD!$PSCMD$ac_delim
45551 WIN32!$WIN32$ac_delim
45552 MACOSX!$MACOSX$ac_delim
45553 DISTNAME!$DISTNAME$ac_delim
45554 DISTVER!$DISTVER$ac_delim
45555 LTLIBOBJS!$LTLIBOBJS$ac_delim
45556 _ACEOF
45557
45558   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
45559     break
45560   elif $ac_last_try; then
45561     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45562 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45563    { (exit 1); exit 1; }; }
45564   else
45565     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45566   fi
45567 done
45568
45569 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45570 if test -n "$ac_eof"; then
45571   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45572   ac_eof=`expr $ac_eof + 1`
45573 fi
45574
45575 cat >>$CONFIG_STATUS <<_ACEOF
45576 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
45577 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
45578 _ACEOF
45579 sed '
45580 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45581 s/^/s,@/; s/!/@,|#_!!_#|/
45582 :n
45583 t n
45584 s/'"$ac_delim"'$/,g/; t
45585 s/$/\\/; p
45586 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45587 ' >>$CONFIG_STATUS <conf$$subs.sed
45588 rm -f conf$$subs.sed
45589 cat >>$CONFIG_STATUS <<_ACEOF
45590 :end
45591 s/|#_!!_#|//g
45592 CEOF$ac_eof
45593 _ACEOF
45594
45595
45596 # VPATH may cause trouble with some makes, so we remove $(srcdir),
45597 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45598 # trailing colons and then remove the whole line if VPATH becomes empty
45599 # (actually we leave an empty line to preserve line numbers).
45600 if test "x$srcdir" = x.; then
45601   ac_vpsub='/^[  ]*VPATH[        ]*=/{
45602 s/:*\$(srcdir):*/:/
45603 s/:*\${srcdir}:*/:/
45604 s/:*@srcdir@:*/:/
45605 s/^\([^=]*=[     ]*\):*/\1/
45606 s/:*$//
45607 s/^[^=]*=[       ]*$//
45608 }'
45609 fi
45610
45611 cat >>$CONFIG_STATUS <<\_ACEOF
45612 fi # test -n "$CONFIG_FILES"
45613
45614
45615 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
45616 do
45617   case $ac_tag in
45618   :[FHLC]) ac_mode=$ac_tag; continue;;
45619   esac
45620   case $ac_mode$ac_tag in
45621   :[FHL]*:*);;
45622   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
45623 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
45624    { (exit 1); exit 1; }; };;
45625   :[FH]-) ac_tag=-:-;;
45626   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
45627   esac
45628   ac_save_IFS=$IFS
45629   IFS=:
45630   set x $ac_tag
45631   IFS=$ac_save_IFS
45632   shift
45633   ac_file=$1
45634   shift
45635
45636   case $ac_mode in
45637   :L) ac_source=$1;;
45638   :[FH])
45639     ac_file_inputs=
45640     for ac_f
45641     do
45642       case $ac_f in
45643       -) ac_f="$tmp/stdin";;
45644       *) # Look for the file first in the build tree, then in the source tree
45645          # (if the path is not absolute).  The absolute path cannot be DOS-style,
45646          # because $ac_f cannot contain `:'.
45647          test -f "$ac_f" ||
45648            case $ac_f in
45649            [\\/$]*) false;;
45650            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
45651            esac ||
45652            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
45653 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
45654    { (exit 1); exit 1; }; };;
45655       esac
45656       ac_file_inputs="$ac_file_inputs $ac_f"
45657     done
45658
45659     # Let's still pretend it is `configure' which instantiates (i.e., don't
45660     # use $as_me), people would be surprised to read:
45661     #    /* config.h.  Generated by config.status.  */
45662     configure_input="Generated from "`IFS=:
45663           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
45664     if test x"$ac_file" != x-; then
45665       configure_input="$ac_file.  $configure_input"
45666       { echo "$as_me:$LINENO: creating $ac_file" >&5
45667 echo "$as_me: creating $ac_file" >&6;}
45668     fi
45669
45670     case $ac_tag in
45671     *:-:* | *:-) cat >"$tmp/stdin";;
45672     esac
45673     ;;
45674   esac
45675
45676   ac_dir=`$as_dirname -- "$ac_file" ||
45677 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45678          X"$ac_file" : 'X\(//\)[^/]' \| \
45679          X"$ac_file" : 'X\(//\)$' \| \
45680          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
45681 echo X"$ac_file" |
45682     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45683             s//\1/
45684             q
45685           }
45686           /^X\(\/\/\)[^/].*/{
45687             s//\1/
45688             q
45689           }
45690           /^X\(\/\/\)$/{
45691             s//\1/
45692             q
45693           }
45694           /^X\(\/\).*/{
45695             s//\1/
45696             q
45697           }
45698           s/.*/./; q'`
45699   { as_dir="$ac_dir"
45700   case $as_dir in #(
45701   -*) as_dir=./$as_dir;;
45702   esac
45703   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
45704     as_dirs=
45705     while :; do
45706       case $as_dir in #(
45707       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
45708       *) as_qdir=$as_dir;;
45709       esac
45710       as_dirs="'$as_qdir' $as_dirs"
45711       as_dir=`$as_dirname -- "$as_dir" ||
45712 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45713          X"$as_dir" : 'X\(//\)[^/]' \| \
45714          X"$as_dir" : 'X\(//\)$' \| \
45715          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45716 echo X"$as_dir" |
45717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45718             s//\1/
45719             q
45720           }
45721           /^X\(\/\/\)[^/].*/{
45722             s//\1/
45723             q
45724           }
45725           /^X\(\/\/\)$/{
45726             s//\1/
45727             q
45728           }
45729           /^X\(\/\).*/{
45730             s//\1/
45731             q
45732           }
45733           s/.*/./; q'`
45734       test -d "$as_dir" && break
45735     done
45736     test -z "$as_dirs" || eval "mkdir $as_dirs"
45737   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
45738 echo "$as_me: error: cannot create directory $as_dir" >&2;}
45739    { (exit 1); exit 1; }; }; }
45740   ac_builddir=.
45741
45742 case "$ac_dir" in
45743 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
45744 *)
45745   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45746   # A ".." for each directory in $ac_dir_suffix.
45747   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
45748   case $ac_top_builddir_sub in
45749   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
45750   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
45751   esac ;;
45752 esac
45753 ac_abs_top_builddir=$ac_pwd
45754 ac_abs_builddir=$ac_pwd$ac_dir_suffix
45755 # for backward compatibility:
45756 ac_top_builddir=$ac_top_build_prefix
45757
45758 case $srcdir in
45759   .)  # We are building in place.
45760     ac_srcdir=.
45761     ac_top_srcdir=$ac_top_builddir_sub
45762     ac_abs_top_srcdir=$ac_pwd ;;
45763   [\\/]* | ?:[\\/]* )  # Absolute name.
45764     ac_srcdir=$srcdir$ac_dir_suffix;
45765     ac_top_srcdir=$srcdir
45766     ac_abs_top_srcdir=$srcdir ;;
45767   *) # Relative name.
45768     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
45769     ac_top_srcdir=$ac_top_build_prefix$srcdir
45770     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
45771 esac
45772 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
45773
45774
45775   case $ac_mode in
45776   :F)
45777   #
45778   # CONFIG_FILE
45779   #
45780
45781   case $INSTALL in
45782   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45783   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
45784   esac
45785 _ACEOF
45786
45787 cat >>$CONFIG_STATUS <<\_ACEOF
45788 # If the template does not know about datarootdir, expand it.
45789 # FIXME: This hack should be removed a few years after 2.60.
45790 ac_datarootdir_hack=; ac_datarootdir_seen=
45791
45792 case `sed -n '/datarootdir/ {
45793   p
45794   q
45795 }
45796 /@datadir@/p
45797 /@docdir@/p
45798 /@infodir@/p
45799 /@localedir@/p
45800 /@mandir@/p
45801 ' $ac_file_inputs` in
45802 *datarootdir*) ac_datarootdir_seen=yes;;
45803 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
45804   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
45805 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
45806 _ACEOF
45807 cat >>$CONFIG_STATUS <<_ACEOF
45808   ac_datarootdir_hack='
45809   s&@datadir@&$datadir&g
45810   s&@docdir@&$docdir&g
45811   s&@infodir@&$infodir&g
45812   s&@localedir@&$localedir&g
45813   s&@mandir@&$mandir&g
45814     s&\\\${datarootdir}&$datarootdir&g' ;;
45815 esac
45816 _ACEOF
45817
45818 # Neutralize VPATH when `$srcdir' = `.'.
45819 # Shell code in configure.ac might set extrasub.
45820 # FIXME: do we really want to maintain this feature?
45821 cat >>$CONFIG_STATUS <<_ACEOF
45822   sed "$ac_vpsub
45823 $extrasub
45824 _ACEOF
45825 cat >>$CONFIG_STATUS <<\_ACEOF
45826 :t
45827 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45828 s&@configure_input@&$configure_input&;t t
45829 s&@top_builddir@&$ac_top_builddir_sub&;t t
45830 s&@srcdir@&$ac_srcdir&;t t
45831 s&@abs_srcdir@&$ac_abs_srcdir&;t t
45832 s&@top_srcdir@&$ac_top_srcdir&;t t
45833 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
45834 s&@builddir@&$ac_builddir&;t t
45835 s&@abs_builddir@&$ac_abs_builddir&;t t
45836 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
45837 s&@INSTALL@&$ac_INSTALL&;t t
45838 $ac_datarootdir_hack
45839 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
45840
45841 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
45842   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
45843   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
45844   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45845 which seems to be undefined.  Please make sure it is defined." >&5
45846 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45847 which seems to be undefined.  Please make sure it is defined." >&2;}
45848
45849   rm -f "$tmp/stdin"
45850   case $ac_file in
45851   -) cat "$tmp/out"; rm -f "$tmp/out";;
45852   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
45853   esac
45854  ;;
45855   :H)
45856   #
45857   # CONFIG_HEADER
45858   #
45859 _ACEOF
45860
45861 # Transform confdefs.h into a sed script `conftest.defines', that
45862 # substitutes the proper values into config.h.in to produce config.h.
45863 rm -f conftest.defines conftest.tail
45864 # First, append a space to every undef/define line, to ease matching.
45865 echo 's/$/ /' >conftest.defines
45866 # Then, protect against being on the right side of a sed subst, or in
45867 # an unquoted here document, in config.status.  If some macros were
45868 # called several times there might be several #defines for the same
45869 # symbol, which is useless.  But do not sort them, since the last
45870 # AC_DEFINE must be honored.
45871 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
45872 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
45873 # NAME is the cpp macro being defined, VALUE is the value it is being given.
45874 # PARAMS is the parameter list in the macro definition--in most cases, it's
45875 # just an empty string.
45876 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
45877 ac_dB='\\)[      (].*,\\1define\\2'
45878 ac_dC=' '
45879 ac_dD=' ,'
45880
45881 uniq confdefs.h |
45882   sed -n '
45883         t rset
45884         :rset
45885         s/^[     ]*#[    ]*define[       ][      ]*//
45886         t ok
45887         d
45888         :ok
45889         s/[\\&,]/\\&/g
45890         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
45891         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
45892   ' >>conftest.defines
45893
45894 # Remove the space that was appended to ease matching.
45895 # Then replace #undef with comments.  This is necessary, for
45896 # example, in the case of _POSIX_SOURCE, which is predefined and required
45897 # on some systems where configure will not decide to define it.
45898 # (The regexp can be short, since the line contains either #define or #undef.)
45899 echo 's/ $//
45900 s,^[     #]*u.*,/* & */,' >>conftest.defines
45901
45902 # Break up conftest.defines:
45903 ac_max_sed_lines=50
45904
45905 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
45906 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
45907 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
45908 # et cetera.
45909 ac_in='$ac_file_inputs'
45910 ac_out='"$tmp/out1"'
45911 ac_nxt='"$tmp/out2"'
45912
45913 while :
45914 do
45915   # Write a here document:
45916     cat >>$CONFIG_STATUS <<_ACEOF
45917     # First, check the format of the line:
45918     cat >"\$tmp/defines.sed" <<\\CEOF
45919 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
45920 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
45921 b
45922 :def
45923 _ACEOF
45924   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
45925   echo 'CEOF
45926     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
45927   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
45928   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
45929   grep . conftest.tail >/dev/null || break
45930   rm -f conftest.defines
45931   mv conftest.tail conftest.defines
45932 done
45933 rm -f conftest.defines conftest.tail
45934
45935 echo "ac_result=$ac_in" >>$CONFIG_STATUS
45936 cat >>$CONFIG_STATUS <<\_ACEOF
45937   if test x"$ac_file" != x-; then
45938     echo "/* $configure_input  */" >"$tmp/config.h"
45939     cat "$ac_result" >>"$tmp/config.h"
45940     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
45941       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45942 echo "$as_me: $ac_file is unchanged" >&6;}
45943     else
45944       rm -f $ac_file
45945       mv "$tmp/config.h" $ac_file
45946     fi
45947   else
45948     echo "/* $configure_input  */"
45949     cat "$ac_result"
45950   fi
45951   rm -f "$tmp/out12"
45952  ;;
45953
45954   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
45955 echo "$as_me: executing $ac_file commands" >&6;}
45956  ;;
45957   esac
45958
45959
45960   case $ac_file$ac_mode in
45961     "libtool":C)
45962
45963     # See if we are running on zsh, and set the options which allow our
45964     # commands through without removal of \ escapes.
45965     if test -n "${ZSH_VERSION+set}" ; then
45966       setopt NO_GLOB_SUBST
45967     fi
45968
45969     cfgfile="${ofile}T"
45970     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
45971     $RM "$cfgfile"
45972
45973     cat <<_LT_EOF >> "$cfgfile"
45974 #! $SHELL
45975
45976 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
45977 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
45978 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
45979 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
45980 #
45981 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
45982 #                 2006, 2007, 2008 Free Software Foundation, Inc.
45983 #   Written by Gordon Matzigkeit, 1996
45984 #
45985 #   This file is part of GNU Libtool.
45986 #
45987 # GNU Libtool is free software; you can redistribute it and/or
45988 # modify it under the terms of the GNU General Public License as
45989 # published by the Free Software Foundation; either version 2 of
45990 # the License, or (at your option) any later version.
45991 #
45992 # As a special exception to the GNU General Public License,
45993 # if you distribute this file as part of a program or library that
45994 # is built using GNU Libtool, you may include this file under the
45995 # same distribution terms that you use for the rest of that program.
45996 #
45997 # GNU Libtool is distributed in the hope that it will be useful,
45998 # but WITHOUT ANY WARRANTY; without even the implied warranty of
45999 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
46000 # GNU General Public License for more details.
46001 #
46002 # You should have received a copy of the GNU General Public License
46003 # along with GNU Libtool; see the file COPYING.  If not, a copy
46004 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
46005 # obtained by writing to the Free Software Foundation, Inc.,
46006 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
46007
46008
46009 # The names of the tagged configurations supported by this script.
46010 available_tags="CXX "
46011
46012 # ### BEGIN LIBTOOL CONFIG
46013
46014 # Which release of libtool.m4 was used?
46015 macro_version=$macro_version
46016 macro_revision=$macro_revision
46017
46018 # Whether or not to build shared libraries.
46019 build_libtool_libs=$enable_shared
46020
46021 # Whether or not to build static libraries.
46022 build_old_libs=$enable_static
46023
46024 # What type of objects to build.
46025 pic_mode=$pic_mode
46026
46027 # Whether or not to optimize for fast installation.
46028 fast_install=$enable_fast_install
46029
46030 # The host system.
46031 host_alias=$host_alias
46032 host=$host
46033 host_os=$host_os
46034
46035 # The build system.
46036 build_alias=$build_alias
46037 build=$build
46038 build_os=$build_os
46039
46040 # A sed program that does not truncate output.
46041 SED=$lt_SED
46042
46043 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
46044 Xsed="\$SED -e 1s/^X//"
46045
46046 # A grep program that handles long lines.
46047 GREP=$lt_GREP
46048
46049 # An ERE matcher.
46050 EGREP=$lt_EGREP
46051
46052 # A literal string matcher.
46053 FGREP=$lt_FGREP
46054
46055 # A BSD- or MS-compatible name lister.
46056 NM=$lt_NM
46057
46058 # Whether we need soft or hard links.
46059 LN_S=$lt_LN_S
46060
46061 # What is the maximum length of a command?
46062 max_cmd_len=$max_cmd_len
46063
46064 # Object file suffix (normally "o").
46065 objext=$ac_objext
46066
46067 # Executable file suffix (normally "").
46068 exeext=$exeext
46069
46070 # whether the shell understands "unset".
46071 lt_unset=$lt_unset
46072
46073 # turn spaces into newlines.
46074 SP2NL=$lt_lt_SP2NL
46075
46076 # turn newlines into spaces.
46077 NL2SP=$lt_lt_NL2SP
46078
46079 # How to create reloadable object files.
46080 reload_flag=$lt_reload_flag
46081 reload_cmds=$lt_reload_cmds
46082
46083 # An object symbol dumper.
46084 OBJDUMP=$lt_OBJDUMP
46085
46086 # Method to check whether dependent libraries are shared objects.
46087 deplibs_check_method=$lt_deplibs_check_method
46088
46089 # Command to use when deplibs_check_method == "file_magic".
46090 file_magic_cmd=$lt_file_magic_cmd
46091
46092 # The archiver.
46093 AR=$lt_AR
46094 AR_FLAGS=$lt_AR_FLAGS
46095
46096 # A symbol stripping program.
46097 STRIP=$lt_STRIP
46098
46099 # Commands used to install an old-style archive.
46100 RANLIB=$lt_RANLIB
46101 old_postinstall_cmds=$lt_old_postinstall_cmds
46102 old_postuninstall_cmds=$lt_old_postuninstall_cmds
46103
46104 # A C compiler.
46105 LTCC=$lt_CC
46106
46107 # LTCC compiler flags.
46108 LTCFLAGS=$lt_CFLAGS
46109
46110 # Take the output of nm and produce a listing of raw symbols and C names.
46111 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
46112
46113 # Transform the output of nm in a proper C declaration.
46114 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
46115
46116 # Transform the output of nm in a C name address pair.
46117 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
46118
46119 # Transform the output of nm in a C name address pair when lib prefix is needed.
46120 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
46121
46122 # The name of the directory that contains temporary libtool files.
46123 objdir=$objdir
46124
46125 # Shell to use when invoking shell scripts.
46126 SHELL=$lt_SHELL
46127
46128 # An echo program that does not interpret backslashes.
46129 ECHO=$lt_ECHO
46130
46131 # Used to examine libraries when file_magic_cmd begins with "file".
46132 MAGIC_CMD=$MAGIC_CMD
46133
46134 # Must we lock files when doing compilation?
46135 need_locks=$lt_need_locks
46136
46137 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
46138 DSYMUTIL=$lt_DSYMUTIL
46139
46140 # Tool to change global to local symbols on Mac OS X.
46141 NMEDIT=$lt_NMEDIT
46142
46143 # Tool to manipulate fat objects and archives on Mac OS X.
46144 LIPO=$lt_LIPO
46145
46146 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
46147 OTOOL=$lt_OTOOL
46148
46149 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
46150 OTOOL64=$lt_OTOOL64
46151
46152 # Old archive suffix (normally "a").
46153 libext=$libext
46154
46155 # Shared library suffix (normally ".so").
46156 shrext_cmds=$lt_shrext_cmds
46157
46158 # The commands to extract the exported symbol list from a shared archive.
46159 extract_expsyms_cmds=$lt_extract_expsyms_cmds
46160
46161 # Variables whose values should be saved in libtool wrapper scripts and
46162 # restored at link time.
46163 variables_saved_for_relink=$lt_variables_saved_for_relink
46164
46165 # Do we need the "lib" prefix for modules?
46166 need_lib_prefix=$need_lib_prefix
46167
46168 # Do we need a version for libraries?
46169 need_version=$need_version
46170
46171 # Library versioning type.
46172 version_type=$version_type
46173
46174 # Shared library runtime path variable.
46175 runpath_var=$runpath_var
46176
46177 # Shared library path variable.
46178 shlibpath_var=$shlibpath_var
46179
46180 # Is shlibpath searched before the hard-coded library search path?
46181 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
46182
46183 # Format of library name prefix.
46184 libname_spec=$lt_libname_spec
46185
46186 # List of archive names.  First name is the real one, the rest are links.
46187 # The last name is the one that the linker finds with -lNAME
46188 library_names_spec=$lt_library_names_spec
46189
46190 # The coded name of the library, if different from the real name.
46191 soname_spec=$lt_soname_spec
46192
46193 # Command to use after installation of a shared archive.
46194 postinstall_cmds=$lt_postinstall_cmds
46195
46196 # Command to use after uninstallation of a shared archive.
46197 postuninstall_cmds=$lt_postuninstall_cmds
46198
46199 # Commands used to finish a libtool library installation in a directory.
46200 finish_cmds=$lt_finish_cmds
46201
46202 # As "finish_cmds", except a single script fragment to be evaled but
46203 # not shown.
46204 finish_eval=$lt_finish_eval
46205
46206 # Whether we should hardcode library paths into libraries.
46207 hardcode_into_libs=$hardcode_into_libs
46208
46209 # Compile-time system search path for libraries.
46210 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
46211
46212 # Run-time system search path for libraries.
46213 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
46214
46215 # Whether dlopen is supported.
46216 dlopen_support=$enable_dlopen
46217
46218 # Whether dlopen of programs is supported.
46219 dlopen_self=$enable_dlopen_self
46220
46221 # Whether dlopen of statically linked programs is supported.
46222 dlopen_self_static=$enable_dlopen_self_static
46223
46224 # Commands to strip libraries.
46225 old_striplib=$lt_old_striplib
46226 striplib=$lt_striplib
46227
46228
46229 # The linker used to build libraries.
46230 LD=$lt_LD
46231
46232 # Commands used to build an old-style archive.
46233 old_archive_cmds=$lt_old_archive_cmds
46234
46235 # A language specific compiler.
46236 CC=$lt_compiler
46237
46238 # Is the compiler the GNU compiler?
46239 with_gcc=$GCC
46240
46241 # Compiler flag to turn off builtin functions.
46242 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
46243
46244 # How to pass a linker flag through the compiler.
46245 wl=$lt_lt_prog_compiler_wl
46246
46247 # Additional compiler flags for building library objects.
46248 pic_flag=$lt_lt_prog_compiler_pic
46249
46250 # Compiler flag to prevent dynamic linking.
46251 link_static_flag=$lt_lt_prog_compiler_static
46252
46253 # Does compiler simultaneously support -c and -o options?
46254 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
46255
46256 # Whether or not to add -lc for building shared libraries.
46257 build_libtool_need_lc=$archive_cmds_need_lc
46258
46259 # Whether or not to disallow shared libs when runtime libs are static.
46260 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
46261
46262 # Compiler flag to allow reflexive dlopens.
46263 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
46264
46265 # Compiler flag to generate shared objects directly from archives.
46266 whole_archive_flag_spec=$lt_whole_archive_flag_spec
46267
46268 # Whether the compiler copes with passing no objects directly.
46269 compiler_needs_object=$lt_compiler_needs_object
46270
46271 # Create an old-style archive from a shared archive.
46272 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
46273
46274 # Create a temporary old-style archive to link instead of a shared archive.
46275 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
46276
46277 # Commands used to build a shared archive.
46278 archive_cmds=$lt_archive_cmds
46279 archive_expsym_cmds=$lt_archive_expsym_cmds
46280
46281 # Commands used to build a loadable module if different from building
46282 # a shared archive.
46283 module_cmds=$lt_module_cmds
46284 module_expsym_cmds=$lt_module_expsym_cmds
46285
46286 # Whether we are building with GNU ld or not.
46287 with_gnu_ld=$lt_with_gnu_ld
46288
46289 # Flag that allows shared libraries with undefined symbols to be built.
46290 allow_undefined_flag=$lt_allow_undefined_flag
46291
46292 # Flag that enforces no undefined symbols.
46293 no_undefined_flag=$lt_no_undefined_flag
46294
46295 # Flag to hardcode \$libdir into a binary during linking.
46296 # This must work even if \$libdir does not exist
46297 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
46298
46299 # If ld is used when linking, flag to hardcode \$libdir into a binary
46300 # during linking.  This must work even if \$libdir does not exist.
46301 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
46302
46303 # Whether we need a single "-rpath" flag with a separated argument.
46304 hardcode_libdir_separator=$lt_hardcode_libdir_separator
46305
46306 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46307 # DIR into the resulting binary.
46308 hardcode_direct=$hardcode_direct
46309
46310 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46311 # DIR into the resulting binary and the resulting library dependency is
46312 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46313 # library is relocated.
46314 hardcode_direct_absolute=$hardcode_direct_absolute
46315
46316 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46317 # into the resulting binary.
46318 hardcode_minus_L=$hardcode_minus_L
46319
46320 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46321 # into the resulting binary.
46322 hardcode_shlibpath_var=$hardcode_shlibpath_var
46323
46324 # Set to "yes" if building a shared library automatically hardcodes DIR
46325 # into the library and all subsequent libraries and executables linked
46326 # against it.
46327 hardcode_automatic=$hardcode_automatic
46328
46329 # Set to yes if linker adds runtime paths of dependent libraries
46330 # to runtime path list.
46331 inherit_rpath=$inherit_rpath
46332
46333 # Whether libtool must link a program against all its dependency libraries.
46334 link_all_deplibs=$link_all_deplibs
46335
46336 # Fix the shell variable \$srcfile for the compiler.
46337 fix_srcfile_path=$lt_fix_srcfile_path
46338
46339 # Set to "yes" if exported symbols are required.
46340 always_export_symbols=$always_export_symbols
46341
46342 # The commands to list exported symbols.
46343 export_symbols_cmds=$lt_export_symbols_cmds
46344
46345 # Symbols that should not be listed in the preloaded symbols.
46346 exclude_expsyms=$lt_exclude_expsyms
46347
46348 # Symbols that must always be exported.
46349 include_expsyms=$lt_include_expsyms
46350
46351 # Commands necessary for linking programs (against libraries) with templates.
46352 prelink_cmds=$lt_prelink_cmds
46353
46354 # Specify filename containing input files.
46355 file_list_spec=$lt_file_list_spec
46356
46357 # How to hardcode a shared library path into an executable.
46358 hardcode_action=$hardcode_action
46359
46360 # The directories searched by this compiler when creating a shared library.
46361 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
46362
46363 # Dependencies to place before and after the objects being linked to
46364 # create a shared library.
46365 predep_objects=$lt_predep_objects
46366 postdep_objects=$lt_postdep_objects
46367 predeps=$lt_predeps
46368 postdeps=$lt_postdeps
46369
46370 # The library search path used internally by the compiler when linking
46371 # a shared library.
46372 compiler_lib_search_path=$lt_compiler_lib_search_path
46373
46374 # ### END LIBTOOL CONFIG
46375
46376 _LT_EOF
46377
46378   case $host_os in
46379   aix3*)
46380     cat <<\_LT_EOF >> "$cfgfile"
46381 # AIX sometimes has problems with the GCC collect2 program.  For some
46382 # reason, if we set the COLLECT_NAMES environment variable, the problems
46383 # vanish in a puff of smoke.
46384 if test "X${COLLECT_NAMES+set}" != Xset; then
46385   COLLECT_NAMES=
46386   export COLLECT_NAMES
46387 fi
46388 _LT_EOF
46389     ;;
46390   esac
46391
46392
46393 ltmain="$ac_aux_dir/ltmain.sh"
46394
46395
46396   # We use sed instead of cat because bash on DJGPP gets confused if
46397   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
46398   # text mode, it properly converts lines to CR/LF.  This bash problem
46399   # is reportedly fixed, but why not run on old versions too?
46400   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
46401     || (rm -f "$cfgfile"; exit 1)
46402
46403   case $xsi_shell in
46404   yes)
46405     cat << \_LT_EOF >> "$cfgfile"
46406
46407 # func_dirname file append nondir_replacement
46408 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
46409 # otherwise set result to NONDIR_REPLACEMENT.
46410 func_dirname ()
46411 {
46412   case ${1} in
46413     */*) func_dirname_result="${1%/*}${2}" ;;
46414     *  ) func_dirname_result="${3}" ;;
46415   esac
46416 }
46417
46418 # func_basename file
46419 func_basename ()
46420 {
46421   func_basename_result="${1##*/}"
46422 }
46423
46424 # func_dirname_and_basename file append nondir_replacement
46425 # perform func_basename and func_dirname in a single function
46426 # call:
46427 #   dirname:  Compute the dirname of FILE.  If nonempty,
46428 #             add APPEND to the result, otherwise set result
46429 #             to NONDIR_REPLACEMENT.
46430 #             value returned in "$func_dirname_result"
46431 #   basename: Compute filename of FILE.
46432 #             value retuned in "$func_basename_result"
46433 # Implementation must be kept synchronized with func_dirname
46434 # and func_basename. For efficiency, we do not delegate to
46435 # those functions but instead duplicate the functionality here.
46436 func_dirname_and_basename ()
46437 {
46438   case ${1} in
46439     */*) func_dirname_result="${1%/*}${2}" ;;
46440     *  ) func_dirname_result="${3}" ;;
46441   esac
46442   func_basename_result="${1##*/}"
46443 }
46444
46445 # func_stripname prefix suffix name
46446 # strip PREFIX and SUFFIX off of NAME.
46447 # PREFIX and SUFFIX must not contain globbing or regex special
46448 # characters, hashes, percent signs, but SUFFIX may contain a leading
46449 # dot (in which case that matches only a dot).
46450 func_stripname ()
46451 {
46452   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
46453   # positional parameters, so assign one to ordinary parameter first.
46454   func_stripname_result=${3}
46455   func_stripname_result=${func_stripname_result#"${1}"}
46456   func_stripname_result=${func_stripname_result%"${2}"}
46457 }
46458
46459 # func_opt_split
46460 func_opt_split ()
46461 {
46462   func_opt_split_opt=${1%%=*}
46463   func_opt_split_arg=${1#*=}
46464 }
46465
46466 # func_lo2o object
46467 func_lo2o ()
46468 {
46469   case ${1} in
46470     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
46471     *)    func_lo2o_result=${1} ;;
46472   esac
46473 }
46474
46475 # func_xform libobj-or-source
46476 func_xform ()
46477 {
46478   func_xform_result=${1%.*}.lo
46479 }
46480
46481 # func_arith arithmetic-term...
46482 func_arith ()
46483 {
46484   func_arith_result=$(( $* ))
46485 }
46486
46487 # func_len string
46488 # STRING may not start with a hyphen.
46489 func_len ()
46490 {
46491   func_len_result=${#1}
46492 }
46493
46494 _LT_EOF
46495     ;;
46496   *) # Bourne compatible functions.
46497     cat << \_LT_EOF >> "$cfgfile"
46498
46499 # func_dirname file append nondir_replacement
46500 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
46501 # otherwise set result to NONDIR_REPLACEMENT.
46502 func_dirname ()
46503 {
46504   # Extract subdirectory from the argument.
46505   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
46506   if test "X$func_dirname_result" = "X${1}"; then
46507     func_dirname_result="${3}"
46508   else
46509     func_dirname_result="$func_dirname_result${2}"
46510   fi
46511 }
46512
46513 # func_basename file
46514 func_basename ()
46515 {
46516   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
46517 }
46518
46519
46520 # func_stripname prefix suffix name
46521 # strip PREFIX and SUFFIX off of NAME.
46522 # PREFIX and SUFFIX must not contain globbing or regex special
46523 # characters, hashes, percent signs, but SUFFIX may contain a leading
46524 # dot (in which case that matches only a dot).
46525 # func_strip_suffix prefix name
46526 func_stripname ()
46527 {
46528   case ${2} in
46529     .*) func_stripname_result=`$ECHO "X${3}" \
46530            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
46531     *)  func_stripname_result=`$ECHO "X${3}" \
46532            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
46533   esac
46534 }
46535
46536 # sed scripts:
46537 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
46538 my_sed_long_arg='1s/^-[^=]*=//'
46539
46540 # func_opt_split
46541 func_opt_split ()
46542 {
46543   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
46544   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
46545 }
46546
46547 # func_lo2o object
46548 func_lo2o ()
46549 {
46550   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
46551 }
46552
46553 # func_xform libobj-or-source
46554 func_xform ()
46555 {
46556   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
46557 }
46558
46559 # func_arith arithmetic-term...
46560 func_arith ()
46561 {
46562   func_arith_result=`expr "$@"`
46563 }
46564
46565 # func_len string
46566 # STRING may not start with a hyphen.
46567 func_len ()
46568 {
46569   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
46570 }
46571
46572 _LT_EOF
46573 esac
46574
46575 case $lt_shell_append in
46576   yes)
46577     cat << \_LT_EOF >> "$cfgfile"
46578
46579 # func_append var value
46580 # Append VALUE to the end of shell variable VAR.
46581 func_append ()
46582 {
46583   eval "$1+=\$2"
46584 }
46585 _LT_EOF
46586     ;;
46587   *)
46588     cat << \_LT_EOF >> "$cfgfile"
46589
46590 # func_append var value
46591 # Append VALUE to the end of shell variable VAR.
46592 func_append ()
46593 {
46594   eval "$1=\$$1\$2"
46595 }
46596
46597 _LT_EOF
46598     ;;
46599   esac
46600
46601
46602   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
46603     || (rm -f "$cfgfile"; exit 1)
46604
46605   mv -f "$cfgfile" "$ofile" ||
46606     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
46607   chmod +x "$ofile"
46608
46609
46610     cat <<_LT_EOF >> "$ofile"
46611
46612 # ### BEGIN LIBTOOL TAG CONFIG: CXX
46613
46614 # The linker used to build libraries.
46615 LD=$lt_LD_CXX
46616
46617 # Commands used to build an old-style archive.
46618 old_archive_cmds=$lt_old_archive_cmds_CXX
46619
46620 # A language specific compiler.
46621 CC=$lt_compiler_CXX
46622
46623 # Is the compiler the GNU compiler?
46624 with_gcc=$GCC_CXX
46625
46626 # Compiler flag to turn off builtin functions.
46627 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
46628
46629 # How to pass a linker flag through the compiler.
46630 wl=$lt_lt_prog_compiler_wl_CXX
46631
46632 # Additional compiler flags for building library objects.
46633 pic_flag=$lt_lt_prog_compiler_pic_CXX
46634
46635 # Compiler flag to prevent dynamic linking.
46636 link_static_flag=$lt_lt_prog_compiler_static_CXX
46637
46638 # Does compiler simultaneously support -c and -o options?
46639 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
46640
46641 # Whether or not to add -lc for building shared libraries.
46642 build_libtool_need_lc=$archive_cmds_need_lc_CXX
46643
46644 # Whether or not to disallow shared libs when runtime libs are static.
46645 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
46646
46647 # Compiler flag to allow reflexive dlopens.
46648 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
46649
46650 # Compiler flag to generate shared objects directly from archives.
46651 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
46652
46653 # Whether the compiler copes with passing no objects directly.
46654 compiler_needs_object=$lt_compiler_needs_object_CXX
46655
46656 # Create an old-style archive from a shared archive.
46657 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
46658
46659 # Create a temporary old-style archive to link instead of a shared archive.
46660 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
46661
46662 # Commands used to build a shared archive.
46663 archive_cmds=$lt_archive_cmds_CXX
46664 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
46665
46666 # Commands used to build a loadable module if different from building
46667 # a shared archive.
46668 module_cmds=$lt_module_cmds_CXX
46669 module_expsym_cmds=$lt_module_expsym_cmds_CXX
46670
46671 # Whether we are building with GNU ld or not.
46672 with_gnu_ld=$lt_with_gnu_ld_CXX
46673
46674 # Flag that allows shared libraries with undefined symbols to be built.
46675 allow_undefined_flag=$lt_allow_undefined_flag_CXX
46676
46677 # Flag that enforces no undefined symbols.
46678 no_undefined_flag=$lt_no_undefined_flag_CXX
46679
46680 # Flag to hardcode \$libdir into a binary during linking.
46681 # This must work even if \$libdir does not exist
46682 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
46683
46684 # If ld is used when linking, flag to hardcode \$libdir into a binary
46685 # during linking.  This must work even if \$libdir does not exist.
46686 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
46687
46688 # Whether we need a single "-rpath" flag with a separated argument.
46689 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
46690
46691 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46692 # DIR into the resulting binary.
46693 hardcode_direct=$hardcode_direct_CXX
46694
46695 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46696 # DIR into the resulting binary and the resulting library dependency is
46697 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46698 # library is relocated.
46699 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
46700
46701 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46702 # into the resulting binary.
46703 hardcode_minus_L=$hardcode_minus_L_CXX
46704
46705 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46706 # into the resulting binary.
46707 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
46708
46709 # Set to "yes" if building a shared library automatically hardcodes DIR
46710 # into the library and all subsequent libraries and executables linked
46711 # against it.
46712 hardcode_automatic=$hardcode_automatic_CXX
46713
46714 # Set to yes if linker adds runtime paths of dependent libraries
46715 # to runtime path list.
46716 inherit_rpath=$inherit_rpath_CXX
46717
46718 # Whether libtool must link a program against all its dependency libraries.
46719 link_all_deplibs=$link_all_deplibs_CXX
46720
46721 # Fix the shell variable \$srcfile for the compiler.
46722 fix_srcfile_path=$lt_fix_srcfile_path_CXX
46723
46724 # Set to "yes" if exported symbols are required.
46725 always_export_symbols=$always_export_symbols_CXX
46726
46727 # The commands to list exported symbols.
46728 export_symbols_cmds=$lt_export_symbols_cmds_CXX
46729
46730 # Symbols that should not be listed in the preloaded symbols.
46731 exclude_expsyms=$lt_exclude_expsyms_CXX
46732
46733 # Symbols that must always be exported.
46734 include_expsyms=$lt_include_expsyms_CXX
46735
46736 # Commands necessary for linking programs (against libraries) with templates.
46737 prelink_cmds=$lt_prelink_cmds_CXX
46738
46739 # Specify filename containing input files.
46740 file_list_spec=$lt_file_list_spec_CXX
46741
46742 # How to hardcode a shared library path into an executable.
46743 hardcode_action=$hardcode_action_CXX
46744
46745 # The directories searched by this compiler when creating a shared library.
46746 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
46747
46748 # Dependencies to place before and after the objects being linked to
46749 # create a shared library.
46750 predep_objects=$lt_predep_objects_CXX
46751 postdep_objects=$lt_postdep_objects_CXX
46752 predeps=$lt_predeps_CXX
46753 postdeps=$lt_postdeps_CXX
46754
46755 # The library search path used internally by the compiler when linking
46756 # a shared library.
46757 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
46758
46759 # ### END LIBTOOL TAG CONFIG: CXX
46760 _LT_EOF
46761
46762  ;;
46763     "default-1":C)
46764     for ac_file in $CONFIG_FILES; do
46765       # Support "outfile[:infile[:infile...]]"
46766       case "$ac_file" in
46767         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
46768       esac
46769       # PO directories have a Makefile.in generated from Makefile.in.in.
46770       case "$ac_file" in */Makefile.in)
46771         # Adjust a relative srcdir.
46772         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
46773         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
46774         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
46775         # In autoconf-2.13 it is called $ac_given_srcdir.
46776         # In autoconf-2.50 it is called $srcdir.
46777         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
46778         case "$ac_given_srcdir" in
46779           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
46780           /*) top_srcdir="$ac_given_srcdir" ;;
46781           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
46782         esac
46783         # Treat a directory as a PO directory if and only if it has a
46784         # POTFILES.in file. This allows packages to have multiple PO
46785         # directories under different names or in different locations.
46786         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
46787           rm -f "$ac_dir/POTFILES"
46788           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
46789           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
46790           POMAKEFILEDEPS="POTFILES.in"
46791           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
46792           # on $ac_dir but don't depend on user-specified configuration
46793           # parameters.
46794           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
46795             # The LINGUAS file contains the set of available languages.
46796             if test -n "$OBSOLETE_ALL_LINGUAS"; then
46797               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
46798             fi
46799             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
46800             # Hide the ALL_LINGUAS assigment from automake.
46801             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
46802             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
46803           else
46804             # The set of available languages was given in configure.in.
46805             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
46806           fi
46807           # Compute POFILES
46808           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
46809           # Compute UPDATEPOFILES
46810           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
46811           # Compute DUMMYPOFILES
46812           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
46813           # Compute GMOFILES
46814           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
46815           case "$ac_given_srcdir" in
46816             .) srcdirpre= ;;
46817             *) srcdirpre='$(srcdir)/' ;;
46818           esac
46819           POFILES=
46820           UPDATEPOFILES=
46821           DUMMYPOFILES=
46822           GMOFILES=
46823           for lang in $ALL_LINGUAS; do
46824             POFILES="$POFILES $srcdirpre$lang.po"
46825             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
46826             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
46827             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
46828           done
46829           # CATALOGS depends on both $ac_dir and the user's LINGUAS
46830           # environment variable.
46831           INST_LINGUAS=
46832           if test -n "$ALL_LINGUAS"; then
46833             for presentlang in $ALL_LINGUAS; do
46834               useit=no
46835               if test "%UNSET%" != "$LINGUAS"; then
46836                 desiredlanguages="$LINGUAS"
46837               else
46838                 desiredlanguages="$ALL_LINGUAS"
46839               fi
46840               for desiredlang in $desiredlanguages; do
46841                 # Use the presentlang catalog if desiredlang is
46842                 #   a. equal to presentlang, or
46843                 #   b. a variant of presentlang (because in this case,
46844                 #      presentlang can be used as a fallback for messages
46845                 #      which are not translated in the desiredlang catalog).
46846                 case "$desiredlang" in
46847                   "$presentlang"*) useit=yes;;
46848                 esac
46849               done
46850               if test $useit = yes; then
46851                 INST_LINGUAS="$INST_LINGUAS $presentlang"
46852               fi
46853             done
46854           fi
46855           CATALOGS=
46856           if test -n "$INST_LINGUAS"; then
46857             for lang in $INST_LINGUAS; do
46858               CATALOGS="$CATALOGS $lang.gmo"
46859             done
46860           fi
46861           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
46862           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"
46863           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
46864             if test -f "$f"; then
46865               case "$f" in
46866                 *.orig | *.bak | *~) ;;
46867                 *) cat "$f" >> "$ac_dir/Makefile" ;;
46868               esac
46869             fi
46870           done
46871         fi
46872         ;;
46873       esac
46874     done ;;
46875     "default":C)
46876  ;;
46877
46878   esac
46879 done # for ac_tag
46880
46881
46882 { (exit 0); exit 0; }
46883 _ACEOF
46884 chmod +x $CONFIG_STATUS
46885 ac_clean_files=$ac_clean_files_save
46886
46887
46888 # configure is writing to config.log, and then calls config.status.
46889 # config.status does its own redirection, appending to config.log.
46890 # Unfortunately, on DOS this fails, as config.log is still kept open
46891 # by configure, so config.status won't be able to write to it; its
46892 # output is simply discarded.  So we exec the FD to /dev/null,
46893 # effectively closing config.log, so it can be properly (re)opened and
46894 # appended to by config.status.  When coming back to configure, we
46895 # need to make the FD available again.
46896 if test "$no_create" != yes; then
46897   ac_cs_success=:
46898   ac_config_status_args=
46899   test "$silent" = yes &&
46900     ac_config_status_args="$ac_config_status_args --quiet"
46901   exec 5>/dev/null
46902   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46903   exec 5>>config.log
46904   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46905   # would make configure fail if this is the last instruction.
46906   $ac_cs_success || { (exit 1); exit 1; }
46907 fi
46908
46909
46910 if test "${support_bat}" = "yes" ; then
46911    if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
46912       { { echo "$as_me:$LINENO: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&5
46913 echo "$as_me: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&2;}
46914    { (exit 1); exit 1; }; }
46915    fi
46916
46917    QMAKEBIN="qmake"
46918
46919    if test "x$QMAKEQT4" != "xnone"; then
46920        QMAKEBIN=qmake-qt4
46921    fi
46922
46923    cd src/qt-console
46924    echo "Creating bat Makefile"
46925    touch bat
46926    chmod 755 bat
46927    $QMAKEBIN
46928    ${MAKE:-make} clean
46929    cd ${BUILD_DIR}
46930 fi
46931
46932 if test X"$GCC" = "Xyes" ; then
46933   echo "Doing make of dependencies"
46934   ${MAKE:-make} depend
46935 fi
46936
46937 cd src/qt-console
46938 chmod 755 install_conf_file build-depkgs-qt-console
46939 cd ${BUILD_DIR}
46940
46941 cd scripts
46942 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
46943 chmod 755 dvd-handler dvd-simulator breload make_catalog_backup.pl
46944 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
46945 cd ..
46946
46947 c=updatedb
46948 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
46949 chmod 755 $c/update_postgresql_tables_10_to_11
46950
46951 c=src/cats
46952
46953 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
46954 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
46955
46956 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
46957 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
46958
46959 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
46960 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
46961
46962 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
46963 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
46964
46965 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
46966 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
46967
46968 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
46969 chmod 755 $c/sqlite
46970 chmod 755 $c/mysql
46971
46972 chmod 755 src/win32/build-depkgs-mingw32
46973
46974 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
46975    largefile_support="yes"
46976 fi
46977
46978 if test X"$GCC" = "Xyes" ; then
46979                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
46980    if test "x${CCVERSION}" = "x" ; then
46981       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
46982    fi
46983    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
46984    if test x"${CXXVERSION}" = x ; then
46985       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
46986    fi
46987 fi
46988
46989 # clean up any old junk
46990 echo " "
46991 echo "Cleaning up"
46992 echo " "
46993 ${MAKE:-make} clean
46994
46995 if test "x${db_type}" = "xInternal" ; then
46996    echo " "
46997    echo " "
46998    echo "You have not specified either --enable-client-only or one of the"
46999    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
47000    echo "  This is not permitted. Please reconfigure."
47001    echo " "
47002    echo "Aborting the configuration ..."
47003    echo " "
47004    echo " "
47005    exit 1
47006 fi
47007
47008 echo "
47009 Configuration on `date`:
47010
47011    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
47012    Bacula version:          ${BACULA} ${VERSION} (${DATE})
47013    Source code location:    ${srcdir}
47014    Install binaries:        ${sbindir}
47015    Install libraries:       ${libdir}
47016    Install config files:    ${sysconfdir}
47017    Scripts directory:       ${scriptdir}
47018    Archive directory:       ${archivedir}
47019    Working directory:       ${working_dir}
47020    PID directory:           ${piddir}
47021    Subsys directory:        ${subsysdir}
47022    Man directory:           ${mandir}
47023    Data directory:          ${datarootdir}
47024    Plugin directory:        ${plugindir}
47025    C Compiler:              ${CC} ${CCVERSION}
47026    C++ Compiler:            ${CXX} ${CXXVERSION}
47027    Compiler flags:          ${WCFLAGS} ${CFLAGS}
47028    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
47029    Libraries:               ${LIBS}
47030    Statically Linked Tools: ${support_static_tools}
47031    Statically Linked FD:    ${support_static_fd}
47032    Statically Linked SD:    ${support_static_sd}
47033    Statically Linked DIR:   ${support_static_dir}
47034    Statically Linked CONS:  ${support_static_cons}
47035    Database type:           ${db_type}
47036    Database port:           ${db_port}
47037    Database lib:            ${DB_LIBS}
47038    Database name:           ${db_name}
47039    Database user:           ${db_user}
47040
47041    Job Output Email:        ${job_email}
47042    Traceback Email:         ${dump_email}
47043    SMTP Host Address:       ${smtp_host}
47044
47045    Director Port:           ${dir_port}
47046    File daemon Port:        ${fd_port}
47047    Storage daemon Port:     ${sd_port}
47048
47049    Director User:           ${dir_user}
47050    Director Group:          ${dir_group}
47051    Storage Daemon User:     ${sd_user}
47052    Storage DaemonGroup:     ${sd_group}
47053    File Daemon User:        ${fd_user}
47054    File Daemon Group:       ${fd_group}
47055
47056    SQL binaries Directory   ${SQL_BINDIR}
47057
47058    Large file support:      $largefile_support
47059    Bacula conio support:    ${got_conio} ${CONS_LIBS}
47060    readline support:        ${got_readline} ${PRTREADLINE_SRC}
47061    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
47062    TLS support:             ${support_tls}
47063    Encryption support:      ${support_crypto}
47064    ZLIB support:            ${have_zlib}
47065    enable-smartalloc:       ${support_smartalloc}
47066    enable-lockmgr:          ${support_lockmgr}
47067    bat support:             ${support_bat} ${QWT_LDFLAGS}
47068    enable-gnome:            ${support_gnome} ${gnome_version}
47069    enable-bwx-console:      ${support_wx_console} ${wx_version}
47070    enable-tray-monitor:     ${support_tray_monitor}
47071    client-only:             ${build_client_only}
47072    build-dird:              ${build_dird}
47073    build-stored:            ${build_stored}
47074    Plugin support:          ${have_plugins}
47075    ACL support:             ${have_acl}
47076    XATTR support:           ${have_xattr}
47077    Python support:          ${support_python} ${PYTHON_LIBS}
47078    Batch insert enabled:    ${support_batch_insert}
47079
47080   " > config.out
47081
47082 # create a small shell script useful for support with
47083 # configure options and config.out info
47084 cat > scripts/bacula_config << EOF
47085 #!/bin/sh
47086 cat << __EOC__
47087 $ $0 $ac_configure_args
47088 EOF
47089 cat config.out >> scripts/bacula_config
47090 echo __EOC__ >> scripts/bacula_config
47091 chmod 755 scripts/bacula_config
47092
47093 cat config.out
47094
47095 # Display a warning message if postgresql client lib is <= 8.1
47096 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
47097         -a x$support_batch_insert = xyes
47098 then
47099         echo "WARNING: Your PostgreSQL client library is too old to detect "
47100         echo " if it was compiled with --enable-thread-safety, consider to"
47101         echo " upgrade it in order to avoid problems with Batch insert mode"
47102         echo
47103 fi