]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Fix include MySQL libs to use shared object. Fixes bug #1427
[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 INCLUDE_INSTALL_TARGET
894 INCLUDE_UNINSTALL_TARGET
895 HAVE_SUN_OS_TRUE
896 HAVE_SUN_OS_FALSE
897 HAVE_OSF1_OS_TRUE
898 HAVE_OSF1_OS_FALSE
899 HAVE_AIX_OS_TRUE
900 HAVE_AIX_OS_FALSE
901 HAVE_HPUX_OS_TRUE
902 HAVE_HPUX_OS_FALSE
903 HAVE_LINUX_OS_TRUE
904 HAVE_LINUX_OS_FALSE
905 HAVE_FREEBSD_OS_TRUE
906 HAVE_FREEBSD_OS_FALSE
907 HAVE_NETBSD_OS_TRUE
908 HAVE_NETBSD_OS_FALSE
909 HAVE_OPENBSD_OS_TRUE
910 HAVE_OPENBSD_OS_FALSE
911 HAVE_BSDI_OS_TRUE
912 HAVE_BSDI_OS_FALSE
913 HAVE_SGI_OS_TRUE
914 HAVE_SGI_OS_FALSE
915 HAVE_IRIX_OS_TRUE
916 HAVE_IRIX_OS_FALSE
917 HAVE_DARWIN_OS_TRUE
918 HAVE_DARWIN_OS_FALSE
919 SET_MAKE
920 MKINSTALLDIRS
921 USE_NLS
922 MSGFMT
923 GMSGFMT
924 XGETTEXT
925 MSGMERGE
926 INTL_MACOSX_LIBS
927 LIBICONV
928 LTLIBICONV
929 INTLLIBS
930 LIBINTL
931 LTLIBINTL
932 POSUB
933 GLIBC2
934 ALLOCA
935 GLIBC21
936 HAVE_POSIX_PRINTF
937 HAVE_ASPRINTF
938 HAVE_SNPRINTF
939 HAVE_WPRINTF
940 INTLBISON
941 BUILD_INCLUDED_LIBINTL
942 USE_INCLUDED_LIBINTL
943 CATOBJEXT
944 DATADIRNAME
945 INSTOBJEXT
946 GENCAT
947 INTLOBJS
948 INTL_LIBTOOL_SUFFIX_PREFIX
949 BAT_DIR
950 QWT_INC
951 QWT_LDFLAGS
952 QWT_LIB
953 QWT
954 WXCONS_CPPFLAGS
955 WXCONS_LDFLAGS
956 WX_DIR
957 TRAY_MONITOR_CPPFLAGS
958 TRAY_MONITOR_LDFLAGS
959 TRAY_MONITOR_DIR
960 TTOOL_LDFLAGS
961 STATIC_FD
962 STATIC_SD
963 STATIC_DIR
964 STATIC_CONS
965 STATIC_GNOME_CONS
966 STATIC_WX_CONS
967 ALL_DIRS
968 DIRD_DIR
969 DIR_TOOLS
970 STORED_DIR
971 CONS_INC
972 CONS_OBJ
973 CONS_SRC
974 CONS_LIBS
975 CONS_LDFLAGS
976 READLINE_SRC
977 PYTHON_LIBS
978 PYTHON_INCDIR
979 OPENSSL_LIBS
980 OPENSSL_INC
981 working_dir
982 archivedir
983 basename
984 hostname
985 scriptdir
986 bsrdir
987 logdir
988 plugindir
989 dump_email
990 job_email
991 smtp_host
992 piddir
993 subsysdir
994 baseport
995 dir_port
996 fd_port
997 sd_port
998 dir_password
999 fd_password
1000 sd_password
1001 mon_dir_password
1002 mon_fd_password
1003 mon_sd_password
1004 db_name
1005 db_user
1006 db_password
1007 db_port
1008 dir_user
1009 dir_group
1010 sd_user
1011 sd_group
1012 fd_user
1013 fd_group
1014 SBINPERM
1015 SQL_LFLAGS
1016 SQL_INCLUDE
1017 SQL_BINDIR
1018 DBI_DBD_DRIVERDIR
1019 uncomment_dbi
1020 DB_PROG
1021 DB_PROG_LIB
1022 cats
1023 DB_TYPE
1024 GETCONF
1025 XMKMF
1026 X_CFLAGS
1027 X_PRE_LIBS
1028 X_LIBS
1029 X_EXTRA_LIBS
1030 LIBOBJS
1031 CAP_LIBS
1032 FDLIBS
1033 DEBUG
1034 DINCLUDE
1035 DLIB
1036 DB_LIBS
1037 WCFLAGS
1038 WLDFLAGS
1039 WRAPLIBS
1040 OBJLIST
1041 TAPEDRIVE
1042 PSCMD
1043 WIN32
1044 MACOSX
1045 DISTNAME
1046 DISTVER
1047 LTLIBOBJS'
1048 ac_subst_files='MCOMMON'
1049       ac_precious_vars='build_alias
1050 host_alias
1051 target_alias
1052 CC
1053 CFLAGS
1054 LDFLAGS
1055 LIBS
1056 CPPFLAGS
1057 CXX
1058 CXXFLAGS
1059 CCC
1060 CPP
1061 WXCONFIG
1062 WXFLAGS
1063 CXXCPP
1064 XMKMF'
1065
1066
1067 # Initialize some variables set by options.
1068 ac_init_help=
1069 ac_init_version=false
1070 # The variables have the same names as the options, with
1071 # dashes changed to underlines.
1072 cache_file=/dev/null
1073 exec_prefix=NONE
1074 no_create=
1075 no_recursion=
1076 prefix=NONE
1077 program_prefix=NONE
1078 program_suffix=NONE
1079 program_transform_name=s,x,x,
1080 silent=
1081 site=
1082 srcdir=
1083 verbose=
1084 x_includes=NONE
1085 x_libraries=NONE
1086
1087 # Installation directory options.
1088 # These are left unexpanded so users can "make install exec_prefix=/foo"
1089 # and all the variables that are supposed to be based on exec_prefix
1090 # by default will actually change.
1091 # Use braces instead of parens because sh, perl, etc. also accept them.
1092 # (The list follows the same order as the GNU Coding Standards.)
1093 bindir='${exec_prefix}/bin'
1094 sbindir='${exec_prefix}/sbin'
1095 libexecdir='${exec_prefix}/libexec'
1096 datarootdir='${prefix}/share'
1097 datadir='${datarootdir}'
1098 sysconfdir='${prefix}/etc'
1099 sharedstatedir='${prefix}/com'
1100 localstatedir='${prefix}/var'
1101 includedir='${prefix}/include'
1102 oldincludedir='/usr/include'
1103 docdir='${datarootdir}/doc/${PACKAGE}'
1104 infodir='${datarootdir}/info'
1105 htmldir='${docdir}'
1106 dvidir='${docdir}'
1107 pdfdir='${docdir}'
1108 psdir='${docdir}'
1109 libdir='${exec_prefix}/lib'
1110 localedir='${datarootdir}/locale'
1111 mandir='${datarootdir}/man'
1112
1113 ac_prev=
1114 ac_dashdash=
1115 for ac_option
1116 do
1117   # If the previous option needs an argument, assign it.
1118   if test -n "$ac_prev"; then
1119     eval $ac_prev=\$ac_option
1120     ac_prev=
1121     continue
1122   fi
1123
1124   case $ac_option in
1125   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1126   *)    ac_optarg=yes ;;
1127   esac
1128
1129   # Accept the important Cygnus configure options, so we can diagnose typos.
1130
1131   case $ac_dashdash$ac_option in
1132   --)
1133     ac_dashdash=yes ;;
1134
1135   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1136     ac_prev=bindir ;;
1137   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1138     bindir=$ac_optarg ;;
1139
1140   -build | --build | --buil | --bui | --bu)
1141     ac_prev=build_alias ;;
1142   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1143     build_alias=$ac_optarg ;;
1144
1145   -cache-file | --cache-file | --cache-fil | --cache-fi \
1146   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1147     ac_prev=cache_file ;;
1148   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1149   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1150     cache_file=$ac_optarg ;;
1151
1152   --config-cache | -C)
1153     cache_file=config.cache ;;
1154
1155   -datadir | --datadir | --datadi | --datad)
1156     ac_prev=datadir ;;
1157   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1158     datadir=$ac_optarg ;;
1159
1160   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1161   | --dataroo | --dataro | --datar)
1162     ac_prev=datarootdir ;;
1163   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1164   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1165     datarootdir=$ac_optarg ;;
1166
1167   -disable-* | --disable-*)
1168     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1169     # Reject names that are not valid shell variable names.
1170     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1172    { (exit 1); exit 1; }; }
1173     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1174     eval enable_$ac_feature=no ;;
1175
1176   -docdir | --docdir | --docdi | --doc | --do)
1177     ac_prev=docdir ;;
1178   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1179     docdir=$ac_optarg ;;
1180
1181   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1182     ac_prev=dvidir ;;
1183   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1184     dvidir=$ac_optarg ;;
1185
1186   -enable-* | --enable-*)
1187     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1188     # Reject names that are not valid shell variable names.
1189     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1191    { (exit 1); exit 1; }; }
1192     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1193     eval enable_$ac_feature=\$ac_optarg ;;
1194
1195   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1196   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1197   | --exec | --exe | --ex)
1198     ac_prev=exec_prefix ;;
1199   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1200   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1201   | --exec=* | --exe=* | --ex=*)
1202     exec_prefix=$ac_optarg ;;
1203
1204   -gas | --gas | --ga | --g)
1205     # Obsolete; use --with-gas.
1206     with_gas=yes ;;
1207
1208   -help | --help | --hel | --he | -h)
1209     ac_init_help=long ;;
1210   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1211     ac_init_help=recursive ;;
1212   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1213     ac_init_help=short ;;
1214
1215   -host | --host | --hos | --ho)
1216     ac_prev=host_alias ;;
1217   -host=* | --host=* | --hos=* | --ho=*)
1218     host_alias=$ac_optarg ;;
1219
1220   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1221     ac_prev=htmldir ;;
1222   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1223   | --ht=*)
1224     htmldir=$ac_optarg ;;
1225
1226   -includedir | --includedir | --includedi | --included | --include \
1227   | --includ | --inclu | --incl | --inc)
1228     ac_prev=includedir ;;
1229   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1230   | --includ=* | --inclu=* | --incl=* | --inc=*)
1231     includedir=$ac_optarg ;;
1232
1233   -infodir | --infodir | --infodi | --infod | --info | --inf)
1234     ac_prev=infodir ;;
1235   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1236     infodir=$ac_optarg ;;
1237
1238   -libdir | --libdir | --libdi | --libd)
1239     ac_prev=libdir ;;
1240   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1241     libdir=$ac_optarg ;;
1242
1243   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1244   | --libexe | --libex | --libe)
1245     ac_prev=libexecdir ;;
1246   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1247   | --libexe=* | --libex=* | --libe=*)
1248     libexecdir=$ac_optarg ;;
1249
1250   -localedir | --localedir | --localedi | --localed | --locale)
1251     ac_prev=localedir ;;
1252   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1253     localedir=$ac_optarg ;;
1254
1255   -localstatedir | --localstatedir | --localstatedi | --localstated \
1256   | --localstate | --localstat | --localsta | --localst | --locals)
1257     ac_prev=localstatedir ;;
1258   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1259   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1260     localstatedir=$ac_optarg ;;
1261
1262   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1263     ac_prev=mandir ;;
1264   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1265     mandir=$ac_optarg ;;
1266
1267   -nfp | --nfp | --nf)
1268     # Obsolete; use --without-fp.
1269     with_fp=no ;;
1270
1271   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1272   | --no-cr | --no-c | -n)
1273     no_create=yes ;;
1274
1275   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1276   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1277     no_recursion=yes ;;
1278
1279   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1280   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1281   | --oldin | --oldi | --old | --ol | --o)
1282     ac_prev=oldincludedir ;;
1283   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1284   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1285   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1286     oldincludedir=$ac_optarg ;;
1287
1288   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1289     ac_prev=prefix ;;
1290   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1291     prefix=$ac_optarg ;;
1292
1293   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1294   | --program-pre | --program-pr | --program-p)
1295     ac_prev=program_prefix ;;
1296   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1297   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1298     program_prefix=$ac_optarg ;;
1299
1300   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1301   | --program-suf | --program-su | --program-s)
1302     ac_prev=program_suffix ;;
1303   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1304   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1305     program_suffix=$ac_optarg ;;
1306
1307   -program-transform-name | --program-transform-name \
1308   | --program-transform-nam | --program-transform-na \
1309   | --program-transform-n | --program-transform- \
1310   | --program-transform | --program-transfor \
1311   | --program-transfo | --program-transf \
1312   | --program-trans | --program-tran \
1313   | --progr-tra | --program-tr | --program-t)
1314     ac_prev=program_transform_name ;;
1315   -program-transform-name=* | --program-transform-name=* \
1316   | --program-transform-nam=* | --program-transform-na=* \
1317   | --program-transform-n=* | --program-transform-=* \
1318   | --program-transform=* | --program-transfor=* \
1319   | --program-transfo=* | --program-transf=* \
1320   | --program-trans=* | --program-tran=* \
1321   | --progr-tra=* | --program-tr=* | --program-t=*)
1322     program_transform_name=$ac_optarg ;;
1323
1324   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1325     ac_prev=pdfdir ;;
1326   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1327     pdfdir=$ac_optarg ;;
1328
1329   -psdir | --psdir | --psdi | --psd | --ps)
1330     ac_prev=psdir ;;
1331   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1332     psdir=$ac_optarg ;;
1333
1334   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1335   | -silent | --silent | --silen | --sile | --sil)
1336     silent=yes ;;
1337
1338   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1339     ac_prev=sbindir ;;
1340   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1341   | --sbi=* | --sb=*)
1342     sbindir=$ac_optarg ;;
1343
1344   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1345   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1346   | --sharedst | --shareds | --shared | --share | --shar \
1347   | --sha | --sh)
1348     ac_prev=sharedstatedir ;;
1349   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1350   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1351   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1352   | --sha=* | --sh=*)
1353     sharedstatedir=$ac_optarg ;;
1354
1355   -site | --site | --sit)
1356     ac_prev=site ;;
1357   -site=* | --site=* | --sit=*)
1358     site=$ac_optarg ;;
1359
1360   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1361     ac_prev=srcdir ;;
1362   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1363     srcdir=$ac_optarg ;;
1364
1365   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1366   | --syscon | --sysco | --sysc | --sys | --sy)
1367     ac_prev=sysconfdir ;;
1368   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1369   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1370     sysconfdir=$ac_optarg ;;
1371
1372   -target | --target | --targe | --targ | --tar | --ta | --t)
1373     ac_prev=target_alias ;;
1374   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1375     target_alias=$ac_optarg ;;
1376
1377   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1378     verbose=yes ;;
1379
1380   -version | --version | --versio | --versi | --vers | -V)
1381     ac_init_version=: ;;
1382
1383   -with-* | --with-*)
1384     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1385     # Reject names that are not valid shell variable names.
1386     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1387       { echo "$as_me: error: invalid package name: $ac_package" >&2
1388    { (exit 1); exit 1; }; }
1389     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1390     eval with_$ac_package=\$ac_optarg ;;
1391
1392   -without-* | --without-*)
1393     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1394     # Reject names that are not valid shell variable names.
1395     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1396       { echo "$as_me: error: invalid package name: $ac_package" >&2
1397    { (exit 1); exit 1; }; }
1398     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1399     eval with_$ac_package=no ;;
1400
1401   --x)
1402     # Obsolete; use --with-x.
1403     with_x=yes ;;
1404
1405   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1406   | --x-incl | --x-inc | --x-in | --x-i)
1407     ac_prev=x_includes ;;
1408   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1409   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1410     x_includes=$ac_optarg ;;
1411
1412   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1413   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1414     ac_prev=x_libraries ;;
1415   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1416   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1417     x_libraries=$ac_optarg ;;
1418
1419   -*) { echo "$as_me: error: unrecognized option: $ac_option
1420 Try \`$0 --help' for more information." >&2
1421    { (exit 1); exit 1; }; }
1422     ;;
1423
1424   *=*)
1425     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1426     # Reject names that are not valid shell variable names.
1427     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1428       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1429    { (exit 1); exit 1; }; }
1430     eval $ac_envvar=\$ac_optarg
1431     export $ac_envvar ;;
1432
1433   *)
1434     # FIXME: should be removed in autoconf 3.0.
1435     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1436     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1437       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1438     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1439     ;;
1440
1441   esac
1442 done
1443
1444 if test -n "$ac_prev"; then
1445   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1446   { echo "$as_me: error: missing argument to $ac_option" >&2
1447    { (exit 1); exit 1; }; }
1448 fi
1449
1450 # Be sure to have absolute directory names.
1451 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1452                 datadir sysconfdir sharedstatedir localstatedir includedir \
1453                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1454                 libdir localedir mandir
1455 do
1456   eval ac_val=\$$ac_var
1457   case $ac_val in
1458     [\\/$]* | ?:[\\/]* )  continue;;
1459     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1460   esac
1461   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1462    { (exit 1); exit 1; }; }
1463 done
1464
1465 # There might be people who depend on the old broken behavior: `$host'
1466 # used to hold the argument of --host etc.
1467 # FIXME: To remove some day.
1468 build=$build_alias
1469 host=$host_alias
1470 target=$target_alias
1471
1472 # FIXME: To remove some day.
1473 if test "x$host_alias" != x; then
1474   if test "x$build_alias" = x; then
1475     cross_compiling=maybe
1476     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1477     If a cross compiler is detected then cross compile mode will be used." >&2
1478   elif test "x$build_alias" != "x$host_alias"; then
1479     cross_compiling=yes
1480   fi
1481 fi
1482
1483 ac_tool_prefix=
1484 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1485
1486 test "$silent" = yes && exec 6>/dev/null
1487
1488
1489 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1490 ac_ls_di=`ls -di .` &&
1491 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1492   { echo "$as_me: error: Working directory cannot be determined" >&2
1493    { (exit 1); exit 1; }; }
1494 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1495   { echo "$as_me: error: pwd does not report name of working directory" >&2
1496    { (exit 1); exit 1; }; }
1497
1498
1499 # Find the source files, if location was not specified.
1500 if test -z "$srcdir"; then
1501   ac_srcdir_defaulted=yes
1502   # Try the directory containing this script, then the parent directory.
1503   ac_confdir=`$as_dirname -- "$0" ||
1504 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1505          X"$0" : 'X\(//\)[^/]' \| \
1506          X"$0" : 'X\(//\)$' \| \
1507          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1508 echo X"$0" |
1509     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1510             s//\1/
1511             q
1512           }
1513           /^X\(\/\/\)[^/].*/{
1514             s//\1/
1515             q
1516           }
1517           /^X\(\/\/\)$/{
1518             s//\1/
1519             q
1520           }
1521           /^X\(\/\).*/{
1522             s//\1/
1523             q
1524           }
1525           s/.*/./; q'`
1526   srcdir=$ac_confdir
1527   if test ! -r "$srcdir/$ac_unique_file"; then
1528     srcdir=..
1529   fi
1530 else
1531   ac_srcdir_defaulted=no
1532 fi
1533 if test ! -r "$srcdir/$ac_unique_file"; then
1534   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1535   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1536    { (exit 1); exit 1; }; }
1537 fi
1538 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1539 ac_abs_confdir=`(
1540         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1541    { (exit 1); exit 1; }; }
1542         pwd)`
1543 # When building in place, set srcdir=.
1544 if test "$ac_abs_confdir" = "$ac_pwd"; then
1545   srcdir=.
1546 fi
1547 # Remove unnecessary trailing slashes from srcdir.
1548 # Double slashes in file names in object file debugging info
1549 # mess up M-x gdb in Emacs.
1550 case $srcdir in
1551 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1552 esac
1553 for ac_var in $ac_precious_vars; do
1554   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1555   eval ac_env_${ac_var}_value=\$${ac_var}
1556   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1557   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1558 done
1559
1560 #
1561 # Report the --help message.
1562 #
1563 if test "$ac_init_help" = "long"; then
1564   # Omit some internal or obsolete options to make the list less imposing.
1565   # This message is too long to be a string in the A/UX 3.1 sh.
1566   cat <<_ACEOF
1567 \`configure' configures this package to adapt to many kinds of systems.
1568
1569 Usage: $0 [OPTION]... [VAR=VALUE]...
1570
1571 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1572 VAR=VALUE.  See below for descriptions of some of the useful variables.
1573
1574 Defaults for the options are specified in brackets.
1575
1576 Configuration:
1577   -h, --help              display this help and exit
1578       --help=short        display options specific to this package
1579       --help=recursive    display the short help of all the included packages
1580   -V, --version           display version information and exit
1581   -q, --quiet, --silent   do not print \`checking...' messages
1582       --cache-file=FILE   cache test results in FILE [disabled]
1583   -C, --config-cache      alias for \`--cache-file=config.cache'
1584   -n, --no-create         do not create output files
1585       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1586
1587 Installation directories:
1588   --prefix=PREFIX         install architecture-independent files in PREFIX
1589                           [$ac_default_prefix]
1590   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1591                           [PREFIX]
1592
1593 By default, \`make install' will install all the files in
1594 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1595 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1596 for instance \`--prefix=\$HOME'.
1597
1598 For better control, use the options below.
1599
1600 Fine tuning of the installation directories:
1601   --bindir=DIR           user executables [EPREFIX/bin]
1602   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1603   --libexecdir=DIR       program executables [EPREFIX/libexec]
1604   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1605   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1606   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1607   --libdir=DIR           object code libraries [EPREFIX/lib]
1608   --includedir=DIR       C header files [PREFIX/include]
1609   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1610   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1611   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1612   --infodir=DIR          info documentation [DATAROOTDIR/info]
1613   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1614   --mandir=DIR           man documentation [DATAROOTDIR/man]
1615   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1616   --htmldir=DIR          html documentation [DOCDIR]
1617   --dvidir=DIR           dvi documentation [DOCDIR]
1618   --pdfdir=DIR           pdf documentation [DOCDIR]
1619   --psdir=DIR            ps documentation [DOCDIR]
1620 _ACEOF
1621
1622   cat <<\_ACEOF
1623
1624 X features:
1625   --x-includes=DIR    X include files are in DIR
1626   --x-libraries=DIR   X library files are in DIR
1627
1628 System types:
1629   --build=BUILD     configure for building on BUILD [guessed]
1630   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1631 _ACEOF
1632 fi
1633
1634 if test -n "$ac_init_help"; then
1635
1636   cat <<\_ACEOF
1637
1638 Optional Features:
1639   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1640   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1641   --enable-libtool        enable building using GNU libtool [default=yes]
1642   --enable-shared[=PKGS]  build shared libraries [default=yes]
1643   --enable-static[=PKGS]  build static libraries [default=no]
1644   --enable-fast-install[=PKGS]
1645                           optimize for fast installation [default=yes]
1646   --disable-libtool-lock  avoid locking (might break parallel builds)
1647   --enable-includes       enable installing of include files [default=no]
1648   --disable-nls           do not use Native Language Support
1649   --disable-rpath         do not hardcode runtime library paths
1650   --enable-gnome          enable build of bgnome-console GUI [default=no]
1651   --enable-bat            enable build of bat Qt4 GUI [default=no]
1652   --enable-bwx-console    enable build of wxWidgets console [default=no]
1653   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1654                           KDE [default=no]
1655   --enable-smartalloc     enable smartalloc debugging support [default=no]
1656   --enable-lockmgr        enable lock manager support [default=no]
1657   --enable-static-tools   enable static tape tools [default=no]
1658   --enable-static-fd      enable static File daemon [default=no]
1659   --enable-static-sd      enable static Storage daemon [default=no]
1660   --enable-static-dir     enable static Director [default=no]
1661   --enable-static-cons    enable static Console [default=no]
1662   --enable-client-only    build client (File daemon) only [default=no]
1663   --enable-build-dird     enable building of dird (Director) [default=yes]
1664   --enable-build-stored   enable building of stored (Storage daemon)
1665                           [default=yes]
1666   --disable-conio         disable conio support [default=no]
1667   --enable-ipv6           enable ipv6 support [default=yes]
1668   --disable-readline      disable readline support [default=yes]
1669   --enable-batch-insert   enable the DB batch insert code [default=no]
1670   --disable-largefile     omit support for large files
1671   --disable-acl           disable acl support [default=auto]
1672   --disable-xattr         disable xattr support [default=auto]
1673
1674 Optional Packages:
1675   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1676   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1677   --with-pic              try to use only PIC/non-PIC objects [default=use
1678                           both]
1679   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1680   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1681   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1682   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1683   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1684   --without-libintl-prefix     don't search for libintl in includedir and libdir
1685   --with-included-gettext use the GNU gettext library included here
1686   --with-qwt[=DIR]        specify qwt library directory
1687   --with-readline[=DIR]   specify readline library directory
1688   --with-python[=DIR]     Include Python support. DIR is the Python base
1689                           install directory, default is to search through a
1690                           number of common places for the Python files.
1691   --with-tcp-wrappers[=DIR]
1692                           enable tcpwrappers support
1693   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1694   --with-working-dir=PATH specify path of Bacula working directory
1695   --with-archivedir=PATH  specify path of SD archive directory
1696   --with-basename=RESNAME specify base resource name for daemons
1697   --with-hostname=RESNAME specify host name for daemons
1698   --with-scriptdir=PATH   specify path of Bacula scripts directory
1699   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1700   --with-logdir=PATH      specify path of Bacula logs directory
1701   --with-plugindir=PATH   specify path of Bacula plugins directory
1702   --with-dump-email=EMAIL dump email address
1703   --with-job-email=EMAIL  job output email address
1704   --with-smtp-host=HOST   SMTP mail host address
1705   --with-pid-dir=PATH     specify location of Bacula pid files
1706   --with-subsys-dir=PATH  specify location of Bacula subsys file
1707   --with-baseport=PORT    specify base port address for daemons
1708   --with-dir-password=PASSWORD
1709                           specify Director's password
1710   --with-fd-password=PASSWORD
1711                           specify Client's password
1712   --with-sd-password=PASSWORD
1713                           specify Storage daemon's password
1714   --with-mon-dir-password=PASSWORD
1715                           specify Director's password used by the monitor
1716   --with-mon-fd-password=PASSWORD
1717                           specify Client's password used by the monitor
1718   --with-mon-sd-password=PASSWORD
1719                           specify Storage daemon's password used by the
1720                           monitor
1721   --with-db-name=DBNAME   specify database name [default=bacula]
1722   --with-db-user=UNAME    specify database user [default=bacula]
1723   --with-db-password=PWD  specify database password [default=*none*]
1724   --with-db-port=DBPORT   specify a database port [default=null]
1725   --with-dir-user=USER    specify user for Director daemon
1726   --with-dir-group=GROUP  specify group for Director daemon
1727   --with-sd-user=USER     specify user for Storage daemon
1728   --with-sd-group=GROUP   specify group for Storage daemon
1729   --with-fd-user=USER     specify user for File daemon
1730   --with-fd-group=GROUP   specify group for File daemon
1731   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0754]
1732   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1733                           base install directory, [default=/usr/local/pgsql]
1734   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1735                           directory, default is to search through a number of
1736                           common places for the MySQL files.
1737   --with-embedded-mysql[=DIR]
1738                           Include MySQL support. DIR is the MySQL base install
1739                           directory, default is to search through a number of
1740                           common places for the MySQL files.
1741   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1742                           install directory, default is to search through a
1743                           number of common places for the SQLite3 files.
1744   --with-sqlite[=DIR]     Include SQLite support. DIR is the SQLite base
1745                           install directory, default is to search through a
1746                           number of common places for the SQLite files.
1747   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1748                           directory, default is to search through a number of
1749                           common places for the DBI files.
1750   --with-dbi-driver[=DRIVER]
1751                           Suport for DBI driver. DRIVER is the one DBI driver
1752                           like Mysql, Postgresql, others. Default is to not
1753                           configure any driver.
1754   --with-x                use the X Window System
1755
1756 Some influential environment variables:
1757   CC          C compiler command
1758   CFLAGS      C compiler flags
1759   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1760               nonstandard directory <lib dir>
1761   LIBS        libraries to pass to the linker, e.g. -l<library>
1762   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1763               you have headers in a nonstandard directory <include dir>
1764   CXX         C++ compiler command
1765   CXXFLAGS    C++ compiler flags
1766   CPP         C preprocessor
1767   WXCONFIG    wx-config command. On some systems, you must set it to
1768               wx-config-2.6 to use wxWidgets 2.6.
1769   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1770   CXXCPP      C++ preprocessor
1771   XMKMF       Path to xmkmf, Makefile generator for X Window System
1772
1773 Use these variables to override the choices made by `configure' or to help
1774 it to find libraries and programs with nonstandard names/locations.
1775
1776 _ACEOF
1777 ac_status=$?
1778 fi
1779
1780 if test "$ac_init_help" = "recursive"; then
1781   # If there are subdirs, report their specific --help.
1782   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1783     test -d "$ac_dir" || continue
1784     ac_builddir=.
1785
1786 case "$ac_dir" in
1787 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1788 *)
1789   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1790   # A ".." for each directory in $ac_dir_suffix.
1791   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1792   case $ac_top_builddir_sub in
1793   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1794   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1795   esac ;;
1796 esac
1797 ac_abs_top_builddir=$ac_pwd
1798 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1799 # for backward compatibility:
1800 ac_top_builddir=$ac_top_build_prefix
1801
1802 case $srcdir in
1803   .)  # We are building in place.
1804     ac_srcdir=.
1805     ac_top_srcdir=$ac_top_builddir_sub
1806     ac_abs_top_srcdir=$ac_pwd ;;
1807   [\\/]* | ?:[\\/]* )  # Absolute name.
1808     ac_srcdir=$srcdir$ac_dir_suffix;
1809     ac_top_srcdir=$srcdir
1810     ac_abs_top_srcdir=$srcdir ;;
1811   *) # Relative name.
1812     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1813     ac_top_srcdir=$ac_top_build_prefix$srcdir
1814     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1815 esac
1816 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1817
1818     cd "$ac_dir" || { ac_status=$?; continue; }
1819     # Check for guested configure.
1820     if test -f "$ac_srcdir/configure.gnu"; then
1821       echo &&
1822       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1823     elif test -f "$ac_srcdir/configure"; then
1824       echo &&
1825       $SHELL "$ac_srcdir/configure" --help=recursive
1826     else
1827       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1828     fi || ac_status=$?
1829     cd "$ac_pwd" || { ac_status=$?; break; }
1830   done
1831 fi
1832
1833 test -n "$ac_init_help" && exit $ac_status
1834 if $ac_init_version; then
1835   cat <<\_ACEOF
1836 configure
1837 generated by GNU Autoconf 2.61
1838
1839 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1840 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1841 This configure script is free software; the Free Software Foundation
1842 gives unlimited permission to copy, distribute and modify it.
1843 _ACEOF
1844   exit
1845 fi
1846 cat >config.log <<_ACEOF
1847 This file contains any messages produced by compilers while
1848 running configure, to aid debugging if configure makes a mistake.
1849
1850 It was created by $as_me, which was
1851 generated by GNU Autoconf 2.61.  Invocation command line was
1852
1853   $ $0 $@
1854
1855 _ACEOF
1856 exec 5>>config.log
1857 {
1858 cat <<_ASUNAME
1859 ## --------- ##
1860 ## Platform. ##
1861 ## --------- ##
1862
1863 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1864 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1865 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1866 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1867 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1868
1869 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1870 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1871
1872 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1873 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1874 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1875 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1876 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1877 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1878 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1879
1880 _ASUNAME
1881
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 for as_dir in $PATH
1884 do
1885   IFS=$as_save_IFS
1886   test -z "$as_dir" && as_dir=.
1887   echo "PATH: $as_dir"
1888 done
1889 IFS=$as_save_IFS
1890
1891 } >&5
1892
1893 cat >&5 <<_ACEOF
1894
1895
1896 ## ----------- ##
1897 ## Core tests. ##
1898 ## ----------- ##
1899
1900 _ACEOF
1901
1902
1903 # Keep a trace of the command line.
1904 # Strip out --no-create and --no-recursion so they do not pile up.
1905 # Strip out --silent because we don't want to record it for future runs.
1906 # Also quote any args containing shell meta-characters.
1907 # Make two passes to allow for proper duplicate-argument suppression.
1908 ac_configure_args=
1909 ac_configure_args0=
1910 ac_configure_args1=
1911 ac_must_keep_next=false
1912 for ac_pass in 1 2
1913 do
1914   for ac_arg
1915   do
1916     case $ac_arg in
1917     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1918     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1919     | -silent | --silent | --silen | --sile | --sil)
1920       continue ;;
1921     *\'*)
1922       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1923     esac
1924     case $ac_pass in
1925     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1926     2)
1927       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1928       if test $ac_must_keep_next = true; then
1929         ac_must_keep_next=false # Got value, back to normal.
1930       else
1931         case $ac_arg in
1932           *=* | --config-cache | -C | -disable-* | --disable-* \
1933           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1934           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1935           | -with-* | --with-* | -without-* | --without-* | --x)
1936             case "$ac_configure_args0 " in
1937               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1938             esac
1939             ;;
1940           -* ) ac_must_keep_next=true ;;
1941         esac
1942       fi
1943       ac_configure_args="$ac_configure_args '$ac_arg'"
1944       ;;
1945     esac
1946   done
1947 done
1948 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1949 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1950
1951 # When interrupted or exit'd, cleanup temporary files, and complete
1952 # config.log.  We remove comments because anyway the quotes in there
1953 # would cause problems or look ugly.
1954 # WARNING: Use '\'' to represent an apostrophe within the trap.
1955 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1956 trap 'exit_status=$?
1957   # Save into config.log some information that might help in debugging.
1958   {
1959     echo
1960
1961     cat <<\_ASBOX
1962 ## ---------------- ##
1963 ## Cache variables. ##
1964 ## ---------------- ##
1965 _ASBOX
1966     echo
1967     # The following way of writing the cache mishandles newlines in values,
1968 (
1969   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1970     eval ac_val=\$$ac_var
1971     case $ac_val in #(
1972     *${as_nl}*)
1973       case $ac_var in #(
1974       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1975 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1976       esac
1977       case $ac_var in #(
1978       _ | IFS | as_nl) ;; #(
1979       *) $as_unset $ac_var ;;
1980       esac ;;
1981     esac
1982   done
1983   (set) 2>&1 |
1984     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1985     *${as_nl}ac_space=\ *)
1986       sed -n \
1987         "s/'\''/'\''\\\\'\'''\''/g;
1988           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1989       ;; #(
1990     *)
1991       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1992       ;;
1993     esac |
1994     sort
1995 )
1996     echo
1997
1998     cat <<\_ASBOX
1999 ## ----------------- ##
2000 ## Output variables. ##
2001 ## ----------------- ##
2002 _ASBOX
2003     echo
2004     for ac_var in $ac_subst_vars
2005     do
2006       eval ac_val=\$$ac_var
2007       case $ac_val in
2008       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2009       esac
2010       echo "$ac_var='\''$ac_val'\''"
2011     done | sort
2012     echo
2013
2014     if test -n "$ac_subst_files"; then
2015       cat <<\_ASBOX
2016 ## ------------------- ##
2017 ## File substitutions. ##
2018 ## ------------------- ##
2019 _ASBOX
2020       echo
2021       for ac_var in $ac_subst_files
2022       do
2023         eval ac_val=\$$ac_var
2024         case $ac_val in
2025         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2026         esac
2027         echo "$ac_var='\''$ac_val'\''"
2028       done | sort
2029       echo
2030     fi
2031
2032     if test -s confdefs.h; then
2033       cat <<\_ASBOX
2034 ## ----------- ##
2035 ## confdefs.h. ##
2036 ## ----------- ##
2037 _ASBOX
2038       echo
2039       cat confdefs.h
2040       echo
2041     fi
2042     test "$ac_signal" != 0 &&
2043       echo "$as_me: caught signal $ac_signal"
2044     echo "$as_me: exit $exit_status"
2045   } >&5
2046   rm -f core *.core core.conftest.* &&
2047     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2048     exit $exit_status
2049 ' 0
2050 for ac_signal in 1 2 13 15; do
2051   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2052 done
2053 ac_signal=0
2054
2055 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2056 rm -f -r conftest* confdefs.h
2057
2058 # Predefined preprocessor variables.
2059
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_NAME "$PACKAGE_NAME"
2062 _ACEOF
2063
2064
2065 cat >>confdefs.h <<_ACEOF
2066 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2067 _ACEOF
2068
2069
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2072 _ACEOF
2073
2074
2075 cat >>confdefs.h <<_ACEOF
2076 #define PACKAGE_STRING "$PACKAGE_STRING"
2077 _ACEOF
2078
2079
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2082 _ACEOF
2083
2084
2085 # Let the site file select an alternate cache file if it wants to.
2086 # Prefer explicitly selected file to automatically selected ones.
2087 if test -n "$CONFIG_SITE"; then
2088   set x "$CONFIG_SITE"
2089 elif test "x$prefix" != xNONE; then
2090   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2091 else
2092   set x "$ac_default_prefix/share/config.site" \
2093         "$ac_default_prefix/etc/config.site"
2094 fi
2095 shift
2096 for ac_site_file
2097 do
2098   if test -r "$ac_site_file"; then
2099     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2100 echo "$as_me: loading site script $ac_site_file" >&6;}
2101     sed 's/^/| /' "$ac_site_file" >&5
2102     . "$ac_site_file"
2103   fi
2104 done
2105
2106 if test -r "$cache_file"; then
2107   # Some versions of bash will fail to source /dev/null (special
2108   # files actually), so we avoid doing that.
2109   if test -f "$cache_file"; then
2110     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2111 echo "$as_me: loading cache $cache_file" >&6;}
2112     case $cache_file in
2113       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2114       *)                      . "./$cache_file";;
2115     esac
2116   fi
2117 else
2118   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2119 echo "$as_me: creating cache $cache_file" >&6;}
2120   >$cache_file
2121 fi
2122
2123 # Check that the precious variables saved in the cache have kept the same
2124 # value.
2125 ac_cache_corrupted=false
2126 for ac_var in $ac_precious_vars; do
2127   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2128   eval ac_new_set=\$ac_env_${ac_var}_set
2129   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2130   eval ac_new_val=\$ac_env_${ac_var}_value
2131   case $ac_old_set,$ac_new_set in
2132     set,)
2133       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2134 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2135       ac_cache_corrupted=: ;;
2136     ,set)
2137       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2138 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2139       ac_cache_corrupted=: ;;
2140     ,);;
2141     *)
2142       if test "x$ac_old_val" != "x$ac_new_val"; then
2143         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2144 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2145         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2146 echo "$as_me:   former value:  $ac_old_val" >&2;}
2147         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2148 echo "$as_me:   current value: $ac_new_val" >&2;}
2149         ac_cache_corrupted=:
2150       fi;;
2151   esac
2152   # Pass precious variables to config.status.
2153   if test "$ac_new_set" = set; then
2154     case $ac_new_val in
2155     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2156     *) ac_arg=$ac_var=$ac_new_val ;;
2157     esac
2158     case " $ac_configure_args " in
2159       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2160       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2161     esac
2162   fi
2163 done
2164 if $ac_cache_corrupted; then
2165   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2166 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2167   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2168 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2169    { (exit 1); exit 1; }; }
2170 fi
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188 ac_ext=c
2189 ac_cpp='$CPP $CPPFLAGS'
2190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2193
2194
2195 BUILD_DIR=`pwd`
2196 cd ..
2197 TOP_DIR=`pwd`
2198 cd ${BUILD_DIR}
2199
2200
2201 ac_aux_dir=
2202 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2203   if test -f "$ac_dir/install-sh"; then
2204     ac_aux_dir=$ac_dir
2205     ac_install_sh="$ac_aux_dir/install-sh -c"
2206     break
2207   elif test -f "$ac_dir/install.sh"; then
2208     ac_aux_dir=$ac_dir
2209     ac_install_sh="$ac_aux_dir/install.sh -c"
2210     break
2211   elif test -f "$ac_dir/shtool"; then
2212     ac_aux_dir=$ac_dir
2213     ac_install_sh="$ac_aux_dir/shtool install -c"
2214     break
2215   fi
2216 done
2217 if test -z "$ac_aux_dir"; then
2218   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2219 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2220    { (exit 1); exit 1; }; }
2221 fi
2222
2223 # These three variables are undocumented and unsupported,
2224 # and are intended to be withdrawn in a future Autoconf release.
2225 # They can cause serious problems if a builder's source tree is in a directory
2226 # whose full name contains unusual characters.
2227 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2228 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2229 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2230
2231
2232 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2233
2234
2235 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2236 WIN32MAINDIR=${BUILD_DIR}
2237 WIN32TOPDIR=${TOP_DIR}
2238
2239
2240
2241
2242
2243
2244
2245 for ac_prog in true
2246 do
2247   # Extract the first word of "$ac_prog", so it can be a program name with args.
2248 set dummy $ac_prog; ac_word=$2
2249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2251 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2252   echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254   case $TRUEPRG in
2255   [\\/]* | ?:[\\/]*)
2256   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2257   ;;
2258   *)
2259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 for as_dir in $PATH
2261 do
2262   IFS=$as_save_IFS
2263   test -z "$as_dir" && as_dir=.
2264   for ac_exec_ext in '' $ac_executable_extensions; do
2265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2266     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268     break 2
2269   fi
2270 done
2271 done
2272 IFS=$as_save_IFS
2273
2274   ;;
2275 esac
2276 fi
2277 TRUEPRG=$ac_cv_path_TRUEPRG
2278 if test -n "$TRUEPRG"; then
2279   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2280 echo "${ECHO_T}$TRUEPRG" >&6; }
2281 else
2282   { echo "$as_me:$LINENO: result: no" >&5
2283 echo "${ECHO_T}no" >&6; }
2284 fi
2285
2286
2287   test -n "$TRUEPRG" && break
2288 done
2289 test -n "$TRUEPRG" || TRUEPRG=":"
2290
2291 for ac_prog in false
2292 do
2293   # Extract the first word of "$ac_prog", so it can be a program name with args.
2294 set dummy $ac_prog; ac_word=$2
2295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2297 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2298   echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300   case $FALSEPRG in
2301   [\\/]* | ?:[\\/]*)
2302   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2303   ;;
2304   *)
2305   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306 for as_dir in $PATH
2307 do
2308   IFS=$as_save_IFS
2309   test -z "$as_dir" && as_dir=.
2310   for ac_exec_ext in '' $ac_executable_extensions; do
2311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2312     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2314     break 2
2315   fi
2316 done
2317 done
2318 IFS=$as_save_IFS
2319
2320   ;;
2321 esac
2322 fi
2323 FALSEPRG=$ac_cv_path_FALSEPRG
2324 if test -n "$FALSEPRG"; then
2325   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2326 echo "${ECHO_T}$FALSEPRG" >&6; }
2327 else
2328   { echo "$as_me:$LINENO: result: no" >&5
2329 echo "${ECHO_T}no" >&6; }
2330 fi
2331
2332
2333   test -n "$FALSEPRG" && break
2334 done
2335 test -n "$FALSEPRG" || FALSEPRG=":"
2336
2337
2338
2339 post_host=
2340 if test "x$BACULA" != x; then
2341    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2342 fi
2343 BACULA=${BACULA:-Bacula}
2344 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2345 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2346 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2347 echo "configuring for ${BACULA} $VERSION ($DATE)"
2348
2349
2350 ac_ext=c
2351 ac_cpp='$CPP $CPPFLAGS'
2352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2355 if test -n "$ac_tool_prefix"; then
2356   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2357 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2360 if test "${ac_cv_prog_CC+set}" = set; then
2361   echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363   if test -n "$CC"; then
2364   ac_cv_prog_CC="$CC" # Let the user override the test.
2365 else
2366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 for as_dir in $PATH
2368 do
2369   IFS=$as_save_IFS
2370   test -z "$as_dir" && as_dir=.
2371   for ac_exec_ext in '' $ac_executable_extensions; do
2372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2373     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375     break 2
2376   fi
2377 done
2378 done
2379 IFS=$as_save_IFS
2380
2381 fi
2382 fi
2383 CC=$ac_cv_prog_CC
2384 if test -n "$CC"; then
2385   { echo "$as_me:$LINENO: result: $CC" >&5
2386 echo "${ECHO_T}$CC" >&6; }
2387 else
2388   { echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6; }
2390 fi
2391
2392
2393 fi
2394 if test -z "$ac_cv_prog_CC"; then
2395   ac_ct_CC=$CC
2396   # Extract the first word of "gcc", so it can be a program name with args.
2397 set dummy gcc; ac_word=$2
2398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2400 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2401   echo $ECHO_N "(cached) $ECHO_C" >&6
2402 else
2403   if test -n "$ac_ct_CC"; then
2404   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2405 else
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 for as_dir in $PATH
2408 do
2409   IFS=$as_save_IFS
2410   test -z "$as_dir" && as_dir=.
2411   for ac_exec_ext in '' $ac_executable_extensions; do
2412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2413     ac_cv_prog_ac_ct_CC="gcc"
2414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415     break 2
2416   fi
2417 done
2418 done
2419 IFS=$as_save_IFS
2420
2421 fi
2422 fi
2423 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2424 if test -n "$ac_ct_CC"; then
2425   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2426 echo "${ECHO_T}$ac_ct_CC" >&6; }
2427 else
2428   { echo "$as_me:$LINENO: result: no" >&5
2429 echo "${ECHO_T}no" >&6; }
2430 fi
2431
2432   if test "x$ac_ct_CC" = x; then
2433     CC=""
2434   else
2435     case $cross_compiling:$ac_tool_warned in
2436 yes:)
2437 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2438 whose name does not start with the host triplet.  If you think this
2439 configuration is useful to you, please write to autoconf@gnu.org." >&5
2440 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2441 whose name does not start with the host triplet.  If you think this
2442 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2443 ac_tool_warned=yes ;;
2444 esac
2445     CC=$ac_ct_CC
2446   fi
2447 else
2448   CC="$ac_cv_prog_CC"
2449 fi
2450
2451 if test -z "$CC"; then
2452           if test -n "$ac_tool_prefix"; then
2453     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2454 set dummy ${ac_tool_prefix}cc; ac_word=$2
2455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2457 if test "${ac_cv_prog_CC+set}" = set; then
2458   echo $ECHO_N "(cached) $ECHO_C" >&6
2459 else
2460   if test -n "$CC"; then
2461   ac_cv_prog_CC="$CC" # Let the user override the test.
2462 else
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2465 do
2466   IFS=$as_save_IFS
2467   test -z "$as_dir" && as_dir=.
2468   for ac_exec_ext in '' $ac_executable_extensions; do
2469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2470     ac_cv_prog_CC="${ac_tool_prefix}cc"
2471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472     break 2
2473   fi
2474 done
2475 done
2476 IFS=$as_save_IFS
2477
2478 fi
2479 fi
2480 CC=$ac_cv_prog_CC
2481 if test -n "$CC"; then
2482   { echo "$as_me:$LINENO: result: $CC" >&5
2483 echo "${ECHO_T}$CC" >&6; }
2484 else
2485   { echo "$as_me:$LINENO: result: no" >&5
2486 echo "${ECHO_T}no" >&6; }
2487 fi
2488
2489
2490   fi
2491 fi
2492 if test -z "$CC"; then
2493   # Extract the first word of "cc", so it can be a program name with args.
2494 set dummy cc; ac_word=$2
2495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2497 if test "${ac_cv_prog_CC+set}" = set; then
2498   echo $ECHO_N "(cached) $ECHO_C" >&6
2499 else
2500   if test -n "$CC"; then
2501   ac_cv_prog_CC="$CC" # Let the user override the test.
2502 else
2503   ac_prog_rejected=no
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2506 do
2507   IFS=$as_save_IFS
2508   test -z "$as_dir" && as_dir=.
2509   for ac_exec_ext in '' $ac_executable_extensions; do
2510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2511     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2512        ac_prog_rejected=yes
2513        continue
2514      fi
2515     ac_cv_prog_CC="cc"
2516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2517     break 2
2518   fi
2519 done
2520 done
2521 IFS=$as_save_IFS
2522
2523 if test $ac_prog_rejected = yes; then
2524   # We found a bogon in the path, so make sure we never use it.
2525   set dummy $ac_cv_prog_CC
2526   shift
2527   if test $# != 0; then
2528     # We chose a different compiler from the bogus one.
2529     # However, it has the same basename, so the bogon will be chosen
2530     # first if we set CC to just the basename; use the full file name.
2531     shift
2532     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2533   fi
2534 fi
2535 fi
2536 fi
2537 CC=$ac_cv_prog_CC
2538 if test -n "$CC"; then
2539   { echo "$as_me:$LINENO: result: $CC" >&5
2540 echo "${ECHO_T}$CC" >&6; }
2541 else
2542   { echo "$as_me:$LINENO: result: no" >&5
2543 echo "${ECHO_T}no" >&6; }
2544 fi
2545
2546
2547 fi
2548 if test -z "$CC"; then
2549   if test -n "$ac_tool_prefix"; then
2550   for ac_prog in cl.exe
2551   do
2552     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2556 if test "${ac_cv_prog_CC+set}" = set; then
2557   echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559   if test -n "$CC"; then
2560   ac_cv_prog_CC="$CC" # Let the user override the test.
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2564 do
2565   IFS=$as_save_IFS
2566   test -z "$as_dir" && as_dir=.
2567   for ac_exec_ext in '' $ac_executable_extensions; do
2568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2571     break 2
2572   fi
2573 done
2574 done
2575 IFS=$as_save_IFS
2576
2577 fi
2578 fi
2579 CC=$ac_cv_prog_CC
2580 if test -n "$CC"; then
2581   { echo "$as_me:$LINENO: result: $CC" >&5
2582 echo "${ECHO_T}$CC" >&6; }
2583 else
2584   { echo "$as_me:$LINENO: result: no" >&5
2585 echo "${ECHO_T}no" >&6; }
2586 fi
2587
2588
2589     test -n "$CC" && break
2590   done
2591 fi
2592 if test -z "$CC"; then
2593   ac_ct_CC=$CC
2594   for ac_prog in cl.exe
2595 do
2596   # Extract the first word of "$ac_prog", so it can be a program name with args.
2597 set dummy $ac_prog; ac_word=$2
2598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2600 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2601   echo $ECHO_N "(cached) $ECHO_C" >&6
2602 else
2603   if test -n "$ac_ct_CC"; then
2604   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2605 else
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH
2608 do
2609   IFS=$as_save_IFS
2610   test -z "$as_dir" && as_dir=.
2611   for ac_exec_ext in '' $ac_executable_extensions; do
2612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613     ac_cv_prog_ac_ct_CC="$ac_prog"
2614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615     break 2
2616   fi
2617 done
2618 done
2619 IFS=$as_save_IFS
2620
2621 fi
2622 fi
2623 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2624 if test -n "$ac_ct_CC"; then
2625   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2626 echo "${ECHO_T}$ac_ct_CC" >&6; }
2627 else
2628   { echo "$as_me:$LINENO: result: no" >&5
2629 echo "${ECHO_T}no" >&6; }
2630 fi
2631
2632
2633   test -n "$ac_ct_CC" && break
2634 done
2635
2636   if test "x$ac_ct_CC" = x; then
2637     CC=""
2638   else
2639     case $cross_compiling:$ac_tool_warned in
2640 yes:)
2641 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2642 whose name does not start with the host triplet.  If you think this
2643 configuration is useful to you, please write to autoconf@gnu.org." >&5
2644 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2645 whose name does not start with the host triplet.  If you think this
2646 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2647 ac_tool_warned=yes ;;
2648 esac
2649     CC=$ac_ct_CC
2650   fi
2651 fi
2652
2653 fi
2654
2655
2656 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2657 See \`config.log' for more details." >&5
2658 echo "$as_me: error: no acceptable C compiler found in \$PATH
2659 See \`config.log' for more details." >&2;}
2660    { (exit 1); exit 1; }; }
2661
2662 # Provide some information about the compiler.
2663 echo "$as_me:$LINENO: checking for C compiler version" >&5
2664 ac_compiler=`set X $ac_compile; echo $2`
2665 { (ac_try="$ac_compiler --version >&5"
2666 case "(($ac_try" in
2667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2668   *) ac_try_echo=$ac_try;;
2669 esac
2670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2671   (eval "$ac_compiler --version >&5") 2>&5
2672   ac_status=$?
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); }
2675 { (ac_try="$ac_compiler -v >&5"
2676 case "(($ac_try" in
2677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678   *) ac_try_echo=$ac_try;;
2679 esac
2680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2681   (eval "$ac_compiler -v >&5") 2>&5
2682   ac_status=$?
2683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684   (exit $ac_status); }
2685 { (ac_try="$ac_compiler -V >&5"
2686 case "(($ac_try" in
2687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688   *) ac_try_echo=$ac_try;;
2689 esac
2690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691   (eval "$ac_compiler -V >&5") 2>&5
2692   ac_status=$?
2693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694   (exit $ac_status); }
2695
2696 cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h.  */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h.  */
2702
2703 int
2704 main ()
2705 {
2706
2707   ;
2708   return 0;
2709 }
2710 _ACEOF
2711 ac_clean_files_save=$ac_clean_files
2712 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2713 # Try to create an executable without -o first, disregard a.out.
2714 # It will help us diagnose broken compilers, and finding out an intuition
2715 # of exeext.
2716 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2717 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2718 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2719 #
2720 # List of possible output files, starting from the most likely.
2721 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2722 # only as a last resort.  b.out is created by i960 compilers.
2723 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2724 #
2725 # The IRIX 6 linker writes into existing files which may not be
2726 # executable, retaining their permissions.  Remove them first so a
2727 # subsequent execution test works.
2728 ac_rmfiles=
2729 for ac_file in $ac_files
2730 do
2731   case $ac_file in
2732     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2733     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2734   esac
2735 done
2736 rm -f $ac_rmfiles
2737
2738 if { (ac_try="$ac_link_default"
2739 case "(($ac_try" in
2740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741   *) ac_try_echo=$ac_try;;
2742 esac
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744   (eval "$ac_link_default") 2>&5
2745   ac_status=$?
2746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747   (exit $ac_status); }; then
2748   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2749 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2750 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2751 # so that the user can short-circuit this test for compilers unknown to
2752 # Autoconf.
2753 for ac_file in $ac_files ''
2754 do
2755   test -f "$ac_file" || continue
2756   case $ac_file in
2757     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2758         ;;
2759     [ab].out )
2760         # We found the default executable, but exeext='' is most
2761         # certainly right.
2762         break;;
2763     *.* )
2764         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2765         then :; else
2766            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2767         fi
2768         # We set ac_cv_exeext here because the later test for it is not
2769         # safe: cross compilers may not add the suffix if given an `-o'
2770         # argument, so we may need to know it at that point already.
2771         # Even if this section looks crufty: it has the advantage of
2772         # actually working.
2773         break;;
2774     * )
2775         break;;
2776   esac
2777 done
2778 test "$ac_cv_exeext" = no && ac_cv_exeext=
2779
2780 else
2781   ac_file=''
2782 fi
2783
2784 { echo "$as_me:$LINENO: result: $ac_file" >&5
2785 echo "${ECHO_T}$ac_file" >&6; }
2786 if test -z "$ac_file"; then
2787   echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2789
2790 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2791 See \`config.log' for more details." >&5
2792 echo "$as_me: error: C compiler cannot create executables
2793 See \`config.log' for more details." >&2;}
2794    { (exit 77); exit 77; }; }
2795 fi
2796
2797 ac_exeext=$ac_cv_exeext
2798
2799 # Check that the compiler produces executables we can run.  If not, either
2800 # the compiler is broken, or we cross compile.
2801 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2802 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2803 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2804 # If not cross compiling, check that we can run a simple program.
2805 if test "$cross_compiling" != yes; then
2806   if { ac_try='./$ac_file'
2807   { (case "(($ac_try" in
2808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809   *) ac_try_echo=$ac_try;;
2810 esac
2811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812   (eval "$ac_try") 2>&5
2813   ac_status=$?
2814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815   (exit $ac_status); }; }; then
2816     cross_compiling=no
2817   else
2818     if test "$cross_compiling" = maybe; then
2819         cross_compiling=yes
2820     else
2821         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2822 If you meant to cross compile, use \`--host'.
2823 See \`config.log' for more details." >&5
2824 echo "$as_me: error: cannot run C compiled programs.
2825 If you meant to cross compile, use \`--host'.
2826 See \`config.log' for more details." >&2;}
2827    { (exit 1); exit 1; }; }
2828     fi
2829   fi
2830 fi
2831 { echo "$as_me:$LINENO: result: yes" >&5
2832 echo "${ECHO_T}yes" >&6; }
2833
2834 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2835 ac_clean_files=$ac_clean_files_save
2836 # Check that the compiler produces executables we can run.  If not, either
2837 # the compiler is broken, or we cross compile.
2838 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2839 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2840 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2841 echo "${ECHO_T}$cross_compiling" >&6; }
2842
2843 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2844 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2845 if { (ac_try="$ac_link"
2846 case "(($ac_try" in
2847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848   *) ac_try_echo=$ac_try;;
2849 esac
2850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851   (eval "$ac_link") 2>&5
2852   ac_status=$?
2853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); }; then
2855   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2856 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2857 # work properly (i.e., refer to `conftest.exe'), while it won't with
2858 # `rm'.
2859 for ac_file in conftest.exe conftest conftest.*; do
2860   test -f "$ac_file" || continue
2861   case $ac_file in
2862     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2863     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2864           break;;
2865     * ) break;;
2866   esac
2867 done
2868 else
2869   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2870 See \`config.log' for more details." >&5
2871 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2872 See \`config.log' for more details." >&2;}
2873    { (exit 1); exit 1; }; }
2874 fi
2875
2876 rm -f conftest$ac_cv_exeext
2877 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2878 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2879
2880 rm -f conftest.$ac_ext
2881 EXEEXT=$ac_cv_exeext
2882 ac_exeext=$EXEEXT
2883 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2884 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2885 if test "${ac_cv_objext+set}" = set; then
2886   echo $ECHO_N "(cached) $ECHO_C" >&6
2887 else
2888   cat >conftest.$ac_ext <<_ACEOF
2889 /* confdefs.h.  */
2890 _ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h.  */
2894
2895 int
2896 main ()
2897 {
2898
2899   ;
2900   return 0;
2901 }
2902 _ACEOF
2903 rm -f conftest.o conftest.obj
2904 if { (ac_try="$ac_compile"
2905 case "(($ac_try" in
2906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907   *) ac_try_echo=$ac_try;;
2908 esac
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910   (eval "$ac_compile") 2>&5
2911   ac_status=$?
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); }; then
2914   for ac_file in conftest.o conftest.obj conftest.*; do
2915   test -f "$ac_file" || continue;
2916   case $ac_file in
2917     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2918     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2919        break;;
2920   esac
2921 done
2922 else
2923   echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2925
2926 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2927 See \`config.log' for more details." >&5
2928 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2929 See \`config.log' for more details." >&2;}
2930    { (exit 1); exit 1; }; }
2931 fi
2932
2933 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2934 fi
2935 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2936 echo "${ECHO_T}$ac_cv_objext" >&6; }
2937 OBJEXT=$ac_cv_objext
2938 ac_objext=$OBJEXT
2939 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2940 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2941 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2942   echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944   cat >conftest.$ac_ext <<_ACEOF
2945 /* confdefs.h.  */
2946 _ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h.  */
2950
2951 int
2952 main ()
2953 {
2954 #ifndef __GNUC__
2955        choke me
2956 #endif
2957
2958   ;
2959   return 0;
2960 }
2961 _ACEOF
2962 rm -f conftest.$ac_objext
2963 if { (ac_try="$ac_compile"
2964 case "(($ac_try" in
2965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966   *) ac_try_echo=$ac_try;;
2967 esac
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969   (eval "$ac_compile") 2>conftest.er1
2970   ac_status=$?
2971   grep -v '^ *+' conftest.er1 >conftest.err
2972   rm -f conftest.er1
2973   cat conftest.err >&5
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); } && {
2976          test -z "$ac_c_werror_flag" ||
2977          test ! -s conftest.err
2978        } && test -s conftest.$ac_objext; then
2979   ac_compiler_gnu=yes
2980 else
2981   echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2983
2984         ac_compiler_gnu=no
2985 fi
2986
2987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2988 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2989
2990 fi
2991 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2992 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2993 GCC=`test $ac_compiler_gnu = yes && echo yes`
2994 ac_test_CFLAGS=${CFLAGS+set}
2995 ac_save_CFLAGS=$CFLAGS
2996 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2997 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2998 if test "${ac_cv_prog_cc_g+set}" = set; then
2999   echo $ECHO_N "(cached) $ECHO_C" >&6
3000 else
3001   ac_save_c_werror_flag=$ac_c_werror_flag
3002    ac_c_werror_flag=yes
3003    ac_cv_prog_cc_g=no
3004    CFLAGS="-g"
3005    cat >conftest.$ac_ext <<_ACEOF
3006 /* confdefs.h.  */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h.  */
3011
3012 int
3013 main ()
3014 {
3015
3016   ;
3017   return 0;
3018 }
3019 _ACEOF
3020 rm -f conftest.$ac_objext
3021 if { (ac_try="$ac_compile"
3022 case "(($ac_try" in
3023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024   *) ac_try_echo=$ac_try;;
3025 esac
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027   (eval "$ac_compile") 2>conftest.er1
3028   ac_status=$?
3029   grep -v '^ *+' conftest.er1 >conftest.err
3030   rm -f conftest.er1
3031   cat conftest.err >&5
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); } && {
3034          test -z "$ac_c_werror_flag" ||
3035          test ! -s conftest.err
3036        } && test -s conftest.$ac_objext; then
3037   ac_cv_prog_cc_g=yes
3038 else
3039   echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3041
3042         CFLAGS=""
3043       cat >conftest.$ac_ext <<_ACEOF
3044 /* confdefs.h.  */
3045 _ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h.  */
3049
3050 int
3051 main ()
3052 {
3053
3054   ;
3055   return 0;
3056 }
3057 _ACEOF
3058 rm -f conftest.$ac_objext
3059 if { (ac_try="$ac_compile"
3060 case "(($ac_try" in
3061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062   *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065   (eval "$ac_compile") 2>conftest.er1
3066   ac_status=$?
3067   grep -v '^ *+' conftest.er1 >conftest.err
3068   rm -f conftest.er1
3069   cat conftest.err >&5
3070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071   (exit $ac_status); } && {
3072          test -z "$ac_c_werror_flag" ||
3073          test ! -s conftest.err
3074        } && test -s conftest.$ac_objext; then
3075   :
3076 else
3077   echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3079
3080         ac_c_werror_flag=$ac_save_c_werror_flag
3081          CFLAGS="-g"
3082          cat >conftest.$ac_ext <<_ACEOF
3083 /* confdefs.h.  */
3084 _ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h.  */
3088
3089 int
3090 main ()
3091 {
3092
3093   ;
3094   return 0;
3095 }
3096 _ACEOF
3097 rm -f conftest.$ac_objext
3098 if { (ac_try="$ac_compile"
3099 case "(($ac_try" in
3100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101   *) ac_try_echo=$ac_try;;
3102 esac
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104   (eval "$ac_compile") 2>conftest.er1
3105   ac_status=$?
3106   grep -v '^ *+' conftest.er1 >conftest.err
3107   rm -f conftest.er1
3108   cat conftest.err >&5
3109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110   (exit $ac_status); } && {
3111          test -z "$ac_c_werror_flag" ||
3112          test ! -s conftest.err
3113        } && test -s conftest.$ac_objext; then
3114   ac_cv_prog_cc_g=yes
3115 else
3116   echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3118
3119
3120 fi
3121
3122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3123 fi
3124
3125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3126 fi
3127
3128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3129    ac_c_werror_flag=$ac_save_c_werror_flag
3130 fi
3131 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3132 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3133 if test "$ac_test_CFLAGS" = set; then
3134   CFLAGS=$ac_save_CFLAGS
3135 elif test $ac_cv_prog_cc_g = yes; then
3136   if test "$GCC" = yes; then
3137     CFLAGS="-g -O2"
3138   else
3139     CFLAGS="-g"
3140   fi
3141 else
3142   if test "$GCC" = yes; then
3143     CFLAGS="-O2"
3144   else
3145     CFLAGS=
3146   fi
3147 fi
3148 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3149 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3150 if test "${ac_cv_prog_cc_c89+set}" = set; then
3151   echo $ECHO_N "(cached) $ECHO_C" >&6
3152 else
3153   ac_cv_prog_cc_c89=no
3154 ac_save_CC=$CC
3155 cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h.  */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h.  */
3161 #include <stdarg.h>
3162 #include <stdio.h>
3163 #include <sys/types.h>
3164 #include <sys/stat.h>
3165 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3166 struct buf { int x; };
3167 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3168 static char *e (p, i)
3169      char **p;
3170      int i;
3171 {
3172   return p[i];
3173 }
3174 static char *f (char * (*g) (char **, int), char **p, ...)
3175 {
3176   char *s;
3177   va_list v;
3178   va_start (v,p);
3179   s = g (p, va_arg (v,int));
3180   va_end (v);
3181   return s;
3182 }
3183
3184 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3185    function prototypes and stuff, but not '\xHH' hex character constants.
3186    These don't provoke an error unfortunately, instead are silently treated
3187    as 'x'.  The following induces an error, until -std is added to get
3188    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3189    array size at least.  It's necessary to write '\x00'==0 to get something
3190    that's true only with -std.  */
3191 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3192
3193 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3194    inside strings and character constants.  */
3195 #define FOO(x) 'x'
3196 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3197
3198 int test (int i, double x);
3199 struct s1 {int (*f) (int a);};
3200 struct s2 {int (*f) (double a);};
3201 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3202 int argc;
3203 char **argv;
3204 int
3205 main ()
3206 {
3207 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3208   ;
3209   return 0;
3210 }
3211 _ACEOF
3212 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3213         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3214 do
3215   CC="$ac_save_CC $ac_arg"
3216   rm -f conftest.$ac_objext
3217 if { (ac_try="$ac_compile"
3218 case "(($ac_try" in
3219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220   *) ac_try_echo=$ac_try;;
3221 esac
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223   (eval "$ac_compile") 2>conftest.er1
3224   ac_status=$?
3225   grep -v '^ *+' conftest.er1 >conftest.err
3226   rm -f conftest.er1
3227   cat conftest.err >&5
3228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229   (exit $ac_status); } && {
3230          test -z "$ac_c_werror_flag" ||
3231          test ! -s conftest.err
3232        } && test -s conftest.$ac_objext; then
3233   ac_cv_prog_cc_c89=$ac_arg
3234 else
3235   echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3237
3238
3239 fi
3240
3241 rm -f core conftest.err conftest.$ac_objext
3242   test "x$ac_cv_prog_cc_c89" != "xno" && break
3243 done
3244 rm -f conftest.$ac_ext
3245 CC=$ac_save_CC
3246
3247 fi
3248 # AC_CACHE_VAL
3249 case "x$ac_cv_prog_cc_c89" in
3250   x)
3251     { echo "$as_me:$LINENO: result: none needed" >&5
3252 echo "${ECHO_T}none needed" >&6; } ;;
3253   xno)
3254     { echo "$as_me:$LINENO: result: unsupported" >&5
3255 echo "${ECHO_T}unsupported" >&6; } ;;
3256   *)
3257     CC="$CC $ac_cv_prog_cc_c89"
3258     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3259 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3260 esac
3261
3262
3263 ac_ext=c
3264 ac_cpp='$CPP $CPPFLAGS'
3265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268
3269 ac_ext=cpp
3270 ac_cpp='$CXXCPP $CPPFLAGS'
3271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3274 if test -z "$CXX"; then
3275   if test -n "$CCC"; then
3276     CXX=$CCC
3277   else
3278     if test -n "$ac_tool_prefix"; then
3279   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3280   do
3281     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3285 if test "${ac_cv_prog_CXX+set}" = set; then
3286   echo $ECHO_N "(cached) $ECHO_C" >&6
3287 else
3288   if test -n "$CXX"; then
3289   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3290 else
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3293 do
3294   IFS=$as_save_IFS
3295   test -z "$as_dir" && as_dir=.
3296   for ac_exec_ext in '' $ac_executable_extensions; do
3297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3298     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3300     break 2
3301   fi
3302 done
3303 done
3304 IFS=$as_save_IFS
3305
3306 fi
3307 fi
3308 CXX=$ac_cv_prog_CXX
3309 if test -n "$CXX"; then
3310   { echo "$as_me:$LINENO: result: $CXX" >&5
3311 echo "${ECHO_T}$CXX" >&6; }
3312 else
3313   { echo "$as_me:$LINENO: result: no" >&5
3314 echo "${ECHO_T}no" >&6; }
3315 fi
3316
3317
3318     test -n "$CXX" && break
3319   done
3320 fi
3321 if test -z "$CXX"; then
3322   ac_ct_CXX=$CXX
3323   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3324 do
3325   # Extract the first word of "$ac_prog", so it can be a program name with args.
3326 set dummy $ac_prog; ac_word=$2
3327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3329 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3330   echo $ECHO_N "(cached) $ECHO_C" >&6
3331 else
3332   if test -n "$ac_ct_CXX"; then
3333   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3334 else
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
3337 do
3338   IFS=$as_save_IFS
3339   test -z "$as_dir" && as_dir=.
3340   for ac_exec_ext in '' $ac_executable_extensions; do
3341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3342     ac_cv_prog_ac_ct_CXX="$ac_prog"
3343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3344     break 2
3345   fi
3346 done
3347 done
3348 IFS=$as_save_IFS
3349
3350 fi
3351 fi
3352 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3353 if test -n "$ac_ct_CXX"; then
3354   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3355 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3356 else
3357   { echo "$as_me:$LINENO: result: no" >&5
3358 echo "${ECHO_T}no" >&6; }
3359 fi
3360
3361
3362   test -n "$ac_ct_CXX" && break
3363 done
3364
3365   if test "x$ac_ct_CXX" = x; then
3366     CXX="g++"
3367   else
3368     case $cross_compiling:$ac_tool_warned in
3369 yes:)
3370 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3371 whose name does not start with the host triplet.  If you think this
3372 configuration is useful to you, please write to autoconf@gnu.org." >&5
3373 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3374 whose name does not start with the host triplet.  If you think this
3375 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3376 ac_tool_warned=yes ;;
3377 esac
3378     CXX=$ac_ct_CXX
3379   fi
3380 fi
3381
3382   fi
3383 fi
3384 # Provide some information about the compiler.
3385 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3386 ac_compiler=`set X $ac_compile; echo $2`
3387 { (ac_try="$ac_compiler --version >&5"
3388 case "(($ac_try" in
3389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390   *) ac_try_echo=$ac_try;;
3391 esac
3392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3393   (eval "$ac_compiler --version >&5") 2>&5
3394   ac_status=$?
3395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396   (exit $ac_status); }
3397 { (ac_try="$ac_compiler -v >&5"
3398 case "(($ac_try" in
3399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400   *) ac_try_echo=$ac_try;;
3401 esac
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403   (eval "$ac_compiler -v >&5") 2>&5
3404   ac_status=$?
3405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406   (exit $ac_status); }
3407 { (ac_try="$ac_compiler -V >&5"
3408 case "(($ac_try" in
3409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410   *) ac_try_echo=$ac_try;;
3411 esac
3412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413   (eval "$ac_compiler -V >&5") 2>&5
3414   ac_status=$?
3415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416   (exit $ac_status); }
3417
3418 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3419 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3420 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3421   echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423   cat >conftest.$ac_ext <<_ACEOF
3424 /* confdefs.h.  */
3425 _ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h.  */
3429
3430 int
3431 main ()
3432 {
3433 #ifndef __GNUC__
3434        choke me
3435 #endif
3436
3437   ;
3438   return 0;
3439 }
3440 _ACEOF
3441 rm -f conftest.$ac_objext
3442 if { (ac_try="$ac_compile"
3443 case "(($ac_try" in
3444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445   *) ac_try_echo=$ac_try;;
3446 esac
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448   (eval "$ac_compile") 2>conftest.er1
3449   ac_status=$?
3450   grep -v '^ *+' conftest.er1 >conftest.err
3451   rm -f conftest.er1
3452   cat conftest.err >&5
3453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454   (exit $ac_status); } && {
3455          test -z "$ac_cxx_werror_flag" ||
3456          test ! -s conftest.err
3457        } && test -s conftest.$ac_objext; then
3458   ac_compiler_gnu=yes
3459 else
3460   echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3462
3463         ac_compiler_gnu=no
3464 fi
3465
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3468
3469 fi
3470 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3471 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3472 GXX=`test $ac_compiler_gnu = yes && echo yes`
3473 ac_test_CXXFLAGS=${CXXFLAGS+set}
3474 ac_save_CXXFLAGS=$CXXFLAGS
3475 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3476 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3477 if test "${ac_cv_prog_cxx_g+set}" = set; then
3478   echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3481    ac_cxx_werror_flag=yes
3482    ac_cv_prog_cxx_g=no
3483    CXXFLAGS="-g"
3484    cat >conftest.$ac_ext <<_ACEOF
3485 /* confdefs.h.  */
3486 _ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h.  */
3490
3491 int
3492 main ()
3493 {
3494
3495   ;
3496   return 0;
3497 }
3498 _ACEOF
3499 rm -f conftest.$ac_objext
3500 if { (ac_try="$ac_compile"
3501 case "(($ac_try" in
3502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503   *) ac_try_echo=$ac_try;;
3504 esac
3505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3506   (eval "$ac_compile") 2>conftest.er1
3507   ac_status=$?
3508   grep -v '^ *+' conftest.er1 >conftest.err
3509   rm -f conftest.er1
3510   cat conftest.err >&5
3511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512   (exit $ac_status); } && {
3513          test -z "$ac_cxx_werror_flag" ||
3514          test ! -s conftest.err
3515        } && test -s conftest.$ac_objext; then
3516   ac_cv_prog_cxx_g=yes
3517 else
3518   echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3520
3521         CXXFLAGS=""
3522       cat >conftest.$ac_ext <<_ACEOF
3523 /* confdefs.h.  */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h.  */
3528
3529 int
3530 main ()
3531 {
3532
3533   ;
3534   return 0;
3535 }
3536 _ACEOF
3537 rm -f conftest.$ac_objext
3538 if { (ac_try="$ac_compile"
3539 case "(($ac_try" in
3540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541   *) ac_try_echo=$ac_try;;
3542 esac
3543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544   (eval "$ac_compile") 2>conftest.er1
3545   ac_status=$?
3546   grep -v '^ *+' conftest.er1 >conftest.err
3547   rm -f conftest.er1
3548   cat conftest.err >&5
3549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550   (exit $ac_status); } && {
3551          test -z "$ac_cxx_werror_flag" ||
3552          test ! -s conftest.err
3553        } && test -s conftest.$ac_objext; then
3554   :
3555 else
3556   echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3558
3559         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3560          CXXFLAGS="-g"
3561          cat >conftest.$ac_ext <<_ACEOF
3562 /* confdefs.h.  */
3563 _ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h.  */
3567
3568 int
3569 main ()
3570 {
3571
3572   ;
3573   return 0;
3574 }
3575 _ACEOF
3576 rm -f conftest.$ac_objext
3577 if { (ac_try="$ac_compile"
3578 case "(($ac_try" in
3579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580   *) ac_try_echo=$ac_try;;
3581 esac
3582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583   (eval "$ac_compile") 2>conftest.er1
3584   ac_status=$?
3585   grep -v '^ *+' conftest.er1 >conftest.err
3586   rm -f conftest.er1
3587   cat conftest.err >&5
3588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589   (exit $ac_status); } && {
3590          test -z "$ac_cxx_werror_flag" ||
3591          test ! -s conftest.err
3592        } && test -s conftest.$ac_objext; then
3593   ac_cv_prog_cxx_g=yes
3594 else
3595   echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3597
3598
3599 fi
3600
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602 fi
3603
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 fi
3606
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3609 fi
3610 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3611 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3612 if test "$ac_test_CXXFLAGS" = set; then
3613   CXXFLAGS=$ac_save_CXXFLAGS
3614 elif test $ac_cv_prog_cxx_g = yes; then
3615   if test "$GXX" = yes; then
3616     CXXFLAGS="-g -O2"
3617   else
3618     CXXFLAGS="-g"
3619   fi
3620 else
3621   if test "$GXX" = yes; then
3622     CXXFLAGS="-O2"
3623   else
3624     CXXFLAGS=
3625   fi
3626 fi
3627 ac_ext=c
3628 ac_cpp='$CPP $CPPFLAGS'
3629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632
3633 if test "x$CC" != xcc; then
3634   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3635 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3636 else
3637   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3638 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3639 fi
3640 set dummy $CC; ac_cc=`echo $2 |
3641                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3642 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3643   echo $ECHO_N "(cached) $ECHO_C" >&6
3644 else
3645   cat >conftest.$ac_ext <<_ACEOF
3646 /* confdefs.h.  */
3647 _ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h.  */
3651
3652 int
3653 main ()
3654 {
3655
3656   ;
3657   return 0;
3658 }
3659 _ACEOF
3660 # Make sure it works both with $CC and with simple cc.
3661 # We do the test twice because some compilers refuse to overwrite an
3662 # existing .o file with -o, though they will create one.
3663 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3664 rm -f conftest2.*
3665 if { (case "(($ac_try" in
3666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667   *) ac_try_echo=$ac_try;;
3668 esac
3669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670   (eval "$ac_try") 2>&5
3671   ac_status=$?
3672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673   (exit $ac_status); } &&
3674    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676   *) ac_try_echo=$ac_try;;
3677 esac
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679   (eval "$ac_try") 2>&5
3680   ac_status=$?
3681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682   (exit $ac_status); };
3683 then
3684   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3685   if test "x$CC" != xcc; then
3686     # Test first that cc exists at all.
3687     if { ac_try='cc -c conftest.$ac_ext >&5'
3688   { (case "(($ac_try" in
3689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690   *) ac_try_echo=$ac_try;;
3691 esac
3692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3693   (eval "$ac_try") 2>&5
3694   ac_status=$?
3695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696   (exit $ac_status); }; }; then
3697       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3698       rm -f conftest2.*
3699       if { (case "(($ac_try" in
3700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701   *) ac_try_echo=$ac_try;;
3702 esac
3703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3704   (eval "$ac_try") 2>&5
3705   ac_status=$?
3706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707   (exit $ac_status); } &&
3708          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710   *) ac_try_echo=$ac_try;;
3711 esac
3712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713   (eval "$ac_try") 2>&5
3714   ac_status=$?
3715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716   (exit $ac_status); };
3717       then
3718         # cc works too.
3719         :
3720       else
3721         # cc exists but doesn't like -o.
3722         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3723       fi
3724     fi
3725   fi
3726 else
3727   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3728 fi
3729 rm -f core conftest*
3730
3731 fi
3732 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3733   { echo "$as_me:$LINENO: result: yes" >&5
3734 echo "${ECHO_T}yes" >&6; }
3735 else
3736   { echo "$as_me:$LINENO: result: no" >&5
3737 echo "${ECHO_T}no" >&6; }
3738
3739 cat >>confdefs.h <<\_ACEOF
3740 #define NO_MINUS_C_MINUS_O 1
3741 _ACEOF
3742
3743 fi
3744
3745 ac_ext=c
3746 ac_cpp='$CPP $CPPFLAGS'
3747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3750 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3751 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3752 # On Suns, sometimes $CPP names a directory.
3753 if test -n "$CPP" && test -d "$CPP"; then
3754   CPP=
3755 fi
3756 if test -z "$CPP"; then
3757   if test "${ac_cv_prog_CPP+set}" = set; then
3758   echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760       # Double quotes because CPP needs to be expanded
3761     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3762     do
3763       ac_preproc_ok=false
3764 for ac_c_preproc_warn_flag in '' yes
3765 do
3766   # Use a header file that comes with gcc, so configuring glibc
3767   # with a fresh cross-compiler works.
3768   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3769   # <limits.h> exists even on freestanding compilers.
3770   # On the NeXT, cc -E runs the code through the compiler's parser,
3771   # not just through cpp. "Syntax error" is here to catch this case.
3772   cat >conftest.$ac_ext <<_ACEOF
3773 /* confdefs.h.  */
3774 _ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h.  */
3778 #ifdef __STDC__
3779 # include <limits.h>
3780 #else
3781 # include <assert.h>
3782 #endif
3783                      Syntax error
3784 _ACEOF
3785 if { (ac_try="$ac_cpp conftest.$ac_ext"
3786 case "(($ac_try" in
3787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788   *) ac_try_echo=$ac_try;;
3789 esac
3790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3791   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3792   ac_status=$?
3793   grep -v '^ *+' conftest.er1 >conftest.err
3794   rm -f conftest.er1
3795   cat conftest.err >&5
3796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797   (exit $ac_status); } >/dev/null && {
3798          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3799          test ! -s conftest.err
3800        }; then
3801   :
3802 else
3803   echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3805
3806   # Broken: fails on valid input.
3807 continue
3808 fi
3809
3810 rm -f conftest.err conftest.$ac_ext
3811
3812   # OK, works on sane cases.  Now check whether nonexistent headers
3813   # can be detected and how.
3814   cat >conftest.$ac_ext <<_ACEOF
3815 /* confdefs.h.  */
3816 _ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h.  */
3820 #include <ac_nonexistent.h>
3821 _ACEOF
3822 if { (ac_try="$ac_cpp conftest.$ac_ext"
3823 case "(($ac_try" in
3824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825   *) ac_try_echo=$ac_try;;
3826 esac
3827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3828   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3829   ac_status=$?
3830   grep -v '^ *+' conftest.er1 >conftest.err
3831   rm -f conftest.er1
3832   cat conftest.err >&5
3833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834   (exit $ac_status); } >/dev/null && {
3835          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3836          test ! -s conftest.err
3837        }; then
3838   # Broken: success on invalid input.
3839 continue
3840 else
3841   echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3843
3844   # Passes both tests.
3845 ac_preproc_ok=:
3846 break
3847 fi
3848
3849 rm -f conftest.err conftest.$ac_ext
3850
3851 done
3852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3853 rm -f conftest.err conftest.$ac_ext
3854 if $ac_preproc_ok; then
3855   break
3856 fi
3857
3858     done
3859     ac_cv_prog_CPP=$CPP
3860
3861 fi
3862   CPP=$ac_cv_prog_CPP
3863 else
3864   ac_cv_prog_CPP=$CPP
3865 fi
3866 { echo "$as_me:$LINENO: result: $CPP" >&5
3867 echo "${ECHO_T}$CPP" >&6; }
3868 ac_preproc_ok=false
3869 for ac_c_preproc_warn_flag in '' yes
3870 do
3871   # Use a header file that comes with gcc, so configuring glibc
3872   # with a fresh cross-compiler works.
3873   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3874   # <limits.h> exists even on freestanding compilers.
3875   # On the NeXT, cc -E runs the code through the compiler's parser,
3876   # not just through cpp. "Syntax error" is here to catch this case.
3877   cat >conftest.$ac_ext <<_ACEOF
3878 /* confdefs.h.  */
3879 _ACEOF
3880 cat confdefs.h >>conftest.$ac_ext
3881 cat >>conftest.$ac_ext <<_ACEOF
3882 /* end confdefs.h.  */
3883 #ifdef __STDC__
3884 # include <limits.h>
3885 #else
3886 # include <assert.h>
3887 #endif
3888                      Syntax error
3889 _ACEOF
3890 if { (ac_try="$ac_cpp conftest.$ac_ext"
3891 case "(($ac_try" in
3892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893   *) ac_try_echo=$ac_try;;
3894 esac
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3897   ac_status=$?
3898   grep -v '^ *+' conftest.er1 >conftest.err
3899   rm -f conftest.er1
3900   cat conftest.err >&5
3901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902   (exit $ac_status); } >/dev/null && {
3903          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3904          test ! -s conftest.err
3905        }; then
3906   :
3907 else
3908   echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3910
3911   # Broken: fails on valid input.
3912 continue
3913 fi
3914
3915 rm -f conftest.err conftest.$ac_ext
3916
3917   # OK, works on sane cases.  Now check whether nonexistent headers
3918   # can be detected and how.
3919   cat >conftest.$ac_ext <<_ACEOF
3920 /* confdefs.h.  */
3921 _ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h.  */
3925 #include <ac_nonexistent.h>
3926 _ACEOF
3927 if { (ac_try="$ac_cpp conftest.$ac_ext"
3928 case "(($ac_try" in
3929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930   *) ac_try_echo=$ac_try;;
3931 esac
3932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3933   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3934   ac_status=$?
3935   grep -v '^ *+' conftest.er1 >conftest.err
3936   rm -f conftest.er1
3937   cat conftest.err >&5
3938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939   (exit $ac_status); } >/dev/null && {
3940          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3941          test ! -s conftest.err
3942        }; then
3943   # Broken: success on invalid input.
3944 continue
3945 else
3946   echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3948
3949   # Passes both tests.
3950 ac_preproc_ok=:
3951 break
3952 fi
3953
3954 rm -f conftest.err conftest.$ac_ext
3955
3956 done
3957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3958 rm -f conftest.err conftest.$ac_ext
3959 if $ac_preproc_ok; then
3960   :
3961 else
3962   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3963 See \`config.log' for more details." >&5
3964 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3965 See \`config.log' for more details." >&2;}
3966    { (exit 1); exit 1; }; }
3967 fi
3968
3969 ac_ext=c
3970 ac_cpp='$CPP $CPPFLAGS'
3971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3974
3975
3976 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3977 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3978 if test "${ac_cv_path_GREP+set}" = set; then
3979   echo $ECHO_N "(cached) $ECHO_C" >&6
3980 else
3981   # Extract the first word of "grep ggrep" to use in msg output
3982 if test -z "$GREP"; then
3983 set dummy grep ggrep; ac_prog_name=$2
3984 if test "${ac_cv_path_GREP+set}" = set; then
3985   echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987   ac_path_GREP_found=false
3988 # Loop through the user's path and test for each of PROGNAME-LIST
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3991 do
3992   IFS=$as_save_IFS
3993   test -z "$as_dir" && as_dir=.
3994   for ac_prog in grep ggrep; do
3995   for ac_exec_ext in '' $ac_executable_extensions; do
3996     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3997     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3998     # Check for GNU ac_path_GREP and select it if it is found.
3999   # Check for GNU $ac_path_GREP
4000 case `"$ac_path_GREP" --version 2>&1` in
4001 *GNU*)
4002   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4003 *)
4004   ac_count=0
4005   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4006   while :
4007   do
4008     cat "conftest.in" "conftest.in" >"conftest.tmp"
4009     mv "conftest.tmp" "conftest.in"
4010     cp "conftest.in" "conftest.nl"
4011     echo 'GREP' >> "conftest.nl"
4012     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4013     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4014     ac_count=`expr $ac_count + 1`
4015     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4016       # Best one so far, save it but keep looking for a better one
4017       ac_cv_path_GREP="$ac_path_GREP"
4018       ac_path_GREP_max=$ac_count
4019     fi
4020     # 10*(2^10) chars as input seems more than enough
4021     test $ac_count -gt 10 && break
4022   done
4023   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4024 esac
4025
4026
4027     $ac_path_GREP_found && break 3
4028   done
4029 done
4030
4031 done
4032 IFS=$as_save_IFS
4033
4034
4035 fi
4036
4037 GREP="$ac_cv_path_GREP"
4038 if test -z "$GREP"; then
4039   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4040 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4041    { (exit 1); exit 1; }; }
4042 fi
4043
4044 else
4045   ac_cv_path_GREP=$GREP
4046 fi
4047
4048
4049 fi
4050 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4051 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4052  GREP="$ac_cv_path_GREP"
4053
4054
4055 { echo "$as_me:$LINENO: checking for egrep" >&5
4056 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4057 if test "${ac_cv_path_EGREP+set}" = set; then
4058   echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4061    then ac_cv_path_EGREP="$GREP -E"
4062    else
4063      # Extract the first word of "egrep" to use in msg output
4064 if test -z "$EGREP"; then
4065 set dummy egrep; ac_prog_name=$2
4066 if test "${ac_cv_path_EGREP+set}" = set; then
4067   echo $ECHO_N "(cached) $ECHO_C" >&6
4068 else
4069   ac_path_EGREP_found=false
4070 # Loop through the user's path and test for each of PROGNAME-LIST
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4073 do
4074   IFS=$as_save_IFS
4075   test -z "$as_dir" && as_dir=.
4076   for ac_prog in egrep; do
4077   for ac_exec_ext in '' $ac_executable_extensions; do
4078     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4079     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4080     # Check for GNU ac_path_EGREP and select it if it is found.
4081   # Check for GNU $ac_path_EGREP
4082 case `"$ac_path_EGREP" --version 2>&1` in
4083 *GNU*)
4084   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4085 *)
4086   ac_count=0
4087   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4088   while :
4089   do
4090     cat "conftest.in" "conftest.in" >"conftest.tmp"
4091     mv "conftest.tmp" "conftest.in"
4092     cp "conftest.in" "conftest.nl"
4093     echo 'EGREP' >> "conftest.nl"
4094     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4095     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4096     ac_count=`expr $ac_count + 1`
4097     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4098       # Best one so far, save it but keep looking for a better one
4099       ac_cv_path_EGREP="$ac_path_EGREP"
4100       ac_path_EGREP_max=$ac_count
4101     fi
4102     # 10*(2^10) chars as input seems more than enough
4103     test $ac_count -gt 10 && break
4104   done
4105   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4106 esac
4107
4108
4109     $ac_path_EGREP_found && break 3
4110   done
4111 done
4112
4113 done
4114 IFS=$as_save_IFS
4115
4116
4117 fi
4118
4119 EGREP="$ac_cv_path_EGREP"
4120 if test -z "$EGREP"; then
4121   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4122 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4123    { (exit 1); exit 1; }; }
4124 fi
4125
4126 else
4127   ac_cv_path_EGREP=$EGREP
4128 fi
4129
4130
4131    fi
4132 fi
4133 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4134 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4135  EGREP="$ac_cv_path_EGREP"
4136
4137
4138 if test $ac_cv_c_compiler_gnu = yes; then
4139     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4140 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4141 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4142   echo $ECHO_N "(cached) $ECHO_C" >&6
4143 else
4144     ac_pattern="Autoconf.*'x'"
4145   cat >conftest.$ac_ext <<_ACEOF
4146 /* confdefs.h.  */
4147 _ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h.  */
4151 #include <sgtty.h>
4152 Autoconf TIOCGETP
4153 _ACEOF
4154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4156   ac_cv_prog_gcc_traditional=yes
4157 else
4158   ac_cv_prog_gcc_traditional=no
4159 fi
4160 rm -f conftest*
4161
4162
4163   if test $ac_cv_prog_gcc_traditional = no; then
4164     cat >conftest.$ac_ext <<_ACEOF
4165 /* confdefs.h.  */
4166 _ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h.  */
4170 #include <termio.h>
4171 Autoconf TCGETA
4172 _ACEOF
4173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4174   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4175   ac_cv_prog_gcc_traditional=yes
4176 fi
4177 rm -f conftest*
4178
4179   fi
4180 fi
4181 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4182 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4183   if test $ac_cv_prog_gcc_traditional = yes; then
4184     CC="$CC -traditional"
4185   fi
4186 fi
4187
4188 BASECC=`basename $CC`
4189 have_gcc=no
4190 if test "x$BASECC" = xgcc; then
4191    cat >>confdefs.h <<\_ACEOF
4192 #define HAVE_GCC 1
4193 _ACEOF
4194
4195    have_gcc=yes
4196 fi
4197 # Extract the first word of "$CXX", so it can be a program name with args.
4198 set dummy $CXX; ac_word=$2
4199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4201 if test "${ac_cv_path_CXX+set}" = set; then
4202   echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204   case $CXX in
4205   [\\/]* | ?:[\\/]*)
4206   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4207   ;;
4208   *)
4209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH
4211 do
4212   IFS=$as_save_IFS
4213   test -z "$as_dir" && as_dir=.
4214   for ac_exec_ext in '' $ac_executable_extensions; do
4215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4218     break 2
4219   fi
4220 done
4221 done
4222 IFS=$as_save_IFS
4223
4224   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4225   ;;
4226 esac
4227 fi
4228 CXX=$ac_cv_path_CXX
4229 if test -n "$CXX"; then
4230   { echo "$as_me:$LINENO: result: $CXX" >&5
4231 echo "${ECHO_T}$CXX" >&6; }
4232 else
4233   { echo "$as_me:$LINENO: result: no" >&5
4234 echo "${ECHO_T}no" >&6; }
4235 fi
4236
4237
4238 if test ! -e $CXX; then
4239    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4240 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4241    { (exit 1); exit 1; }; }
4242 fi
4243
4244 # Find a good install program.  We prefer a C program (faster),
4245 # so one script is as good as another.  But avoid the broken or
4246 # incompatible versions:
4247 # SysV /etc/install, /usr/sbin/install
4248 # SunOS /usr/etc/install
4249 # IRIX /sbin/install
4250 # AIX /bin/install
4251 # AmigaOS /C/install, which installs bootblocks on floppy discs
4252 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4253 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4254 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4255 # OS/2's system install, which has a completely different semantic
4256 # ./install, which can be erroneously created by make from ./install.sh.
4257 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4258 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4259 if test -z "$INSTALL"; then
4260 if test "${ac_cv_path_install+set}" = set; then
4261   echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 for as_dir in $PATH
4265 do
4266   IFS=$as_save_IFS
4267   test -z "$as_dir" && as_dir=.
4268   # Account for people who put trailing slashes in PATH elements.
4269 case $as_dir/ in
4270   ./ | .// | /cC/* | \
4271   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4272   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4273   /usr/ucb/* ) ;;
4274   *)
4275     # OSF1 and SCO ODT 3.0 have their own names for install.
4276     # Don't use installbsd from OSF since it installs stuff as root
4277     # by default.
4278     for ac_prog in ginstall scoinst install; do
4279       for ac_exec_ext in '' $ac_executable_extensions; do
4280         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4281           if test $ac_prog = install &&
4282             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4283             # AIX install.  It has an incompatible calling convention.
4284             :
4285           elif test $ac_prog = install &&
4286             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4287             # program-specific install script used by HP pwplus--don't use.
4288             :
4289           else
4290             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4291             break 3
4292           fi
4293         fi
4294       done
4295     done
4296     ;;
4297 esac
4298 done
4299 IFS=$as_save_IFS
4300
4301
4302 fi
4303   if test "${ac_cv_path_install+set}" = set; then
4304     INSTALL=$ac_cv_path_install
4305   else
4306     # As a last resort, use the slow shell script.  Don't cache a
4307     # value for INSTALL within a source directory, because that will
4308     # break other packages using the cache if that directory is
4309     # removed, or if the value is a relative name.
4310     INSTALL=$ac_install_sh
4311   fi
4312 fi
4313 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4314 echo "${ECHO_T}$INSTALL" >&6; }
4315
4316 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4317 # It thinks the first close brace ends the variable substitution.
4318 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4319
4320 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4321
4322 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4323
4324 # Extract the first word of "mv", so it can be a program name with args.
4325 set dummy mv; ac_word=$2
4326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4328 if test "${ac_cv_path_MV+set}" = set; then
4329   echo $ECHO_N "(cached) $ECHO_C" >&6
4330 else
4331   case $MV in
4332   [\\/]* | ?:[\\/]*)
4333   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4334   ;;
4335   *)
4336   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 for as_dir in $PATH
4338 do
4339   IFS=$as_save_IFS
4340   test -z "$as_dir" && as_dir=.
4341   for ac_exec_ext in '' $ac_executable_extensions; do
4342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4343     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4344     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4345     break 2
4346   fi
4347 done
4348 done
4349 IFS=$as_save_IFS
4350
4351   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4352   ;;
4353 esac
4354 fi
4355 MV=$ac_cv_path_MV
4356 if test -n "$MV"; then
4357   { echo "$as_me:$LINENO: result: $MV" >&5
4358 echo "${ECHO_T}$MV" >&6; }
4359 else
4360   { echo "$as_me:$LINENO: result: no" >&5
4361 echo "${ECHO_T}no" >&6; }
4362 fi
4363
4364
4365 # Extract the first word of "rm", so it can be a program name with args.
4366 set dummy rm; ac_word=$2
4367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4369 if test "${ac_cv_path_REMOVE+set}" = set; then
4370   echo $ECHO_N "(cached) $ECHO_C" >&6
4371 else
4372   case $REMOVE in
4373   [\\/]* | ?:[\\/]*)
4374   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4375   ;;
4376   *)
4377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 for as_dir in $PATH
4379 do
4380   IFS=$as_save_IFS
4381   test -z "$as_dir" && as_dir=.
4382   for ac_exec_ext in '' $ac_executable_extensions; do
4383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4384     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4386     break 2
4387   fi
4388 done
4389 done
4390 IFS=$as_save_IFS
4391
4392   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4393   ;;
4394 esac
4395 fi
4396 REMOVE=$ac_cv_path_REMOVE
4397 if test -n "$REMOVE"; then
4398   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4399 echo "${ECHO_T}$REMOVE" >&6; }
4400 else
4401   { echo "$as_me:$LINENO: result: no" >&5
4402 echo "${ECHO_T}no" >&6; }
4403 fi
4404
4405
4406 # Extract the first word of "cp", so it can be a program name with args.
4407 set dummy cp; ac_word=$2
4408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4410 if test "${ac_cv_path_CP+set}" = set; then
4411   echo $ECHO_N "(cached) $ECHO_C" >&6
4412 else
4413   case $CP in
4414   [\\/]* | ?:[\\/]*)
4415   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4416   ;;
4417   *)
4418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4420 do
4421   IFS=$as_save_IFS
4422   test -z "$as_dir" && as_dir=.
4423   for ac_exec_ext in '' $ac_executable_extensions; do
4424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4425     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427     break 2
4428   fi
4429 done
4430 done
4431 IFS=$as_save_IFS
4432
4433   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4434   ;;
4435 esac
4436 fi
4437 CP=$ac_cv_path_CP
4438 if test -n "$CP"; then
4439   { echo "$as_me:$LINENO: result: $CP" >&5
4440 echo "${ECHO_T}$CP" >&6; }
4441 else
4442   { echo "$as_me:$LINENO: result: no" >&5
4443 echo "${ECHO_T}no" >&6; }
4444 fi
4445
4446
4447 # Extract the first word of "sed", so it can be a program name with args.
4448 set dummy sed; ac_word=$2
4449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4451 if test "${ac_cv_path_SED+set}" = set; then
4452   echo $ECHO_N "(cached) $ECHO_C" >&6
4453 else
4454   case $SED in
4455   [\\/]* | ?:[\\/]*)
4456   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4457   ;;
4458   *)
4459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 for as_dir in $PATH
4461 do
4462   IFS=$as_save_IFS
4463   test -z "$as_dir" && as_dir=.
4464   for ac_exec_ext in '' $ac_executable_extensions; do
4465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4466     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4468     break 2
4469   fi
4470 done
4471 done
4472 IFS=$as_save_IFS
4473
4474   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4475   ;;
4476 esac
4477 fi
4478 SED=$ac_cv_path_SED
4479 if test -n "$SED"; then
4480   { echo "$as_me:$LINENO: result: $SED" >&5
4481 echo "${ECHO_T}$SED" >&6; }
4482 else
4483   { echo "$as_me:$LINENO: result: no" >&5
4484 echo "${ECHO_T}no" >&6; }
4485 fi
4486
4487
4488 # Extract the first word of "echo", so it can be a program name with args.
4489 set dummy echo; ac_word=$2
4490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4492 if test "${ac_cv_path_ECHO+set}" = set; then
4493   echo $ECHO_N "(cached) $ECHO_C" >&6
4494 else
4495   case $ECHO in
4496   [\\/]* | ?:[\\/]*)
4497   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4498   ;;
4499   *)
4500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 for as_dir in $PATH
4502 do
4503   IFS=$as_save_IFS
4504   test -z "$as_dir" && as_dir=.
4505   for ac_exec_ext in '' $ac_executable_extensions; do
4506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4507     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4509     break 2
4510   fi
4511 done
4512 done
4513 IFS=$as_save_IFS
4514
4515   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4516   ;;
4517 esac
4518 fi
4519 ECHO=$ac_cv_path_ECHO
4520 if test -n "$ECHO"; then
4521   { echo "$as_me:$LINENO: result: $ECHO" >&5
4522 echo "${ECHO_T}$ECHO" >&6; }
4523 else
4524   { echo "$as_me:$LINENO: result: no" >&5
4525 echo "${ECHO_T}no" >&6; }
4526 fi
4527
4528
4529 # Extract the first word of "cmp", so it can be a program name with args.
4530 set dummy cmp; ac_word=$2
4531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4533 if test "${ac_cv_path_CMP+set}" = set; then
4534   echo $ECHO_N "(cached) $ECHO_C" >&6
4535 else
4536   case $CMP in
4537   [\\/]* | ?:[\\/]*)
4538   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4539   ;;
4540   *)
4541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 for as_dir in $PATH
4543 do
4544   IFS=$as_save_IFS
4545   test -z "$as_dir" && as_dir=.
4546   for ac_exec_ext in '' $ac_executable_extensions; do
4547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4548     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4550     break 2
4551   fi
4552 done
4553 done
4554 IFS=$as_save_IFS
4555
4556   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4557   ;;
4558 esac
4559 fi
4560 CMP=$ac_cv_path_CMP
4561 if test -n "$CMP"; then
4562   { echo "$as_me:$LINENO: result: $CMP" >&5
4563 echo "${ECHO_T}$CMP" >&6; }
4564 else
4565   { echo "$as_me:$LINENO: result: no" >&5
4566 echo "${ECHO_T}no" >&6; }
4567 fi
4568
4569
4570 # Extract the first word of "tbl", so it can be a program name with args.
4571 set dummy tbl; ac_word=$2
4572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4574 if test "${ac_cv_path_TBL+set}" = set; then
4575   echo $ECHO_N "(cached) $ECHO_C" >&6
4576 else
4577   case $TBL in
4578   [\\/]* | ?:[\\/]*)
4579   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4580   ;;
4581   *)
4582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 for as_dir in $PATH
4584 do
4585   IFS=$as_save_IFS
4586   test -z "$as_dir" && as_dir=.
4587   for ac_exec_ext in '' $ac_executable_extensions; do
4588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4589     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4591     break 2
4592   fi
4593 done
4594 done
4595 IFS=$as_save_IFS
4596
4597   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4598   ;;
4599 esac
4600 fi
4601 TBL=$ac_cv_path_TBL
4602 if test -n "$TBL"; then
4603   { echo "$as_me:$LINENO: result: $TBL" >&5
4604 echo "${ECHO_T}$TBL" >&6; }
4605 else
4606   { echo "$as_me:$LINENO: result: no" >&5
4607 echo "${ECHO_T}no" >&6; }
4608 fi
4609
4610
4611 # Extract the first word of "ar", so it can be a program name with args.
4612 set dummy ar; ac_word=$2
4613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4615 if test "${ac_cv_path_AR+set}" = set; then
4616   echo $ECHO_N "(cached) $ECHO_C" >&6
4617 else
4618   case $AR in
4619   [\\/]* | ?:[\\/]*)
4620   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4621   ;;
4622   *)
4623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH
4625 do
4626   IFS=$as_save_IFS
4627   test -z "$as_dir" && as_dir=.
4628   for ac_exec_ext in '' $ac_executable_extensions; do
4629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4632     break 2
4633   fi
4634 done
4635 done
4636 IFS=$as_save_IFS
4637
4638   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4639   ;;
4640 esac
4641 fi
4642 AR=$ac_cv_path_AR
4643 if test -n "$AR"; then
4644   { echo "$as_me:$LINENO: result: $AR" >&5
4645 echo "${ECHO_T}$AR" >&6; }
4646 else
4647   { echo "$as_me:$LINENO: result: no" >&5
4648 echo "${ECHO_T}no" >&6; }
4649 fi
4650
4651
4652 # Extract the first word of "openssl", so it can be a program name with args.
4653 set dummy openssl; ac_word=$2
4654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4656 if test "${ac_cv_path_OPENSSL+set}" = set; then
4657   echo $ECHO_N "(cached) $ECHO_C" >&6
4658 else
4659   case $OPENSSL in
4660   [\\/]* | ?:[\\/]*)
4661   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4662   ;;
4663   *)
4664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 for as_dir in $PATH
4666 do
4667   IFS=$as_save_IFS
4668   test -z "$as_dir" && as_dir=.
4669   for ac_exec_ext in '' $ac_executable_extensions; do
4670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4671     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4673     break 2
4674   fi
4675 done
4676 done
4677 IFS=$as_save_IFS
4678
4679   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4680   ;;
4681 esac
4682 fi
4683 OPENSSL=$ac_cv_path_OPENSSL
4684 if test -n "$OPENSSL"; then
4685   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4686 echo "${ECHO_T}$OPENSSL" >&6; }
4687 else
4688   { echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6; }
4690 fi
4691
4692
4693 # Extract the first word of "mtx", so it can be a program name with args.
4694 set dummy mtx; ac_word=$2
4695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697 if test "${ac_cv_path_MTX+set}" = set; then
4698   echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700   case $MTX in
4701   [\\/]* | ?:[\\/]*)
4702   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4703   ;;
4704   *)
4705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4707 do
4708   IFS=$as_save_IFS
4709   test -z "$as_dir" && as_dir=.
4710   for ac_exec_ext in '' $ac_executable_extensions; do
4711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4714     break 2
4715   fi
4716 done
4717 done
4718 IFS=$as_save_IFS
4719
4720   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4721   ;;
4722 esac
4723 fi
4724 MTX=$ac_cv_path_MTX
4725 if test -n "$MTX"; then
4726   { echo "$as_me:$LINENO: result: $MTX" >&5
4727 echo "${ECHO_T}$MTX" >&6; }
4728 else
4729   { echo "$as_me:$LINENO: result: no" >&5
4730 echo "${ECHO_T}no" >&6; }
4731 fi
4732
4733
4734 # Extract the first word of "dd", so it can be a program name with args.
4735 set dummy dd; ac_word=$2
4736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4738 if test "${ac_cv_path_DD+set}" = set; then
4739   echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741   case $DD in
4742   [\\/]* | ?:[\\/]*)
4743   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4744   ;;
4745   *)
4746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749   IFS=$as_save_IFS
4750   test -z "$as_dir" && as_dir=.
4751   for ac_exec_ext in '' $ac_executable_extensions; do
4752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755     break 2
4756   fi
4757 done
4758 done
4759 IFS=$as_save_IFS
4760
4761   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4762   ;;
4763 esac
4764 fi
4765 DD=$ac_cv_path_DD
4766 if test -n "$DD"; then
4767   { echo "$as_me:$LINENO: result: $DD" >&5
4768 echo "${ECHO_T}$DD" >&6; }
4769 else
4770   { echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6; }
4772 fi
4773
4774
4775 # Extract the first word of "mkisofs", so it can be a program name with args.
4776 set dummy mkisofs; ac_word=$2
4777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4779 if test "${ac_cv_path_MKISOFS+set}" = set; then
4780   echo $ECHO_N "(cached) $ECHO_C" >&6
4781 else
4782   case $MKISOFS in
4783   [\\/]* | ?:[\\/]*)
4784   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4785   ;;
4786   *)
4787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4789 do
4790   IFS=$as_save_IFS
4791   test -z "$as_dir" && as_dir=.
4792   for ac_exec_ext in '' $ac_executable_extensions; do
4793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4794     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796     break 2
4797   fi
4798 done
4799 done
4800 IFS=$as_save_IFS
4801
4802   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4803   ;;
4804 esac
4805 fi
4806 MKISOFS=$ac_cv_path_MKISOFS
4807 if test -n "$MKISOFS"; then
4808   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4809 echo "${ECHO_T}$MKISOFS" >&6; }
4810 else
4811   { echo "$as_me:$LINENO: result: no" >&5
4812 echo "${ECHO_T}no" >&6; }
4813 fi
4814
4815
4816 # Extract the first word of "python", so it can be a program name with args.
4817 set dummy python; ac_word=$2
4818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4820 if test "${ac_cv_path_PYTHON+set}" = set; then
4821   echo $ECHO_N "(cached) $ECHO_C" >&6
4822 else
4823   case $PYTHON in
4824   [\\/]* | ?:[\\/]*)
4825   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4826   ;;
4827   *)
4828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH
4830 do
4831   IFS=$as_save_IFS
4832   test -z "$as_dir" && as_dir=.
4833   for ac_exec_ext in '' $ac_executable_extensions; do
4834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837     break 2
4838   fi
4839 done
4840 done
4841 IFS=$as_save_IFS
4842
4843   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4844   ;;
4845 esac
4846 fi
4847 PYTHON=$ac_cv_path_PYTHON
4848 if test -n "$PYTHON"; then
4849   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4850 echo "${ECHO_T}$PYTHON" >&6; }
4851 else
4852   { echo "$as_me:$LINENO: result: no" >&5
4853 echo "${ECHO_T}no" >&6; }
4854 fi
4855
4856
4857 # Extract the first word of "growisofs", so it can be a program name with args.
4858 set dummy growisofs; ac_word=$2
4859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4861 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4862   echo $ECHO_N "(cached) $ECHO_C" >&6
4863 else
4864   case $GROWISOFS in
4865   [\\/]* | ?:[\\/]*)
4866   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4867   ;;
4868   *)
4869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4871 do
4872   IFS=$as_save_IFS
4873   test -z "$as_dir" && as_dir=.
4874   for ac_exec_ext in '' $ac_executable_extensions; do
4875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878     break 2
4879   fi
4880 done
4881 done
4882 IFS=$as_save_IFS
4883
4884   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4885   ;;
4886 esac
4887 fi
4888 GROWISOFS=$ac_cv_path_GROWISOFS
4889 if test -n "$GROWISOFS"; then
4890   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4891 echo "${ECHO_T}$GROWISOFS" >&6; }
4892 else
4893   { echo "$as_me:$LINENO: result: no" >&5
4894 echo "${ECHO_T}no" >&6; }
4895 fi
4896
4897
4898 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4899 set dummy dvd+rw-mediainfo; ac_word=$2
4900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4902 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4903   echo $ECHO_N "(cached) $ECHO_C" >&6
4904 else
4905   case $DVDRWMEDIAINFO in
4906   [\\/]* | ?:[\\/]*)
4907   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4908   ;;
4909   *)
4910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4912 do
4913   IFS=$as_save_IFS
4914   test -z "$as_dir" && as_dir=.
4915   for ac_exec_ext in '' $ac_executable_extensions; do
4916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4919     break 2
4920   fi
4921 done
4922 done
4923 IFS=$as_save_IFS
4924
4925   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4926   ;;
4927 esac
4928 fi
4929 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4930 if test -n "$DVDRWMEDIAINFO"; then
4931   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4932 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4933 else
4934   { echo "$as_me:$LINENO: result: no" >&5
4935 echo "${ECHO_T}no" >&6; }
4936 fi
4937
4938
4939 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4940 set dummy dvd+rw-format; ac_word=$2
4941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4943 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4944   echo $ECHO_N "(cached) $ECHO_C" >&6
4945 else
4946   case $DVDRWFORMAT in
4947   [\\/]* | ?:[\\/]*)
4948   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4949   ;;
4950   *)
4951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4953 do
4954   IFS=$as_save_IFS
4955   test -z "$as_dir" && as_dir=.
4956   for ac_exec_ext in '' $ac_executable_extensions; do
4957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4960     break 2
4961   fi
4962 done
4963 done
4964 IFS=$as_save_IFS
4965
4966   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4967   ;;
4968 esac
4969 fi
4970 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4971 if test -n "$DVDRWFORMAT"; then
4972   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4973 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4974 else
4975   { echo "$as_me:$LINENO: result: no" >&5
4976 echo "${ECHO_T}no" >&6; }
4977 fi
4978
4979
4980 # Extract the first word of "pkg-config", so it can be a program name with args.
4981 set dummy pkg-config; ac_word=$2
4982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4984 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4985   echo $ECHO_N "(cached) $ECHO_C" >&6
4986 else
4987   case $PKGCONFIG in
4988   [\\/]* | ?:[\\/]*)
4989   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4990   ;;
4991   *)
4992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH
4994 do
4995   IFS=$as_save_IFS
4996   test -z "$as_dir" && as_dir=.
4997   for ac_exec_ext in '' $ac_executable_extensions; do
4998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4999     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001     break 2
5002   fi
5003 done
5004 done
5005 IFS=$as_save_IFS
5006
5007   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5008   ;;
5009 esac
5010 fi
5011 PKGCONFIG=$ac_cv_path_PKGCONFIG
5012 if test -n "$PKGCONFIG"; then
5013   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5014 echo "${ECHO_T}$PKGCONFIG" >&6; }
5015 else
5016   { echo "$as_me:$LINENO: result: no" >&5
5017 echo "${ECHO_T}no" >&6; }
5018 fi
5019
5020
5021 # Extract the first word of "qmake", so it can be a program name with args.
5022 set dummy qmake; ac_word=$2
5023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5025 if test "${ac_cv_path_QMAKE+set}" = set; then
5026   echo $ECHO_N "(cached) $ECHO_C" >&6
5027 else
5028   case $QMAKE in
5029   [\\/]* | ?:[\\/]*)
5030   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5031   ;;
5032   *)
5033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5035 do
5036   IFS=$as_save_IFS
5037   test -z "$as_dir" && as_dir=.
5038   for ac_exec_ext in '' $ac_executable_extensions; do
5039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042     break 2
5043   fi
5044 done
5045 done
5046 IFS=$as_save_IFS
5047
5048   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5049   ;;
5050 esac
5051 fi
5052 QMAKE=$ac_cv_path_QMAKE
5053 if test -n "$QMAKE"; then
5054   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5055 echo "${ECHO_T}$QMAKE" >&6; }
5056 else
5057   { echo "$as_me:$LINENO: result: no" >&5
5058 echo "${ECHO_T}no" >&6; }
5059 fi
5060
5061
5062 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5063 set dummy qmake-qt4; ac_word=$2
5064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5066 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5067   echo $ECHO_N "(cached) $ECHO_C" >&6
5068 else
5069   case $QMAKEQT4 in
5070   [\\/]* | ?:[\\/]*)
5071   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5072   ;;
5073   *)
5074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH
5076 do
5077   IFS=$as_save_IFS
5078   test -z "$as_dir" && as_dir=.
5079   for ac_exec_ext in '' $ac_executable_extensions; do
5080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083     break 2
5084   fi
5085 done
5086 done
5087 IFS=$as_save_IFS
5088
5089   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5090   ;;
5091 esac
5092 fi
5093 QMAKEQT4=$ac_cv_path_QMAKEQT4
5094 if test -n "$QMAKEQT4"; then
5095   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5096 echo "${ECHO_T}$QMAKEQT4" >&6; }
5097 else
5098   { echo "$as_me:$LINENO: result: no" >&5
5099 echo "${ECHO_T}no" >&6; }
5100 fi
5101
5102
5103 # Extract the first word of "gmake", so it can be a program name with args.
5104 set dummy gmake; ac_word=$2
5105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5107 if test "${ac_cv_path_GMAKE+set}" = set; then
5108   echo $ECHO_N "(cached) $ECHO_C" >&6
5109 else
5110   case $GMAKE in
5111   [\\/]* | ?:[\\/]*)
5112   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5113   ;;
5114   *)
5115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5117 do
5118   IFS=$as_save_IFS
5119   test -z "$as_dir" && as_dir=.
5120   for ac_exec_ext in '' $ac_executable_extensions; do
5121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124     break 2
5125   fi
5126 done
5127 done
5128 IFS=$as_save_IFS
5129
5130   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5131   ;;
5132 esac
5133 fi
5134 GMAKE=$ac_cv_path_GMAKE
5135 if test -n "$GMAKE"; then
5136   { echo "$as_me:$LINENO: result: $GMAKE" >&5
5137 echo "${ECHO_T}$GMAKE" >&6; }
5138 else
5139   { echo "$as_me:$LINENO: result: no" >&5
5140 echo "${ECHO_T}no" >&6; }
5141 fi
5142
5143
5144
5145 if test "x$WXCONFIG" = x; then
5146    WXCONFIG=wx-config
5147 fi
5148 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5149 set dummy ${WXCONFIG}; ac_word=$2
5150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5152 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5153   echo $ECHO_N "(cached) $ECHO_C" >&6
5154 else
5155   case $WXCONFIG in
5156   [\\/]* | ?:[\\/]*)
5157   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5158   ;;
5159   *)
5160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH
5162 do
5163   IFS=$as_save_IFS
5164   test -z "$as_dir" && as_dir=.
5165   for ac_exec_ext in '' $ac_executable_extensions; do
5166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5167     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5169     break 2
5170   fi
5171 done
5172 done
5173 IFS=$as_save_IFS
5174
5175   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5176   ;;
5177 esac
5178 fi
5179 WXCONFIG=$ac_cv_path_WXCONFIG
5180 if test -n "$WXCONFIG"; then
5181   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5182 echo "${ECHO_T}$WXCONFIG" >&6; }
5183 else
5184   { echo "$as_me:$LINENO: result: no" >&5
5185 echo "${ECHO_T}no" >&6; }
5186 fi
5187
5188
5189
5190 # Extract the first word of "cdrecord", so it can be a program name with args.
5191 set dummy cdrecord; ac_word=$2
5192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5194 if test "${ac_cv_path_CDRECORD+set}" = set; then
5195   echo $ECHO_N "(cached) $ECHO_C" >&6
5196 else
5197   case $CDRECORD in
5198   [\\/]* | ?:[\\/]*)
5199   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5200   ;;
5201   *)
5202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 for as_dir in $PATH
5204 do
5205   IFS=$as_save_IFS
5206   test -z "$as_dir" && as_dir=.
5207   for ac_exec_ext in '' $ac_executable_extensions; do
5208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5209     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211     break 2
5212   fi
5213 done
5214 done
5215 IFS=$as_save_IFS
5216
5217   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5218   ;;
5219 esac
5220 fi
5221 CDRECORD=$ac_cv_path_CDRECORD
5222 if test -n "$CDRECORD"; then
5223   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5224 echo "${ECHO_T}$CDRECORD" >&6; }
5225 else
5226   { echo "$as_me:$LINENO: result: no" >&5
5227 echo "${ECHO_T}no" >&6; }
5228 fi
5229
5230
5231 # Extract the first word of "pidof", so it can be a program name with args.
5232 set dummy pidof; ac_word=$2
5233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5235 if test "${ac_cv_path_PIDOF+set}" = set; then
5236   echo $ECHO_N "(cached) $ECHO_C" >&6
5237 else
5238   case $PIDOF in
5239   [\\/]* | ?:[\\/]*)
5240   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5241   ;;
5242   *)
5243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in $PATH
5245 do
5246   IFS=$as_save_IFS
5247   test -z "$as_dir" && as_dir=.
5248   for ac_exec_ext in '' $ac_executable_extensions; do
5249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5250     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252     break 2
5253   fi
5254 done
5255 done
5256 IFS=$as_save_IFS
5257
5258   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5259   ;;
5260 esac
5261 fi
5262 PIDOF=$ac_cv_path_PIDOF
5263 if test -n "$PIDOF"; then
5264   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5265 echo "${ECHO_T}$PIDOF" >&6; }
5266 else
5267   { echo "$as_me:$LINENO: result: no" >&5
5268 echo "${ECHO_T}no" >&6; }
5269 fi
5270
5271
5272 for ac_prog in gawk mawk nawk awk
5273 do
5274   # Extract the first word of "$ac_prog", so it can be a program name with args.
5275 set dummy $ac_prog; ac_word=$2
5276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5278 if test "${ac_cv_prog_AWK+set}" = set; then
5279   echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281   if test -n "$AWK"; then
5282   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5283 else
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH
5286 do
5287   IFS=$as_save_IFS
5288   test -z "$as_dir" && as_dir=.
5289   for ac_exec_ext in '' $ac_executable_extensions; do
5290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5291     ac_cv_prog_AWK="$ac_prog"
5292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5293     break 2
5294   fi
5295 done
5296 done
5297 IFS=$as_save_IFS
5298
5299 fi
5300 fi
5301 AWK=$ac_cv_prog_AWK
5302 if test -n "$AWK"; then
5303   { echo "$as_me:$LINENO: result: $AWK" >&5
5304 echo "${ECHO_T}$AWK" >&6; }
5305 else
5306   { echo "$as_me:$LINENO: result: no" >&5
5307 echo "${ECHO_T}no" >&6; }
5308 fi
5309
5310
5311   test -n "$AWK" && break
5312 done
5313
5314 # Some AWK programs fail, so test it and warn the user
5315 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5316       { if ((prog == $2) || (("(" prog ")") == $2) ||
5317       (("" prog "") == $2) ||
5318       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5319 else
5320   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5321    The regex engine of $AWK is too broken to be used you
5322    might want to install GNU AWK.
5323    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5324 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5325    The regex engine of $AWK is too broken to be used you
5326    might want to install GNU AWK.
5327    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5328    { (exit 1); exit 1; }; }
5329 fi
5330 THE_AWK=$AWK
5331 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5332 set dummy $THE_AWK; ac_word=$2
5333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5335 if test "${ac_cv_path_AWK+set}" = set; then
5336   echo $ECHO_N "(cached) $ECHO_C" >&6
5337 else
5338   case $AWK in
5339   [\\/]* | ?:[\\/]*)
5340   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5341   ;;
5342   *)
5343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5345 do
5346   IFS=$as_save_IFS
5347   test -z "$as_dir" && as_dir=.
5348   for ac_exec_ext in '' $ac_executable_extensions; do
5349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5350     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5352     break 2
5353   fi
5354 done
5355 done
5356 IFS=$as_save_IFS
5357
5358   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5359   ;;
5360 esac
5361 fi
5362 AWK=$ac_cv_path_AWK
5363 if test -n "$AWK"; then
5364   { echo "$as_me:$LINENO: result: $AWK" >&5
5365 echo "${ECHO_T}$AWK" >&6; }
5366 else
5367   { echo "$as_me:$LINENO: result: no" >&5
5368 echo "${ECHO_T}no" >&6; }
5369 fi
5370
5371
5372
5373
5374 test -n "$ARFLAG" || ARFLAGS="cr"
5375
5376
5377 MAKE_SHELL=/bin/sh
5378
5379
5380
5381
5382
5383
5384
5385 use_libtool=yes
5386 # Check whether --enable-libtool was given.
5387 if test "${enable_libtool+set}" = set; then
5388   enableval=$enable_libtool;
5389        if test x$enableval = xno; then
5390           use_libtool=no
5391        fi
5392
5393
5394 fi
5395
5396 case `pwd` in
5397   *\ * | *\     *)
5398     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5399 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5400 esac
5401
5402
5403
5404 macro_version='2.2.6'
5405 macro_revision='1.3012'
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419 ltmain="$ac_aux_dir/ltmain.sh"
5420
5421 # Make sure we can run config.sub.
5422 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5423   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5424 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5425    { (exit 1); exit 1; }; }
5426
5427 { echo "$as_me:$LINENO: checking build system type" >&5
5428 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5429 if test "${ac_cv_build+set}" = set; then
5430   echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432   ac_build_alias=$build_alias
5433 test "x$ac_build_alias" = x &&
5434   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5435 test "x$ac_build_alias" = x &&
5436   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5437 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5438    { (exit 1); exit 1; }; }
5439 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5440   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5441 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5442    { (exit 1); exit 1; }; }
5443
5444 fi
5445 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5446 echo "${ECHO_T}$ac_cv_build" >&6; }
5447 case $ac_cv_build in
5448 *-*-*) ;;
5449 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5450 echo "$as_me: error: invalid value of canonical build" >&2;}
5451    { (exit 1); exit 1; }; };;
5452 esac
5453 build=$ac_cv_build
5454 ac_save_IFS=$IFS; IFS='-'
5455 set x $ac_cv_build
5456 shift
5457 build_cpu=$1
5458 build_vendor=$2
5459 shift; shift
5460 # Remember, the first character of IFS is used to create $*,
5461 # except with old shells:
5462 build_os=$*
5463 IFS=$ac_save_IFS
5464 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5465
5466
5467 { echo "$as_me:$LINENO: checking host system type" >&5
5468 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5469 if test "${ac_cv_host+set}" = set; then
5470   echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472   if test "x$host_alias" = x; then
5473   ac_cv_host=$ac_cv_build
5474 else
5475   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5476     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5477 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5478    { (exit 1); exit 1; }; }
5479 fi
5480
5481 fi
5482 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5483 echo "${ECHO_T}$ac_cv_host" >&6; }
5484 case $ac_cv_host in
5485 *-*-*) ;;
5486 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5487 echo "$as_me: error: invalid value of canonical host" >&2;}
5488    { (exit 1); exit 1; }; };;
5489 esac
5490 host=$ac_cv_host
5491 ac_save_IFS=$IFS; IFS='-'
5492 set x $ac_cv_host
5493 shift
5494 host_cpu=$1
5495 host_vendor=$2
5496 shift; shift
5497 # Remember, the first character of IFS is used to create $*,
5498 # except with old shells:
5499 host_os=$*
5500 IFS=$ac_save_IFS
5501 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5502
5503
5504 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5505 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5506 if test "${ac_cv_path_SED+set}" = set; then
5507   echo $ECHO_N "(cached) $ECHO_C" >&6
5508 else
5509             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5510      for ac_i in 1 2 3 4 5 6 7; do
5511        ac_script="$ac_script$as_nl$ac_script"
5512      done
5513      echo "$ac_script" | sed 99q >conftest.sed
5514      $as_unset ac_script || ac_script=
5515      # Extract the first word of "sed gsed" to use in msg output
5516 if test -z "$SED"; then
5517 set dummy sed gsed; ac_prog_name=$2
5518 if test "${ac_cv_path_SED+set}" = set; then
5519   echo $ECHO_N "(cached) $ECHO_C" >&6
5520 else
5521   ac_path_SED_found=false
5522 # Loop through the user's path and test for each of PROGNAME-LIST
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 for as_dir in $PATH
5525 do
5526   IFS=$as_save_IFS
5527   test -z "$as_dir" && as_dir=.
5528   for ac_prog in sed gsed; do
5529   for ac_exec_ext in '' $ac_executable_extensions; do
5530     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5531     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5532     # Check for GNU ac_path_SED and select it if it is found.
5533   # Check for GNU $ac_path_SED
5534 case `"$ac_path_SED" --version 2>&1` in
5535 *GNU*)
5536   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5537 *)
5538   ac_count=0
5539   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5540   while :
5541   do
5542     cat "conftest.in" "conftest.in" >"conftest.tmp"
5543     mv "conftest.tmp" "conftest.in"
5544     cp "conftest.in" "conftest.nl"
5545     echo '' >> "conftest.nl"
5546     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5547     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5548     ac_count=`expr $ac_count + 1`
5549     if test $ac_count -gt ${ac_path_SED_max-0}; then
5550       # Best one so far, save it but keep looking for a better one
5551       ac_cv_path_SED="$ac_path_SED"
5552       ac_path_SED_max=$ac_count
5553     fi
5554     # 10*(2^10) chars as input seems more than enough
5555     test $ac_count -gt 10 && break
5556   done
5557   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5558 esac
5559
5560
5561     $ac_path_SED_found && break 3
5562   done
5563 done
5564
5565 done
5566 IFS=$as_save_IFS
5567
5568
5569 fi
5570
5571 SED="$ac_cv_path_SED"
5572 if test -z "$SED"; then
5573   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5574 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5575    { (exit 1); exit 1; }; }
5576 fi
5577
5578 else
5579   ac_cv_path_SED=$SED
5580 fi
5581
5582 fi
5583 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5584 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5585  SED="$ac_cv_path_SED"
5586   rm -f conftest.sed
5587
5588 test -z "$SED" && SED=sed
5589 Xsed="$SED -e 1s/^X//"
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601 { echo "$as_me:$LINENO: checking for fgrep" >&5
5602 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5603 if test "${ac_cv_path_FGREP+set}" = set; then
5604   echo $ECHO_N "(cached) $ECHO_C" >&6
5605 else
5606   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5607    then ac_cv_path_FGREP="$GREP -F"
5608    else
5609      # Extract the first word of "fgrep" to use in msg output
5610 if test -z "$FGREP"; then
5611 set dummy fgrep; ac_prog_name=$2
5612 if test "${ac_cv_path_FGREP+set}" = set; then
5613   echo $ECHO_N "(cached) $ECHO_C" >&6
5614 else
5615   ac_path_FGREP_found=false
5616 # Loop through the user's path and test for each of PROGNAME-LIST
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5619 do
5620   IFS=$as_save_IFS
5621   test -z "$as_dir" && as_dir=.
5622   for ac_prog in fgrep; do
5623   for ac_exec_ext in '' $ac_executable_extensions; do
5624     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5625     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5626     # Check for GNU ac_path_FGREP and select it if it is found.
5627   # Check for GNU $ac_path_FGREP
5628 case `"$ac_path_FGREP" --version 2>&1` in
5629 *GNU*)
5630   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5631 *)
5632   ac_count=0
5633   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5634   while :
5635   do
5636     cat "conftest.in" "conftest.in" >"conftest.tmp"
5637     mv "conftest.tmp" "conftest.in"
5638     cp "conftest.in" "conftest.nl"
5639     echo 'FGREP' >> "conftest.nl"
5640     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5641     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5642     ac_count=`expr $ac_count + 1`
5643     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5644       # Best one so far, save it but keep looking for a better one
5645       ac_cv_path_FGREP="$ac_path_FGREP"
5646       ac_path_FGREP_max=$ac_count
5647     fi
5648     # 10*(2^10) chars as input seems more than enough
5649     test $ac_count -gt 10 && break
5650   done
5651   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5652 esac
5653
5654
5655     $ac_path_FGREP_found && break 3
5656   done
5657 done
5658
5659 done
5660 IFS=$as_save_IFS
5661
5662
5663 fi
5664
5665 FGREP="$ac_cv_path_FGREP"
5666 if test -z "$FGREP"; then
5667   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5668 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5669    { (exit 1); exit 1; }; }
5670 fi
5671
5672 else
5673   ac_cv_path_FGREP=$FGREP
5674 fi
5675
5676
5677    fi
5678 fi
5679 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5680 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5681  FGREP="$ac_cv_path_FGREP"
5682
5683
5684 test -z "$GREP" && GREP=grep
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704 # Check whether --with-gnu-ld was given.
5705 if test "${with_gnu_ld+set}" = set; then
5706   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5707 else
5708   with_gnu_ld=no
5709 fi
5710
5711 ac_prog=ld
5712 if test "$GCC" = yes; then
5713   # Check if gcc -print-prog-name=ld gives a path.
5714   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5715 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5716   case $host in
5717   *-*-mingw*)
5718     # gcc leaves a trailing carriage return which upsets mingw
5719     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5720   *)
5721     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5722   esac
5723   case $ac_prog in
5724     # Accept absolute paths.
5725     [\\/]* | ?:[\\/]*)
5726       re_direlt='/[^/][^/]*/\.\./'
5727       # Canonicalize the pathname of ld
5728       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5729       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5730         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5731       done
5732       test -z "$LD" && LD="$ac_prog"
5733       ;;
5734   "")
5735     # If it fails, then pretend we aren't using GCC.
5736     ac_prog=ld
5737     ;;
5738   *)
5739     # If it is relative, then search for the first ld in PATH.
5740     with_gnu_ld=unknown
5741     ;;
5742   esac
5743 elif test "$with_gnu_ld" = yes; then
5744   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5745 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5746 else
5747   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5748 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5749 fi
5750 if test "${lt_cv_path_LD+set}" = set; then
5751   echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753   if test -z "$LD"; then
5754   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5755   for ac_dir in $PATH; do
5756     IFS="$lt_save_ifs"
5757     test -z "$ac_dir" && ac_dir=.
5758     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5759       lt_cv_path_LD="$ac_dir/$ac_prog"
5760       # Check to see if the program is GNU ld.  I'd rather use --version,
5761       # but apparently some variants of GNU ld only accept -v.
5762       # Break only if it was the GNU/non-GNU ld that we prefer.
5763       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5764       *GNU* | *'with BFD'*)
5765         test "$with_gnu_ld" != no && break
5766         ;;
5767       *)
5768         test "$with_gnu_ld" != yes && break
5769         ;;
5770       esac
5771     fi
5772   done
5773   IFS="$lt_save_ifs"
5774 else
5775   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5776 fi
5777 fi
5778
5779 LD="$lt_cv_path_LD"
5780 if test -n "$LD"; then
5781   { echo "$as_me:$LINENO: result: $LD" >&5
5782 echo "${ECHO_T}$LD" >&6; }
5783 else
5784   { echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6; }
5786 fi
5787 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5788 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5789    { (exit 1); exit 1; }; }
5790 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5791 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5792 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5793   echo $ECHO_N "(cached) $ECHO_C" >&6
5794 else
5795   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5796 case `$LD -v 2>&1 </dev/null` in
5797 *GNU* | *'with BFD'*)
5798   lt_cv_prog_gnu_ld=yes
5799   ;;
5800 *)
5801   lt_cv_prog_gnu_ld=no
5802   ;;
5803 esac
5804 fi
5805 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5806 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5807 with_gnu_ld=$lt_cv_prog_gnu_ld
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5818 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5819 if test "${lt_cv_path_NM+set}" = set; then
5820   echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822   if test -n "$NM"; then
5823   # Let the user override the test.
5824   lt_cv_path_NM="$NM"
5825 else
5826   lt_nm_to_check="${ac_tool_prefix}nm"
5827   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5828     lt_nm_to_check="$lt_nm_to_check nm"
5829   fi
5830   for lt_tmp_nm in $lt_nm_to_check; do
5831     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5832     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5833       IFS="$lt_save_ifs"
5834       test -z "$ac_dir" && ac_dir=.
5835       tmp_nm="$ac_dir/$lt_tmp_nm"
5836       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5837         # Check to see if the nm accepts a BSD-compat flag.
5838         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5839         #   nm: unknown option "B" ignored
5840         # Tru64's nm complains that /dev/null is an invalid object file
5841         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5842         */dev/null* | *'Invalid file or object type'*)
5843           lt_cv_path_NM="$tmp_nm -B"
5844           break
5845           ;;
5846         *)
5847           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5848           */dev/null*)
5849             lt_cv_path_NM="$tmp_nm -p"
5850             break
5851             ;;
5852           *)
5853             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5854             continue # so that we can try to find one that supports BSD flags
5855             ;;
5856           esac
5857           ;;
5858         esac
5859       fi
5860     done
5861     IFS="$lt_save_ifs"
5862   done
5863   : ${lt_cv_path_NM=no}
5864 fi
5865 fi
5866 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5867 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5868 if test "$lt_cv_path_NM" != "no"; then
5869   NM="$lt_cv_path_NM"
5870 else
5871   # Didn't find any BSD compatible name lister, look for dumpbin.
5872   if test -n "$ac_tool_prefix"; then
5873   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5874   do
5875     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5879 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5880   echo $ECHO_N "(cached) $ECHO_C" >&6
5881 else
5882   if test -n "$DUMPBIN"; then
5883   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5884 else
5885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886 for as_dir in $PATH
5887 do
5888   IFS=$as_save_IFS
5889   test -z "$as_dir" && as_dir=.
5890   for ac_exec_ext in '' $ac_executable_extensions; do
5891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5892     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5894     break 2
5895   fi
5896 done
5897 done
5898 IFS=$as_save_IFS
5899
5900 fi
5901 fi
5902 DUMPBIN=$ac_cv_prog_DUMPBIN
5903 if test -n "$DUMPBIN"; then
5904   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5905 echo "${ECHO_T}$DUMPBIN" >&6; }
5906 else
5907   { echo "$as_me:$LINENO: result: no" >&5
5908 echo "${ECHO_T}no" >&6; }
5909 fi
5910
5911
5912     test -n "$DUMPBIN" && break
5913   done
5914 fi
5915 if test -z "$DUMPBIN"; then
5916   ac_ct_DUMPBIN=$DUMPBIN
5917   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5918 do
5919   # Extract the first word of "$ac_prog", so it can be a program name with args.
5920 set dummy $ac_prog; ac_word=$2
5921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5923 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5924   echo $ECHO_N "(cached) $ECHO_C" >&6
5925 else
5926   if test -n "$ac_ct_DUMPBIN"; then
5927   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5928 else
5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 for as_dir in $PATH
5931 do
5932   IFS=$as_save_IFS
5933   test -z "$as_dir" && as_dir=.
5934   for ac_exec_ext in '' $ac_executable_extensions; do
5935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5936     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5938     break 2
5939   fi
5940 done
5941 done
5942 IFS=$as_save_IFS
5943
5944 fi
5945 fi
5946 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5947 if test -n "$ac_ct_DUMPBIN"; then
5948   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5949 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5950 else
5951   { echo "$as_me:$LINENO: result: no" >&5
5952 echo "${ECHO_T}no" >&6; }
5953 fi
5954
5955
5956   test -n "$ac_ct_DUMPBIN" && break
5957 done
5958
5959   if test "x$ac_ct_DUMPBIN" = x; then
5960     DUMPBIN=":"
5961   else
5962     case $cross_compiling:$ac_tool_warned in
5963 yes:)
5964 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5965 whose name does not start with the host triplet.  If you think this
5966 configuration is useful to you, please write to autoconf@gnu.org." >&5
5967 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5968 whose name does not start with the host triplet.  If you think this
5969 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5970 ac_tool_warned=yes ;;
5971 esac
5972     DUMPBIN=$ac_ct_DUMPBIN
5973   fi
5974 fi
5975
5976
5977   if test "$DUMPBIN" != ":"; then
5978     NM="$DUMPBIN"
5979   fi
5980 fi
5981 test -z "$NM" && NM=nm
5982
5983
5984
5985
5986
5987
5988 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5989 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5990 if test "${lt_cv_nm_interface+set}" = set; then
5991   echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993   lt_cv_nm_interface="BSD nm"
5994   echo "int some_variable = 0;" > conftest.$ac_ext
5995   (eval echo "\"\$as_me:5995: $ac_compile\"" >&5)
5996   (eval "$ac_compile" 2>conftest.err)
5997   cat conftest.err >&5
5998   (eval echo "\"\$as_me:5998: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5999   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6000   cat conftest.err >&5
6001   (eval echo "\"\$as_me:6001: output\"" >&5)
6002   cat conftest.out >&5
6003   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6004     lt_cv_nm_interface="MS dumpbin"
6005   fi
6006   rm -f conftest*
6007 fi
6008 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6009 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6010
6011 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6012 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6013 LN_S=$as_ln_s
6014 if test "$LN_S" = "ln -s"; then
6015   { echo "$as_me:$LINENO: result: yes" >&5
6016 echo "${ECHO_T}yes" >&6; }
6017 else
6018   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6019 echo "${ECHO_T}no, using $LN_S" >&6; }
6020 fi
6021
6022 # find the maximum length of command line arguments
6023 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6024 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6025 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6026   echo $ECHO_N "(cached) $ECHO_C" >&6
6027 else
6028     i=0
6029   teststring="ABCD"
6030
6031   case $build_os in
6032   msdosdjgpp*)
6033     # On DJGPP, this test can blow up pretty badly due to problems in libc
6034     # (any single argument exceeding 2000 bytes causes a buffer overrun
6035     # during glob expansion).  Even if it were fixed, the result of this
6036     # check would be larger than it should be.
6037     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6038     ;;
6039
6040   gnu*)
6041     # Under GNU Hurd, this test is not required because there is
6042     # no limit to the length of command line arguments.
6043     # Libtool will interpret -1 as no limit whatsoever
6044     lt_cv_sys_max_cmd_len=-1;
6045     ;;
6046
6047   cygwin* | mingw* | cegcc*)
6048     # On Win9x/ME, this test blows up -- it succeeds, but takes
6049     # about 5 minutes as the teststring grows exponentially.
6050     # Worse, since 9x/ME are not pre-emptively multitasking,
6051     # you end up with a "frozen" computer, even though with patience
6052     # the test eventually succeeds (with a max line length of 256k).
6053     # Instead, let's just punt: use the minimum linelength reported by
6054     # all of the supported platforms: 8192 (on NT/2K/XP).
6055     lt_cv_sys_max_cmd_len=8192;
6056     ;;
6057
6058   amigaos*)
6059     # On AmigaOS with pdksh, this test takes hours, literally.
6060     # So we just punt and use a minimum line length of 8192.
6061     lt_cv_sys_max_cmd_len=8192;
6062     ;;
6063
6064   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6065     # This has been around since 386BSD, at least.  Likely further.
6066     if test -x /sbin/sysctl; then
6067       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6068     elif test -x /usr/sbin/sysctl; then
6069       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6070     else
6071       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6072     fi
6073     # And add a safety zone
6074     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6075     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6076     ;;
6077
6078   interix*)
6079     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6080     lt_cv_sys_max_cmd_len=196608
6081     ;;
6082
6083   osf*)
6084     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6085     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6086     # nice to cause kernel panics so lets avoid the loop below.
6087     # First set a reasonable default.
6088     lt_cv_sys_max_cmd_len=16384
6089     #
6090     if test -x /sbin/sysconfig; then
6091       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6092         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6093       esac
6094     fi
6095     ;;
6096   sco3.2v5*)
6097     lt_cv_sys_max_cmd_len=102400
6098     ;;
6099   sysv5* | sco5v6* | sysv4.2uw2*)
6100     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6101     if test -n "$kargmax"; then
6102       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6103     else
6104       lt_cv_sys_max_cmd_len=32768
6105     fi
6106     ;;
6107   *)
6108     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6109     if test -n "$lt_cv_sys_max_cmd_len"; then
6110       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6111       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6112     else
6113       # Make teststring a little bigger before we do anything with it.
6114       # a 1K string should be a reasonable start.
6115       for i in 1 2 3 4 5 6 7 8 ; do
6116         teststring=$teststring$teststring
6117       done
6118       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6119       # If test is not a shell built-in, we'll probably end up computing a
6120       # maximum length that is only half of the actual maximum length, but
6121       # we can't tell.
6122       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6123                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6124               test $i != 17 # 1/2 MB should be enough
6125       do
6126         i=`expr $i + 1`
6127         teststring=$teststring$teststring
6128       done
6129       # Only check the string length outside the loop.
6130       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6131       teststring=
6132       # Add a significant safety factor because C++ compilers can tack on
6133       # massive amounts of additional arguments before passing them to the
6134       # linker.  It appears as though 1/2 is a usable value.
6135       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6136     fi
6137     ;;
6138   esac
6139
6140 fi
6141
6142 if test -n $lt_cv_sys_max_cmd_len ; then
6143   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6144 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6145 else
6146   { echo "$as_me:$LINENO: result: none" >&5
6147 echo "${ECHO_T}none" >&6; }
6148 fi
6149 max_cmd_len=$lt_cv_sys_max_cmd_len
6150
6151
6152
6153
6154
6155
6156 : ${CP="cp -f"}
6157 : ${MV="mv -f"}
6158 : ${RM="rm -f"}
6159
6160 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6161 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6162 # Try some XSI features
6163 xsi_shell=no
6164 ( _lt_dummy="a/b/c"
6165   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6166       = c,a/b,, \
6167     && eval 'test $(( 1 + 1 )) -eq 2 \
6168     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6169   && xsi_shell=yes
6170 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6171 echo "${ECHO_T}$xsi_shell" >&6; }
6172
6173
6174 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6175 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6176 lt_shell_append=no
6177 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6178     >/dev/null 2>&1 \
6179   && lt_shell_append=yes
6180 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6181 echo "${ECHO_T}$lt_shell_append" >&6; }
6182
6183
6184 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6185   lt_unset=unset
6186 else
6187   lt_unset=false
6188 fi
6189
6190
6191
6192
6193
6194 # test EBCDIC or ASCII
6195 case `echo X|tr X '\101'` in
6196  A) # ASCII based system
6197     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6198   lt_SP2NL='tr \040 \012'
6199   lt_NL2SP='tr \015\012 \040\040'
6200   ;;
6201  *) # EBCDIC based system
6202   lt_SP2NL='tr \100 \n'
6203   lt_NL2SP='tr \r\n \100\100'
6204   ;;
6205 esac
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6216 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6217 if test "${lt_cv_ld_reload_flag+set}" = set; then
6218   echo $ECHO_N "(cached) $ECHO_C" >&6
6219 else
6220   lt_cv_ld_reload_flag='-r'
6221 fi
6222 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6223 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6224 reload_flag=$lt_cv_ld_reload_flag
6225 case $reload_flag in
6226 "" | " "*) ;;
6227 *) reload_flag=" $reload_flag" ;;
6228 esac
6229 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6230 case $host_os in
6231   darwin*)
6232     if test "$GCC" = yes; then
6233       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6234     else
6235       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6236     fi
6237     ;;
6238 esac
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248 if test -n "$ac_tool_prefix"; then
6249   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6250 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6253 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6254   echo $ECHO_N "(cached) $ECHO_C" >&6
6255 else
6256   if test -n "$OBJDUMP"; then
6257   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6258 else
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 for as_dir in $PATH
6261 do
6262   IFS=$as_save_IFS
6263   test -z "$as_dir" && as_dir=.
6264   for ac_exec_ext in '' $ac_executable_extensions; do
6265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6266     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6268     break 2
6269   fi
6270 done
6271 done
6272 IFS=$as_save_IFS
6273
6274 fi
6275 fi
6276 OBJDUMP=$ac_cv_prog_OBJDUMP
6277 if test -n "$OBJDUMP"; then
6278   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6279 echo "${ECHO_T}$OBJDUMP" >&6; }
6280 else
6281   { echo "$as_me:$LINENO: result: no" >&5
6282 echo "${ECHO_T}no" >&6; }
6283 fi
6284
6285
6286 fi
6287 if test -z "$ac_cv_prog_OBJDUMP"; then
6288   ac_ct_OBJDUMP=$OBJDUMP
6289   # Extract the first word of "objdump", so it can be a program name with args.
6290 set dummy objdump; ac_word=$2
6291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6293 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6294   echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296   if test -n "$ac_ct_OBJDUMP"; then
6297   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6298 else
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 for as_dir in $PATH
6301 do
6302   IFS=$as_save_IFS
6303   test -z "$as_dir" && as_dir=.
6304   for ac_exec_ext in '' $ac_executable_extensions; do
6305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6306     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6308     break 2
6309   fi
6310 done
6311 done
6312 IFS=$as_save_IFS
6313
6314 fi
6315 fi
6316 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6317 if test -n "$ac_ct_OBJDUMP"; then
6318   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6319 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6320 else
6321   { echo "$as_me:$LINENO: result: no" >&5
6322 echo "${ECHO_T}no" >&6; }
6323 fi
6324
6325   if test "x$ac_ct_OBJDUMP" = x; then
6326     OBJDUMP="false"
6327   else
6328     case $cross_compiling:$ac_tool_warned in
6329 yes:)
6330 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6331 whose name does not start with the host triplet.  If you think this
6332 configuration is useful to you, please write to autoconf@gnu.org." >&5
6333 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6334 whose name does not start with the host triplet.  If you think this
6335 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6336 ac_tool_warned=yes ;;
6337 esac
6338     OBJDUMP=$ac_ct_OBJDUMP
6339   fi
6340 else
6341   OBJDUMP="$ac_cv_prog_OBJDUMP"
6342 fi
6343
6344 test -z "$OBJDUMP" && OBJDUMP=objdump
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6355 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6356 if test "${lt_cv_deplibs_check_method+set}" = set; then
6357   echo $ECHO_N "(cached) $ECHO_C" >&6
6358 else
6359   lt_cv_file_magic_cmd='$MAGIC_CMD'
6360 lt_cv_file_magic_test_file=
6361 lt_cv_deplibs_check_method='unknown'
6362 # Need to set the preceding variable on all platforms that support
6363 # interlibrary dependencies.
6364 # 'none' -- dependencies not supported.
6365 # `unknown' -- same as none, but documents that we really don't know.
6366 # 'pass_all' -- all dependencies passed with no checks.
6367 # 'test_compile' -- check by making test program.
6368 # 'file_magic [[regex]]' -- check by looking for files in library path
6369 # which responds to the $file_magic_cmd with a given extended regex.
6370 # If you have `file' or equivalent on your system and you're not sure
6371 # whether `pass_all' will *always* work, you probably want this one.
6372
6373 case $host_os in
6374 aix[4-9]*)
6375   lt_cv_deplibs_check_method=pass_all
6376   ;;
6377
6378 beos*)
6379   lt_cv_deplibs_check_method=pass_all
6380   ;;
6381
6382 bsdi[45]*)
6383   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6384   lt_cv_file_magic_cmd='/usr/bin/file -L'
6385   lt_cv_file_magic_test_file=/shlib/libc.so
6386   ;;
6387
6388 cygwin*)
6389   # func_win32_libid is a shell function defined in ltmain.sh
6390   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6391   lt_cv_file_magic_cmd='func_win32_libid'
6392   ;;
6393
6394 mingw* | pw32*)
6395   # Base MSYS/MinGW do not provide the 'file' command needed by
6396   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6397   # unless we find 'file', for example because we are cross-compiling.
6398   if ( file / ) >/dev/null 2>&1; then
6399     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6400     lt_cv_file_magic_cmd='func_win32_libid'
6401   else
6402     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6403     lt_cv_file_magic_cmd='$OBJDUMP -f'
6404   fi
6405   ;;
6406
6407 cegcc)
6408   # use the weaker test based on 'objdump'. See mingw*.
6409   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6410   lt_cv_file_magic_cmd='$OBJDUMP -f'
6411   ;;
6412
6413 darwin* | rhapsody*)
6414   lt_cv_deplibs_check_method=pass_all
6415   ;;
6416
6417 freebsd* | dragonfly*)
6418   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6419     case $host_cpu in
6420     i*86 )
6421       # Not sure whether the presence of OpenBSD here was a mistake.
6422       # Let's accept both of them until this is cleared up.
6423       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6424       lt_cv_file_magic_cmd=/usr/bin/file
6425       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6426       ;;
6427     esac
6428   else
6429     lt_cv_deplibs_check_method=pass_all
6430   fi
6431   ;;
6432
6433 gnu*)
6434   lt_cv_deplibs_check_method=pass_all
6435   ;;
6436
6437 hpux10.20* | hpux11*)
6438   lt_cv_file_magic_cmd=/usr/bin/file
6439   case $host_cpu in
6440   ia64*)
6441     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6442     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6443     ;;
6444   hppa*64*)
6445     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]'
6446     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6447     ;;
6448   *)
6449     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6450     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6451     ;;
6452   esac
6453   ;;
6454
6455 interix[3-9]*)
6456   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6457   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6458   ;;
6459
6460 irix5* | irix6* | nonstopux*)
6461   case $LD in
6462   *-32|*"-32 ") libmagic=32-bit;;
6463   *-n32|*"-n32 ") libmagic=N32;;
6464   *-64|*"-64 ") libmagic=64-bit;;
6465   *) libmagic=never-match;;
6466   esac
6467   lt_cv_deplibs_check_method=pass_all
6468   ;;
6469
6470 # This must be Linux ELF.
6471 linux* | k*bsd*-gnu)
6472   lt_cv_deplibs_check_method=pass_all
6473   ;;
6474
6475 netbsd*)
6476   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6477     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6478   else
6479     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6480   fi
6481   ;;
6482
6483 newos6*)
6484   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6485   lt_cv_file_magic_cmd=/usr/bin/file
6486   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6487   ;;
6488
6489 *nto* | *qnx*)
6490   lt_cv_deplibs_check_method=pass_all
6491   ;;
6492
6493 openbsd*)
6494   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6495     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6496   else
6497     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6498   fi
6499   ;;
6500
6501 osf3* | osf4* | osf5*)
6502   lt_cv_deplibs_check_method=pass_all
6503   ;;
6504
6505 rdos*)
6506   lt_cv_deplibs_check_method=pass_all
6507   ;;
6508
6509 solaris*)
6510   lt_cv_deplibs_check_method=pass_all
6511   ;;
6512
6513 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6514   lt_cv_deplibs_check_method=pass_all
6515   ;;
6516
6517 sysv4 | sysv4.3*)
6518   case $host_vendor in
6519   motorola)
6520     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]'
6521     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6522     ;;
6523   ncr)
6524     lt_cv_deplibs_check_method=pass_all
6525     ;;
6526   sequent)
6527     lt_cv_file_magic_cmd='/bin/file'
6528     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6529     ;;
6530   sni)
6531     lt_cv_file_magic_cmd='/bin/file'
6532     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6533     lt_cv_file_magic_test_file=/lib/libc.so
6534     ;;
6535   siemens)
6536     lt_cv_deplibs_check_method=pass_all
6537     ;;
6538   pc)
6539     lt_cv_deplibs_check_method=pass_all
6540     ;;
6541   esac
6542   ;;
6543
6544 tpf*)
6545   lt_cv_deplibs_check_method=pass_all
6546   ;;
6547 esac
6548
6549 fi
6550 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6551 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6552 file_magic_cmd=$lt_cv_file_magic_cmd
6553 deplibs_check_method=$lt_cv_deplibs_check_method
6554 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567 if test -n "$ac_tool_prefix"; then
6568   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6569 set dummy ${ac_tool_prefix}ar; ac_word=$2
6570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6572 if test "${ac_cv_prog_AR+set}" = set; then
6573   echo $ECHO_N "(cached) $ECHO_C" >&6
6574 else
6575   if test -n "$AR"; then
6576   ac_cv_prog_AR="$AR" # Let the user override the test.
6577 else
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 for as_dir in $PATH
6580 do
6581   IFS=$as_save_IFS
6582   test -z "$as_dir" && as_dir=.
6583   for ac_exec_ext in '' $ac_executable_extensions; do
6584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6585     ac_cv_prog_AR="${ac_tool_prefix}ar"
6586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6587     break 2
6588   fi
6589 done
6590 done
6591 IFS=$as_save_IFS
6592
6593 fi
6594 fi
6595 AR=$ac_cv_prog_AR
6596 if test -n "$AR"; then
6597   { echo "$as_me:$LINENO: result: $AR" >&5
6598 echo "${ECHO_T}$AR" >&6; }
6599 else
6600   { echo "$as_me:$LINENO: result: no" >&5
6601 echo "${ECHO_T}no" >&6; }
6602 fi
6603
6604
6605 fi
6606 if test -z "$ac_cv_prog_AR"; then
6607   ac_ct_AR=$AR
6608   # Extract the first word of "ar", so it can be a program name with args.
6609 set dummy ar; ac_word=$2
6610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6612 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6613   echo $ECHO_N "(cached) $ECHO_C" >&6
6614 else
6615   if test -n "$ac_ct_AR"; then
6616   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6617 else
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 for as_dir in $PATH
6620 do
6621   IFS=$as_save_IFS
6622   test -z "$as_dir" && as_dir=.
6623   for ac_exec_ext in '' $ac_executable_extensions; do
6624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6625     ac_cv_prog_ac_ct_AR="ar"
6626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6627     break 2
6628   fi
6629 done
6630 done
6631 IFS=$as_save_IFS
6632
6633 fi
6634 fi
6635 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6636 if test -n "$ac_ct_AR"; then
6637   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6638 echo "${ECHO_T}$ac_ct_AR" >&6; }
6639 else
6640   { echo "$as_me:$LINENO: result: no" >&5
6641 echo "${ECHO_T}no" >&6; }
6642 fi
6643
6644   if test "x$ac_ct_AR" = x; then
6645     AR="false"
6646   else
6647     case $cross_compiling:$ac_tool_warned in
6648 yes:)
6649 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6650 whose name does not start with the host triplet.  If you think this
6651 configuration is useful to you, please write to autoconf@gnu.org." >&5
6652 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6653 whose name does not start with the host triplet.  If you think this
6654 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6655 ac_tool_warned=yes ;;
6656 esac
6657     AR=$ac_ct_AR
6658   fi
6659 else
6660   AR="$ac_cv_prog_AR"
6661 fi
6662
6663 test -z "$AR" && AR=ar
6664 test -z "$AR_FLAGS" && AR_FLAGS=cru
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676 if test -n "$ac_tool_prefix"; then
6677   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6678 set dummy ${ac_tool_prefix}strip; ac_word=$2
6679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6681 if test "${ac_cv_prog_STRIP+set}" = set; then
6682   echo $ECHO_N "(cached) $ECHO_C" >&6
6683 else
6684   if test -n "$STRIP"; then
6685   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6686 else
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 for as_dir in $PATH
6689 do
6690   IFS=$as_save_IFS
6691   test -z "$as_dir" && as_dir=.
6692   for ac_exec_ext in '' $ac_executable_extensions; do
6693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6694     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6696     break 2
6697   fi
6698 done
6699 done
6700 IFS=$as_save_IFS
6701
6702 fi
6703 fi
6704 STRIP=$ac_cv_prog_STRIP
6705 if test -n "$STRIP"; then
6706   { echo "$as_me:$LINENO: result: $STRIP" >&5
6707 echo "${ECHO_T}$STRIP" >&6; }
6708 else
6709   { echo "$as_me:$LINENO: result: no" >&5
6710 echo "${ECHO_T}no" >&6; }
6711 fi
6712
6713
6714 fi
6715 if test -z "$ac_cv_prog_STRIP"; then
6716   ac_ct_STRIP=$STRIP
6717   # Extract the first word of "strip", so it can be a program name with args.
6718 set dummy strip; ac_word=$2
6719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6721 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6722   echo $ECHO_N "(cached) $ECHO_C" >&6
6723 else
6724   if test -n "$ac_ct_STRIP"; then
6725   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6726 else
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6729 do
6730   IFS=$as_save_IFS
6731   test -z "$as_dir" && as_dir=.
6732   for ac_exec_ext in '' $ac_executable_extensions; do
6733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734     ac_cv_prog_ac_ct_STRIP="strip"
6735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6736     break 2
6737   fi
6738 done
6739 done
6740 IFS=$as_save_IFS
6741
6742 fi
6743 fi
6744 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6745 if test -n "$ac_ct_STRIP"; then
6746   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6747 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6748 else
6749   { echo "$as_me:$LINENO: result: no" >&5
6750 echo "${ECHO_T}no" >&6; }
6751 fi
6752
6753   if test "x$ac_ct_STRIP" = x; then
6754     STRIP=":"
6755   else
6756     case $cross_compiling:$ac_tool_warned in
6757 yes:)
6758 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6759 whose name does not start with the host triplet.  If you think this
6760 configuration is useful to you, please write to autoconf@gnu.org." >&5
6761 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6762 whose name does not start with the host triplet.  If you think this
6763 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6764 ac_tool_warned=yes ;;
6765 esac
6766     STRIP=$ac_ct_STRIP
6767   fi
6768 else
6769   STRIP="$ac_cv_prog_STRIP"
6770 fi
6771
6772 test -z "$STRIP" && STRIP=:
6773
6774
6775
6776
6777
6778
6779 if test -n "$ac_tool_prefix"; then
6780   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6781 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6784 if test "${ac_cv_prog_RANLIB+set}" = set; then
6785   echo $ECHO_N "(cached) $ECHO_C" >&6
6786 else
6787   if test -n "$RANLIB"; then
6788   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6789 else
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 for as_dir in $PATH
6792 do
6793   IFS=$as_save_IFS
6794   test -z "$as_dir" && as_dir=.
6795   for ac_exec_ext in '' $ac_executable_extensions; do
6796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6797     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799     break 2
6800   fi
6801 done
6802 done
6803 IFS=$as_save_IFS
6804
6805 fi
6806 fi
6807 RANLIB=$ac_cv_prog_RANLIB
6808 if test -n "$RANLIB"; then
6809   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6810 echo "${ECHO_T}$RANLIB" >&6; }
6811 else
6812   { echo "$as_me:$LINENO: result: no" >&5
6813 echo "${ECHO_T}no" >&6; }
6814 fi
6815
6816
6817 fi
6818 if test -z "$ac_cv_prog_RANLIB"; then
6819   ac_ct_RANLIB=$RANLIB
6820   # Extract the first word of "ranlib", so it can be a program name with args.
6821 set dummy ranlib; ac_word=$2
6822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6824 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6825   echo $ECHO_N "(cached) $ECHO_C" >&6
6826 else
6827   if test -n "$ac_ct_RANLIB"; then
6828   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6829 else
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 for as_dir in $PATH
6832 do
6833   IFS=$as_save_IFS
6834   test -z "$as_dir" && as_dir=.
6835   for ac_exec_ext in '' $ac_executable_extensions; do
6836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6837     ac_cv_prog_ac_ct_RANLIB="ranlib"
6838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6839     break 2
6840   fi
6841 done
6842 done
6843 IFS=$as_save_IFS
6844
6845 fi
6846 fi
6847 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6848 if test -n "$ac_ct_RANLIB"; then
6849   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6850 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6851 else
6852   { echo "$as_me:$LINENO: result: no" >&5
6853 echo "${ECHO_T}no" >&6; }
6854 fi
6855
6856   if test "x$ac_ct_RANLIB" = x; then
6857     RANLIB=":"
6858   else
6859     case $cross_compiling:$ac_tool_warned in
6860 yes:)
6861 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6862 whose name does not start with the host triplet.  If you think this
6863 configuration is useful to you, please write to autoconf@gnu.org." >&5
6864 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6865 whose name does not start with the host triplet.  If you think this
6866 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6867 ac_tool_warned=yes ;;
6868 esac
6869     RANLIB=$ac_ct_RANLIB
6870   fi
6871 else
6872   RANLIB="$ac_cv_prog_RANLIB"
6873 fi
6874
6875 test -z "$RANLIB" && RANLIB=:
6876
6877
6878
6879
6880
6881
6882 # Determine commands to create old-style static archives.
6883 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6884 old_postinstall_cmds='chmod 644 $oldlib'
6885 old_postuninstall_cmds=
6886
6887 if test -n "$RANLIB"; then
6888   case $host_os in
6889   openbsd*)
6890     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6891     ;;
6892   *)
6893     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6894     ;;
6895   esac
6896   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6897 fi
6898
6899
6900
6901
6902
6903
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 # If no C compiler was specified, use CC.
6933 LTCC=${LTCC-"$CC"}
6934
6935 # If no C compiler flags were specified, use CFLAGS.
6936 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6937
6938 # Allow CC to be a program name with arguments.
6939 compiler=$CC
6940
6941
6942 # Check for command to grab the raw symbol name followed by C symbol from nm.
6943 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6944 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6945 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6946   echo $ECHO_N "(cached) $ECHO_C" >&6
6947 else
6948
6949 # These are sane defaults that work on at least a few old systems.
6950 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6951
6952 # Character class describing NM global symbol codes.
6953 symcode='[BCDEGRST]'
6954
6955 # Regexp to match symbols that can be accessed directly from C.
6956 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6957
6958 # Define system-specific variables.
6959 case $host_os in
6960 aix*)
6961   symcode='[BCDT]'
6962   ;;
6963 cygwin* | mingw* | pw32* | cegcc*)
6964   symcode='[ABCDGISTW]'
6965   ;;
6966 hpux*)
6967   if test "$host_cpu" = ia64; then
6968     symcode='[ABCDEGRST]'
6969   fi
6970   ;;
6971 irix* | nonstopux*)
6972   symcode='[BCDEGRST]'
6973   ;;
6974 osf*)
6975   symcode='[BCDEGQRST]'
6976   ;;
6977 solaris*)
6978   symcode='[BDRT]'
6979   ;;
6980 sco3.2v5*)
6981   symcode='[DT]'
6982   ;;
6983 sysv4.2uw2*)
6984   symcode='[DT]'
6985   ;;
6986 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6987   symcode='[ABDT]'
6988   ;;
6989 sysv4)
6990   symcode='[DFNSTU]'
6991   ;;
6992 esac
6993
6994 # If we're using GNU nm, then use its standard symbol codes.
6995 case `$NM -V 2>&1` in
6996 *GNU* | *'with BFD'*)
6997   symcode='[ABCDGIRSTW]' ;;
6998 esac
6999
7000 # Transform an extracted symbol line into a proper C declaration.
7001 # Some systems (esp. on ia64) link data and code symbols differently,
7002 # so use this general approach.
7003 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7004
7005 # Transform an extracted symbol line into symbol name and symbol address
7006 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7007 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'"
7008
7009 # Handle CRLF in mingw tool chain
7010 opt_cr=
7011 case $build_os in
7012 mingw*)
7013   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7014   ;;
7015 esac
7016
7017 # Try without a prefix underscore, then with it.
7018 for ac_symprfx in "" "_"; do
7019
7020   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7021   symxfrm="\\1 $ac_symprfx\\2 \\2"
7022
7023   # Write the raw and C identifiers.
7024   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7025     # Fake it for dumpbin and say T for any non-static function
7026     # and D for any global variable.
7027     # Also find C++ and __fastcall symbols from MSVC++,
7028     # which start with @ or ?.
7029     lt_cv_sys_global_symbol_pipe="$AWK '"\
7030 "     {last_section=section; section=\$ 3};"\
7031 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7032 "     \$ 0!~/External *\|/{next};"\
7033 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7034 "     {if(hide[section]) next};"\
7035 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7036 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7037 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7038 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7039 "     ' prfx=^$ac_symprfx"
7040   else
7041     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7042   fi
7043
7044   # Check to see that the pipe works correctly.
7045   pipe_works=no
7046
7047   rm -f conftest*
7048   cat > conftest.$ac_ext <<_LT_EOF
7049 #ifdef __cplusplus
7050 extern "C" {
7051 #endif
7052 char nm_test_var;
7053 void nm_test_func(void);
7054 void nm_test_func(void){}
7055 #ifdef __cplusplus
7056 }
7057 #endif
7058 int main(){nm_test_var='a';nm_test_func();return(0);}
7059 _LT_EOF
7060
7061   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7062   (eval $ac_compile) 2>&5
7063   ac_status=$?
7064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065   (exit $ac_status); }; then
7066     # Now try to grab the symbols.
7067     nlist=conftest.nm
7068     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7069   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7070   ac_status=$?
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); } && test -s "$nlist"; then
7073       # Try sorting and uniquifying the output.
7074       if sort "$nlist" | uniq > "$nlist"T; then
7075         mv -f "$nlist"T "$nlist"
7076       else
7077         rm -f "$nlist"T
7078       fi
7079
7080       # Make sure that we snagged all the symbols we need.
7081       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7082         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7083           cat <<_LT_EOF > conftest.$ac_ext
7084 #ifdef __cplusplus
7085 extern "C" {
7086 #endif
7087
7088 _LT_EOF
7089           # Now generate the symbol file.
7090           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7091
7092           cat <<_LT_EOF >> conftest.$ac_ext
7093
7094 /* The mapping between symbol names and symbols.  */
7095 const struct {
7096   const char *name;
7097   void       *address;
7098 }
7099 lt__PROGRAM__LTX_preloaded_symbols[] =
7100 {
7101   { "@PROGRAM@", (void *) 0 },
7102 _LT_EOF
7103           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7104           cat <<\_LT_EOF >> conftest.$ac_ext
7105   {0, (void *) 0}
7106 };
7107
7108 /* This works around a problem in FreeBSD linker */
7109 #ifdef FREEBSD_WORKAROUND
7110 static const void *lt_preloaded_setup() {
7111   return lt__PROGRAM__LTX_preloaded_symbols;
7112 }
7113 #endif
7114
7115 #ifdef __cplusplus
7116 }
7117 #endif
7118 _LT_EOF
7119           # Now try linking the two files.
7120           mv conftest.$ac_objext conftstm.$ac_objext
7121           lt_save_LIBS="$LIBS"
7122           lt_save_CFLAGS="$CFLAGS"
7123           LIBS="conftstm.$ac_objext"
7124           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7125           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7126   (eval $ac_link) 2>&5
7127   ac_status=$?
7128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7130             pipe_works=yes
7131           fi
7132           LIBS="$lt_save_LIBS"
7133           CFLAGS="$lt_save_CFLAGS"
7134         else
7135           echo "cannot find nm_test_func in $nlist" >&5
7136         fi
7137       else
7138         echo "cannot find nm_test_var in $nlist" >&5
7139       fi
7140     else
7141       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7142     fi
7143   else
7144     echo "$progname: failed program was:" >&5
7145     cat conftest.$ac_ext >&5
7146   fi
7147   rm -rf conftest* conftst*
7148
7149   # Do not use the global_symbol_pipe unless it works.
7150   if test "$pipe_works" = yes; then
7151     break
7152   else
7153     lt_cv_sys_global_symbol_pipe=
7154   fi
7155 done
7156
7157 fi
7158
7159 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7160   lt_cv_sys_global_symbol_to_cdecl=
7161 fi
7162 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7163   { echo "$as_me:$LINENO: result: failed" >&5
7164 echo "${ECHO_T}failed" >&6; }
7165 else
7166   { echo "$as_me:$LINENO: result: ok" >&5
7167 echo "${ECHO_T}ok" >&6; }
7168 fi
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191 # Check whether --enable-libtool-lock was given.
7192 if test "${enable_libtool_lock+set}" = set; then
7193   enableval=$enable_libtool_lock;
7194 fi
7195
7196 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7197
7198 # Some flags need to be propagated to the compiler or linker for good
7199 # libtool support.
7200 case $host in
7201 ia64-*-hpux*)
7202   # Find out which ABI we are using.
7203   echo 'int i;' > conftest.$ac_ext
7204   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7205   (eval $ac_compile) 2>&5
7206   ac_status=$?
7207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208   (exit $ac_status); }; then
7209     case `/usr/bin/file conftest.$ac_objext` in
7210       *ELF-32*)
7211         HPUX_IA64_MODE="32"
7212         ;;
7213       *ELF-64*)
7214         HPUX_IA64_MODE="64"
7215         ;;
7216     esac
7217   fi
7218   rm -rf conftest*
7219   ;;
7220 *-*-irix6*)
7221   # Find out which ABI we are using.
7222   echo '#line 7222 "configure"' > conftest.$ac_ext
7223   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7224   (eval $ac_compile) 2>&5
7225   ac_status=$?
7226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227   (exit $ac_status); }; then
7228     if test "$lt_cv_prog_gnu_ld" = yes; then
7229       case `/usr/bin/file conftest.$ac_objext` in
7230         *32-bit*)
7231           LD="${LD-ld} -melf32bsmip"
7232           ;;
7233         *N32*)
7234           LD="${LD-ld} -melf32bmipn32"
7235           ;;
7236         *64-bit*)
7237           LD="${LD-ld} -melf64bmip"
7238         ;;
7239       esac
7240     else
7241       case `/usr/bin/file conftest.$ac_objext` in
7242         *32-bit*)
7243           LD="${LD-ld} -32"
7244           ;;
7245         *N32*)
7246           LD="${LD-ld} -n32"
7247           ;;
7248         *64-bit*)
7249           LD="${LD-ld} -64"
7250           ;;
7251       esac
7252     fi
7253   fi
7254   rm -rf conftest*
7255   ;;
7256
7257 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7258 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7259   # Find out which ABI we are using.
7260   echo 'int i;' > conftest.$ac_ext
7261   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7262   (eval $ac_compile) 2>&5
7263   ac_status=$?
7264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265   (exit $ac_status); }; then
7266     case `/usr/bin/file conftest.o` in
7267       *32-bit*)
7268         case $host in
7269           x86_64-*kfreebsd*-gnu)
7270             LD="${LD-ld} -m elf_i386_fbsd"
7271             ;;
7272           x86_64-*linux*)
7273             LD="${LD-ld} -m elf_i386"
7274             ;;
7275           ppc64-*linux*|powerpc64-*linux*)
7276             LD="${LD-ld} -m elf32ppclinux"
7277             ;;
7278           s390x-*linux*)
7279             LD="${LD-ld} -m elf_s390"
7280             ;;
7281           sparc64-*linux*)
7282             LD="${LD-ld} -m elf32_sparc"
7283             ;;
7284         esac
7285         ;;
7286       *64-bit*)
7287         case $host in
7288           x86_64-*kfreebsd*-gnu)
7289             LD="${LD-ld} -m elf_x86_64_fbsd"
7290             ;;
7291           x86_64-*linux*)
7292             LD="${LD-ld} -m elf_x86_64"
7293             ;;
7294           ppc*-*linux*|powerpc*-*linux*)
7295             LD="${LD-ld} -m elf64ppc"
7296             ;;
7297           s390*-*linux*|s390*-*tpf*)
7298             LD="${LD-ld} -m elf64_s390"
7299             ;;
7300           sparc*-*linux*)
7301             LD="${LD-ld} -m elf64_sparc"
7302             ;;
7303         esac
7304         ;;
7305     esac
7306   fi
7307   rm -rf conftest*
7308   ;;
7309
7310 *-*-sco3.2v5*)
7311   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7312   SAVE_CFLAGS="$CFLAGS"
7313   CFLAGS="$CFLAGS -belf"
7314   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7315 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7316 if test "${lt_cv_cc_needs_belf+set}" = set; then
7317   echo $ECHO_N "(cached) $ECHO_C" >&6
7318 else
7319   ac_ext=c
7320 ac_cpp='$CPP $CPPFLAGS'
7321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7324
7325      cat >conftest.$ac_ext <<_ACEOF
7326 /* confdefs.h.  */
7327 _ACEOF
7328 cat confdefs.h >>conftest.$ac_ext
7329 cat >>conftest.$ac_ext <<_ACEOF
7330 /* end confdefs.h.  */
7331
7332 int
7333 main ()
7334 {
7335
7336   ;
7337   return 0;
7338 }
7339 _ACEOF
7340 rm -f conftest.$ac_objext conftest$ac_exeext
7341 if { (ac_try="$ac_link"
7342 case "(($ac_try" in
7343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7344   *) ac_try_echo=$ac_try;;
7345 esac
7346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7347   (eval "$ac_link") 2>conftest.er1
7348   ac_status=$?
7349   grep -v '^ *+' conftest.er1 >conftest.err
7350   rm -f conftest.er1
7351   cat conftest.err >&5
7352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353   (exit $ac_status); } && {
7354          test -z "$ac_c_werror_flag" ||
7355          test ! -s conftest.err
7356        } && test -s conftest$ac_exeext &&
7357        $as_test_x conftest$ac_exeext; then
7358   lt_cv_cc_needs_belf=yes
7359 else
7360   echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7362
7363         lt_cv_cc_needs_belf=no
7364 fi
7365
7366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7367       conftest$ac_exeext conftest.$ac_ext
7368      ac_ext=c
7369 ac_cpp='$CPP $CPPFLAGS'
7370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7373
7374 fi
7375 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7376 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7377   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7378     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7379     CFLAGS="$SAVE_CFLAGS"
7380   fi
7381   ;;
7382 sparc*-*solaris*)
7383   # Find out which ABI we are using.
7384   echo 'int i;' > conftest.$ac_ext
7385   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7386   (eval $ac_compile) 2>&5
7387   ac_status=$?
7388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389   (exit $ac_status); }; then
7390     case `/usr/bin/file conftest.o` in
7391     *64-bit*)
7392       case $lt_cv_prog_gnu_ld in
7393       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7394       *)
7395         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7396           LD="${LD-ld} -64"
7397         fi
7398         ;;
7399       esac
7400       ;;
7401     esac
7402   fi
7403   rm -rf conftest*
7404   ;;
7405 esac
7406
7407 need_locks="$enable_libtool_lock"
7408
7409
7410   case $host_os in
7411     rhapsody* | darwin*)
7412     if test -n "$ac_tool_prefix"; then
7413   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7414 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7417 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7418   echo $ECHO_N "(cached) $ECHO_C" >&6
7419 else
7420   if test -n "$DSYMUTIL"; then
7421   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7422 else
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 for as_dir in $PATH
7425 do
7426   IFS=$as_save_IFS
7427   test -z "$as_dir" && as_dir=.
7428   for ac_exec_ext in '' $ac_executable_extensions; do
7429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7430     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7432     break 2
7433   fi
7434 done
7435 done
7436 IFS=$as_save_IFS
7437
7438 fi
7439 fi
7440 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7441 if test -n "$DSYMUTIL"; then
7442   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7443 echo "${ECHO_T}$DSYMUTIL" >&6; }
7444 else
7445   { echo "$as_me:$LINENO: result: no" >&5
7446 echo "${ECHO_T}no" >&6; }
7447 fi
7448
7449
7450 fi
7451 if test -z "$ac_cv_prog_DSYMUTIL"; then
7452   ac_ct_DSYMUTIL=$DSYMUTIL
7453   # Extract the first word of "dsymutil", so it can be a program name with args.
7454 set dummy dsymutil; ac_word=$2
7455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7457 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7458   echo $ECHO_N "(cached) $ECHO_C" >&6
7459 else
7460   if test -n "$ac_ct_DSYMUTIL"; then
7461   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7462 else
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 for as_dir in $PATH
7465 do
7466   IFS=$as_save_IFS
7467   test -z "$as_dir" && as_dir=.
7468   for ac_exec_ext in '' $ac_executable_extensions; do
7469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7470     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7472     break 2
7473   fi
7474 done
7475 done
7476 IFS=$as_save_IFS
7477
7478 fi
7479 fi
7480 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7481 if test -n "$ac_ct_DSYMUTIL"; then
7482   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7483 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7484 else
7485   { echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6; }
7487 fi
7488
7489   if test "x$ac_ct_DSYMUTIL" = x; then
7490     DSYMUTIL=":"
7491   else
7492     case $cross_compiling:$ac_tool_warned in
7493 yes:)
7494 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7495 whose name does not start with the host triplet.  If you think this
7496 configuration is useful to you, please write to autoconf@gnu.org." >&5
7497 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7498 whose name does not start with the host triplet.  If you think this
7499 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7500 ac_tool_warned=yes ;;
7501 esac
7502     DSYMUTIL=$ac_ct_DSYMUTIL
7503   fi
7504 else
7505   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7506 fi
7507
7508     if test -n "$ac_tool_prefix"; then
7509   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7510 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7513 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7514   echo $ECHO_N "(cached) $ECHO_C" >&6
7515 else
7516   if test -n "$NMEDIT"; then
7517   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7518 else
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 for as_dir in $PATH
7521 do
7522   IFS=$as_save_IFS
7523   test -z "$as_dir" && as_dir=.
7524   for ac_exec_ext in '' $ac_executable_extensions; do
7525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7526     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7528     break 2
7529   fi
7530 done
7531 done
7532 IFS=$as_save_IFS
7533
7534 fi
7535 fi
7536 NMEDIT=$ac_cv_prog_NMEDIT
7537 if test -n "$NMEDIT"; then
7538   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7539 echo "${ECHO_T}$NMEDIT" >&6; }
7540 else
7541   { echo "$as_me:$LINENO: result: no" >&5
7542 echo "${ECHO_T}no" >&6; }
7543 fi
7544
7545
7546 fi
7547 if test -z "$ac_cv_prog_NMEDIT"; then
7548   ac_ct_NMEDIT=$NMEDIT
7549   # Extract the first word of "nmedit", so it can be a program name with args.
7550 set dummy nmedit; ac_word=$2
7551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7553 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7554   echo $ECHO_N "(cached) $ECHO_C" >&6
7555 else
7556   if test -n "$ac_ct_NMEDIT"; then
7557   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7558 else
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 for as_dir in $PATH
7561 do
7562   IFS=$as_save_IFS
7563   test -z "$as_dir" && as_dir=.
7564   for ac_exec_ext in '' $ac_executable_extensions; do
7565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7566     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7568     break 2
7569   fi
7570 done
7571 done
7572 IFS=$as_save_IFS
7573
7574 fi
7575 fi
7576 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7577 if test -n "$ac_ct_NMEDIT"; then
7578   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7579 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7580 else
7581   { echo "$as_me:$LINENO: result: no" >&5
7582 echo "${ECHO_T}no" >&6; }
7583 fi
7584
7585   if test "x$ac_ct_NMEDIT" = x; then
7586     NMEDIT=":"
7587   else
7588     case $cross_compiling:$ac_tool_warned in
7589 yes:)
7590 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7591 whose name does not start with the host triplet.  If you think this
7592 configuration is useful to you, please write to autoconf@gnu.org." >&5
7593 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7594 whose name does not start with the host triplet.  If you think this
7595 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7596 ac_tool_warned=yes ;;
7597 esac
7598     NMEDIT=$ac_ct_NMEDIT
7599   fi
7600 else
7601   NMEDIT="$ac_cv_prog_NMEDIT"
7602 fi
7603
7604     if test -n "$ac_tool_prefix"; then
7605   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7606 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7609 if test "${ac_cv_prog_LIPO+set}" = set; then
7610   echo $ECHO_N "(cached) $ECHO_C" >&6
7611 else
7612   if test -n "$LIPO"; then
7613   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7614 else
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616 for as_dir in $PATH
7617 do
7618   IFS=$as_save_IFS
7619   test -z "$as_dir" && as_dir=.
7620   for ac_exec_ext in '' $ac_executable_extensions; do
7621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7622     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7624     break 2
7625   fi
7626 done
7627 done
7628 IFS=$as_save_IFS
7629
7630 fi
7631 fi
7632 LIPO=$ac_cv_prog_LIPO
7633 if test -n "$LIPO"; then
7634   { echo "$as_me:$LINENO: result: $LIPO" >&5
7635 echo "${ECHO_T}$LIPO" >&6; }
7636 else
7637   { echo "$as_me:$LINENO: result: no" >&5
7638 echo "${ECHO_T}no" >&6; }
7639 fi
7640
7641
7642 fi
7643 if test -z "$ac_cv_prog_LIPO"; then
7644   ac_ct_LIPO=$LIPO
7645   # Extract the first word of "lipo", so it can be a program name with args.
7646 set dummy lipo; ac_word=$2
7647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7649 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7650   echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652   if test -n "$ac_ct_LIPO"; then
7653   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7654 else
7655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656 for as_dir in $PATH
7657 do
7658   IFS=$as_save_IFS
7659   test -z "$as_dir" && as_dir=.
7660   for ac_exec_ext in '' $ac_executable_extensions; do
7661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7662     ac_cv_prog_ac_ct_LIPO="lipo"
7663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7664     break 2
7665   fi
7666 done
7667 done
7668 IFS=$as_save_IFS
7669
7670 fi
7671 fi
7672 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7673 if test -n "$ac_ct_LIPO"; then
7674   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7675 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7676 else
7677   { echo "$as_me:$LINENO: result: no" >&5
7678 echo "${ECHO_T}no" >&6; }
7679 fi
7680
7681   if test "x$ac_ct_LIPO" = x; then
7682     LIPO=":"
7683   else
7684     case $cross_compiling:$ac_tool_warned in
7685 yes:)
7686 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7687 whose name does not start with the host triplet.  If you think this
7688 configuration is useful to you, please write to autoconf@gnu.org." >&5
7689 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7690 whose name does not start with the host triplet.  If you think this
7691 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7692 ac_tool_warned=yes ;;
7693 esac
7694     LIPO=$ac_ct_LIPO
7695   fi
7696 else
7697   LIPO="$ac_cv_prog_LIPO"
7698 fi
7699
7700     if test -n "$ac_tool_prefix"; then
7701   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7702 set dummy ${ac_tool_prefix}otool; ac_word=$2
7703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7705 if test "${ac_cv_prog_OTOOL+set}" = set; then
7706   echo $ECHO_N "(cached) $ECHO_C" >&6
7707 else
7708   if test -n "$OTOOL"; then
7709   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7710 else
7711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712 for as_dir in $PATH
7713 do
7714   IFS=$as_save_IFS
7715   test -z "$as_dir" && as_dir=.
7716   for ac_exec_ext in '' $ac_executable_extensions; do
7717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7718     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7720     break 2
7721   fi
7722 done
7723 done
7724 IFS=$as_save_IFS
7725
7726 fi
7727 fi
7728 OTOOL=$ac_cv_prog_OTOOL
7729 if test -n "$OTOOL"; then
7730   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7731 echo "${ECHO_T}$OTOOL" >&6; }
7732 else
7733   { echo "$as_me:$LINENO: result: no" >&5
7734 echo "${ECHO_T}no" >&6; }
7735 fi
7736
7737
7738 fi
7739 if test -z "$ac_cv_prog_OTOOL"; then
7740   ac_ct_OTOOL=$OTOOL
7741   # Extract the first word of "otool", so it can be a program name with args.
7742 set dummy otool; ac_word=$2
7743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7745 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7746   echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748   if test -n "$ac_ct_OTOOL"; then
7749   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7750 else
7751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752 for as_dir in $PATH
7753 do
7754   IFS=$as_save_IFS
7755   test -z "$as_dir" && as_dir=.
7756   for ac_exec_ext in '' $ac_executable_extensions; do
7757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7758     ac_cv_prog_ac_ct_OTOOL="otool"
7759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7760     break 2
7761   fi
7762 done
7763 done
7764 IFS=$as_save_IFS
7765
7766 fi
7767 fi
7768 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7769 if test -n "$ac_ct_OTOOL"; then
7770   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7771 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7772 else
7773   { echo "$as_me:$LINENO: result: no" >&5
7774 echo "${ECHO_T}no" >&6; }
7775 fi
7776
7777   if test "x$ac_ct_OTOOL" = x; then
7778     OTOOL=":"
7779   else
7780     case $cross_compiling:$ac_tool_warned in
7781 yes:)
7782 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7783 whose name does not start with the host triplet.  If you think this
7784 configuration is useful to you, please write to autoconf@gnu.org." >&5
7785 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7786 whose name does not start with the host triplet.  If you think this
7787 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7788 ac_tool_warned=yes ;;
7789 esac
7790     OTOOL=$ac_ct_OTOOL
7791   fi
7792 else
7793   OTOOL="$ac_cv_prog_OTOOL"
7794 fi
7795
7796     if test -n "$ac_tool_prefix"; then
7797   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7798 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7801 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7802   echo $ECHO_N "(cached) $ECHO_C" >&6
7803 else
7804   if test -n "$OTOOL64"; then
7805   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7806 else
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 for as_dir in $PATH
7809 do
7810   IFS=$as_save_IFS
7811   test -z "$as_dir" && as_dir=.
7812   for ac_exec_ext in '' $ac_executable_extensions; do
7813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7814     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7816     break 2
7817   fi
7818 done
7819 done
7820 IFS=$as_save_IFS
7821
7822 fi
7823 fi
7824 OTOOL64=$ac_cv_prog_OTOOL64
7825 if test -n "$OTOOL64"; then
7826   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7827 echo "${ECHO_T}$OTOOL64" >&6; }
7828 else
7829   { echo "$as_me:$LINENO: result: no" >&5
7830 echo "${ECHO_T}no" >&6; }
7831 fi
7832
7833
7834 fi
7835 if test -z "$ac_cv_prog_OTOOL64"; then
7836   ac_ct_OTOOL64=$OTOOL64
7837   # Extract the first word of "otool64", so it can be a program name with args.
7838 set dummy otool64; ac_word=$2
7839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7841 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7842   echo $ECHO_N "(cached) $ECHO_C" >&6
7843 else
7844   if test -n "$ac_ct_OTOOL64"; then
7845   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7846 else
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 for as_dir in $PATH
7849 do
7850   IFS=$as_save_IFS
7851   test -z "$as_dir" && as_dir=.
7852   for ac_exec_ext in '' $ac_executable_extensions; do
7853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7854     ac_cv_prog_ac_ct_OTOOL64="otool64"
7855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7856     break 2
7857   fi
7858 done
7859 done
7860 IFS=$as_save_IFS
7861
7862 fi
7863 fi
7864 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7865 if test -n "$ac_ct_OTOOL64"; then
7866   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7867 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7868 else
7869   { echo "$as_me:$LINENO: result: no" >&5
7870 echo "${ECHO_T}no" >&6; }
7871 fi
7872
7873   if test "x$ac_ct_OTOOL64" = x; then
7874     OTOOL64=":"
7875   else
7876     case $cross_compiling:$ac_tool_warned in
7877 yes:)
7878 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7879 whose name does not start with the host triplet.  If you think this
7880 configuration is useful to you, please write to autoconf@gnu.org." >&5
7881 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7882 whose name does not start with the host triplet.  If you think this
7883 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7884 ac_tool_warned=yes ;;
7885 esac
7886     OTOOL64=$ac_ct_OTOOL64
7887   fi
7888 else
7889   OTOOL64="$ac_cv_prog_OTOOL64"
7890 fi
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7919 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7920 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7921   echo $ECHO_N "(cached) $ECHO_C" >&6
7922 else
7923   lt_cv_apple_cc_single_mod=no
7924       if test -z "${LT_MULTI_MODULE}"; then
7925         # By default we will add the -single_module flag. You can override
7926         # by either setting the environment variable LT_MULTI_MODULE
7927         # non-empty at configure time, or by adding -multi_module to the
7928         # link flags.
7929         rm -rf libconftest.dylib*
7930         echo "int foo(void){return 1;}" > conftest.c
7931         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7932 -dynamiclib -Wl,-single_module conftest.c" >&5
7933         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7934           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7935         _lt_result=$?
7936         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7937           lt_cv_apple_cc_single_mod=yes
7938         else
7939           cat conftest.err >&5
7940         fi
7941         rm -rf libconftest.dylib*
7942         rm -f conftest.*
7943       fi
7944 fi
7945 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7946 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7947     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7948 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7949 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7950   echo $ECHO_N "(cached) $ECHO_C" >&6
7951 else
7952   lt_cv_ld_exported_symbols_list=no
7953       save_LDFLAGS=$LDFLAGS
7954       echo "_main" > conftest.sym
7955       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7956       cat >conftest.$ac_ext <<_ACEOF
7957 /* confdefs.h.  */
7958 _ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h.  */
7962
7963 int
7964 main ()
7965 {
7966
7967   ;
7968   return 0;
7969 }
7970 _ACEOF
7971 rm -f conftest.$ac_objext conftest$ac_exeext
7972 if { (ac_try="$ac_link"
7973 case "(($ac_try" in
7974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7975   *) ac_try_echo=$ac_try;;
7976 esac
7977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7978   (eval "$ac_link") 2>conftest.er1
7979   ac_status=$?
7980   grep -v '^ *+' conftest.er1 >conftest.err
7981   rm -f conftest.er1
7982   cat conftest.err >&5
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); } && {
7985          test -z "$ac_c_werror_flag" ||
7986          test ! -s conftest.err
7987        } && test -s conftest$ac_exeext &&
7988        $as_test_x conftest$ac_exeext; then
7989   lt_cv_ld_exported_symbols_list=yes
7990 else
7991   echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7993
7994         lt_cv_ld_exported_symbols_list=no
7995 fi
7996
7997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7998       conftest$ac_exeext conftest.$ac_ext
7999         LDFLAGS="$save_LDFLAGS"
8000
8001 fi
8002 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8003 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8004     case $host_os in
8005     rhapsody* | darwin1.[012])
8006       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8007     darwin1.*)
8008       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8009     darwin*) # darwin 5.x on
8010       # if running on 10.5 or later, the deployment target defaults
8011       # to the OS version, if on x86, and 10.4, the deployment
8012       # target defaults to 10.4. Don't you love it?
8013       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8014         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8015           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8016         10.[012]*)
8017           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8018         10.*)
8019           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8020       esac
8021     ;;
8022   esac
8023     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8024       _lt_dar_single_mod='$single_module'
8025     fi
8026     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8027       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8028     else
8029       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8030     fi
8031     if test "$DSYMUTIL" != ":"; then
8032       _lt_dsymutil='~$DSYMUTIL $lib || :'
8033     else
8034       _lt_dsymutil=
8035     fi
8036     ;;
8037   esac
8038
8039 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8040 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8041 if test "${ac_cv_header_stdc+set}" = set; then
8042   echo $ECHO_N "(cached) $ECHO_C" >&6
8043 else
8044   cat >conftest.$ac_ext <<_ACEOF
8045 /* confdefs.h.  */
8046 _ACEOF
8047 cat confdefs.h >>conftest.$ac_ext
8048 cat >>conftest.$ac_ext <<_ACEOF
8049 /* end confdefs.h.  */
8050 #include <stdlib.h>
8051 #include <stdarg.h>
8052 #include <string.h>
8053 #include <float.h>
8054
8055 int
8056 main ()
8057 {
8058
8059   ;
8060   return 0;
8061 }
8062 _ACEOF
8063 rm -f conftest.$ac_objext
8064 if { (ac_try="$ac_compile"
8065 case "(($ac_try" in
8066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8067   *) ac_try_echo=$ac_try;;
8068 esac
8069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8070   (eval "$ac_compile") 2>conftest.er1
8071   ac_status=$?
8072   grep -v '^ *+' conftest.er1 >conftest.err
8073   rm -f conftest.er1
8074   cat conftest.err >&5
8075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076   (exit $ac_status); } && {
8077          test -z "$ac_c_werror_flag" ||
8078          test ! -s conftest.err
8079        } && test -s conftest.$ac_objext; then
8080   ac_cv_header_stdc=yes
8081 else
8082   echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.$ac_ext >&5
8084
8085         ac_cv_header_stdc=no
8086 fi
8087
8088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8089
8090 if test $ac_cv_header_stdc = yes; then
8091   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8092   cat >conftest.$ac_ext <<_ACEOF
8093 /* confdefs.h.  */
8094 _ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h.  */
8098 #include <string.h>
8099
8100 _ACEOF
8101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8102   $EGREP "memchr" >/dev/null 2>&1; then
8103   :
8104 else
8105   ac_cv_header_stdc=no
8106 fi
8107 rm -f conftest*
8108
8109 fi
8110
8111 if test $ac_cv_header_stdc = yes; then
8112   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8113   cat >conftest.$ac_ext <<_ACEOF
8114 /* confdefs.h.  */
8115 _ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h.  */
8119 #include <stdlib.h>
8120
8121 _ACEOF
8122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8123   $EGREP "free" >/dev/null 2>&1; then
8124   :
8125 else
8126   ac_cv_header_stdc=no
8127 fi
8128 rm -f conftest*
8129
8130 fi
8131
8132 if test $ac_cv_header_stdc = yes; then
8133   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8134   if test "$cross_compiling" = yes; then
8135   :
8136 else
8137   cat >conftest.$ac_ext <<_ACEOF
8138 /* confdefs.h.  */
8139 _ACEOF
8140 cat confdefs.h >>conftest.$ac_ext
8141 cat >>conftest.$ac_ext <<_ACEOF
8142 /* end confdefs.h.  */
8143 #include <ctype.h>
8144 #include <stdlib.h>
8145 #if ((' ' & 0x0FF) == 0x020)
8146 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8147 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8148 #else
8149 # define ISLOWER(c) \
8150                    (('a' <= (c) && (c) <= 'i') \
8151                      || ('j' <= (c) && (c) <= 'r') \
8152                      || ('s' <= (c) && (c) <= 'z'))
8153 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8154 #endif
8155
8156 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8157 int
8158 main ()
8159 {
8160   int i;
8161   for (i = 0; i < 256; i++)
8162     if (XOR (islower (i), ISLOWER (i))
8163         || toupper (i) != TOUPPER (i))
8164       return 2;
8165   return 0;
8166 }
8167 _ACEOF
8168 rm -f conftest$ac_exeext
8169 if { (ac_try="$ac_link"
8170 case "(($ac_try" in
8171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172   *) ac_try_echo=$ac_try;;
8173 esac
8174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175   (eval "$ac_link") 2>&5
8176   ac_status=$?
8177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8179   { (case "(($ac_try" in
8180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181   *) ac_try_echo=$ac_try;;
8182 esac
8183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184   (eval "$ac_try") 2>&5
8185   ac_status=$?
8186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187   (exit $ac_status); }; }; then
8188   :
8189 else
8190   echo "$as_me: program exited with status $ac_status" >&5
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8193
8194 ( exit $ac_status )
8195 ac_cv_header_stdc=no
8196 fi
8197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8198 fi
8199
8200
8201 fi
8202 fi
8203 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8204 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8205 if test $ac_cv_header_stdc = yes; then
8206
8207 cat >>confdefs.h <<\_ACEOF
8208 #define STDC_HEADERS 1
8209 _ACEOF
8210
8211 fi
8212
8213 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8224                   inttypes.h stdint.h unistd.h
8225 do
8226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8230   echo $ECHO_N "(cached) $ECHO_C" >&6
8231 else
8232   cat >conftest.$ac_ext <<_ACEOF
8233 /* confdefs.h.  */
8234 _ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h.  */
8238 $ac_includes_default
8239
8240 #include <$ac_header>
8241 _ACEOF
8242 rm -f conftest.$ac_objext
8243 if { (ac_try="$ac_compile"
8244 case "(($ac_try" in
8245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8246   *) ac_try_echo=$ac_try;;
8247 esac
8248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8249   (eval "$ac_compile") 2>conftest.er1
8250   ac_status=$?
8251   grep -v '^ *+' conftest.er1 >conftest.err
8252   rm -f conftest.er1
8253   cat conftest.err >&5
8254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255   (exit $ac_status); } && {
8256          test -z "$ac_c_werror_flag" ||
8257          test ! -s conftest.err
8258        } && test -s conftest.$ac_objext; then
8259   eval "$as_ac_Header=yes"
8260 else
8261   echo "$as_me: failed program was:" >&5
8262 sed 's/^/| /' conftest.$ac_ext >&5
8263
8264         eval "$as_ac_Header=no"
8265 fi
8266
8267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8268 fi
8269 ac_res=`eval echo '${'$as_ac_Header'}'`
8270                { echo "$as_me:$LINENO: result: $ac_res" >&5
8271 echo "${ECHO_T}$ac_res" >&6; }
8272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8273   cat >>confdefs.h <<_ACEOF
8274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8275 _ACEOF
8276
8277 fi
8278
8279 done
8280
8281
8282
8283 for ac_header in dlfcn.h
8284 do
8285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8289   echo $ECHO_N "(cached) $ECHO_C" >&6
8290 else
8291   cat >conftest.$ac_ext <<_ACEOF
8292 /* confdefs.h.  */
8293 _ACEOF
8294 cat confdefs.h >>conftest.$ac_ext
8295 cat >>conftest.$ac_ext <<_ACEOF
8296 /* end confdefs.h.  */
8297 $ac_includes_default
8298
8299 #include <$ac_header>
8300 _ACEOF
8301 rm -f conftest.$ac_objext
8302 if { (ac_try="$ac_compile"
8303 case "(($ac_try" in
8304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305   *) ac_try_echo=$ac_try;;
8306 esac
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308   (eval "$ac_compile") 2>conftest.er1
8309   ac_status=$?
8310   grep -v '^ *+' conftest.er1 >conftest.err
8311   rm -f conftest.er1
8312   cat conftest.err >&5
8313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314   (exit $ac_status); } && {
8315          test -z "$ac_c_werror_flag" ||
8316          test ! -s conftest.err
8317        } && test -s conftest.$ac_objext; then
8318   eval "$as_ac_Header=yes"
8319 else
8320   echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8322
8323         eval "$as_ac_Header=no"
8324 fi
8325
8326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8327 fi
8328 ac_res=`eval echo '${'$as_ac_Header'}'`
8329                { echo "$as_me:$LINENO: result: $ac_res" >&5
8330 echo "${ECHO_T}$ac_res" >&6; }
8331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8332   cat >>confdefs.h <<_ACEOF
8333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8334 _ACEOF
8335
8336 fi
8337
8338 done
8339
8340
8341
8342 ac_ext=cpp
8343 ac_cpp='$CXXCPP $CPPFLAGS'
8344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8347 if test -z "$CXX"; then
8348   if test -n "$CCC"; then
8349     CXX=$CCC
8350   else
8351     if test -n "$ac_tool_prefix"; then
8352   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8353   do
8354     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8358 if test "${ac_cv_prog_CXX+set}" = set; then
8359   echo $ECHO_N "(cached) $ECHO_C" >&6
8360 else
8361   if test -n "$CXX"; then
8362   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8363 else
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 for as_dir in $PATH
8366 do
8367   IFS=$as_save_IFS
8368   test -z "$as_dir" && as_dir=.
8369   for ac_exec_ext in '' $ac_executable_extensions; do
8370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8371     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8373     break 2
8374   fi
8375 done
8376 done
8377 IFS=$as_save_IFS
8378
8379 fi
8380 fi
8381 CXX=$ac_cv_prog_CXX
8382 if test -n "$CXX"; then
8383   { echo "$as_me:$LINENO: result: $CXX" >&5
8384 echo "${ECHO_T}$CXX" >&6; }
8385 else
8386   { echo "$as_me:$LINENO: result: no" >&5
8387 echo "${ECHO_T}no" >&6; }
8388 fi
8389
8390
8391     test -n "$CXX" && break
8392   done
8393 fi
8394 if test -z "$CXX"; then
8395   ac_ct_CXX=$CXX
8396   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8397 do
8398   # Extract the first word of "$ac_prog", so it can be a program name with args.
8399 set dummy $ac_prog; ac_word=$2
8400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8402 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8403   echo $ECHO_N "(cached) $ECHO_C" >&6
8404 else
8405   if test -n "$ac_ct_CXX"; then
8406   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8407 else
8408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8409 for as_dir in $PATH
8410 do
8411   IFS=$as_save_IFS
8412   test -z "$as_dir" && as_dir=.
8413   for ac_exec_ext in '' $ac_executable_extensions; do
8414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8415     ac_cv_prog_ac_ct_CXX="$ac_prog"
8416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8417     break 2
8418   fi
8419 done
8420 done
8421 IFS=$as_save_IFS
8422
8423 fi
8424 fi
8425 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8426 if test -n "$ac_ct_CXX"; then
8427   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8428 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8429 else
8430   { echo "$as_me:$LINENO: result: no" >&5
8431 echo "${ECHO_T}no" >&6; }
8432 fi
8433
8434
8435   test -n "$ac_ct_CXX" && break
8436 done
8437
8438   if test "x$ac_ct_CXX" = x; then
8439     CXX="g++"
8440   else
8441     case $cross_compiling:$ac_tool_warned in
8442 yes:)
8443 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8444 whose name does not start with the host triplet.  If you think this
8445 configuration is useful to you, please write to autoconf@gnu.org." >&5
8446 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8447 whose name does not start with the host triplet.  If you think this
8448 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8449 ac_tool_warned=yes ;;
8450 esac
8451     CXX=$ac_ct_CXX
8452   fi
8453 fi
8454
8455   fi
8456 fi
8457 # Provide some information about the compiler.
8458 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8459 ac_compiler=`set X $ac_compile; echo $2`
8460 { (ac_try="$ac_compiler --version >&5"
8461 case "(($ac_try" in
8462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463   *) ac_try_echo=$ac_try;;
8464 esac
8465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466   (eval "$ac_compiler --version >&5") 2>&5
8467   ac_status=$?
8468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469   (exit $ac_status); }
8470 { (ac_try="$ac_compiler -v >&5"
8471 case "(($ac_try" in
8472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473   *) ac_try_echo=$ac_try;;
8474 esac
8475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8476   (eval "$ac_compiler -v >&5") 2>&5
8477   ac_status=$?
8478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479   (exit $ac_status); }
8480 { (ac_try="$ac_compiler -V >&5"
8481 case "(($ac_try" in
8482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8483   *) ac_try_echo=$ac_try;;
8484 esac
8485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8486   (eval "$ac_compiler -V >&5") 2>&5
8487   ac_status=$?
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   (exit $ac_status); }
8490
8491 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8492 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8493 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8494   echo $ECHO_N "(cached) $ECHO_C" >&6
8495 else
8496   cat >conftest.$ac_ext <<_ACEOF
8497 /* confdefs.h.  */
8498 _ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h.  */
8502
8503 int
8504 main ()
8505 {
8506 #ifndef __GNUC__
8507        choke me
8508 #endif
8509
8510   ;
8511   return 0;
8512 }
8513 _ACEOF
8514 rm -f conftest.$ac_objext
8515 if { (ac_try="$ac_compile"
8516 case "(($ac_try" in
8517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518   *) ac_try_echo=$ac_try;;
8519 esac
8520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8521   (eval "$ac_compile") 2>conftest.er1
8522   ac_status=$?
8523   grep -v '^ *+' conftest.er1 >conftest.err
8524   rm -f conftest.er1
8525   cat conftest.err >&5
8526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527   (exit $ac_status); } && {
8528          test -z "$ac_cxx_werror_flag" ||
8529          test ! -s conftest.err
8530        } && test -s conftest.$ac_objext; then
8531   ac_compiler_gnu=yes
8532 else
8533   echo "$as_me: failed program was:" >&5
8534 sed 's/^/| /' conftest.$ac_ext >&5
8535
8536         ac_compiler_gnu=no
8537 fi
8538
8539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8540 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8541
8542 fi
8543 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8544 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8545 GXX=`test $ac_compiler_gnu = yes && echo yes`
8546 ac_test_CXXFLAGS=${CXXFLAGS+set}
8547 ac_save_CXXFLAGS=$CXXFLAGS
8548 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8549 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8550 if test "${ac_cv_prog_cxx_g+set}" = set; then
8551   echo $ECHO_N "(cached) $ECHO_C" >&6
8552 else
8553   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8554    ac_cxx_werror_flag=yes
8555    ac_cv_prog_cxx_g=no
8556    CXXFLAGS="-g"
8557    cat >conftest.$ac_ext <<_ACEOF
8558 /* confdefs.h.  */
8559 _ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h.  */
8563
8564 int
8565 main ()
8566 {
8567
8568   ;
8569   return 0;
8570 }
8571 _ACEOF
8572 rm -f conftest.$ac_objext
8573 if { (ac_try="$ac_compile"
8574 case "(($ac_try" in
8575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8576   *) ac_try_echo=$ac_try;;
8577 esac
8578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8579   (eval "$ac_compile") 2>conftest.er1
8580   ac_status=$?
8581   grep -v '^ *+' conftest.er1 >conftest.err
8582   rm -f conftest.er1
8583   cat conftest.err >&5
8584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585   (exit $ac_status); } && {
8586          test -z "$ac_cxx_werror_flag" ||
8587          test ! -s conftest.err
8588        } && test -s conftest.$ac_objext; then
8589   ac_cv_prog_cxx_g=yes
8590 else
8591   echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.$ac_ext >&5
8593
8594         CXXFLAGS=""
8595       cat >conftest.$ac_ext <<_ACEOF
8596 /* confdefs.h.  */
8597 _ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h.  */
8601
8602 int
8603 main ()
8604 {
8605
8606   ;
8607   return 0;
8608 }
8609 _ACEOF
8610 rm -f conftest.$ac_objext
8611 if { (ac_try="$ac_compile"
8612 case "(($ac_try" in
8613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614   *) ac_try_echo=$ac_try;;
8615 esac
8616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617   (eval "$ac_compile") 2>conftest.er1
8618   ac_status=$?
8619   grep -v '^ *+' conftest.er1 >conftest.err
8620   rm -f conftest.er1
8621   cat conftest.err >&5
8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623   (exit $ac_status); } && {
8624          test -z "$ac_cxx_werror_flag" ||
8625          test ! -s conftest.err
8626        } && test -s conftest.$ac_objext; then
8627   :
8628 else
8629   echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8631
8632         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8633          CXXFLAGS="-g"
8634          cat >conftest.$ac_ext <<_ACEOF
8635 /* confdefs.h.  */
8636 _ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h.  */
8640
8641 int
8642 main ()
8643 {
8644
8645   ;
8646   return 0;
8647 }
8648 _ACEOF
8649 rm -f conftest.$ac_objext
8650 if { (ac_try="$ac_compile"
8651 case "(($ac_try" in
8652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8653   *) ac_try_echo=$ac_try;;
8654 esac
8655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8656   (eval "$ac_compile") 2>conftest.er1
8657   ac_status=$?
8658   grep -v '^ *+' conftest.er1 >conftest.err
8659   rm -f conftest.er1
8660   cat conftest.err >&5
8661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662   (exit $ac_status); } && {
8663          test -z "$ac_cxx_werror_flag" ||
8664          test ! -s conftest.err
8665        } && test -s conftest.$ac_objext; then
8666   ac_cv_prog_cxx_g=yes
8667 else
8668   echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8670
8671
8672 fi
8673
8674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8675 fi
8676
8677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8678 fi
8679
8680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8682 fi
8683 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8684 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8685 if test "$ac_test_CXXFLAGS" = set; then
8686   CXXFLAGS=$ac_save_CXXFLAGS
8687 elif test $ac_cv_prog_cxx_g = yes; then
8688   if test "$GXX" = yes; then
8689     CXXFLAGS="-g -O2"
8690   else
8691     CXXFLAGS="-g"
8692   fi
8693 else
8694   if test "$GXX" = yes; then
8695     CXXFLAGS="-O2"
8696   else
8697     CXXFLAGS=
8698   fi
8699 fi
8700 ac_ext=c
8701 ac_cpp='$CPP $CPPFLAGS'
8702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8705
8706 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8707     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8708     (test "X$CXX" != "Xg++"))) ; then
8709   ac_ext=cpp
8710 ac_cpp='$CXXCPP $CPPFLAGS'
8711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8714 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8715 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8716 if test -z "$CXXCPP"; then
8717   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8718   echo $ECHO_N "(cached) $ECHO_C" >&6
8719 else
8720       # Double quotes because CXXCPP needs to be expanded
8721     for CXXCPP in "$CXX -E" "/lib/cpp"
8722     do
8723       ac_preproc_ok=false
8724 for ac_cxx_preproc_warn_flag in '' yes
8725 do
8726   # Use a header file that comes with gcc, so configuring glibc
8727   # with a fresh cross-compiler works.
8728   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8729   # <limits.h> exists even on freestanding compilers.
8730   # On the NeXT, cc -E runs the code through the compiler's parser,
8731   # not just through cpp. "Syntax error" is here to catch this case.
8732   cat >conftest.$ac_ext <<_ACEOF
8733 /* confdefs.h.  */
8734 _ACEOF
8735 cat confdefs.h >>conftest.$ac_ext
8736 cat >>conftest.$ac_ext <<_ACEOF
8737 /* end confdefs.h.  */
8738 #ifdef __STDC__
8739 # include <limits.h>
8740 #else
8741 # include <assert.h>
8742 #endif
8743                      Syntax error
8744 _ACEOF
8745 if { (ac_try="$ac_cpp conftest.$ac_ext"
8746 case "(($ac_try" in
8747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8748   *) ac_try_echo=$ac_try;;
8749 esac
8750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8751   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8752   ac_status=$?
8753   grep -v '^ *+' conftest.er1 >conftest.err
8754   rm -f conftest.er1
8755   cat conftest.err >&5
8756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757   (exit $ac_status); } >/dev/null && {
8758          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8759          test ! -s conftest.err
8760        }; then
8761   :
8762 else
8763   echo "$as_me: failed program was:" >&5
8764 sed 's/^/| /' conftest.$ac_ext >&5
8765
8766   # Broken: fails on valid input.
8767 continue
8768 fi
8769
8770 rm -f conftest.err conftest.$ac_ext
8771
8772   # OK, works on sane cases.  Now check whether nonexistent headers
8773   # can be detected and how.
8774   cat >conftest.$ac_ext <<_ACEOF
8775 /* confdefs.h.  */
8776 _ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h.  */
8780 #include <ac_nonexistent.h>
8781 _ACEOF
8782 if { (ac_try="$ac_cpp conftest.$ac_ext"
8783 case "(($ac_try" in
8784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8785   *) ac_try_echo=$ac_try;;
8786 esac
8787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8788   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8789   ac_status=$?
8790   grep -v '^ *+' conftest.er1 >conftest.err
8791   rm -f conftest.er1
8792   cat conftest.err >&5
8793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794   (exit $ac_status); } >/dev/null && {
8795          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8796          test ! -s conftest.err
8797        }; then
8798   # Broken: success on invalid input.
8799 continue
8800 else
8801   echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8803
8804   # Passes both tests.
8805 ac_preproc_ok=:
8806 break
8807 fi
8808
8809 rm -f conftest.err conftest.$ac_ext
8810
8811 done
8812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8813 rm -f conftest.err conftest.$ac_ext
8814 if $ac_preproc_ok; then
8815   break
8816 fi
8817
8818     done
8819     ac_cv_prog_CXXCPP=$CXXCPP
8820
8821 fi
8822   CXXCPP=$ac_cv_prog_CXXCPP
8823 else
8824   ac_cv_prog_CXXCPP=$CXXCPP
8825 fi
8826 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8827 echo "${ECHO_T}$CXXCPP" >&6; }
8828 ac_preproc_ok=false
8829 for ac_cxx_preproc_warn_flag in '' yes
8830 do
8831   # Use a header file that comes with gcc, so configuring glibc
8832   # with a fresh cross-compiler works.
8833   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8834   # <limits.h> exists even on freestanding compilers.
8835   # On the NeXT, cc -E runs the code through the compiler's parser,
8836   # not just through cpp. "Syntax error" is here to catch this case.
8837   cat >conftest.$ac_ext <<_ACEOF
8838 /* confdefs.h.  */
8839 _ACEOF
8840 cat confdefs.h >>conftest.$ac_ext
8841 cat >>conftest.$ac_ext <<_ACEOF
8842 /* end confdefs.h.  */
8843 #ifdef __STDC__
8844 # include <limits.h>
8845 #else
8846 # include <assert.h>
8847 #endif
8848                      Syntax error
8849 _ACEOF
8850 if { (ac_try="$ac_cpp conftest.$ac_ext"
8851 case "(($ac_try" in
8852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8853   *) ac_try_echo=$ac_try;;
8854 esac
8855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8856   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8857   ac_status=$?
8858   grep -v '^ *+' conftest.er1 >conftest.err
8859   rm -f conftest.er1
8860   cat conftest.err >&5
8861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862   (exit $ac_status); } >/dev/null && {
8863          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8864          test ! -s conftest.err
8865        }; then
8866   :
8867 else
8868   echo "$as_me: failed program was:" >&5
8869 sed 's/^/| /' conftest.$ac_ext >&5
8870
8871   # Broken: fails on valid input.
8872 continue
8873 fi
8874
8875 rm -f conftest.err conftest.$ac_ext
8876
8877   # OK, works on sane cases.  Now check whether nonexistent headers
8878   # can be detected and how.
8879   cat >conftest.$ac_ext <<_ACEOF
8880 /* confdefs.h.  */
8881 _ACEOF
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h.  */
8885 #include <ac_nonexistent.h>
8886 _ACEOF
8887 if { (ac_try="$ac_cpp conftest.$ac_ext"
8888 case "(($ac_try" in
8889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8890   *) ac_try_echo=$ac_try;;
8891 esac
8892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8893   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8894   ac_status=$?
8895   grep -v '^ *+' conftest.er1 >conftest.err
8896   rm -f conftest.er1
8897   cat conftest.err >&5
8898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899   (exit $ac_status); } >/dev/null && {
8900          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8901          test ! -s conftest.err
8902        }; then
8903   # Broken: success on invalid input.
8904 continue
8905 else
8906   echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8908
8909   # Passes both tests.
8910 ac_preproc_ok=:
8911 break
8912 fi
8913
8914 rm -f conftest.err conftest.$ac_ext
8915
8916 done
8917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8918 rm -f conftest.err conftest.$ac_ext
8919 if $ac_preproc_ok; then
8920   :
8921 else
8922   _lt_caught_CXX_error=yes
8923 fi
8924
8925 ac_ext=c
8926 ac_cpp='$CPP $CPPFLAGS'
8927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8930
8931 else
8932   _lt_caught_CXX_error=yes
8933 fi
8934
8935
8936
8937
8938
8939 # Set options
8940 # Check whether --enable-shared was given.
8941 if test "${enable_shared+set}" = set; then
8942   enableval=$enable_shared; p=${PACKAGE-default}
8943     case $enableval in
8944     yes) enable_shared=yes ;;
8945     no) enable_shared=no ;;
8946     *)
8947       enable_shared=no
8948       # Look at the argument we got.  We use all the common list separators.
8949       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8950       for pkg in $enableval; do
8951         IFS="$lt_save_ifs"
8952         if test "X$pkg" = "X$p"; then
8953           enable_shared=yes
8954         fi
8955       done
8956       IFS="$lt_save_ifs"
8957       ;;
8958     esac
8959 else
8960   enable_shared=yes
8961 fi
8962
8963
8964
8965
8966
8967
8968
8969 # Check whether --enable-static was given.
8970 if test "${enable_static+set}" = set; then
8971   enableval=$enable_static; p=${PACKAGE-default}
8972     case $enableval in
8973     yes) enable_static=yes ;;
8974     no) enable_static=no ;;
8975     *)
8976      enable_static=no
8977       # Look at the argument we got.  We use all the common list separators.
8978       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8979       for pkg in $enableval; do
8980         IFS="$lt_save_ifs"
8981         if test "X$pkg" = "X$p"; then
8982           enable_static=yes
8983         fi
8984       done
8985       IFS="$lt_save_ifs"
8986       ;;
8987     esac
8988 else
8989   enable_static=no
8990 fi
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001         enable_dlopen=no
9002
9003
9004   enable_win32_dll=no
9005
9006
9007
9008
9009
9010 # Check whether --with-pic was given.
9011 if test "${with_pic+set}" = set; then
9012   withval=$with_pic; pic_mode="$withval"
9013 else
9014   pic_mode=default
9015 fi
9016
9017
9018 test -z "$pic_mode" && pic_mode=default
9019
9020
9021
9022
9023
9024
9025
9026   # Check whether --enable-fast-install was given.
9027 if test "${enable_fast_install+set}" = set; then
9028   enableval=$enable_fast_install; p=${PACKAGE-default}
9029     case $enableval in
9030     yes) enable_fast_install=yes ;;
9031     no) enable_fast_install=no ;;
9032     *)
9033       enable_fast_install=no
9034       # Look at the argument we got.  We use all the common list separators.
9035       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9036       for pkg in $enableval; do
9037         IFS="$lt_save_ifs"
9038         if test "X$pkg" = "X$p"; then
9039           enable_fast_install=yes
9040         fi
9041       done
9042       IFS="$lt_save_ifs"
9043       ;;
9044     esac
9045 else
9046   enable_fast_install=yes
9047 fi
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059 # This can be used to rebuild libtool when needed
9060 LIBTOOL_DEPS="$ltmain"
9061
9062 # Always use our own libtool.
9063 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089 test -z "$LN_S" && LN_S="ln -s"
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104 if test -n "${ZSH_VERSION+set}" ; then
9105    setopt NO_GLOB_SUBST
9106 fi
9107
9108 { echo "$as_me:$LINENO: checking for objdir" >&5
9109 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9110 if test "${lt_cv_objdir+set}" = set; then
9111   echo $ECHO_N "(cached) $ECHO_C" >&6
9112 else
9113   rm -f .libs 2>/dev/null
9114 mkdir .libs 2>/dev/null
9115 if test -d .libs; then
9116   lt_cv_objdir=.libs
9117 else
9118   # MS-DOS does not allow filenames that begin with a dot.
9119   lt_cv_objdir=_libs
9120 fi
9121 rmdir .libs 2>/dev/null
9122 fi
9123 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9124 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9125 objdir=$lt_cv_objdir
9126
9127
9128
9129
9130
9131 cat >>confdefs.h <<_ACEOF
9132 #define LT_OBJDIR "$lt_cv_objdir/"
9133 _ACEOF
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151 case $host_os in
9152 aix3*)
9153   # AIX sometimes has problems with the GCC collect2 program.  For some
9154   # reason, if we set the COLLECT_NAMES environment variable, the problems
9155   # vanish in a puff of smoke.
9156   if test "X${COLLECT_NAMES+set}" != Xset; then
9157     COLLECT_NAMES=
9158     export COLLECT_NAMES
9159   fi
9160   ;;
9161 esac
9162
9163 # Sed substitution that helps us do robust quoting.  It backslashifies
9164 # metacharacters that are still active within double-quoted strings.
9165 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9166
9167 # Same as above, but do not quote variable references.
9168 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9169
9170 # Sed substitution to delay expansion of an escaped shell variable in a
9171 # double_quote_subst'ed string.
9172 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9173
9174 # Sed substitution to delay expansion of an escaped single quote.
9175 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9176
9177 # Sed substitution to avoid accidental globbing in evaled expressions
9178 no_glob_subst='s/\*/\\\*/g'
9179
9180 # Global variables:
9181 ofile=libtool
9182 can_build_shared=yes
9183
9184 # All known linkers require a `.a' archive for static linking (except MSVC,
9185 # which needs '.lib').
9186 libext=a
9187
9188 with_gnu_ld="$lt_cv_prog_gnu_ld"
9189
9190 old_CC="$CC"
9191 old_CFLAGS="$CFLAGS"
9192
9193 # Set sane defaults for various variables
9194 test -z "$CC" && CC=cc
9195 test -z "$LTCC" && LTCC=$CC
9196 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9197 test -z "$LD" && LD=ld
9198 test -z "$ac_objext" && ac_objext=o
9199
9200 for cc_temp in $compiler""; do
9201   case $cc_temp in
9202     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9203     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9204     \-*) ;;
9205     *) break;;
9206   esac
9207 done
9208 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9209
9210
9211 # Only perform the check for file, if the check method requires it
9212 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9213 case $deplibs_check_method in
9214 file_magic*)
9215   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9216     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9217 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9218 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9219   echo $ECHO_N "(cached) $ECHO_C" >&6
9220 else
9221   case $MAGIC_CMD in
9222 [\\/*] |  ?:[\\/]*)
9223   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9224   ;;
9225 *)
9226   lt_save_MAGIC_CMD="$MAGIC_CMD"
9227   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9228   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9229   for ac_dir in $ac_dummy; do
9230     IFS="$lt_save_ifs"
9231     test -z "$ac_dir" && ac_dir=.
9232     if test -f $ac_dir/${ac_tool_prefix}file; then
9233       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9234       if test -n "$file_magic_test_file"; then
9235         case $deplibs_check_method in
9236         "file_magic "*)
9237           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9238           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9239           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9240             $EGREP "$file_magic_regex" > /dev/null; then
9241             :
9242           else
9243             cat <<_LT_EOF 1>&2
9244
9245 *** Warning: the command libtool uses to detect shared libraries,
9246 *** $file_magic_cmd, produces output that libtool cannot recognize.
9247 *** The result is that libtool may fail to recognize shared libraries
9248 *** as such.  This will affect the creation of libtool libraries that
9249 *** depend on shared libraries, but programs linked with such libtool
9250 *** libraries will work regardless of this problem.  Nevertheless, you
9251 *** may want to report the problem to your system manager and/or to
9252 *** bug-libtool@gnu.org
9253
9254 _LT_EOF
9255           fi ;;
9256         esac
9257       fi
9258       break
9259     fi
9260   done
9261   IFS="$lt_save_ifs"
9262   MAGIC_CMD="$lt_save_MAGIC_CMD"
9263   ;;
9264 esac
9265 fi
9266
9267 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9268 if test -n "$MAGIC_CMD"; then
9269   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9270 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9271 else
9272   { echo "$as_me:$LINENO: result: no" >&5
9273 echo "${ECHO_T}no" >&6; }
9274 fi
9275
9276
9277
9278
9279
9280 if test -z "$lt_cv_path_MAGIC_CMD"; then
9281   if test -n "$ac_tool_prefix"; then
9282     { echo "$as_me:$LINENO: checking for file" >&5
9283 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9284 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9285   echo $ECHO_N "(cached) $ECHO_C" >&6
9286 else
9287   case $MAGIC_CMD in
9288 [\\/*] |  ?:[\\/]*)
9289   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9290   ;;
9291 *)
9292   lt_save_MAGIC_CMD="$MAGIC_CMD"
9293   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9294   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9295   for ac_dir in $ac_dummy; do
9296     IFS="$lt_save_ifs"
9297     test -z "$ac_dir" && ac_dir=.
9298     if test -f $ac_dir/file; then
9299       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9300       if test -n "$file_magic_test_file"; then
9301         case $deplibs_check_method in
9302         "file_magic "*)
9303           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9304           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9305           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9306             $EGREP "$file_magic_regex" > /dev/null; then
9307             :
9308           else
9309             cat <<_LT_EOF 1>&2
9310
9311 *** Warning: the command libtool uses to detect shared libraries,
9312 *** $file_magic_cmd, produces output that libtool cannot recognize.
9313 *** The result is that libtool may fail to recognize shared libraries
9314 *** as such.  This will affect the creation of libtool libraries that
9315 *** depend on shared libraries, but programs linked with such libtool
9316 *** libraries will work regardless of this problem.  Nevertheless, you
9317 *** may want to report the problem to your system manager and/or to
9318 *** bug-libtool@gnu.org
9319
9320 _LT_EOF
9321           fi ;;
9322         esac
9323       fi
9324       break
9325     fi
9326   done
9327   IFS="$lt_save_ifs"
9328   MAGIC_CMD="$lt_save_MAGIC_CMD"
9329   ;;
9330 esac
9331 fi
9332
9333 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9334 if test -n "$MAGIC_CMD"; then
9335   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9336 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9337 else
9338   { echo "$as_me:$LINENO: result: no" >&5
9339 echo "${ECHO_T}no" >&6; }
9340 fi
9341
9342
9343   else
9344     MAGIC_CMD=:
9345   fi
9346 fi
9347
9348   fi
9349   ;;
9350 esac
9351
9352 # Use C for the default configuration in the libtool script
9353
9354 lt_save_CC="$CC"
9355 ac_ext=c
9356 ac_cpp='$CPP $CPPFLAGS'
9357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9360
9361
9362 # Source file extension for C test sources.
9363 ac_ext=c
9364
9365 # Object file extension for compiled C test sources.
9366 objext=o
9367 objext=$objext
9368
9369 # Code to be used in simple compile tests
9370 lt_simple_compile_test_code="int some_variable = 0;"
9371
9372 # Code to be used in simple link tests
9373 lt_simple_link_test_code='int main(){return(0);}'
9374
9375
9376
9377
9378
9379
9380
9381 # If no C compiler was specified, use CC.
9382 LTCC=${LTCC-"$CC"}
9383
9384 # If no C compiler flags were specified, use CFLAGS.
9385 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9386
9387 # Allow CC to be a program name with arguments.
9388 compiler=$CC
9389
9390 # Save the default compiler, since it gets overwritten when the other
9391 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9392 compiler_DEFAULT=$CC
9393
9394 # save warnings/boilerplate of simple test code
9395 ac_outfile=conftest.$ac_objext
9396 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9397 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9398 _lt_compiler_boilerplate=`cat conftest.err`
9399 $RM conftest*
9400
9401 ac_outfile=conftest.$ac_objext
9402 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9403 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9404 _lt_linker_boilerplate=`cat conftest.err`
9405 $RM -r conftest*
9406
9407
9408 ## CAVEAT EMPTOR:
9409 ## There is no encapsulation within the following macros, do not change
9410 ## the running order or otherwise move them around unless you know exactly
9411 ## what you are doing...
9412 if test -n "$compiler"; then
9413
9414 lt_prog_compiler_no_builtin_flag=
9415
9416 if test "$GCC" = yes; then
9417   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9418
9419   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9420 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9421 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9422   echo $ECHO_N "(cached) $ECHO_C" >&6
9423 else
9424   lt_cv_prog_compiler_rtti_exceptions=no
9425    ac_outfile=conftest.$ac_objext
9426    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9427    lt_compiler_flag="-fno-rtti -fno-exceptions"
9428    # Insert the option either (1) after the last *FLAGS variable, or
9429    # (2) before a word containing "conftest.", or (3) at the end.
9430    # Note that $ac_compile itself does not contain backslashes and begins
9431    # with a dollar sign (not a hyphen), so the echo should work correctly.
9432    # The option is referenced via a variable to avoid confusing sed.
9433    lt_compile=`echo "$ac_compile" | $SED \
9434    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9435    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9436    -e 's:$: $lt_compiler_flag:'`
9437    (eval echo "\"\$as_me:9437: $lt_compile\"" >&5)
9438    (eval "$lt_compile" 2>conftest.err)
9439    ac_status=$?
9440    cat conftest.err >&5
9441    echo "$as_me:9441: \$? = $ac_status" >&5
9442    if (exit $ac_status) && test -s "$ac_outfile"; then
9443      # The compiler can only warn and ignore the option if not recognized
9444      # So say no if there are warnings other than the usual output.
9445      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9446      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9447      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9448        lt_cv_prog_compiler_rtti_exceptions=yes
9449      fi
9450    fi
9451    $RM conftest*
9452
9453 fi
9454 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9455 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9456
9457 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9458     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9459 else
9460     :
9461 fi
9462
9463 fi
9464
9465
9466
9467
9468
9469
9470   lt_prog_compiler_wl=
9471 lt_prog_compiler_pic=
9472 lt_prog_compiler_static=
9473
9474 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9475 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9476
9477   if test "$GCC" = yes; then
9478     lt_prog_compiler_wl='-Wl,'
9479     lt_prog_compiler_static='-static'
9480
9481     case $host_os in
9482       aix*)
9483       # All AIX code is PIC.
9484       if test "$host_cpu" = ia64; then
9485         # AIX 5 now supports IA64 processor
9486         lt_prog_compiler_static='-Bstatic'
9487       fi
9488       ;;
9489
9490     amigaos*)
9491       case $host_cpu in
9492       powerpc)
9493             # see comment about AmigaOS4 .so support
9494             lt_prog_compiler_pic='-fPIC'
9495         ;;
9496       m68k)
9497             # FIXME: we need at least 68020 code to build shared libraries, but
9498             # adding the `-m68020' flag to GCC prevents building anything better,
9499             # like `-m68040'.
9500             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9501         ;;
9502       esac
9503       ;;
9504
9505     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9506       # PIC is the default for these OSes.
9507       ;;
9508
9509     mingw* | cygwin* | pw32* | os2* | cegcc*)
9510       # This hack is so that the source file can tell whether it is being
9511       # built for inclusion in a dll (and should export symbols for example).
9512       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9513       # (--disable-auto-import) libraries
9514       lt_prog_compiler_pic='-DDLL_EXPORT'
9515       ;;
9516
9517     darwin* | rhapsody*)
9518       # PIC is the default on this platform
9519       # Common symbols not allowed in MH_DYLIB files
9520       lt_prog_compiler_pic='-fno-common'
9521       ;;
9522
9523     hpux*)
9524       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9525       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9526       # sets the default TLS model and affects inlining.
9527       case $host_cpu in
9528       hppa*64*)
9529         # +Z the default
9530         ;;
9531       *)
9532         lt_prog_compiler_pic='-fPIC'
9533         ;;
9534       esac
9535       ;;
9536
9537     interix[3-9]*)
9538       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9539       # Instead, we relocate shared libraries at runtime.
9540       ;;
9541
9542     msdosdjgpp*)
9543       # Just because we use GCC doesn't mean we suddenly get shared libraries
9544       # on systems that don't support them.
9545       lt_prog_compiler_can_build_shared=no
9546       enable_shared=no
9547       ;;
9548
9549     *nto* | *qnx*)
9550       # QNX uses GNU C++, but need to define -shared option too, otherwise
9551       # it will coredump.
9552       lt_prog_compiler_pic='-fPIC -shared'
9553       ;;
9554
9555     sysv4*MP*)
9556       if test -d /usr/nec; then
9557         lt_prog_compiler_pic=-Kconform_pic
9558       fi
9559       ;;
9560
9561     *)
9562       lt_prog_compiler_pic='-fPIC'
9563       ;;
9564     esac
9565   else
9566     # PORTME Check for flag to pass linker flags through the system compiler.
9567     case $host_os in
9568     aix*)
9569       lt_prog_compiler_wl='-Wl,'
9570       if test "$host_cpu" = ia64; then
9571         # AIX 5 now supports IA64 processor
9572         lt_prog_compiler_static='-Bstatic'
9573       else
9574         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9575       fi
9576       ;;
9577
9578     mingw* | cygwin* | pw32* | os2* | cegcc*)
9579       # This hack is so that the source file can tell whether it is being
9580       # built for inclusion in a dll (and should export symbols for example).
9581       lt_prog_compiler_pic='-DDLL_EXPORT'
9582       ;;
9583
9584     hpux9* | hpux10* | hpux11*)
9585       lt_prog_compiler_wl='-Wl,'
9586       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9587       # not for PA HP-UX.
9588       case $host_cpu in
9589       hppa*64*|ia64*)
9590         # +Z the default
9591         ;;
9592       *)
9593         lt_prog_compiler_pic='+Z'
9594         ;;
9595       esac
9596       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9597       lt_prog_compiler_static='${wl}-a ${wl}archive'
9598       ;;
9599
9600     irix5* | irix6* | nonstopux*)
9601       lt_prog_compiler_wl='-Wl,'
9602       # PIC (with -KPIC) is the default.
9603       lt_prog_compiler_static='-non_shared'
9604       ;;
9605
9606     linux* | k*bsd*-gnu)
9607       case $cc_basename in
9608       # old Intel for x86_64 which still supported -KPIC.
9609       ecc*)
9610         lt_prog_compiler_wl='-Wl,'
9611         lt_prog_compiler_pic='-KPIC'
9612         lt_prog_compiler_static='-static'
9613         ;;
9614       # icc used to be incompatible with GCC.
9615       # ICC 10 doesn't accept -KPIC any more.
9616       icc* | ifort*)
9617         lt_prog_compiler_wl='-Wl,'
9618         lt_prog_compiler_pic='-fPIC'
9619         lt_prog_compiler_static='-static'
9620         ;;
9621       # Lahey Fortran 8.1.
9622       lf95*)
9623         lt_prog_compiler_wl='-Wl,'
9624         lt_prog_compiler_pic='--shared'
9625         lt_prog_compiler_static='--static'
9626         ;;
9627       pgcc* | pgf77* | pgf90* | pgf95*)
9628         # Portland Group compilers (*not* the Pentium gcc compiler,
9629         # which looks to be a dead project)
9630         lt_prog_compiler_wl='-Wl,'
9631         lt_prog_compiler_pic='-fpic'
9632         lt_prog_compiler_static='-Bstatic'
9633         ;;
9634       ccc*)
9635         lt_prog_compiler_wl='-Wl,'
9636         # All Alpha code is PIC.
9637         lt_prog_compiler_static='-non_shared'
9638         ;;
9639       xl*)
9640         # IBM XL C 8.0/Fortran 10.1 on PPC
9641         lt_prog_compiler_wl='-Wl,'
9642         lt_prog_compiler_pic='-qpic'
9643         lt_prog_compiler_static='-qstaticlink'
9644         ;;
9645       *)
9646         case `$CC -V 2>&1 | sed 5q` in
9647         *Sun\ C*)
9648           # Sun C 5.9
9649           lt_prog_compiler_pic='-KPIC'
9650           lt_prog_compiler_static='-Bstatic'
9651           lt_prog_compiler_wl='-Wl,'
9652           ;;
9653         *Sun\ F*)
9654           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9655           lt_prog_compiler_pic='-KPIC'
9656           lt_prog_compiler_static='-Bstatic'
9657           lt_prog_compiler_wl=''
9658           ;;
9659         esac
9660         ;;
9661       esac
9662       ;;
9663
9664     newsos6)
9665       lt_prog_compiler_pic='-KPIC'
9666       lt_prog_compiler_static='-Bstatic'
9667       ;;
9668
9669     *nto* | *qnx*)
9670       # QNX uses GNU C++, but need to define -shared option too, otherwise
9671       # it will coredump.
9672       lt_prog_compiler_pic='-fPIC -shared'
9673       ;;
9674
9675     osf3* | osf4* | osf5*)
9676       lt_prog_compiler_wl='-Wl,'
9677       # All OSF/1 code is PIC.
9678       lt_prog_compiler_static='-non_shared'
9679       ;;
9680
9681     rdos*)
9682       lt_prog_compiler_static='-non_shared'
9683       ;;
9684
9685     solaris*)
9686       lt_prog_compiler_pic='-KPIC'
9687       lt_prog_compiler_static='-Bstatic'
9688       case $cc_basename in
9689       f77* | f90* | f95*)
9690         lt_prog_compiler_wl='-Qoption ld ';;
9691       *)
9692         lt_prog_compiler_wl='-Wl,';;
9693       esac
9694       ;;
9695
9696     sunos4*)
9697       lt_prog_compiler_wl='-Qoption ld '
9698       lt_prog_compiler_pic='-PIC'
9699       lt_prog_compiler_static='-Bstatic'
9700       ;;
9701
9702     sysv4 | sysv4.2uw2* | sysv4.3*)
9703       lt_prog_compiler_wl='-Wl,'
9704       lt_prog_compiler_pic='-KPIC'
9705       lt_prog_compiler_static='-Bstatic'
9706       ;;
9707
9708     sysv4*MP*)
9709       if test -d /usr/nec ;then
9710         lt_prog_compiler_pic='-Kconform_pic'
9711         lt_prog_compiler_static='-Bstatic'
9712       fi
9713       ;;
9714
9715     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9716       lt_prog_compiler_wl='-Wl,'
9717       lt_prog_compiler_pic='-KPIC'
9718       lt_prog_compiler_static='-Bstatic'
9719       ;;
9720
9721     unicos*)
9722       lt_prog_compiler_wl='-Wl,'
9723       lt_prog_compiler_can_build_shared=no
9724       ;;
9725
9726     uts4*)
9727       lt_prog_compiler_pic='-pic'
9728       lt_prog_compiler_static='-Bstatic'
9729       ;;
9730
9731     *)
9732       lt_prog_compiler_can_build_shared=no
9733       ;;
9734     esac
9735   fi
9736
9737 case $host_os in
9738   # For platforms which do not support PIC, -DPIC is meaningless:
9739   *djgpp*)
9740     lt_prog_compiler_pic=
9741     ;;
9742   *)
9743     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9744     ;;
9745 esac
9746 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9747 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9748
9749
9750
9751
9752
9753
9754 #
9755 # Check to make sure the PIC flag actually works.
9756 #
9757 if test -n "$lt_prog_compiler_pic"; then
9758   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9759 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9760 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9761   echo $ECHO_N "(cached) $ECHO_C" >&6
9762 else
9763   lt_cv_prog_compiler_pic_works=no
9764    ac_outfile=conftest.$ac_objext
9765    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9766    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9767    # Insert the option either (1) after the last *FLAGS variable, or
9768    # (2) before a word containing "conftest.", or (3) at the end.
9769    # Note that $ac_compile itself does not contain backslashes and begins
9770    # with a dollar sign (not a hyphen), so the echo should work correctly.
9771    # The option is referenced via a variable to avoid confusing sed.
9772    lt_compile=`echo "$ac_compile" | $SED \
9773    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9774    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9775    -e 's:$: $lt_compiler_flag:'`
9776    (eval echo "\"\$as_me:9776: $lt_compile\"" >&5)
9777    (eval "$lt_compile" 2>conftest.err)
9778    ac_status=$?
9779    cat conftest.err >&5
9780    echo "$as_me:9780: \$? = $ac_status" >&5
9781    if (exit $ac_status) && test -s "$ac_outfile"; then
9782      # The compiler can only warn and ignore the option if not recognized
9783      # So say no if there are warnings other than the usual output.
9784      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9785      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9786      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9787        lt_cv_prog_compiler_pic_works=yes
9788      fi
9789    fi
9790    $RM conftest*
9791
9792 fi
9793 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9794 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9795
9796 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9797     case $lt_prog_compiler_pic in
9798      "" | " "*) ;;
9799      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9800      esac
9801 else
9802     lt_prog_compiler_pic=
9803      lt_prog_compiler_can_build_shared=no
9804 fi
9805
9806 fi
9807
9808
9809
9810
9811
9812
9813 #
9814 # Check to make sure the static flag actually works.
9815 #
9816 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9817 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9818 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9819 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9820   echo $ECHO_N "(cached) $ECHO_C" >&6
9821 else
9822   lt_cv_prog_compiler_static_works=no
9823    save_LDFLAGS="$LDFLAGS"
9824    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9825    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9826    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9827      # The linker can only warn and ignore the option if not recognized
9828      # So say no if there are warnings
9829      if test -s conftest.err; then
9830        # Append any errors to the config.log.
9831        cat conftest.err 1>&5
9832        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9833        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9834        if diff conftest.exp conftest.er2 >/dev/null; then
9835          lt_cv_prog_compiler_static_works=yes
9836        fi
9837      else
9838        lt_cv_prog_compiler_static_works=yes
9839      fi
9840    fi
9841    $RM -r conftest*
9842    LDFLAGS="$save_LDFLAGS"
9843
9844 fi
9845 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9846 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9847
9848 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9849     :
9850 else
9851     lt_prog_compiler_static=
9852 fi
9853
9854
9855
9856
9857
9858
9859
9860   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9861 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9862 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9863   echo $ECHO_N "(cached) $ECHO_C" >&6
9864 else
9865   lt_cv_prog_compiler_c_o=no
9866    $RM -r conftest 2>/dev/null
9867    mkdir conftest
9868    cd conftest
9869    mkdir out
9870    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9871
9872    lt_compiler_flag="-o out/conftest2.$ac_objext"
9873    # Insert the option either (1) after the last *FLAGS variable, or
9874    # (2) before a word containing "conftest.", or (3) at the end.
9875    # Note that $ac_compile itself does not contain backslashes and begins
9876    # with a dollar sign (not a hyphen), so the echo should work correctly.
9877    lt_compile=`echo "$ac_compile" | $SED \
9878    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9879    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9880    -e 's:$: $lt_compiler_flag:'`
9881    (eval echo "\"\$as_me:9881: $lt_compile\"" >&5)
9882    (eval "$lt_compile" 2>out/conftest.err)
9883    ac_status=$?
9884    cat out/conftest.err >&5
9885    echo "$as_me:9885: \$? = $ac_status" >&5
9886    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9887    then
9888      # The compiler can only warn and ignore the option if not recognized
9889      # So say no if there are warnings
9890      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9891      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9892      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9893        lt_cv_prog_compiler_c_o=yes
9894      fi
9895    fi
9896    chmod u+w . 2>&5
9897    $RM conftest*
9898    # SGI C++ compiler will create directory out/ii_files/ for
9899    # template instantiation
9900    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9901    $RM out/* && rmdir out
9902    cd ..
9903    $RM -r conftest
9904    $RM conftest*
9905
9906 fi
9907 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9908 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9909
9910
9911
9912
9913
9914
9915   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9916 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9917 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9918   echo $ECHO_N "(cached) $ECHO_C" >&6
9919 else
9920   lt_cv_prog_compiler_c_o=no
9921    $RM -r conftest 2>/dev/null
9922    mkdir conftest
9923    cd conftest
9924    mkdir out
9925    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9926
9927    lt_compiler_flag="-o out/conftest2.$ac_objext"
9928    # Insert the option either (1) after the last *FLAGS variable, or
9929    # (2) before a word containing "conftest.", or (3) at the end.
9930    # Note that $ac_compile itself does not contain backslashes and begins
9931    # with a dollar sign (not a hyphen), so the echo should work correctly.
9932    lt_compile=`echo "$ac_compile" | $SED \
9933    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9934    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9935    -e 's:$: $lt_compiler_flag:'`
9936    (eval echo "\"\$as_me:9936: $lt_compile\"" >&5)
9937    (eval "$lt_compile" 2>out/conftest.err)
9938    ac_status=$?
9939    cat out/conftest.err >&5
9940    echo "$as_me:9940: \$? = $ac_status" >&5
9941    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9942    then
9943      # The compiler can only warn and ignore the option if not recognized
9944      # So say no if there are warnings
9945      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9946      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9947      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9948        lt_cv_prog_compiler_c_o=yes
9949      fi
9950    fi
9951    chmod u+w . 2>&5
9952    $RM conftest*
9953    # SGI C++ compiler will create directory out/ii_files/ for
9954    # template instantiation
9955    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9956    $RM out/* && rmdir out
9957    cd ..
9958    $RM -r conftest
9959    $RM conftest*
9960
9961 fi
9962 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9963 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9964
9965
9966
9967
9968 hard_links="nottested"
9969 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9970   # do not overwrite the value of need_locks provided by the user
9971   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9972 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9973   hard_links=yes
9974   $RM conftest*
9975   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9976   touch conftest.a
9977   ln conftest.a conftest.b 2>&5 || hard_links=no
9978   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9979   { echo "$as_me:$LINENO: result: $hard_links" >&5
9980 echo "${ECHO_T}$hard_links" >&6; }
9981   if test "$hard_links" = no; then
9982     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9983 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9984     need_locks=warn
9985   fi
9986 else
9987   need_locks=no
9988 fi
9989
9990
9991
9992
9993
9994
9995   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9996 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9997
9998   runpath_var=
9999   allow_undefined_flag=
10000   always_export_symbols=no
10001   archive_cmds=
10002   archive_expsym_cmds=
10003   compiler_needs_object=no
10004   enable_shared_with_static_runtimes=no
10005   export_dynamic_flag_spec=
10006   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10007   hardcode_automatic=no
10008   hardcode_direct=no
10009   hardcode_direct_absolute=no
10010   hardcode_libdir_flag_spec=
10011   hardcode_libdir_flag_spec_ld=
10012   hardcode_libdir_separator=
10013   hardcode_minus_L=no
10014   hardcode_shlibpath_var=unsupported
10015   inherit_rpath=no
10016   link_all_deplibs=unknown
10017   module_cmds=
10018   module_expsym_cmds=
10019   old_archive_from_new_cmds=
10020   old_archive_from_expsyms_cmds=
10021   thread_safe_flag_spec=
10022   whole_archive_flag_spec=
10023   # include_expsyms should be a list of space-separated symbols to be *always*
10024   # included in the symbol list
10025   include_expsyms=
10026   # exclude_expsyms can be an extended regexp of symbols to exclude
10027   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10028   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10029   # as well as any symbol that contains `d'.
10030   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10031   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10032   # platforms (ab)use it in PIC code, but their linkers get confused if
10033   # the symbol is explicitly referenced.  Since portable code cannot
10034   # rely on this symbol name, it's probably fine to never include it in
10035   # preloaded symbol tables.
10036   # Exclude shared library initialization/finalization symbols.
10037   extract_expsyms_cmds=
10038
10039   case $host_os in
10040   cygwin* | mingw* | pw32* | cegcc*)
10041     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10042     # When not using gcc, we currently assume that we are using
10043     # Microsoft Visual C++.
10044     if test "$GCC" != yes; then
10045       with_gnu_ld=no
10046     fi
10047     ;;
10048   interix*)
10049     # we just hope/assume this is gcc and not c89 (= MSVC++)
10050     with_gnu_ld=yes
10051     ;;
10052   openbsd*)
10053     with_gnu_ld=no
10054     ;;
10055   esac
10056
10057   ld_shlibs=yes
10058   if test "$with_gnu_ld" = yes; then
10059     # If archive_cmds runs LD, not CC, wlarc should be empty
10060     wlarc='${wl}'
10061
10062     # Set some defaults for GNU ld with shared library support. These
10063     # are reset later if shared libraries are not supported. Putting them
10064     # here allows them to be overridden if necessary.
10065     runpath_var=LD_RUN_PATH
10066     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10067     export_dynamic_flag_spec='${wl}--export-dynamic'
10068     # ancient GNU ld didn't support --whole-archive et. al.
10069     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10070       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10071     else
10072       whole_archive_flag_spec=
10073     fi
10074     supports_anon_versioning=no
10075     case `$LD -v 2>&1` in
10076       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10077       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10078       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10079       *\ 2.11.*) ;; # other 2.11 versions
10080       *) supports_anon_versioning=yes ;;
10081     esac
10082
10083     # See if GNU ld supports shared libraries.
10084     case $host_os in
10085     aix[3-9]*)
10086       # On AIX/PPC, the GNU linker is very broken
10087       if test "$host_cpu" != ia64; then
10088         ld_shlibs=no
10089         cat <<_LT_EOF 1>&2
10090
10091 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10092 *** to be unable to reliably create shared libraries on AIX.
10093 *** Therefore, libtool is disabling shared libraries support.  If you
10094 *** really care for shared libraries, you may want to modify your PATH
10095 *** so that a non-GNU linker is found, and then restart.
10096
10097 _LT_EOF
10098       fi
10099       ;;
10100
10101     amigaos*)
10102       case $host_cpu in
10103       powerpc)
10104             # see comment about AmigaOS4 .so support
10105             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10106             archive_expsym_cmds=''
10107         ;;
10108       m68k)
10109             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)'
10110             hardcode_libdir_flag_spec='-L$libdir'
10111             hardcode_minus_L=yes
10112         ;;
10113       esac
10114       ;;
10115
10116     beos*)
10117       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10118         allow_undefined_flag=unsupported
10119         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10120         # support --undefined.  This deserves some investigation.  FIXME
10121         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10122       else
10123         ld_shlibs=no
10124       fi
10125       ;;
10126
10127     cygwin* | mingw* | pw32* | cegcc*)
10128       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10129       # as there is no search path for DLLs.
10130       hardcode_libdir_flag_spec='-L$libdir'
10131       allow_undefined_flag=unsupported
10132       always_export_symbols=no
10133       enable_shared_with_static_runtimes=yes
10134       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10135
10136       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10137         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10138         # If the export-symbols file already is a .def file (1st line
10139         # is EXPORTS), use it as is; otherwise, prepend...
10140         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10141           cp $export_symbols $output_objdir/$soname.def;
10142         else
10143           echo EXPORTS > $output_objdir/$soname.def;
10144           cat $export_symbols >> $output_objdir/$soname.def;
10145         fi~
10146         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10147       else
10148         ld_shlibs=no
10149       fi
10150       ;;
10151
10152     interix[3-9]*)
10153       hardcode_direct=no
10154       hardcode_shlibpath_var=no
10155       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10156       export_dynamic_flag_spec='${wl}-E'
10157       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10158       # Instead, shared libraries are loaded at an image base (0x10000000 by
10159       # default) and relocated if they conflict, which is a slow very memory
10160       # consuming and fragmenting process.  To avoid this, we pick a random,
10161       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10162       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10163       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10164       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'
10165       ;;
10166
10167     gnu* | linux* | tpf* | k*bsd*-gnu)
10168       tmp_diet=no
10169       if test "$host_os" = linux-dietlibc; then
10170         case $cc_basename in
10171           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10172         esac
10173       fi
10174       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10175          && test "$tmp_diet" = no
10176       then
10177         tmp_addflag=
10178         tmp_sharedflag='-shared'
10179         case $cc_basename,$host_cpu in
10180         pgcc*)                          # Portland Group C compiler
10181           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'
10182           tmp_addflag=' $pic_flag'
10183           ;;
10184         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10185           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'
10186           tmp_addflag=' $pic_flag -Mnomain' ;;
10187         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10188           tmp_addflag=' -i_dynamic' ;;
10189         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10190           tmp_addflag=' -i_dynamic -nofor_main' ;;
10191         ifc* | ifort*)                  # Intel Fortran compiler
10192           tmp_addflag=' -nofor_main' ;;
10193         lf95*)                          # Lahey Fortran 8.1
10194           whole_archive_flag_spec=
10195           tmp_sharedflag='--shared' ;;
10196         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10197           tmp_sharedflag='-qmkshrobj'
10198           tmp_addflag= ;;
10199         esac
10200         case `$CC -V 2>&1 | sed 5q` in
10201         *Sun\ C*)                       # Sun C 5.9
10202           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'
10203           compiler_needs_object=yes
10204           tmp_sharedflag='-G' ;;
10205         *Sun\ F*)                       # Sun Fortran 8.3
10206           tmp_sharedflag='-G' ;;
10207         esac
10208         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10209
10210         if test "x$supports_anon_versioning" = xyes; then
10211           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10212             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10213             echo "local: *; };" >> $output_objdir/$libname.ver~
10214             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10215         fi
10216
10217         case $cc_basename in
10218         xlf*)
10219           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10220           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10221           hardcode_libdir_flag_spec=
10222           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10223           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10224           if test "x$supports_anon_versioning" = xyes; then
10225             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10226               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10227               echo "local: *; };" >> $output_objdir/$libname.ver~
10228               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10229           fi
10230           ;;
10231         esac
10232       else
10233         ld_shlibs=no
10234       fi
10235       ;;
10236
10237     netbsd*)
10238       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10239         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10240         wlarc=
10241       else
10242         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10243         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10244       fi
10245       ;;
10246
10247     solaris*)
10248       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10249         ld_shlibs=no
10250         cat <<_LT_EOF 1>&2
10251
10252 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10253 *** create shared libraries on Solaris systems.  Therefore, libtool
10254 *** is disabling shared libraries support.  We urge you to upgrade GNU
10255 *** binutils to release 2.9.1 or newer.  Another option is to modify
10256 *** your PATH or compiler configuration so that the native linker is
10257 *** used, and then restart.
10258
10259 _LT_EOF
10260       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10261         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10262         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10263       else
10264         ld_shlibs=no
10265       fi
10266       ;;
10267
10268     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10269       case `$LD -v 2>&1` in
10270         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10271         ld_shlibs=no
10272         cat <<_LT_EOF 1>&2
10273
10274 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10275 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10276 *** is disabling shared libraries support.  We urge you to upgrade GNU
10277 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10278 *** your PATH or compiler configuration so that the native linker is
10279 *** used, and then restart.
10280
10281 _LT_EOF
10282         ;;
10283         *)
10284           # For security reasons, it is highly recommended that you always
10285           # use absolute paths for naming shared libraries, and exclude the
10286           # DT_RUNPATH tag from executables and libraries.  But doing so
10287           # requires that you compile everything twice, which is a pain.
10288           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10289             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10290             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10291             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10292           else
10293             ld_shlibs=no
10294           fi
10295         ;;
10296       esac
10297       ;;
10298
10299     sunos4*)
10300       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10301       wlarc=
10302       hardcode_direct=yes
10303       hardcode_shlibpath_var=no
10304       ;;
10305
10306     *)
10307       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10308         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10309         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10310       else
10311         ld_shlibs=no
10312       fi
10313       ;;
10314     esac
10315
10316     if test "$ld_shlibs" = no; then
10317       runpath_var=
10318       hardcode_libdir_flag_spec=
10319       export_dynamic_flag_spec=
10320       whole_archive_flag_spec=
10321     fi
10322   else
10323     # PORTME fill in a description of your system's linker (not GNU ld)
10324     case $host_os in
10325     aix3*)
10326       allow_undefined_flag=unsupported
10327       always_export_symbols=yes
10328       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'
10329       # Note: this linker hardcodes the directories in LIBPATH if there
10330       # are no directories specified by -L.
10331       hardcode_minus_L=yes
10332       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10333         # Neither direct hardcoding nor static linking is supported with a
10334         # broken collect2.
10335         hardcode_direct=unsupported
10336       fi
10337       ;;
10338
10339     aix[4-9]*)
10340       if test "$host_cpu" = ia64; then
10341         # On IA64, the linker does run time linking by default, so we don't
10342         # have to do anything special.
10343         aix_use_runtimelinking=no
10344         exp_sym_flag='-Bexport'
10345         no_entry_flag=""
10346       else
10347         # If we're using GNU nm, then we don't want the "-C" option.
10348         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10349         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10350           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'
10351         else
10352           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'
10353         fi
10354         aix_use_runtimelinking=no
10355
10356         # Test if we are trying to use run time linking or normal
10357         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10358         # need to do runtime linking.
10359         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10360           for ld_flag in $LDFLAGS; do
10361           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10362             aix_use_runtimelinking=yes
10363             break
10364           fi
10365           done
10366           ;;
10367         esac
10368
10369         exp_sym_flag='-bexport'
10370         no_entry_flag='-bnoentry'
10371       fi
10372
10373       # When large executables or shared objects are built, AIX ld can
10374       # have problems creating the table of contents.  If linking a library
10375       # or program results in "error TOC overflow" add -mminimal-toc to
10376       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10377       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10378
10379       archive_cmds=''
10380       hardcode_direct=yes
10381       hardcode_direct_absolute=yes
10382       hardcode_libdir_separator=':'
10383       link_all_deplibs=yes
10384       file_list_spec='${wl}-f,'
10385
10386       if test "$GCC" = yes; then
10387         case $host_os in aix4.[012]|aix4.[012].*)
10388         # We only want to do this on AIX 4.2 and lower, the check
10389         # below for broken collect2 doesn't work under 4.3+
10390           collect2name=`${CC} -print-prog-name=collect2`
10391           if test -f "$collect2name" &&
10392            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10393           then
10394           # We have reworked collect2
10395           :
10396           else
10397           # We have old collect2
10398           hardcode_direct=unsupported
10399           # It fails to find uninstalled libraries when the uninstalled
10400           # path is not listed in the libpath.  Setting hardcode_minus_L
10401           # to unsupported forces relinking
10402           hardcode_minus_L=yes
10403           hardcode_libdir_flag_spec='-L$libdir'
10404           hardcode_libdir_separator=
10405           fi
10406           ;;
10407         esac
10408         shared_flag='-shared'
10409         if test "$aix_use_runtimelinking" = yes; then
10410           shared_flag="$shared_flag "'${wl}-G'
10411         fi
10412       else
10413         # not using gcc
10414         if test "$host_cpu" = ia64; then
10415         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10416         # chokes on -Wl,-G. The following line is correct:
10417           shared_flag='-G'
10418         else
10419           if test "$aix_use_runtimelinking" = yes; then
10420             shared_flag='${wl}-G'
10421           else
10422             shared_flag='${wl}-bM:SRE'
10423           fi
10424         fi
10425       fi
10426
10427       export_dynamic_flag_spec='${wl}-bexpall'
10428       # It seems that -bexpall does not export symbols beginning with
10429       # underscore (_), so it is better to generate a list of symbols to export.
10430       always_export_symbols=yes
10431       if test "$aix_use_runtimelinking" = yes; then
10432         # Warning - without using the other runtime loading flags (-brtl),
10433         # -berok will link without error, but may produce a broken library.
10434         allow_undefined_flag='-berok'
10435         # Determine the default libpath from the value encoded in an
10436         # empty executable.
10437         cat >conftest.$ac_ext <<_ACEOF
10438 /* confdefs.h.  */
10439 _ACEOF
10440 cat confdefs.h >>conftest.$ac_ext
10441 cat >>conftest.$ac_ext <<_ACEOF
10442 /* end confdefs.h.  */
10443
10444 int
10445 main ()
10446 {
10447
10448   ;
10449   return 0;
10450 }
10451 _ACEOF
10452 rm -f conftest.$ac_objext conftest$ac_exeext
10453 if { (ac_try="$ac_link"
10454 case "(($ac_try" in
10455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10456   *) ac_try_echo=$ac_try;;
10457 esac
10458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10459   (eval "$ac_link") 2>conftest.er1
10460   ac_status=$?
10461   grep -v '^ *+' conftest.er1 >conftest.err
10462   rm -f conftest.er1
10463   cat conftest.err >&5
10464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465   (exit $ac_status); } && {
10466          test -z "$ac_c_werror_flag" ||
10467          test ! -s conftest.err
10468        } && test -s conftest$ac_exeext &&
10469        $as_test_x conftest$ac_exeext; then
10470
10471 lt_aix_libpath_sed='
10472     /Import File Strings/,/^$/ {
10473         /^0/ {
10474             s/^0  *\(.*\)$/\1/
10475             p
10476         }
10477     }'
10478 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10479 # Check for a 64-bit object if we didn't find anything.
10480 if test -z "$aix_libpath"; then
10481   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10482 fi
10483 else
10484   echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10486
10487
10488 fi
10489
10490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10491       conftest$ac_exeext conftest.$ac_ext
10492 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10493
10494         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10495         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"
10496       else
10497         if test "$host_cpu" = ia64; then
10498           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10499           allow_undefined_flag="-z nodefs"
10500           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"
10501         else
10502          # Determine the default libpath from the value encoded in an
10503          # empty executable.
10504          cat >conftest.$ac_ext <<_ACEOF
10505 /* confdefs.h.  */
10506 _ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h.  */
10510
10511 int
10512 main ()
10513 {
10514
10515   ;
10516   return 0;
10517 }
10518 _ACEOF
10519 rm -f conftest.$ac_objext conftest$ac_exeext
10520 if { (ac_try="$ac_link"
10521 case "(($ac_try" in
10522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10523   *) ac_try_echo=$ac_try;;
10524 esac
10525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10526   (eval "$ac_link") 2>conftest.er1
10527   ac_status=$?
10528   grep -v '^ *+' conftest.er1 >conftest.err
10529   rm -f conftest.er1
10530   cat conftest.err >&5
10531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532   (exit $ac_status); } && {
10533          test -z "$ac_c_werror_flag" ||
10534          test ! -s conftest.err
10535        } && test -s conftest$ac_exeext &&
10536        $as_test_x conftest$ac_exeext; then
10537
10538 lt_aix_libpath_sed='
10539     /Import File Strings/,/^$/ {
10540         /^0/ {
10541             s/^0  *\(.*\)$/\1/
10542             p
10543         }
10544     }'
10545 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10546 # Check for a 64-bit object if we didn't find anything.
10547 if test -z "$aix_libpath"; then
10548   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10549 fi
10550 else
10551   echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10553
10554
10555 fi
10556
10557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10558       conftest$ac_exeext conftest.$ac_ext
10559 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10560
10561          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10562           # Warning - without using the other run time loading flags,
10563           # -berok will link without error, but may produce a broken library.
10564           no_undefined_flag=' ${wl}-bernotok'
10565           allow_undefined_flag=' ${wl}-berok'
10566           # Exported symbols can be pulled into shared objects from archives
10567           whole_archive_flag_spec='$convenience'
10568           archive_cmds_need_lc=yes
10569           # This is similar to how AIX traditionally builds its shared libraries.
10570           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'
10571         fi
10572       fi
10573       ;;
10574
10575     amigaos*)
10576       case $host_cpu in
10577       powerpc)
10578             # see comment about AmigaOS4 .so support
10579             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10580             archive_expsym_cmds=''
10581         ;;
10582       m68k)
10583             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)'
10584             hardcode_libdir_flag_spec='-L$libdir'
10585             hardcode_minus_L=yes
10586         ;;
10587       esac
10588       ;;
10589
10590     bsdi[45]*)
10591       export_dynamic_flag_spec=-rdynamic
10592       ;;
10593
10594     cygwin* | mingw* | pw32* | cegcc*)
10595       # When not using gcc, we currently assume that we are using
10596       # Microsoft Visual C++.
10597       # hardcode_libdir_flag_spec is actually meaningless, as there is
10598       # no search path for DLLs.
10599       hardcode_libdir_flag_spec=' '
10600       allow_undefined_flag=unsupported
10601       # Tell ltmain to make .lib files, not .a files.
10602       libext=lib
10603       # Tell ltmain to make .dll files, not .so files.
10604       shrext_cmds=".dll"
10605       # FIXME: Setting linknames here is a bad hack.
10606       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10607       # The linker will automatically build a .lib file if we build a DLL.
10608       old_archive_from_new_cmds='true'
10609       # FIXME: Should let the user specify the lib program.
10610       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10611       fix_srcfile_path='`cygpath -w "$srcfile"`'
10612       enable_shared_with_static_runtimes=yes
10613       ;;
10614
10615     darwin* | rhapsody*)
10616
10617
10618   archive_cmds_need_lc=no
10619   hardcode_direct=no
10620   hardcode_automatic=yes
10621   hardcode_shlibpath_var=unsupported
10622   whole_archive_flag_spec=''
10623   link_all_deplibs=yes
10624   allow_undefined_flag="$_lt_dar_allow_undefined"
10625   case $cc_basename in
10626      ifort*) _lt_dar_can_shared=yes ;;
10627      *) _lt_dar_can_shared=$GCC ;;
10628   esac
10629   if test "$_lt_dar_can_shared" = "yes"; then
10630     output_verbose_link_cmd=echo
10631     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10632     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10633     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}"
10634     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}"
10635
10636   else
10637   ld_shlibs=no
10638   fi
10639
10640       ;;
10641
10642     dgux*)
10643       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10644       hardcode_libdir_flag_spec='-L$libdir'
10645       hardcode_shlibpath_var=no
10646       ;;
10647
10648     freebsd1*)
10649       ld_shlibs=no
10650       ;;
10651
10652     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10653     # support.  Future versions do this automatically, but an explicit c++rt0.o
10654     # does not break anything, and helps significantly (at the cost of a little
10655     # extra space).
10656     freebsd2.2*)
10657       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10658       hardcode_libdir_flag_spec='-R$libdir'
10659       hardcode_direct=yes
10660       hardcode_shlibpath_var=no
10661       ;;
10662
10663     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10664     freebsd2*)
10665       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10666       hardcode_direct=yes
10667       hardcode_minus_L=yes
10668       hardcode_shlibpath_var=no
10669       ;;
10670
10671     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10672     freebsd* | dragonfly*)
10673       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10674       hardcode_libdir_flag_spec='-R$libdir'
10675       hardcode_direct=yes
10676       hardcode_shlibpath_var=no
10677       ;;
10678
10679     hpux9*)
10680       if test "$GCC" = yes; then
10681         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'
10682       else
10683         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'
10684       fi
10685       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10686       hardcode_libdir_separator=:
10687       hardcode_direct=yes
10688
10689       # hardcode_minus_L: Not really in the search PATH,
10690       # but as the default location of the library.
10691       hardcode_minus_L=yes
10692       export_dynamic_flag_spec='${wl}-E'
10693       ;;
10694
10695     hpux10*)
10696       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10697         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10698       else
10699         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10700       fi
10701       if test "$with_gnu_ld" = no; then
10702         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10703         hardcode_libdir_flag_spec_ld='+b $libdir'
10704         hardcode_libdir_separator=:
10705         hardcode_direct=yes
10706         hardcode_direct_absolute=yes
10707         export_dynamic_flag_spec='${wl}-E'
10708         # hardcode_minus_L: Not really in the search PATH,
10709         # but as the default location of the library.
10710         hardcode_minus_L=yes
10711       fi
10712       ;;
10713
10714     hpux11*)
10715       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10716         case $host_cpu in
10717         hppa*64*)
10718           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10719           ;;
10720         ia64*)
10721           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10722           ;;
10723         *)
10724           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10725           ;;
10726         esac
10727       else
10728         case $host_cpu in
10729         hppa*64*)
10730           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10731           ;;
10732         ia64*)
10733           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10734           ;;
10735         *)
10736           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10737           ;;
10738         esac
10739       fi
10740       if test "$with_gnu_ld" = no; then
10741         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10742         hardcode_libdir_separator=:
10743
10744         case $host_cpu in
10745         hppa*64*|ia64*)
10746           hardcode_direct=no
10747           hardcode_shlibpath_var=no
10748           ;;
10749         *)
10750           hardcode_direct=yes
10751           hardcode_direct_absolute=yes
10752           export_dynamic_flag_spec='${wl}-E'
10753
10754           # hardcode_minus_L: Not really in the search PATH,
10755           # but as the default location of the library.
10756           hardcode_minus_L=yes
10757           ;;
10758         esac
10759       fi
10760       ;;
10761
10762     irix5* | irix6* | nonstopux*)
10763       if test "$GCC" = yes; then
10764         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'
10765         # Try to use the -exported_symbol ld option, if it does not
10766         # work, assume that -exports_file does not work either and
10767         # implicitly export all symbols.
10768         save_LDFLAGS="$LDFLAGS"
10769         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10770         cat >conftest.$ac_ext <<_ACEOF
10771 int foo(void) {}
10772 _ACEOF
10773 rm -f conftest.$ac_objext conftest$ac_exeext
10774 if { (ac_try="$ac_link"
10775 case "(($ac_try" in
10776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777   *) ac_try_echo=$ac_try;;
10778 esac
10779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780   (eval "$ac_link") 2>conftest.er1
10781   ac_status=$?
10782   grep -v '^ *+' conftest.er1 >conftest.err
10783   rm -f conftest.er1
10784   cat conftest.err >&5
10785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786   (exit $ac_status); } && {
10787          test -z "$ac_c_werror_flag" ||
10788          test ! -s conftest.err
10789        } && test -s conftest$ac_exeext &&
10790        $as_test_x conftest$ac_exeext; then
10791   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'
10792
10793 else
10794   echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.$ac_ext >&5
10796
10797
10798 fi
10799
10800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10801       conftest$ac_exeext conftest.$ac_ext
10802         LDFLAGS="$save_LDFLAGS"
10803       else
10804         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'
10805         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'
10806       fi
10807       archive_cmds_need_lc='no'
10808       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10809       hardcode_libdir_separator=:
10810       inherit_rpath=yes
10811       link_all_deplibs=yes
10812       ;;
10813
10814     netbsd*)
10815       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10816         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10817       else
10818         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10819       fi
10820       hardcode_libdir_flag_spec='-R$libdir'
10821       hardcode_direct=yes
10822       hardcode_shlibpath_var=no
10823       ;;
10824
10825     newsos6)
10826       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10827       hardcode_direct=yes
10828       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10829       hardcode_libdir_separator=:
10830       hardcode_shlibpath_var=no
10831       ;;
10832
10833     *nto* | *qnx*)
10834       ;;
10835
10836     openbsd*)
10837       if test -f /usr/libexec/ld.so; then
10838         hardcode_direct=yes
10839         hardcode_shlibpath_var=no
10840         hardcode_direct_absolute=yes
10841         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10842           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10843           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10844           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10845           export_dynamic_flag_spec='${wl}-E'
10846         else
10847           case $host_os in
10848            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10849              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10850              hardcode_libdir_flag_spec='-R$libdir'
10851              ;;
10852            *)
10853              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10854              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10855              ;;
10856           esac
10857         fi
10858       else
10859         ld_shlibs=no
10860       fi
10861       ;;
10862
10863     os2*)
10864       hardcode_libdir_flag_spec='-L$libdir'
10865       hardcode_minus_L=yes
10866       allow_undefined_flag=unsupported
10867       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'
10868       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10869       ;;
10870
10871     osf3*)
10872       if test "$GCC" = yes; then
10873         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10874         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'
10875       else
10876         allow_undefined_flag=' -expect_unresolved \*'
10877         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'
10878       fi
10879       archive_cmds_need_lc='no'
10880       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10881       hardcode_libdir_separator=:
10882       ;;
10883
10884     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10885       if test "$GCC" = yes; then
10886         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10887         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-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'
10888         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10889       else
10890         allow_undefined_flag=' -expect_unresolved \*'
10891         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'
10892         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~
10893         $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'
10894
10895         # Both c and cxx compiler support -rpath directly
10896         hardcode_libdir_flag_spec='-rpath $libdir'
10897       fi
10898       archive_cmds_need_lc='no'
10899       hardcode_libdir_separator=:
10900       ;;
10901
10902     solaris*)
10903       no_undefined_flag=' -z defs'
10904       if test "$GCC" = yes; then
10905         wlarc='${wl}'
10906         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10907         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10908           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10909       else
10910         case `$CC -V 2>&1` in
10911         *"Compilers 5.0"*)
10912           wlarc=''
10913           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10914           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10915           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10916           ;;
10917         *)
10918           wlarc='${wl}'
10919           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10920           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10921           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10922           ;;
10923         esac
10924       fi
10925       hardcode_libdir_flag_spec='-R$libdir'
10926       hardcode_shlibpath_var=no
10927       case $host_os in
10928       solaris2.[0-5] | solaris2.[0-5].*) ;;
10929       *)
10930         # The compiler driver will combine and reorder linker options,
10931         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10932         # but is careful enough not to reorder.
10933         # Supported since Solaris 2.6 (maybe 2.5.1?)
10934         if test "$GCC" = yes; then
10935           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10936         else
10937           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10938         fi
10939         ;;
10940       esac
10941       link_all_deplibs=yes
10942       ;;
10943
10944     sunos4*)
10945       if test "x$host_vendor" = xsequent; then
10946         # Use $CC to link under sequent, because it throws in some extra .o
10947         # files that make .init and .fini sections work.
10948         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10949       else
10950         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10951       fi
10952       hardcode_libdir_flag_spec='-L$libdir'
10953       hardcode_direct=yes
10954       hardcode_minus_L=yes
10955       hardcode_shlibpath_var=no
10956       ;;
10957
10958     sysv4)
10959       case $host_vendor in
10960         sni)
10961           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10962           hardcode_direct=yes # is this really true???
10963         ;;
10964         siemens)
10965           ## LD is ld it makes a PLAMLIB
10966           ## CC just makes a GrossModule.
10967           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10968           reload_cmds='$CC -r -o $output$reload_objs'
10969           hardcode_direct=no
10970         ;;
10971         motorola)
10972           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10973           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10974         ;;
10975       esac
10976       runpath_var='LD_RUN_PATH'
10977       hardcode_shlibpath_var=no
10978       ;;
10979
10980     sysv4.3*)
10981       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10982       hardcode_shlibpath_var=no
10983       export_dynamic_flag_spec='-Bexport'
10984       ;;
10985
10986     sysv4*MP*)
10987       if test -d /usr/nec; then
10988         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10989         hardcode_shlibpath_var=no
10990         runpath_var=LD_RUN_PATH
10991         hardcode_runpath_var=yes
10992         ld_shlibs=yes
10993       fi
10994       ;;
10995
10996     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10997       no_undefined_flag='${wl}-z,text'
10998       archive_cmds_need_lc=no
10999       hardcode_shlibpath_var=no
11000       runpath_var='LD_RUN_PATH'
11001
11002       if test "$GCC" = yes; then
11003         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11004         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11005       else
11006         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11007         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11008       fi
11009       ;;
11010
11011     sysv5* | sco3.2v5* | sco5v6*)
11012       # Note: We can NOT use -z defs as we might desire, because we do not
11013       # link with -lc, and that would cause any symbols used from libc to
11014       # always be unresolved, which means just about no library would
11015       # ever link correctly.  If we're not using GNU ld we use -z text
11016       # though, which does catch some bad symbols but isn't as heavy-handed
11017       # as -z defs.
11018       no_undefined_flag='${wl}-z,text'
11019       allow_undefined_flag='${wl}-z,nodefs'
11020       archive_cmds_need_lc=no
11021       hardcode_shlibpath_var=no
11022       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11023       hardcode_libdir_separator=':'
11024       link_all_deplibs=yes
11025       export_dynamic_flag_spec='${wl}-Bexport'
11026       runpath_var='LD_RUN_PATH'
11027
11028       if test "$GCC" = yes; then
11029         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11030         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11031       else
11032         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11033         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11034       fi
11035       ;;
11036
11037     uts4*)
11038       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11039       hardcode_libdir_flag_spec='-L$libdir'
11040       hardcode_shlibpath_var=no
11041       ;;
11042
11043     *)
11044       ld_shlibs=no
11045       ;;
11046     esac
11047
11048     if test x$host_vendor = xsni; then
11049       case $host in
11050       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11051         export_dynamic_flag_spec='${wl}-Blargedynsym'
11052         ;;
11053       esac
11054     fi
11055   fi
11056
11057 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11058 echo "${ECHO_T}$ld_shlibs" >&6; }
11059 test "$ld_shlibs" = no && can_build_shared=no
11060
11061 with_gnu_ld=$with_gnu_ld
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077 #
11078 # Do we need to explicitly link libc?
11079 #
11080 case "x$archive_cmds_need_lc" in
11081 x|xyes)
11082   # Assume -lc should be added
11083   archive_cmds_need_lc=yes
11084
11085   if test "$enable_shared" = yes && test "$GCC" = yes; then
11086     case $archive_cmds in
11087     *'~'*)
11088       # FIXME: we may have to deal with multi-command sequences.
11089       ;;
11090     '$CC '*)
11091       # Test whether the compiler implicitly links with -lc since on some
11092       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11093       # to ld, don't add -lc before -lgcc.
11094       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11095 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11096       $RM conftest*
11097       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11098
11099       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11100   (eval $ac_compile) 2>&5
11101   ac_status=$?
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); } 2>conftest.err; then
11104         soname=conftest
11105         lib=conftest
11106         libobjs=conftest.$ac_objext
11107         deplibs=
11108         wl=$lt_prog_compiler_wl
11109         pic_flag=$lt_prog_compiler_pic
11110         compiler_flags=-v
11111         linker_flags=-v
11112         verstring=
11113         output_objdir=.
11114         libname=conftest
11115         lt_save_allow_undefined_flag=$allow_undefined_flag
11116         allow_undefined_flag=
11117         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11118   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11119   ac_status=$?
11120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121   (exit $ac_status); }
11122         then
11123           archive_cmds_need_lc=no
11124         else
11125           archive_cmds_need_lc=yes
11126         fi
11127         allow_undefined_flag=$lt_save_allow_undefined_flag
11128       else
11129         cat conftest.err 1>&5
11130       fi
11131       $RM conftest*
11132       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11133 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11134       ;;
11135     esac
11136   fi
11137   ;;
11138 esac
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11297 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11298
11299 if test "$GCC" = yes; then
11300   case $host_os in
11301     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11302     *) lt_awk_arg="/^libraries:/" ;;
11303   esac
11304   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11305   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11306     # if the path contains ";" then we assume it to be the separator
11307     # otherwise default to the standard path separator (i.e. ":") - it is
11308     # assumed that no part of a normal pathname contains ";" but that should
11309     # okay in the real world where ";" in dirpaths is itself problematic.
11310     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11311   else
11312     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11313   fi
11314   # Ok, now we have the path, separated by spaces, we can step through it
11315   # and add multilib dir if necessary.
11316   lt_tmp_lt_search_path_spec=
11317   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11318   for lt_sys_path in $lt_search_path_spec; do
11319     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11320       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11321     else
11322       test -d "$lt_sys_path" && \
11323         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11324     fi
11325   done
11326   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11327 BEGIN {RS=" "; FS="/|\n";} {
11328   lt_foo="";
11329   lt_count=0;
11330   for (lt_i = NF; lt_i > 0; lt_i--) {
11331     if ($lt_i != "" && $lt_i != ".") {
11332       if ($lt_i == "..") {
11333         lt_count++;
11334       } else {
11335         if (lt_count == 0) {
11336           lt_foo="/" $lt_i lt_foo;
11337         } else {
11338           lt_count--;
11339         }
11340       }
11341     }
11342   }
11343   if (lt_foo != "") { lt_freq[lt_foo]++; }
11344   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11345 }'`
11346   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11347 else
11348   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11349 fi
11350 library_names_spec=
11351 libname_spec='lib$name'
11352 soname_spec=
11353 shrext_cmds=".so"
11354 postinstall_cmds=
11355 postuninstall_cmds=
11356 finish_cmds=
11357 finish_eval=
11358 shlibpath_var=
11359 shlibpath_overrides_runpath=unknown
11360 version_type=none
11361 dynamic_linker="$host_os ld.so"
11362 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11363 need_lib_prefix=unknown
11364 hardcode_into_libs=no
11365
11366 # when you set need_version to no, make sure it does not cause -set_version
11367 # flags to be left without arguments
11368 need_version=unknown
11369
11370 case $host_os in
11371 aix3*)
11372   version_type=linux
11373   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11374   shlibpath_var=LIBPATH
11375
11376   # AIX 3 has no versioning support, so we append a major version to the name.
11377   soname_spec='${libname}${release}${shared_ext}$major'
11378   ;;
11379
11380 aix[4-9]*)
11381   version_type=linux
11382   need_lib_prefix=no
11383   need_version=no
11384   hardcode_into_libs=yes
11385   if test "$host_cpu" = ia64; then
11386     # AIX 5 supports IA64
11387     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11388     shlibpath_var=LD_LIBRARY_PATH
11389   else
11390     # With GCC up to 2.95.x, collect2 would create an import file
11391     # for dependence libraries.  The import file would start with
11392     # the line `#! .'.  This would cause the generated library to
11393     # depend on `.', always an invalid library.  This was fixed in
11394     # development snapshots of GCC prior to 3.0.
11395     case $host_os in
11396       aix4 | aix4.[01] | aix4.[01].*)
11397       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11398            echo ' yes '
11399            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11400         :
11401       else
11402         can_build_shared=no
11403       fi
11404       ;;
11405     esac
11406     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11407     # soname into executable. Probably we can add versioning support to
11408     # collect2, so additional links can be useful in future.
11409     if test "$aix_use_runtimelinking" = yes; then
11410       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11411       # instead of lib<name>.a to let people know that these are not
11412       # typical AIX shared libraries.
11413       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11414     else
11415       # We preserve .a as extension for shared libraries through AIX4.2
11416       # and later when we are not doing run time linking.
11417       library_names_spec='${libname}${release}.a $libname.a'
11418       soname_spec='${libname}${release}${shared_ext}$major'
11419     fi
11420     shlibpath_var=LIBPATH
11421   fi
11422   ;;
11423
11424 amigaos*)
11425   case $host_cpu in
11426   powerpc)
11427     # Since July 2007 AmigaOS4 officially supports .so libraries.
11428     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11429     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11430     ;;
11431   m68k)
11432     library_names_spec='$libname.ixlibrary $libname.a'
11433     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11434     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'
11435     ;;
11436   esac
11437   ;;
11438
11439 beos*)
11440   library_names_spec='${libname}${shared_ext}'
11441   dynamic_linker="$host_os ld.so"
11442   shlibpath_var=LIBRARY_PATH
11443   ;;
11444
11445 bsdi[45]*)
11446   version_type=linux
11447   need_version=no
11448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11449   soname_spec='${libname}${release}${shared_ext}$major'
11450   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11451   shlibpath_var=LD_LIBRARY_PATH
11452   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11453   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11454   # the default ld.so.conf also contains /usr/contrib/lib and
11455   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11456   # libtool to hard-code these into programs
11457   ;;
11458
11459 cygwin* | mingw* | pw32* | cegcc*)
11460   version_type=windows
11461   shrext_cmds=".dll"
11462   need_version=no
11463   need_lib_prefix=no
11464
11465   case $GCC,$host_os in
11466   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11467     library_names_spec='$libname.dll.a'
11468     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11469     postinstall_cmds='base_file=`basename \${file}`~
11470       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11471       dldir=$destdir/`dirname \$dlpath`~
11472       test -d \$dldir || mkdir -p \$dldir~
11473       $install_prog $dir/$dlname \$dldir/$dlname~
11474       chmod a+x \$dldir/$dlname~
11475       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11476         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11477       fi'
11478     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11479       dlpath=$dir/\$dldll~
11480        $RM \$dlpath'
11481     shlibpath_overrides_runpath=yes
11482
11483     case $host_os in
11484     cygwin*)
11485       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11486       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11487       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11488       ;;
11489     mingw* | cegcc*)
11490       # MinGW DLLs use traditional 'lib' prefix
11491       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11492       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11493       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11494         # It is most probably a Windows format PATH printed by
11495         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11496         # path with ; separators, and with drive letters. We can handle the
11497         # drive letters (cygwin fileutils understands them), so leave them,
11498         # especially as we might pass files found there to a mingw objdump,
11499         # which wouldn't understand a cygwinified path. Ahh.
11500         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11501       else
11502         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11503       fi
11504       ;;
11505     pw32*)
11506       # pw32 DLLs use 'pw' prefix rather than 'lib'
11507       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11508       ;;
11509     esac
11510     ;;
11511
11512   *)
11513     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11514     ;;
11515   esac
11516   dynamic_linker='Win32 ld.exe'
11517   # FIXME: first we should search . and the directory the executable is in
11518   shlibpath_var=PATH
11519   ;;
11520
11521 darwin* | rhapsody*)
11522   dynamic_linker="$host_os dyld"
11523   version_type=darwin
11524   need_lib_prefix=no
11525   need_version=no
11526   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11527   soname_spec='${libname}${release}${major}$shared_ext'
11528   shlibpath_overrides_runpath=yes
11529   shlibpath_var=DYLD_LIBRARY_PATH
11530   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11531
11532   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11533   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11534   ;;
11535
11536 dgux*)
11537   version_type=linux
11538   need_lib_prefix=no
11539   need_version=no
11540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11541   soname_spec='${libname}${release}${shared_ext}$major'
11542   shlibpath_var=LD_LIBRARY_PATH
11543   ;;
11544
11545 freebsd1*)
11546   dynamic_linker=no
11547   ;;
11548
11549 freebsd* | dragonfly*)
11550   # DragonFly does not have aout.  When/if they implement a new
11551   # versioning mechanism, adjust this.
11552   if test -x /usr/bin/objformat; then
11553     objformat=`/usr/bin/objformat`
11554   else
11555     case $host_os in
11556     freebsd[123]*) objformat=aout ;;
11557     *) objformat=elf ;;
11558     esac
11559   fi
11560   version_type=freebsd-$objformat
11561   case $version_type in
11562     freebsd-elf*)
11563       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11564       need_version=no
11565       need_lib_prefix=no
11566       ;;
11567     freebsd-*)
11568       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11569       need_version=yes
11570       ;;
11571   esac
11572   shlibpath_var=LD_LIBRARY_PATH
11573   case $host_os in
11574   freebsd2*)
11575     shlibpath_overrides_runpath=yes
11576     ;;
11577   freebsd3.[01]* | freebsdelf3.[01]*)
11578     shlibpath_overrides_runpath=yes
11579     hardcode_into_libs=yes
11580     ;;
11581   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11582   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11583     shlibpath_overrides_runpath=no
11584     hardcode_into_libs=yes
11585     ;;
11586   *) # from 4.6 on, and DragonFly
11587     shlibpath_overrides_runpath=yes
11588     hardcode_into_libs=yes
11589     ;;
11590   esac
11591   ;;
11592
11593 gnu*)
11594   version_type=linux
11595   need_lib_prefix=no
11596   need_version=no
11597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11598   soname_spec='${libname}${release}${shared_ext}$major'
11599   shlibpath_var=LD_LIBRARY_PATH
11600   hardcode_into_libs=yes
11601   ;;
11602
11603 hpux9* | hpux10* | hpux11*)
11604   # Give a soname corresponding to the major version so that dld.sl refuses to
11605   # link against other versions.
11606   version_type=sunos
11607   need_lib_prefix=no
11608   need_version=no
11609   case $host_cpu in
11610   ia64*)
11611     shrext_cmds='.so'
11612     hardcode_into_libs=yes
11613     dynamic_linker="$host_os dld.so"
11614     shlibpath_var=LD_LIBRARY_PATH
11615     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11616     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11617     soname_spec='${libname}${release}${shared_ext}$major'
11618     if test "X$HPUX_IA64_MODE" = X32; then
11619       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11620     else
11621       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11622     fi
11623     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11624     ;;
11625   hppa*64*)
11626     shrext_cmds='.sl'
11627     hardcode_into_libs=yes
11628     dynamic_linker="$host_os dld.sl"
11629     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11630     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11631     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11632     soname_spec='${libname}${release}${shared_ext}$major'
11633     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11634     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11635     ;;
11636   *)
11637     shrext_cmds='.sl'
11638     dynamic_linker="$host_os dld.sl"
11639     shlibpath_var=SHLIB_PATH
11640     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11641     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11642     soname_spec='${libname}${release}${shared_ext}$major'
11643     ;;
11644   esac
11645   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11646   postinstall_cmds='chmod 555 $lib'
11647   ;;
11648
11649 interix[3-9]*)
11650   version_type=linux
11651   need_lib_prefix=no
11652   need_version=no
11653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11654   soname_spec='${libname}${release}${shared_ext}$major'
11655   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11656   shlibpath_var=LD_LIBRARY_PATH
11657   shlibpath_overrides_runpath=no
11658   hardcode_into_libs=yes
11659   ;;
11660
11661 irix5* | irix6* | nonstopux*)
11662   case $host_os in
11663     nonstopux*) version_type=nonstopux ;;
11664     *)
11665         if test "$lt_cv_prog_gnu_ld" = yes; then
11666                 version_type=linux
11667         else
11668                 version_type=irix
11669         fi ;;
11670   esac
11671   need_lib_prefix=no
11672   need_version=no
11673   soname_spec='${libname}${release}${shared_ext}$major'
11674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11675   case $host_os in
11676   irix5* | nonstopux*)
11677     libsuff= shlibsuff=
11678     ;;
11679   *)
11680     case $LD in # libtool.m4 will add one of these switches to LD
11681     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11682       libsuff= shlibsuff= libmagic=32-bit;;
11683     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11684       libsuff=32 shlibsuff=N32 libmagic=N32;;
11685     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11686       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11687     *) libsuff= shlibsuff= libmagic=never-match;;
11688     esac
11689     ;;
11690   esac
11691   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11692   shlibpath_overrides_runpath=no
11693   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11694   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11695   hardcode_into_libs=yes
11696   ;;
11697
11698 # No shared lib support for Linux oldld, aout, or coff.
11699 linux*oldld* | linux*aout* | linux*coff*)
11700   dynamic_linker=no
11701   ;;
11702
11703 # This must be Linux ELF.
11704 linux* | k*bsd*-gnu)
11705   version_type=linux
11706   need_lib_prefix=no
11707   need_version=no
11708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11709   soname_spec='${libname}${release}${shared_ext}$major'
11710   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11711   shlibpath_var=LD_LIBRARY_PATH
11712   shlibpath_overrides_runpath=no
11713   # Some binutils ld are patched to set DT_RUNPATH
11714   save_LDFLAGS=$LDFLAGS
11715   save_libdir=$libdir
11716   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11717        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11718   cat >conftest.$ac_ext <<_ACEOF
11719 /* confdefs.h.  */
11720 _ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h.  */
11724
11725 int
11726 main ()
11727 {
11728
11729   ;
11730   return 0;
11731 }
11732 _ACEOF
11733 rm -f conftest.$ac_objext conftest$ac_exeext
11734 if { (ac_try="$ac_link"
11735 case "(($ac_try" in
11736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11737   *) ac_try_echo=$ac_try;;
11738 esac
11739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11740   (eval "$ac_link") 2>conftest.er1
11741   ac_status=$?
11742   grep -v '^ *+' conftest.er1 >conftest.err
11743   rm -f conftest.er1
11744   cat conftest.err >&5
11745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746   (exit $ac_status); } && {
11747          test -z "$ac_c_werror_flag" ||
11748          test ! -s conftest.err
11749        } && test -s conftest$ac_exeext &&
11750        $as_test_x conftest$ac_exeext; then
11751   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11752   shlibpath_overrides_runpath=yes
11753 fi
11754
11755 else
11756   echo "$as_me: failed program was:" >&5
11757 sed 's/^/| /' conftest.$ac_ext >&5
11758
11759
11760 fi
11761
11762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11763       conftest$ac_exeext conftest.$ac_ext
11764   LDFLAGS=$save_LDFLAGS
11765   libdir=$save_libdir
11766
11767   # This implies no fast_install, which is unacceptable.
11768   # Some rework will be needed to allow for fast_install
11769   # before this can be enabled.
11770   hardcode_into_libs=yes
11771
11772   # Append ld.so.conf contents to the search path
11773   if test -f /etc/ld.so.conf; then
11774     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' ' '`
11775     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11776   fi
11777
11778   # We used to test for /lib/ld.so.1 and disable shared libraries on
11779   # powerpc, because MkLinux only supported shared libraries with the
11780   # GNU dynamic linker.  Since this was broken with cross compilers,
11781   # most powerpc-linux boxes support dynamic linking these days and
11782   # people can always --disable-shared, the test was removed, and we
11783   # assume the GNU/Linux dynamic linker is in use.
11784   dynamic_linker='GNU/Linux ld.so'
11785   ;;
11786
11787 netbsd*)
11788   version_type=sunos
11789   need_lib_prefix=no
11790   need_version=no
11791   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11792     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11793     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11794     dynamic_linker='NetBSD (a.out) ld.so'
11795   else
11796     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11797     soname_spec='${libname}${release}${shared_ext}$major'
11798     dynamic_linker='NetBSD ld.elf_so'
11799   fi
11800   shlibpath_var=LD_LIBRARY_PATH
11801   shlibpath_overrides_runpath=yes
11802   hardcode_into_libs=yes
11803   ;;
11804
11805 newsos6)
11806   version_type=linux
11807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11808   shlibpath_var=LD_LIBRARY_PATH
11809   shlibpath_overrides_runpath=yes
11810   ;;
11811
11812 *nto* | *qnx*)
11813   version_type=qnx
11814   need_lib_prefix=no
11815   need_version=no
11816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11817   soname_spec='${libname}${release}${shared_ext}$major'
11818   shlibpath_var=LD_LIBRARY_PATH
11819   shlibpath_overrides_runpath=no
11820   hardcode_into_libs=yes
11821   dynamic_linker='ldqnx.so'
11822   ;;
11823
11824 openbsd*)
11825   version_type=sunos
11826   sys_lib_dlsearch_path_spec="/usr/lib"
11827   need_lib_prefix=no
11828   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11829   case $host_os in
11830     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11831     *)                          need_version=no  ;;
11832   esac
11833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11834   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11835   shlibpath_var=LD_LIBRARY_PATH
11836   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11837     case $host_os in
11838       openbsd2.[89] | openbsd2.[89].*)
11839         shlibpath_overrides_runpath=no
11840         ;;
11841       *)
11842         shlibpath_overrides_runpath=yes
11843         ;;
11844       esac
11845   else
11846     shlibpath_overrides_runpath=yes
11847   fi
11848   ;;
11849
11850 os2*)
11851   libname_spec='$name'
11852   shrext_cmds=".dll"
11853   need_lib_prefix=no
11854   library_names_spec='$libname${shared_ext} $libname.a'
11855   dynamic_linker='OS/2 ld.exe'
11856   shlibpath_var=LIBPATH
11857   ;;
11858
11859 osf3* | osf4* | osf5*)
11860   version_type=osf
11861   need_lib_prefix=no
11862   need_version=no
11863   soname_spec='${libname}${release}${shared_ext}$major'
11864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11865   shlibpath_var=LD_LIBRARY_PATH
11866   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11867   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11868   ;;
11869
11870 rdos*)
11871   dynamic_linker=no
11872   ;;
11873
11874 solaris*)
11875   version_type=linux
11876   need_lib_prefix=no
11877   need_version=no
11878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11879   soname_spec='${libname}${release}${shared_ext}$major'
11880   shlibpath_var=LD_LIBRARY_PATH
11881   shlibpath_overrides_runpath=yes
11882   hardcode_into_libs=yes
11883   # ldd complains unless libraries are executable
11884   postinstall_cmds='chmod +x $lib'
11885   ;;
11886
11887 sunos4*)
11888   version_type=sunos
11889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11890   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11891   shlibpath_var=LD_LIBRARY_PATH
11892   shlibpath_overrides_runpath=yes
11893   if test "$with_gnu_ld" = yes; then
11894     need_lib_prefix=no
11895   fi
11896   need_version=yes
11897   ;;
11898
11899 sysv4 | sysv4.3*)
11900   version_type=linux
11901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11902   soname_spec='${libname}${release}${shared_ext}$major'
11903   shlibpath_var=LD_LIBRARY_PATH
11904   case $host_vendor in
11905     sni)
11906       shlibpath_overrides_runpath=no
11907       need_lib_prefix=no
11908       runpath_var=LD_RUN_PATH
11909       ;;
11910     siemens)
11911       need_lib_prefix=no
11912       ;;
11913     motorola)
11914       need_lib_prefix=no
11915       need_version=no
11916       shlibpath_overrides_runpath=no
11917       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11918       ;;
11919   esac
11920   ;;
11921
11922 sysv4*MP*)
11923   if test -d /usr/nec ;then
11924     version_type=linux
11925     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11926     soname_spec='$libname${shared_ext}.$major'
11927     shlibpath_var=LD_LIBRARY_PATH
11928   fi
11929   ;;
11930
11931 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11932   version_type=freebsd-elf
11933   need_lib_prefix=no
11934   need_version=no
11935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11936   soname_spec='${libname}${release}${shared_ext}$major'
11937   shlibpath_var=LD_LIBRARY_PATH
11938   shlibpath_overrides_runpath=yes
11939   hardcode_into_libs=yes
11940   if test "$with_gnu_ld" = yes; then
11941     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11942   else
11943     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11944     case $host_os in
11945       sco3.2v5*)
11946         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11947         ;;
11948     esac
11949   fi
11950   sys_lib_dlsearch_path_spec='/usr/lib'
11951   ;;
11952
11953 tpf*)
11954   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11955   version_type=linux
11956   need_lib_prefix=no
11957   need_version=no
11958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11959   shlibpath_var=LD_LIBRARY_PATH
11960   shlibpath_overrides_runpath=no
11961   hardcode_into_libs=yes
11962   ;;
11963
11964 uts4*)
11965   version_type=linux
11966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11967   soname_spec='${libname}${release}${shared_ext}$major'
11968   shlibpath_var=LD_LIBRARY_PATH
11969   ;;
11970
11971 *)
11972   dynamic_linker=no
11973   ;;
11974 esac
11975 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11976 echo "${ECHO_T}$dynamic_linker" >&6; }
11977 test "$dynamic_linker" = no && can_build_shared=no
11978
11979 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11980 if test "$GCC" = yes; then
11981   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11982 fi
11983
11984 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11985   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11986 fi
11987 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11988   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11989 fi
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12078 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12079 hardcode_action=
12080 if test -n "$hardcode_libdir_flag_spec" ||
12081    test -n "$runpath_var" ||
12082    test "X$hardcode_automatic" = "Xyes" ; then
12083
12084   # We can hardcode non-existent directories.
12085   if test "$hardcode_direct" != no &&
12086      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12087      # have to relink, otherwise we might link with an installed library
12088      # when we should be linking with a yet-to-be-installed one
12089      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12090      test "$hardcode_minus_L" != no; then
12091     # Linking always hardcodes the temporary library directory.
12092     hardcode_action=relink
12093   else
12094     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12095     hardcode_action=immediate
12096   fi
12097 else
12098   # We cannot hardcode anything, or else we can only hardcode existing
12099   # directories.
12100   hardcode_action=unsupported
12101 fi
12102 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12103 echo "${ECHO_T}$hardcode_action" >&6; }
12104
12105 if test "$hardcode_action" = relink ||
12106    test "$inherit_rpath" = yes; then
12107   # Fast installation is not supported
12108   enable_fast_install=no
12109 elif test "$shlibpath_overrides_runpath" = yes ||
12110      test "$enable_shared" = no; then
12111   # Fast installation is not necessary
12112   enable_fast_install=needless
12113 fi
12114
12115
12116
12117
12118
12119
12120   if test "x$enable_dlopen" != xyes; then
12121   enable_dlopen=unknown
12122   enable_dlopen_self=unknown
12123   enable_dlopen_self_static=unknown
12124 else
12125   lt_cv_dlopen=no
12126   lt_cv_dlopen_libs=
12127
12128   case $host_os in
12129   beos*)
12130     lt_cv_dlopen="load_add_on"
12131     lt_cv_dlopen_libs=
12132     lt_cv_dlopen_self=yes
12133     ;;
12134
12135   mingw* | pw32* | cegcc*)
12136     lt_cv_dlopen="LoadLibrary"
12137     lt_cv_dlopen_libs=
12138     ;;
12139
12140   cygwin*)
12141     lt_cv_dlopen="dlopen"
12142     lt_cv_dlopen_libs=
12143     ;;
12144
12145   darwin*)
12146   # if libdl is installed we need to link against it
12147     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12148 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12149 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12150   echo $ECHO_N "(cached) $ECHO_C" >&6
12151 else
12152   ac_check_lib_save_LIBS=$LIBS
12153 LIBS="-ldl  $LIBS"
12154 cat >conftest.$ac_ext <<_ACEOF
12155 /* confdefs.h.  */
12156 _ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h.  */
12160
12161 /* Override any GCC internal prototype to avoid an error.
12162    Use char because int might match the return type of a GCC
12163    builtin and then its argument prototype would still apply.  */
12164 #ifdef __cplusplus
12165 extern "C"
12166 #endif
12167 char dlopen ();
12168 int
12169 main ()
12170 {
12171 return dlopen ();
12172   ;
12173   return 0;
12174 }
12175 _ACEOF
12176 rm -f conftest.$ac_objext conftest$ac_exeext
12177 if { (ac_try="$ac_link"
12178 case "(($ac_try" in
12179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12180   *) ac_try_echo=$ac_try;;
12181 esac
12182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12183   (eval "$ac_link") 2>conftest.er1
12184   ac_status=$?
12185   grep -v '^ *+' conftest.er1 >conftest.err
12186   rm -f conftest.er1
12187   cat conftest.err >&5
12188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189   (exit $ac_status); } && {
12190          test -z "$ac_c_werror_flag" ||
12191          test ! -s conftest.err
12192        } && test -s conftest$ac_exeext &&
12193        $as_test_x conftest$ac_exeext; then
12194   ac_cv_lib_dl_dlopen=yes
12195 else
12196   echo "$as_me: failed program was:" >&5
12197 sed 's/^/| /' conftest.$ac_ext >&5
12198
12199         ac_cv_lib_dl_dlopen=no
12200 fi
12201
12202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12203       conftest$ac_exeext conftest.$ac_ext
12204 LIBS=$ac_check_lib_save_LIBS
12205 fi
12206 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12207 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12208 if test $ac_cv_lib_dl_dlopen = yes; then
12209   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12210 else
12211
12212     lt_cv_dlopen="dyld"
12213     lt_cv_dlopen_libs=
12214     lt_cv_dlopen_self=yes
12215
12216 fi
12217
12218     ;;
12219
12220   *)
12221     { echo "$as_me:$LINENO: checking for shl_load" >&5
12222 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12223 if test "${ac_cv_func_shl_load+set}" = set; then
12224   echo $ECHO_N "(cached) $ECHO_C" >&6
12225 else
12226   cat >conftest.$ac_ext <<_ACEOF
12227 /* confdefs.h.  */
12228 _ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h.  */
12232 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12233    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12234 #define shl_load innocuous_shl_load
12235
12236 /* System header to define __stub macros and hopefully few prototypes,
12237     which can conflict with char shl_load (); below.
12238     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12239     <limits.h> exists even on freestanding compilers.  */
12240
12241 #ifdef __STDC__
12242 # include <limits.h>
12243 #else
12244 # include <assert.h>
12245 #endif
12246
12247 #undef shl_load
12248
12249 /* Override any GCC internal prototype to avoid an error.
12250    Use char because int might match the return type of a GCC
12251    builtin and then its argument prototype would still apply.  */
12252 #ifdef __cplusplus
12253 extern "C"
12254 #endif
12255 char shl_load ();
12256 /* The GNU C library defines this for functions which it implements
12257     to always fail with ENOSYS.  Some functions are actually named
12258     something starting with __ and the normal name is an alias.  */
12259 #if defined __stub_shl_load || defined __stub___shl_load
12260 choke me
12261 #endif
12262
12263 int
12264 main ()
12265 {
12266 return shl_load ();
12267   ;
12268   return 0;
12269 }
12270 _ACEOF
12271 rm -f conftest.$ac_objext conftest$ac_exeext
12272 if { (ac_try="$ac_link"
12273 case "(($ac_try" in
12274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12275   *) ac_try_echo=$ac_try;;
12276 esac
12277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12278   (eval "$ac_link") 2>conftest.er1
12279   ac_status=$?
12280   grep -v '^ *+' conftest.er1 >conftest.err
12281   rm -f conftest.er1
12282   cat conftest.err >&5
12283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284   (exit $ac_status); } && {
12285          test -z "$ac_c_werror_flag" ||
12286          test ! -s conftest.err
12287        } && test -s conftest$ac_exeext &&
12288        $as_test_x conftest$ac_exeext; then
12289   ac_cv_func_shl_load=yes
12290 else
12291   echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12293
12294         ac_cv_func_shl_load=no
12295 fi
12296
12297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12298       conftest$ac_exeext conftest.$ac_ext
12299 fi
12300 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12301 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12302 if test $ac_cv_func_shl_load = yes; then
12303   lt_cv_dlopen="shl_load"
12304 else
12305   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12306 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12307 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12308   echo $ECHO_N "(cached) $ECHO_C" >&6
12309 else
12310   ac_check_lib_save_LIBS=$LIBS
12311 LIBS="-ldld  $LIBS"
12312 cat >conftest.$ac_ext <<_ACEOF
12313 /* confdefs.h.  */
12314 _ACEOF
12315 cat confdefs.h >>conftest.$ac_ext
12316 cat >>conftest.$ac_ext <<_ACEOF
12317 /* end confdefs.h.  */
12318
12319 /* Override any GCC internal prototype to avoid an error.
12320    Use char because int might match the return type of a GCC
12321    builtin and then its argument prototype would still apply.  */
12322 #ifdef __cplusplus
12323 extern "C"
12324 #endif
12325 char shl_load ();
12326 int
12327 main ()
12328 {
12329 return shl_load ();
12330   ;
12331   return 0;
12332 }
12333 _ACEOF
12334 rm -f conftest.$ac_objext conftest$ac_exeext
12335 if { (ac_try="$ac_link"
12336 case "(($ac_try" in
12337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12338   *) ac_try_echo=$ac_try;;
12339 esac
12340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12341   (eval "$ac_link") 2>conftest.er1
12342   ac_status=$?
12343   grep -v '^ *+' conftest.er1 >conftest.err
12344   rm -f conftest.er1
12345   cat conftest.err >&5
12346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347   (exit $ac_status); } && {
12348          test -z "$ac_c_werror_flag" ||
12349          test ! -s conftest.err
12350        } && test -s conftest$ac_exeext &&
12351        $as_test_x conftest$ac_exeext; then
12352   ac_cv_lib_dld_shl_load=yes
12353 else
12354   echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12356
12357         ac_cv_lib_dld_shl_load=no
12358 fi
12359
12360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12361       conftest$ac_exeext conftest.$ac_ext
12362 LIBS=$ac_check_lib_save_LIBS
12363 fi
12364 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12365 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12366 if test $ac_cv_lib_dld_shl_load = yes; then
12367   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12368 else
12369   { echo "$as_me:$LINENO: checking for dlopen" >&5
12370 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12371 if test "${ac_cv_func_dlopen+set}" = set; then
12372   echo $ECHO_N "(cached) $ECHO_C" >&6
12373 else
12374   cat >conftest.$ac_ext <<_ACEOF
12375 /* confdefs.h.  */
12376 _ACEOF
12377 cat confdefs.h >>conftest.$ac_ext
12378 cat >>conftest.$ac_ext <<_ACEOF
12379 /* end confdefs.h.  */
12380 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12381    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12382 #define dlopen innocuous_dlopen
12383
12384 /* System header to define __stub macros and hopefully few prototypes,
12385     which can conflict with char dlopen (); below.
12386     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12387     <limits.h> exists even on freestanding compilers.  */
12388
12389 #ifdef __STDC__
12390 # include <limits.h>
12391 #else
12392 # include <assert.h>
12393 #endif
12394
12395 #undef dlopen
12396
12397 /* Override any GCC internal prototype to avoid an error.
12398    Use char because int might match the return type of a GCC
12399    builtin and then its argument prototype would still apply.  */
12400 #ifdef __cplusplus
12401 extern "C"
12402 #endif
12403 char dlopen ();
12404 /* The GNU C library defines this for functions which it implements
12405     to always fail with ENOSYS.  Some functions are actually named
12406     something starting with __ and the normal name is an alias.  */
12407 #if defined __stub_dlopen || defined __stub___dlopen
12408 choke me
12409 #endif
12410
12411 int
12412 main ()
12413 {
12414 return dlopen ();
12415   ;
12416   return 0;
12417 }
12418 _ACEOF
12419 rm -f conftest.$ac_objext conftest$ac_exeext
12420 if { (ac_try="$ac_link"
12421 case "(($ac_try" in
12422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12423   *) ac_try_echo=$ac_try;;
12424 esac
12425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12426   (eval "$ac_link") 2>conftest.er1
12427   ac_status=$?
12428   grep -v '^ *+' conftest.er1 >conftest.err
12429   rm -f conftest.er1
12430   cat conftest.err >&5
12431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432   (exit $ac_status); } && {
12433          test -z "$ac_c_werror_flag" ||
12434          test ! -s conftest.err
12435        } && test -s conftest$ac_exeext &&
12436        $as_test_x conftest$ac_exeext; then
12437   ac_cv_func_dlopen=yes
12438 else
12439   echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12441
12442         ac_cv_func_dlopen=no
12443 fi
12444
12445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12446       conftest$ac_exeext conftest.$ac_ext
12447 fi
12448 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12449 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12450 if test $ac_cv_func_dlopen = yes; then
12451   lt_cv_dlopen="dlopen"
12452 else
12453   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12454 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12455 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12456   echo $ECHO_N "(cached) $ECHO_C" >&6
12457 else
12458   ac_check_lib_save_LIBS=$LIBS
12459 LIBS="-ldl  $LIBS"
12460 cat >conftest.$ac_ext <<_ACEOF
12461 /* confdefs.h.  */
12462 _ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h.  */
12466
12467 /* Override any GCC internal prototype to avoid an error.
12468    Use char because int might match the return type of a GCC
12469    builtin and then its argument prototype would still apply.  */
12470 #ifdef __cplusplus
12471 extern "C"
12472 #endif
12473 char dlopen ();
12474 int
12475 main ()
12476 {
12477 return dlopen ();
12478   ;
12479   return 0;
12480 }
12481 _ACEOF
12482 rm -f conftest.$ac_objext conftest$ac_exeext
12483 if { (ac_try="$ac_link"
12484 case "(($ac_try" in
12485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486   *) ac_try_echo=$ac_try;;
12487 esac
12488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12489   (eval "$ac_link") 2>conftest.er1
12490   ac_status=$?
12491   grep -v '^ *+' conftest.er1 >conftest.err
12492   rm -f conftest.er1
12493   cat conftest.err >&5
12494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495   (exit $ac_status); } && {
12496          test -z "$ac_c_werror_flag" ||
12497          test ! -s conftest.err
12498        } && test -s conftest$ac_exeext &&
12499        $as_test_x conftest$ac_exeext; then
12500   ac_cv_lib_dl_dlopen=yes
12501 else
12502   echo "$as_me: failed program was:" >&5
12503 sed 's/^/| /' conftest.$ac_ext >&5
12504
12505         ac_cv_lib_dl_dlopen=no
12506 fi
12507
12508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12509       conftest$ac_exeext conftest.$ac_ext
12510 LIBS=$ac_check_lib_save_LIBS
12511 fi
12512 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12513 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12514 if test $ac_cv_lib_dl_dlopen = yes; then
12515   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12516 else
12517   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12518 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12519 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12520   echo $ECHO_N "(cached) $ECHO_C" >&6
12521 else
12522   ac_check_lib_save_LIBS=$LIBS
12523 LIBS="-lsvld  $LIBS"
12524 cat >conftest.$ac_ext <<_ACEOF
12525 /* confdefs.h.  */
12526 _ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h.  */
12530
12531 /* Override any GCC internal prototype to avoid an error.
12532    Use char because int might match the return type of a GCC
12533    builtin and then its argument prototype would still apply.  */
12534 #ifdef __cplusplus
12535 extern "C"
12536 #endif
12537 char dlopen ();
12538 int
12539 main ()
12540 {
12541 return dlopen ();
12542   ;
12543   return 0;
12544 }
12545 _ACEOF
12546 rm -f conftest.$ac_objext conftest$ac_exeext
12547 if { (ac_try="$ac_link"
12548 case "(($ac_try" in
12549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12550   *) ac_try_echo=$ac_try;;
12551 esac
12552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12553   (eval "$ac_link") 2>conftest.er1
12554   ac_status=$?
12555   grep -v '^ *+' conftest.er1 >conftest.err
12556   rm -f conftest.er1
12557   cat conftest.err >&5
12558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559   (exit $ac_status); } && {
12560          test -z "$ac_c_werror_flag" ||
12561          test ! -s conftest.err
12562        } && test -s conftest$ac_exeext &&
12563        $as_test_x conftest$ac_exeext; then
12564   ac_cv_lib_svld_dlopen=yes
12565 else
12566   echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12568
12569         ac_cv_lib_svld_dlopen=no
12570 fi
12571
12572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12573       conftest$ac_exeext conftest.$ac_ext
12574 LIBS=$ac_check_lib_save_LIBS
12575 fi
12576 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12577 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12578 if test $ac_cv_lib_svld_dlopen = yes; then
12579   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12580 else
12581   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12582 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12583 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12584   echo $ECHO_N "(cached) $ECHO_C" >&6
12585 else
12586   ac_check_lib_save_LIBS=$LIBS
12587 LIBS="-ldld  $LIBS"
12588 cat >conftest.$ac_ext <<_ACEOF
12589 /* confdefs.h.  */
12590 _ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h.  */
12594
12595 /* Override any GCC internal prototype to avoid an error.
12596    Use char because int might match the return type of a GCC
12597    builtin and then its argument prototype would still apply.  */
12598 #ifdef __cplusplus
12599 extern "C"
12600 #endif
12601 char dld_link ();
12602 int
12603 main ()
12604 {
12605 return dld_link ();
12606   ;
12607   return 0;
12608 }
12609 _ACEOF
12610 rm -f conftest.$ac_objext conftest$ac_exeext
12611 if { (ac_try="$ac_link"
12612 case "(($ac_try" in
12613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614   *) ac_try_echo=$ac_try;;
12615 esac
12616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617   (eval "$ac_link") 2>conftest.er1
12618   ac_status=$?
12619   grep -v '^ *+' conftest.er1 >conftest.err
12620   rm -f conftest.er1
12621   cat conftest.err >&5
12622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623   (exit $ac_status); } && {
12624          test -z "$ac_c_werror_flag" ||
12625          test ! -s conftest.err
12626        } && test -s conftest$ac_exeext &&
12627        $as_test_x conftest$ac_exeext; then
12628   ac_cv_lib_dld_dld_link=yes
12629 else
12630   echo "$as_me: failed program was:" >&5
12631 sed 's/^/| /' conftest.$ac_ext >&5
12632
12633         ac_cv_lib_dld_dld_link=no
12634 fi
12635
12636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12637       conftest$ac_exeext conftest.$ac_ext
12638 LIBS=$ac_check_lib_save_LIBS
12639 fi
12640 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12641 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12642 if test $ac_cv_lib_dld_dld_link = yes; then
12643   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12644 fi
12645
12646
12647 fi
12648
12649
12650 fi
12651
12652
12653 fi
12654
12655
12656 fi
12657
12658
12659 fi
12660
12661     ;;
12662   esac
12663
12664   if test "x$lt_cv_dlopen" != xno; then
12665     enable_dlopen=yes
12666   else
12667     enable_dlopen=no
12668   fi
12669
12670   case $lt_cv_dlopen in
12671   dlopen)
12672     save_CPPFLAGS="$CPPFLAGS"
12673     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12674
12675     save_LDFLAGS="$LDFLAGS"
12676     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12677
12678     save_LIBS="$LIBS"
12679     LIBS="$lt_cv_dlopen_libs $LIBS"
12680
12681     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12682 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12683 if test "${lt_cv_dlopen_self+set}" = set; then
12684   echo $ECHO_N "(cached) $ECHO_C" >&6
12685 else
12686           if test "$cross_compiling" = yes; then :
12687   lt_cv_dlopen_self=cross
12688 else
12689   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12690   lt_status=$lt_dlunknown
12691   cat > conftest.$ac_ext <<_LT_EOF
12692 #line 12692 "configure"
12693 #include "confdefs.h"
12694
12695 #if HAVE_DLFCN_H
12696 #include <dlfcn.h>
12697 #endif
12698
12699 #include <stdio.h>
12700
12701 #ifdef RTLD_GLOBAL
12702 #  define LT_DLGLOBAL           RTLD_GLOBAL
12703 #else
12704 #  ifdef DL_GLOBAL
12705 #    define LT_DLGLOBAL         DL_GLOBAL
12706 #  else
12707 #    define LT_DLGLOBAL         0
12708 #  endif
12709 #endif
12710
12711 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12712    find out it does not work in some platform. */
12713 #ifndef LT_DLLAZY_OR_NOW
12714 #  ifdef RTLD_LAZY
12715 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12716 #  else
12717 #    ifdef DL_LAZY
12718 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12719 #    else
12720 #      ifdef RTLD_NOW
12721 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12722 #      else
12723 #        ifdef DL_NOW
12724 #          define LT_DLLAZY_OR_NOW      DL_NOW
12725 #        else
12726 #          define LT_DLLAZY_OR_NOW      0
12727 #        endif
12728 #      endif
12729 #    endif
12730 #  endif
12731 #endif
12732
12733 void fnord() { int i=42;}
12734 int main ()
12735 {
12736   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12737   int status = $lt_dlunknown;
12738
12739   if (self)
12740     {
12741       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12742       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12743       /* dlclose (self); */
12744     }
12745   else
12746     puts (dlerror ());
12747
12748   return status;
12749 }
12750 _LT_EOF
12751   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12752   (eval $ac_link) 2>&5
12753   ac_status=$?
12754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12756     (./conftest; exit; ) >&5 2>/dev/null
12757     lt_status=$?
12758     case x$lt_status in
12759       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12760       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12761       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12762     esac
12763   else :
12764     # compilation failed
12765     lt_cv_dlopen_self=no
12766   fi
12767 fi
12768 rm -fr conftest*
12769
12770
12771 fi
12772 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12773 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12774
12775     if test "x$lt_cv_dlopen_self" = xyes; then
12776       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12777       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12778 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12779 if test "${lt_cv_dlopen_self_static+set}" = set; then
12780   echo $ECHO_N "(cached) $ECHO_C" >&6
12781 else
12782           if test "$cross_compiling" = yes; then :
12783   lt_cv_dlopen_self_static=cross
12784 else
12785   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12786   lt_status=$lt_dlunknown
12787   cat > conftest.$ac_ext <<_LT_EOF
12788 #line 12788 "configure"
12789 #include "confdefs.h"
12790
12791 #if HAVE_DLFCN_H
12792 #include <dlfcn.h>
12793 #endif
12794
12795 #include <stdio.h>
12796
12797 #ifdef RTLD_GLOBAL
12798 #  define LT_DLGLOBAL           RTLD_GLOBAL
12799 #else
12800 #  ifdef DL_GLOBAL
12801 #    define LT_DLGLOBAL         DL_GLOBAL
12802 #  else
12803 #    define LT_DLGLOBAL         0
12804 #  endif
12805 #endif
12806
12807 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12808    find out it does not work in some platform. */
12809 #ifndef LT_DLLAZY_OR_NOW
12810 #  ifdef RTLD_LAZY
12811 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12812 #  else
12813 #    ifdef DL_LAZY
12814 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12815 #    else
12816 #      ifdef RTLD_NOW
12817 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12818 #      else
12819 #        ifdef DL_NOW
12820 #          define LT_DLLAZY_OR_NOW      DL_NOW
12821 #        else
12822 #          define LT_DLLAZY_OR_NOW      0
12823 #        endif
12824 #      endif
12825 #    endif
12826 #  endif
12827 #endif
12828
12829 void fnord() { int i=42;}
12830 int main ()
12831 {
12832   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12833   int status = $lt_dlunknown;
12834
12835   if (self)
12836     {
12837       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12838       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12839       /* dlclose (self); */
12840     }
12841   else
12842     puts (dlerror ());
12843
12844   return status;
12845 }
12846 _LT_EOF
12847   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12848   (eval $ac_link) 2>&5
12849   ac_status=$?
12850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12852     (./conftest; exit; ) >&5 2>/dev/null
12853     lt_status=$?
12854     case x$lt_status in
12855       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12856       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12857       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12858     esac
12859   else :
12860     # compilation failed
12861     lt_cv_dlopen_self_static=no
12862   fi
12863 fi
12864 rm -fr conftest*
12865
12866
12867 fi
12868 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12869 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12870     fi
12871
12872     CPPFLAGS="$save_CPPFLAGS"
12873     LDFLAGS="$save_LDFLAGS"
12874     LIBS="$save_LIBS"
12875     ;;
12876   esac
12877
12878   case $lt_cv_dlopen_self in
12879   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12880   *) enable_dlopen_self=unknown ;;
12881   esac
12882
12883   case $lt_cv_dlopen_self_static in
12884   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12885   *) enable_dlopen_self_static=unknown ;;
12886   esac
12887 fi
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905 striplib=
12906 old_striplib=
12907 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12908 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12909 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12910   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12911   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12912   { echo "$as_me:$LINENO: result: yes" >&5
12913 echo "${ECHO_T}yes" >&6; }
12914 else
12915 # FIXME - insert some real tests, host_os isn't really good enough
12916   case $host_os in
12917   darwin*)
12918     if test -n "$STRIP" ; then
12919       striplib="$STRIP -x"
12920       old_striplib="$STRIP -S"
12921       { echo "$as_me:$LINENO: result: yes" >&5
12922 echo "${ECHO_T}yes" >&6; }
12923     else
12924       { echo "$as_me:$LINENO: result: no" >&5
12925 echo "${ECHO_T}no" >&6; }
12926     fi
12927     ;;
12928   *)
12929     { echo "$as_me:$LINENO: result: no" >&5
12930 echo "${ECHO_T}no" >&6; }
12931     ;;
12932   esac
12933 fi
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946   # Report which library types will actually be built
12947   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12948 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12949   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12950 echo "${ECHO_T}$can_build_shared" >&6; }
12951
12952   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12953 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12954   test "$can_build_shared" = "no" && enable_shared=no
12955
12956   # On AIX, shared libraries and static libraries use the same namespace, and
12957   # are all built from PIC.
12958   case $host_os in
12959   aix3*)
12960     test "$enable_shared" = yes && enable_static=no
12961     if test -n "$RANLIB"; then
12962       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12963       postinstall_cmds='$RANLIB $lib'
12964     fi
12965     ;;
12966
12967   aix[4-9]*)
12968     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12969       test "$enable_shared" = yes && enable_static=no
12970     fi
12971     ;;
12972   esac
12973   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12974 echo "${ECHO_T}$enable_shared" >&6; }
12975
12976   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12977 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12978   # Make sure either enable_shared or enable_static is yes.
12979   test "$enable_shared" = yes || enable_static=yes
12980   { echo "$as_me:$LINENO: result: $enable_static" >&5
12981 echo "${ECHO_T}$enable_static" >&6; }
12982
12983
12984
12985
12986 fi
12987 ac_ext=c
12988 ac_cpp='$CPP $CPPFLAGS'
12989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12992
12993 CC="$lt_save_CC"
12994
12995
12996 ac_ext=cpp
12997 ac_cpp='$CXXCPP $CPPFLAGS'
12998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13001
13002 archive_cmds_need_lc_CXX=no
13003 allow_undefined_flag_CXX=
13004 always_export_symbols_CXX=no
13005 archive_expsym_cmds_CXX=
13006 compiler_needs_object_CXX=no
13007 export_dynamic_flag_spec_CXX=
13008 hardcode_direct_CXX=no
13009 hardcode_direct_absolute_CXX=no
13010 hardcode_libdir_flag_spec_CXX=
13011 hardcode_libdir_flag_spec_ld_CXX=
13012 hardcode_libdir_separator_CXX=
13013 hardcode_minus_L_CXX=no
13014 hardcode_shlibpath_var_CXX=unsupported
13015 hardcode_automatic_CXX=no
13016 inherit_rpath_CXX=no
13017 module_cmds_CXX=
13018 module_expsym_cmds_CXX=
13019 link_all_deplibs_CXX=unknown
13020 old_archive_cmds_CXX=$old_archive_cmds
13021 no_undefined_flag_CXX=
13022 whole_archive_flag_spec_CXX=
13023 enable_shared_with_static_runtimes_CXX=no
13024
13025 # Source file extension for C++ test sources.
13026 ac_ext=cpp
13027
13028 # Object file extension for compiled C++ test sources.
13029 objext=o
13030 objext_CXX=$objext
13031
13032 # No sense in running all these tests if we already determined that
13033 # the CXX compiler isn't working.  Some variables (like enable_shared)
13034 # are currently assumed to apply to all compilers on this platform,
13035 # and will be corrupted by setting them based on a non-working compiler.
13036 if test "$_lt_caught_CXX_error" != yes; then
13037   # Code to be used in simple compile tests
13038   lt_simple_compile_test_code="int some_variable = 0;"
13039
13040   # Code to be used in simple link tests
13041   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13042
13043   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13044
13045
13046
13047
13048
13049
13050 # If no C compiler was specified, use CC.
13051 LTCC=${LTCC-"$CC"}
13052
13053 # If no C compiler flags were specified, use CFLAGS.
13054 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13055
13056 # Allow CC to be a program name with arguments.
13057 compiler=$CC
13058
13059
13060   # save warnings/boilerplate of simple test code
13061   ac_outfile=conftest.$ac_objext
13062 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13063 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13064 _lt_compiler_boilerplate=`cat conftest.err`
13065 $RM conftest*
13066
13067   ac_outfile=conftest.$ac_objext
13068 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13069 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13070 _lt_linker_boilerplate=`cat conftest.err`
13071 $RM -r conftest*
13072
13073
13074   # Allow CC to be a program name with arguments.
13075   lt_save_CC=$CC
13076   lt_save_LD=$LD
13077   lt_save_GCC=$GCC
13078   GCC=$GXX
13079   lt_save_with_gnu_ld=$with_gnu_ld
13080   lt_save_path_LD=$lt_cv_path_LD
13081   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13082     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13083   else
13084     $as_unset lt_cv_prog_gnu_ld
13085   fi
13086   if test -n "${lt_cv_path_LDCXX+set}"; then
13087     lt_cv_path_LD=$lt_cv_path_LDCXX
13088   else
13089     $as_unset lt_cv_path_LD
13090   fi
13091   test -z "${LDCXX+set}" || LD=$LDCXX
13092   CC=${CXX-"c++"}
13093   compiler=$CC
13094   compiler_CXX=$CC
13095   for cc_temp in $compiler""; do
13096   case $cc_temp in
13097     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13098     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13099     \-*) ;;
13100     *) break;;
13101   esac
13102 done
13103 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13104
13105
13106   if test -n "$compiler"; then
13107     # We don't want -fno-exception when compiling C++ code, so set the
13108     # no_builtin_flag separately
13109     if test "$GXX" = yes; then
13110       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13111     else
13112       lt_prog_compiler_no_builtin_flag_CXX=
13113     fi
13114
13115     if test "$GXX" = yes; then
13116       # Set up default GNU C++ configuration
13117
13118
13119
13120 # Check whether --with-gnu-ld was given.
13121 if test "${with_gnu_ld+set}" = set; then
13122   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13123 else
13124   with_gnu_ld=no
13125 fi
13126
13127 ac_prog=ld
13128 if test "$GCC" = yes; then
13129   # Check if gcc -print-prog-name=ld gives a path.
13130   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13131 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13132   case $host in
13133   *-*-mingw*)
13134     # gcc leaves a trailing carriage return which upsets mingw
13135     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13136   *)
13137     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13138   esac
13139   case $ac_prog in
13140     # Accept absolute paths.
13141     [\\/]* | ?:[\\/]*)
13142       re_direlt='/[^/][^/]*/\.\./'
13143       # Canonicalize the pathname of ld
13144       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13145       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13146         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13147       done
13148       test -z "$LD" && LD="$ac_prog"
13149       ;;
13150   "")
13151     # If it fails, then pretend we aren't using GCC.
13152     ac_prog=ld
13153     ;;
13154   *)
13155     # If it is relative, then search for the first ld in PATH.
13156     with_gnu_ld=unknown
13157     ;;
13158   esac
13159 elif test "$with_gnu_ld" = yes; then
13160   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13161 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13162 else
13163   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13164 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13165 fi
13166 if test "${lt_cv_path_LD+set}" = set; then
13167   echo $ECHO_N "(cached) $ECHO_C" >&6
13168 else
13169   if test -z "$LD"; then
13170   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13171   for ac_dir in $PATH; do
13172     IFS="$lt_save_ifs"
13173     test -z "$ac_dir" && ac_dir=.
13174     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13175       lt_cv_path_LD="$ac_dir/$ac_prog"
13176       # Check to see if the program is GNU ld.  I'd rather use --version,
13177       # but apparently some variants of GNU ld only accept -v.
13178       # Break only if it was the GNU/non-GNU ld that we prefer.
13179       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13180       *GNU* | *'with BFD'*)
13181         test "$with_gnu_ld" != no && break
13182         ;;
13183       *)
13184         test "$with_gnu_ld" != yes && break
13185         ;;
13186       esac
13187     fi
13188   done
13189   IFS="$lt_save_ifs"
13190 else
13191   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13192 fi
13193 fi
13194
13195 LD="$lt_cv_path_LD"
13196 if test -n "$LD"; then
13197   { echo "$as_me:$LINENO: result: $LD" >&5
13198 echo "${ECHO_T}$LD" >&6; }
13199 else
13200   { echo "$as_me:$LINENO: result: no" >&5
13201 echo "${ECHO_T}no" >&6; }
13202 fi
13203 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13204 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13205    { (exit 1); exit 1; }; }
13206 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13207 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13208 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13209   echo $ECHO_N "(cached) $ECHO_C" >&6
13210 else
13211   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13212 case `$LD -v 2>&1 </dev/null` in
13213 *GNU* | *'with BFD'*)
13214   lt_cv_prog_gnu_ld=yes
13215   ;;
13216 *)
13217   lt_cv_prog_gnu_ld=no
13218   ;;
13219 esac
13220 fi
13221 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13222 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13223 with_gnu_ld=$lt_cv_prog_gnu_ld
13224
13225
13226
13227
13228
13229
13230
13231       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13232       # archiving commands below assume that GNU ld is being used.
13233       if test "$with_gnu_ld" = yes; then
13234         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13235         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'
13236
13237         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13238         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13239
13240         # If archive_cmds runs LD, not CC, wlarc should be empty
13241         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13242         #     investigate it a little bit more. (MM)
13243         wlarc='${wl}'
13244
13245         # ancient GNU ld didn't support --whole-archive et. al.
13246         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13247           $GREP 'no-whole-archive' > /dev/null; then
13248           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13249         else
13250           whole_archive_flag_spec_CXX=
13251         fi
13252       else
13253         with_gnu_ld=no
13254         wlarc=
13255
13256         # A generic and very simple default shared library creation
13257         # command for GNU C++ for the case where it uses the native
13258         # linker, instead of GNU ld.  If possible, this setting should
13259         # overridden to take advantage of the native linker features on
13260         # the platform it is being used on.
13261         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13262       fi
13263
13264       # Commands to make compiler produce verbose output that lists
13265       # what "hidden" libraries, object files and flags are used when
13266       # linking a shared library.
13267       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13268
13269     else
13270       GXX=no
13271       with_gnu_ld=no
13272       wlarc=
13273     fi
13274
13275     # PORTME: fill in a description of your system's C++ link characteristics
13276     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13277 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13278     ld_shlibs_CXX=yes
13279     case $host_os in
13280       aix3*)
13281         # FIXME: insert proper C++ library support
13282         ld_shlibs_CXX=no
13283         ;;
13284       aix[4-9]*)
13285         if test "$host_cpu" = ia64; then
13286           # On IA64, the linker does run time linking by default, so we don't
13287           # have to do anything special.
13288           aix_use_runtimelinking=no
13289           exp_sym_flag='-Bexport'
13290           no_entry_flag=""
13291         else
13292           aix_use_runtimelinking=no
13293
13294           # Test if we are trying to use run time linking or normal
13295           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13296           # need to do runtime linking.
13297           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13298             for ld_flag in $LDFLAGS; do
13299               case $ld_flag in
13300               *-brtl*)
13301                 aix_use_runtimelinking=yes
13302                 break
13303                 ;;
13304               esac
13305             done
13306             ;;
13307           esac
13308
13309           exp_sym_flag='-bexport'
13310           no_entry_flag='-bnoentry'
13311         fi
13312
13313         # When large executables or shared objects are built, AIX ld can
13314         # have problems creating the table of contents.  If linking a library
13315         # or program results in "error TOC overflow" add -mminimal-toc to
13316         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13317         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13318
13319         archive_cmds_CXX=''
13320         hardcode_direct_CXX=yes
13321         hardcode_direct_absolute_CXX=yes
13322         hardcode_libdir_separator_CXX=':'
13323         link_all_deplibs_CXX=yes
13324         file_list_spec_CXX='${wl}-f,'
13325
13326         if test "$GXX" = yes; then
13327           case $host_os in aix4.[012]|aix4.[012].*)
13328           # We only want to do this on AIX 4.2 and lower, the check
13329           # below for broken collect2 doesn't work under 4.3+
13330           collect2name=`${CC} -print-prog-name=collect2`
13331           if test -f "$collect2name" &&
13332              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13333           then
13334             # We have reworked collect2
13335             :
13336           else
13337             # We have old collect2
13338             hardcode_direct_CXX=unsupported
13339             # It fails to find uninstalled libraries when the uninstalled
13340             # path is not listed in the libpath.  Setting hardcode_minus_L
13341             # to unsupported forces relinking
13342             hardcode_minus_L_CXX=yes
13343             hardcode_libdir_flag_spec_CXX='-L$libdir'
13344             hardcode_libdir_separator_CXX=
13345           fi
13346           esac
13347           shared_flag='-shared'
13348           if test "$aix_use_runtimelinking" = yes; then
13349             shared_flag="$shared_flag "'${wl}-G'
13350           fi
13351         else
13352           # not using gcc
13353           if test "$host_cpu" = ia64; then
13354           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13355           # chokes on -Wl,-G. The following line is correct:
13356           shared_flag='-G'
13357           else
13358             if test "$aix_use_runtimelinking" = yes; then
13359               shared_flag='${wl}-G'
13360             else
13361               shared_flag='${wl}-bM:SRE'
13362             fi
13363           fi
13364         fi
13365
13366         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13367         # It seems that -bexpall does not export symbols beginning with
13368         # underscore (_), so it is better to generate a list of symbols to
13369         # export.
13370         always_export_symbols_CXX=yes
13371         if test "$aix_use_runtimelinking" = yes; then
13372           # Warning - without using the other runtime loading flags (-brtl),
13373           # -berok will link without error, but may produce a broken library.
13374           allow_undefined_flag_CXX='-berok'
13375           # Determine the default libpath from the value encoded in an empty
13376           # executable.
13377           cat >conftest.$ac_ext <<_ACEOF
13378 /* confdefs.h.  */
13379 _ACEOF
13380 cat confdefs.h >>conftest.$ac_ext
13381 cat >>conftest.$ac_ext <<_ACEOF
13382 /* end confdefs.h.  */
13383
13384 int
13385 main ()
13386 {
13387
13388   ;
13389   return 0;
13390 }
13391 _ACEOF
13392 rm -f conftest.$ac_objext conftest$ac_exeext
13393 if { (ac_try="$ac_link"
13394 case "(($ac_try" in
13395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396   *) ac_try_echo=$ac_try;;
13397 esac
13398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399   (eval "$ac_link") 2>conftest.er1
13400   ac_status=$?
13401   grep -v '^ *+' conftest.er1 >conftest.err
13402   rm -f conftest.er1
13403   cat conftest.err >&5
13404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405   (exit $ac_status); } && {
13406          test -z "$ac_cxx_werror_flag" ||
13407          test ! -s conftest.err
13408        } && test -s conftest$ac_exeext &&
13409        $as_test_x conftest$ac_exeext; then
13410
13411 lt_aix_libpath_sed='
13412     /Import File Strings/,/^$/ {
13413         /^0/ {
13414             s/^0  *\(.*\)$/\1/
13415             p
13416         }
13417     }'
13418 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13419 # Check for a 64-bit object if we didn't find anything.
13420 if test -z "$aix_libpath"; then
13421   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13422 fi
13423 else
13424   echo "$as_me: failed program was:" >&5
13425 sed 's/^/| /' conftest.$ac_ext >&5
13426
13427
13428 fi
13429
13430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13431       conftest$ac_exeext conftest.$ac_ext
13432 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13433
13434           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13435
13436           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"
13437         else
13438           if test "$host_cpu" = ia64; then
13439             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13440             allow_undefined_flag_CXX="-z nodefs"
13441             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"
13442           else
13443             # Determine the default libpath from the value encoded in an
13444             # empty executable.
13445             cat >conftest.$ac_ext <<_ACEOF
13446 /* confdefs.h.  */
13447 _ACEOF
13448 cat confdefs.h >>conftest.$ac_ext
13449 cat >>conftest.$ac_ext <<_ACEOF
13450 /* end confdefs.h.  */
13451
13452 int
13453 main ()
13454 {
13455
13456   ;
13457   return 0;
13458 }
13459 _ACEOF
13460 rm -f conftest.$ac_objext conftest$ac_exeext
13461 if { (ac_try="$ac_link"
13462 case "(($ac_try" in
13463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464   *) ac_try_echo=$ac_try;;
13465 esac
13466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467   (eval "$ac_link") 2>conftest.er1
13468   ac_status=$?
13469   grep -v '^ *+' conftest.er1 >conftest.err
13470   rm -f conftest.er1
13471   cat conftest.err >&5
13472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473   (exit $ac_status); } && {
13474          test -z "$ac_cxx_werror_flag" ||
13475          test ! -s conftest.err
13476        } && test -s conftest$ac_exeext &&
13477        $as_test_x conftest$ac_exeext; then
13478
13479 lt_aix_libpath_sed='
13480     /Import File Strings/,/^$/ {
13481         /^0/ {
13482             s/^0  *\(.*\)$/\1/
13483             p
13484         }
13485     }'
13486 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13487 # Check for a 64-bit object if we didn't find anything.
13488 if test -z "$aix_libpath"; then
13489   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13490 fi
13491 else
13492   echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13494
13495
13496 fi
13497
13498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13499       conftest$ac_exeext conftest.$ac_ext
13500 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13501
13502             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13503             # Warning - without using the other run time loading flags,
13504             # -berok will link without error, but may produce a broken library.
13505             no_undefined_flag_CXX=' ${wl}-bernotok'
13506             allow_undefined_flag_CXX=' ${wl}-berok'
13507             # Exported symbols can be pulled into shared objects from archives
13508             whole_archive_flag_spec_CXX='$convenience'
13509             archive_cmds_need_lc_CXX=yes
13510             # This is similar to how AIX traditionally builds its shared
13511             # libraries.
13512             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'
13513           fi
13514         fi
13515         ;;
13516
13517       beos*)
13518         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13519           allow_undefined_flag_CXX=unsupported
13520           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13521           # support --undefined.  This deserves some investigation.  FIXME
13522           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13523         else
13524           ld_shlibs_CXX=no
13525         fi
13526         ;;
13527
13528       chorus*)
13529         case $cc_basename in
13530           *)
13531           # FIXME: insert proper C++ library support
13532           ld_shlibs_CXX=no
13533           ;;
13534         esac
13535         ;;
13536
13537       cygwin* | mingw* | pw32* | cegcc*)
13538         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13539         # as there is no search path for DLLs.
13540         hardcode_libdir_flag_spec_CXX='-L$libdir'
13541         allow_undefined_flag_CXX=unsupported
13542         always_export_symbols_CXX=no
13543         enable_shared_with_static_runtimes_CXX=yes
13544
13545         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13546           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'
13547           # If the export-symbols file already is a .def file (1st line
13548           # is EXPORTS), use it as is; otherwise, prepend...
13549           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13550             cp $export_symbols $output_objdir/$soname.def;
13551           else
13552             echo EXPORTS > $output_objdir/$soname.def;
13553             cat $export_symbols >> $output_objdir/$soname.def;
13554           fi~
13555           $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'
13556         else
13557           ld_shlibs_CXX=no
13558         fi
13559         ;;
13560       darwin* | rhapsody*)
13561
13562
13563   archive_cmds_need_lc_CXX=no
13564   hardcode_direct_CXX=no
13565   hardcode_automatic_CXX=yes
13566   hardcode_shlibpath_var_CXX=unsupported
13567   whole_archive_flag_spec_CXX=''
13568   link_all_deplibs_CXX=yes
13569   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13570   case $cc_basename in
13571      ifort*) _lt_dar_can_shared=yes ;;
13572      *) _lt_dar_can_shared=$GCC ;;
13573   esac
13574   if test "$_lt_dar_can_shared" = "yes"; then
13575     output_verbose_link_cmd=echo
13576     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}"
13577     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13578     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}"
13579     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}"
13580        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13581       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}"
13582       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}"
13583     fi
13584
13585   else
13586   ld_shlibs_CXX=no
13587   fi
13588
13589         ;;
13590
13591       dgux*)
13592         case $cc_basename in
13593           ec++*)
13594             # FIXME: insert proper C++ library support
13595             ld_shlibs_CXX=no
13596             ;;
13597           ghcx*)
13598             # Green Hills C++ Compiler
13599             # FIXME: insert proper C++ library support
13600             ld_shlibs_CXX=no
13601             ;;
13602           *)
13603             # FIXME: insert proper C++ library support
13604             ld_shlibs_CXX=no
13605             ;;
13606         esac
13607         ;;
13608
13609       freebsd[12]*)
13610         # C++ shared libraries reported to be fairly broken before
13611         # switch to ELF
13612         ld_shlibs_CXX=no
13613         ;;
13614
13615       freebsd-elf*)
13616         archive_cmds_need_lc_CXX=no
13617         ;;
13618
13619       freebsd* | dragonfly*)
13620         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13621         # conventions
13622         ld_shlibs_CXX=yes
13623         ;;
13624
13625       gnu*)
13626         ;;
13627
13628       hpux9*)
13629         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13630         hardcode_libdir_separator_CXX=:
13631         export_dynamic_flag_spec_CXX='${wl}-E'
13632         hardcode_direct_CXX=yes
13633         hardcode_minus_L_CXX=yes # Not in the search PATH,
13634                                              # but as the default
13635                                              # location of the library.
13636
13637         case $cc_basename in
13638           CC*)
13639             # FIXME: insert proper C++ library support
13640             ld_shlibs_CXX=no
13641             ;;
13642           aCC*)
13643             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'
13644             # Commands to make compiler produce verbose output that lists
13645             # what "hidden" libraries, object files and flags are used when
13646             # linking a shared library.
13647             #
13648             # There doesn't appear to be a way to prevent this compiler from
13649             # explicitly linking system object files so we need to strip them
13650             # from the output so that they don't get included in the library
13651             # dependencies.
13652             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'
13653             ;;
13654           *)
13655             if test "$GXX" = yes; then
13656               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'
13657             else
13658               # FIXME: insert proper C++ library support
13659               ld_shlibs_CXX=no
13660             fi
13661             ;;
13662         esac
13663         ;;
13664
13665       hpux10*|hpux11*)
13666         if test $with_gnu_ld = no; then
13667           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13668           hardcode_libdir_separator_CXX=:
13669
13670           case $host_cpu in
13671             hppa*64*|ia64*)
13672               ;;
13673             *)
13674               export_dynamic_flag_spec_CXX='${wl}-E'
13675               ;;
13676           esac
13677         fi
13678         case $host_cpu in
13679           hppa*64*|ia64*)
13680             hardcode_direct_CXX=no
13681             hardcode_shlibpath_var_CXX=no
13682             ;;
13683           *)
13684             hardcode_direct_CXX=yes
13685             hardcode_direct_absolute_CXX=yes
13686             hardcode_minus_L_CXX=yes # Not in the search PATH,
13687                                                  # but as the default
13688                                                  # location of the library.
13689             ;;
13690         esac
13691
13692         case $cc_basename in
13693           CC*)
13694             # FIXME: insert proper C++ library support
13695             ld_shlibs_CXX=no
13696             ;;
13697           aCC*)
13698             case $host_cpu in
13699               hppa*64*)
13700                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13701                 ;;
13702               ia64*)
13703                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13704                 ;;
13705               *)
13706                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13707                 ;;
13708             esac
13709             # Commands to make compiler produce verbose output that lists
13710             # what "hidden" libraries, object files and flags are used when
13711             # linking a shared library.
13712             #
13713             # There doesn't appear to be a way to prevent this compiler from
13714             # explicitly linking system object files so we need to strip them
13715             # from the output so that they don't get included in the library
13716             # dependencies.
13717             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'
13718             ;;
13719           *)
13720             if test "$GXX" = yes; then
13721               if test $with_gnu_ld = no; then
13722                 case $host_cpu in
13723                   hppa*64*)
13724                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13725                     ;;
13726                   ia64*)
13727                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13728                     ;;
13729                   *)
13730                     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'
13731                     ;;
13732                 esac
13733               fi
13734             else
13735               # FIXME: insert proper C++ library support
13736               ld_shlibs_CXX=no
13737             fi
13738             ;;
13739         esac
13740         ;;
13741
13742       interix[3-9]*)
13743         hardcode_direct_CXX=no
13744         hardcode_shlibpath_var_CXX=no
13745         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13746         export_dynamic_flag_spec_CXX='${wl}-E'
13747         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13748         # Instead, shared libraries are loaded at an image base (0x10000000 by
13749         # default) and relocated if they conflict, which is a slow very memory
13750         # consuming and fragmenting process.  To avoid this, we pick a random,
13751         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13752         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13753         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'
13754         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'
13755         ;;
13756       irix5* | irix6*)
13757         case $cc_basename in
13758           CC*)
13759             # SGI C++
13760             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'
13761
13762             # Archives containing C++ object files must be created using
13763             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13764             # necessary to make sure instantiated templates are included
13765             # in the archive.
13766             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13767             ;;
13768           *)
13769             if test "$GXX" = yes; then
13770               if test "$with_gnu_ld" = no; then
13771                 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'
13772               else
13773                 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'
13774               fi
13775             fi
13776             link_all_deplibs_CXX=yes
13777             ;;
13778         esac
13779         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13780         hardcode_libdir_separator_CXX=:
13781         inherit_rpath_CXX=yes
13782         ;;
13783
13784       linux* | k*bsd*-gnu)
13785         case $cc_basename in
13786           KCC*)
13787             # Kuck and Associates, Inc. (KAI) C++ Compiler
13788
13789             # KCC will only create a shared library if the output file
13790             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13791             # to its proper name (with version) after linking.
13792             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'
13793             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'
13794             # Commands to make compiler produce verbose output that lists
13795             # what "hidden" libraries, object files and flags are used when
13796             # linking a shared library.
13797             #
13798             # There doesn't appear to be a way to prevent this compiler from
13799             # explicitly linking system object files so we need to strip them
13800             # from the output so that they don't get included in the library
13801             # dependencies.
13802             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'
13803
13804             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13805             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13806
13807             # Archives containing C++ object files must be created using
13808             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13809             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13810             ;;
13811           icpc* | ecpc* )
13812             # Intel C++
13813             with_gnu_ld=yes
13814             # version 8.0 and above of icpc choke on multiply defined symbols
13815             # if we add $predep_objects and $postdep_objects, however 7.1 and
13816             # earlier do not add the objects themselves.
13817             case `$CC -V 2>&1` in
13818               *"Version 7."*)
13819                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13820                 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'
13821                 ;;
13822               *)  # Version 8.0 or newer
13823                 tmp_idyn=
13824                 case $host_cpu in
13825                   ia64*) tmp_idyn=' -i_dynamic';;
13826                 esac
13827                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13828                 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'
13829                 ;;
13830             esac
13831             archive_cmds_need_lc_CXX=no
13832             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13833             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13834             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13835             ;;
13836           pgCC* | pgcpp*)
13837             # Portland Group C++ compiler
13838             case `$CC -V` in
13839             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13840               prelink_cmds_CXX='tpldir=Template.dir~
13841                 rm -rf $tpldir~
13842                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13843                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13844               old_archive_cmds_CXX='tpldir=Template.dir~
13845                 rm -rf $tpldir~
13846                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13847                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13848                 $RANLIB $oldlib'
13849               archive_cmds_CXX='tpldir=Template.dir~
13850                 rm -rf $tpldir~
13851                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13852                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13853               archive_expsym_cmds_CXX='tpldir=Template.dir~
13854                 rm -rf $tpldir~
13855                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13856                 $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'
13857               ;;
13858             *) # Version 6 will use weak symbols
13859               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13860               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'
13861               ;;
13862             esac
13863
13864             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13865             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13866             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'
13867             ;;
13868           cxx*)
13869             # Compaq C++
13870             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13871             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'
13872
13873             runpath_var=LD_RUN_PATH
13874             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13875             hardcode_libdir_separator_CXX=:
13876
13877             # Commands to make compiler produce verbose output that lists
13878             # what "hidden" libraries, object files and flags are used when
13879             # linking a shared library.
13880             #
13881             # There doesn't appear to be a way to prevent this compiler from
13882             # explicitly linking system object files so we need to strip them
13883             # from the output so that they don't get included in the library
13884             # dependencies.
13885             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'
13886             ;;
13887           xl*)
13888             # IBM XL 8.0 on PPC, with GNU ld
13889             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13890             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13891             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13892             if test "x$supports_anon_versioning" = xyes; then
13893               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13894                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13895                 echo "local: *; };" >> $output_objdir/$libname.ver~
13896                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13897             fi
13898             ;;
13899           *)
13900             case `$CC -V 2>&1 | sed 5q` in
13901             *Sun\ C*)
13902               # Sun C++ 5.9
13903               no_undefined_flag_CXX=' -zdefs'
13904               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13905               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'
13906               hardcode_libdir_flag_spec_CXX='-R$libdir'
13907               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'
13908               compiler_needs_object_CXX=yes
13909
13910               # Not sure whether something based on
13911               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13912               # would be better.
13913               output_verbose_link_cmd='echo'
13914
13915               # Archives containing C++ object files must be created using
13916               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13917               # necessary to make sure instantiated templates are included
13918               # in the archive.
13919               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13920               ;;
13921             esac
13922             ;;
13923         esac
13924         ;;
13925
13926       lynxos*)
13927         # FIXME: insert proper C++ library support
13928         ld_shlibs_CXX=no
13929         ;;
13930
13931       m88k*)
13932         # FIXME: insert proper C++ library support
13933         ld_shlibs_CXX=no
13934         ;;
13935
13936       mvs*)
13937         case $cc_basename in
13938           cxx*)
13939             # FIXME: insert proper C++ library support
13940             ld_shlibs_CXX=no
13941             ;;
13942           *)
13943             # FIXME: insert proper C++ library support
13944             ld_shlibs_CXX=no
13945             ;;
13946         esac
13947         ;;
13948
13949       netbsd*)
13950         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13951           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13952           wlarc=
13953           hardcode_libdir_flag_spec_CXX='-R$libdir'
13954           hardcode_direct_CXX=yes
13955           hardcode_shlibpath_var_CXX=no
13956         fi
13957         # Workaround some broken pre-1.5 toolchains
13958         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13959         ;;
13960
13961       *nto* | *qnx*)
13962         ld_shlibs_CXX=yes
13963         ;;
13964
13965       openbsd2*)
13966         # C++ shared libraries are fairly broken
13967         ld_shlibs_CXX=no
13968         ;;
13969
13970       openbsd*)
13971         if test -f /usr/libexec/ld.so; then
13972           hardcode_direct_CXX=yes
13973           hardcode_shlibpath_var_CXX=no
13974           hardcode_direct_absolute_CXX=yes
13975           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13976           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13977           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13978             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13979             export_dynamic_flag_spec_CXX='${wl}-E'
13980             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13981           fi
13982           output_verbose_link_cmd=echo
13983         else
13984           ld_shlibs_CXX=no
13985         fi
13986         ;;
13987
13988       osf3* | osf4* | osf5*)
13989         case $cc_basename in
13990           KCC*)
13991             # Kuck and Associates, Inc. (KAI) C++ Compiler
13992
13993             # KCC will only create a shared library if the output file
13994             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13995             # to its proper name (with version) after linking.
13996             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'
13997
13998             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13999             hardcode_libdir_separator_CXX=:
14000
14001             # Archives containing C++ object files must be created using
14002             # the KAI C++ compiler.
14003             case $host in
14004               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14005               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14006             esac
14007             ;;
14008           RCC*)
14009             # Rational C++ 2.4.1
14010             # FIXME: insert proper C++ library support
14011             ld_shlibs_CXX=no
14012             ;;
14013           cxx*)
14014             case $host in
14015               osf3*)
14016                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14017                 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'
14018                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14019                 ;;
14020               *)
14021                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14022                 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'
14023                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14024                   echo "-hidden">> $lib.exp~
14025                   $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~
14026                   $RM $lib.exp'
14027                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14028                 ;;
14029             esac
14030
14031             hardcode_libdir_separator_CXX=:
14032
14033             # Commands to make compiler produce verbose output that lists
14034             # what "hidden" libraries, object files and flags are used when
14035             # linking a shared library.
14036             #
14037             # There doesn't appear to be a way to prevent this compiler from
14038             # explicitly linking system object files so we need to strip them
14039             # from the output so that they don't get included in the library
14040             # dependencies.
14041             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'
14042             ;;
14043           *)
14044             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14045               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14046               case $host in
14047                 osf3*)
14048                   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'
14049                   ;;
14050                 *)
14051                   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'
14052                   ;;
14053               esac
14054
14055               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14056               hardcode_libdir_separator_CXX=:
14057
14058               # Commands to make compiler produce verbose output that lists
14059               # what "hidden" libraries, object files and flags are used when
14060               # linking a shared library.
14061               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14062
14063             else
14064               # FIXME: insert proper C++ library support
14065               ld_shlibs_CXX=no
14066             fi
14067             ;;
14068         esac
14069         ;;
14070
14071       psos*)
14072         # FIXME: insert proper C++ library support
14073         ld_shlibs_CXX=no
14074         ;;
14075
14076       sunos4*)
14077         case $cc_basename in
14078           CC*)
14079             # Sun C++ 4.x
14080             # FIXME: insert proper C++ library support
14081             ld_shlibs_CXX=no
14082             ;;
14083           lcc*)
14084             # Lucid
14085             # FIXME: insert proper C++ library support
14086             ld_shlibs_CXX=no
14087             ;;
14088           *)
14089             # FIXME: insert proper C++ library support
14090             ld_shlibs_CXX=no
14091             ;;
14092         esac
14093         ;;
14094
14095       solaris*)
14096         case $cc_basename in
14097           CC*)
14098             # Sun C++ 4.2, 5.x and Centerline C++
14099             archive_cmds_need_lc_CXX=yes
14100             no_undefined_flag_CXX=' -zdefs'
14101             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14102             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14103               $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'
14104
14105             hardcode_libdir_flag_spec_CXX='-R$libdir'
14106             hardcode_shlibpath_var_CXX=no
14107             case $host_os in
14108               solaris2.[0-5] | solaris2.[0-5].*) ;;
14109               *)
14110                 # The compiler driver will combine and reorder linker options,
14111                 # but understands `-z linker_flag'.
14112                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14113                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14114                 ;;
14115             esac
14116             link_all_deplibs_CXX=yes
14117
14118             output_verbose_link_cmd='echo'
14119
14120             # Archives containing C++ object files must be created using
14121             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14122             # necessary to make sure instantiated templates are included
14123             # in the archive.
14124             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14125             ;;
14126           gcx*)
14127             # Green Hills C++ Compiler
14128             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14129
14130             # The C++ compiler must be used to create the archive.
14131             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14132             ;;
14133           *)
14134             # GNU C++ compiler with Solaris linker
14135             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14136               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14137               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14138                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14139                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14140                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14141
14142                 # Commands to make compiler produce verbose output that lists
14143                 # what "hidden" libraries, object files and flags are used when
14144                 # linking a shared library.
14145                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14146               else
14147                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14148                 # platform.
14149                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14150                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14151                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14152
14153                 # Commands to make compiler produce verbose output that lists
14154                 # what "hidden" libraries, object files and flags are used when
14155                 # linking a shared library.
14156                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14157               fi
14158
14159               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14160               case $host_os in
14161                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14162                 *)
14163                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14164                   ;;
14165               esac
14166             fi
14167             ;;
14168         esac
14169         ;;
14170
14171     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14172       no_undefined_flag_CXX='${wl}-z,text'
14173       archive_cmds_need_lc_CXX=no
14174       hardcode_shlibpath_var_CXX=no
14175       runpath_var='LD_RUN_PATH'
14176
14177       case $cc_basename in
14178         CC*)
14179           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14180           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14181           ;;
14182         *)
14183           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14184           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14185           ;;
14186       esac
14187       ;;
14188
14189       sysv5* | sco3.2v5* | sco5v6*)
14190         # Note: We can NOT use -z defs as we might desire, because we do not
14191         # link with -lc, and that would cause any symbols used from libc to
14192         # always be unresolved, which means just about no library would
14193         # ever link correctly.  If we're not using GNU ld we use -z text
14194         # though, which does catch some bad symbols but isn't as heavy-handed
14195         # as -z defs.
14196         no_undefined_flag_CXX='${wl}-z,text'
14197         allow_undefined_flag_CXX='${wl}-z,nodefs'
14198         archive_cmds_need_lc_CXX=no
14199         hardcode_shlibpath_var_CXX=no
14200         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14201         hardcode_libdir_separator_CXX=':'
14202         link_all_deplibs_CXX=yes
14203         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14204         runpath_var='LD_RUN_PATH'
14205
14206         case $cc_basename in
14207           CC*)
14208             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14209             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14210             ;;
14211           *)
14212             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14213             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14214             ;;
14215         esac
14216       ;;
14217
14218       tandem*)
14219         case $cc_basename in
14220           NCC*)
14221             # NonStop-UX NCC 3.20
14222             # FIXME: insert proper C++ library support
14223             ld_shlibs_CXX=no
14224             ;;
14225           *)
14226             # FIXME: insert proper C++ library support
14227             ld_shlibs_CXX=no
14228             ;;
14229         esac
14230         ;;
14231
14232       vxworks*)
14233         # FIXME: insert proper C++ library support
14234         ld_shlibs_CXX=no
14235         ;;
14236
14237       *)
14238         # FIXME: insert proper C++ library support
14239         ld_shlibs_CXX=no
14240         ;;
14241     esac
14242
14243     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14244 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14245     test "$ld_shlibs_CXX" = no && can_build_shared=no
14246
14247     GCC_CXX="$GXX"
14248     LD_CXX="$LD"
14249
14250     ## CAVEAT EMPTOR:
14251     ## There is no encapsulation within the following macros, do not change
14252     ## the running order or otherwise move them around unless you know exactly
14253     ## what you are doing...
14254     # Dependencies to place before and after the object being linked:
14255 predep_objects_CXX=
14256 postdep_objects_CXX=
14257 predeps_CXX=
14258 postdeps_CXX=
14259 compiler_lib_search_path_CXX=
14260
14261 cat > conftest.$ac_ext <<_LT_EOF
14262 class Foo
14263 {
14264 public:
14265   Foo (void) { a = 0; }
14266 private:
14267   int a;
14268 };
14269 _LT_EOF
14270
14271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14272   (eval $ac_compile) 2>&5
14273   ac_status=$?
14274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275   (exit $ac_status); }; then
14276   # Parse the compiler output and extract the necessary
14277   # objects, libraries and library flags.
14278
14279   # Sentinel used to keep track of whether or not we are before
14280   # the conftest object file.
14281   pre_test_object_deps_done=no
14282
14283   for p in `eval "$output_verbose_link_cmd"`; do
14284     case $p in
14285
14286     -L* | -R* | -l*)
14287        # Some compilers place space between "-{L,R}" and the path.
14288        # Remove the space.
14289        if test $p = "-L" ||
14290           test $p = "-R"; then
14291          prev=$p
14292          continue
14293        else
14294          prev=
14295        fi
14296
14297        if test "$pre_test_object_deps_done" = no; then
14298          case $p in
14299          -L* | -R*)
14300            # Internal compiler library paths should come after those
14301            # provided the user.  The postdeps already come after the
14302            # user supplied libs so there is no need to process them.
14303            if test -z "$compiler_lib_search_path_CXX"; then
14304              compiler_lib_search_path_CXX="${prev}${p}"
14305            else
14306              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14307            fi
14308            ;;
14309          # The "-l" case would never come before the object being
14310          # linked, so don't bother handling this case.
14311          esac
14312        else
14313          if test -z "$postdeps_CXX"; then
14314            postdeps_CXX="${prev}${p}"
14315          else
14316            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14317          fi
14318        fi
14319        ;;
14320
14321     *.$objext)
14322        # This assumes that the test object file only shows up
14323        # once in the compiler output.
14324        if test "$p" = "conftest.$objext"; then
14325          pre_test_object_deps_done=yes
14326          continue
14327        fi
14328
14329        if test "$pre_test_object_deps_done" = no; then
14330          if test -z "$predep_objects_CXX"; then
14331            predep_objects_CXX="$p"
14332          else
14333            predep_objects_CXX="$predep_objects_CXX $p"
14334          fi
14335        else
14336          if test -z "$postdep_objects_CXX"; then
14337            postdep_objects_CXX="$p"
14338          else
14339            postdep_objects_CXX="$postdep_objects_CXX $p"
14340          fi
14341        fi
14342        ;;
14343
14344     *) ;; # Ignore the rest.
14345
14346     esac
14347   done
14348
14349   # Clean up.
14350   rm -f a.out a.exe
14351 else
14352   echo "libtool.m4: error: problem compiling CXX test program"
14353 fi
14354
14355 $RM -f confest.$objext
14356
14357 # PORTME: override above test on systems where it is broken
14358 case $host_os in
14359 interix[3-9]*)
14360   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14361   # hack all around it, let's just trust "g++" to DTRT.
14362   predep_objects_CXX=
14363   postdep_objects_CXX=
14364   postdeps_CXX=
14365   ;;
14366
14367 linux*)
14368   case `$CC -V 2>&1 | sed 5q` in
14369   *Sun\ C*)
14370     # Sun C++ 5.9
14371
14372     # The more standards-conforming stlport4 library is
14373     # incompatible with the Cstd library. Avoid specifying
14374     # it if it's in CXXFLAGS. Ignore libCrun as
14375     # -library=stlport4 depends on it.
14376     case " $CXX $CXXFLAGS " in
14377     *" -library=stlport4 "*)
14378       solaris_use_stlport4=yes
14379       ;;
14380     esac
14381
14382     if test "$solaris_use_stlport4" != yes; then
14383       postdeps_CXX='-library=Cstd -library=Crun'
14384     fi
14385     ;;
14386   esac
14387   ;;
14388
14389 solaris*)
14390   case $cc_basename in
14391   CC*)
14392     # The more standards-conforming stlport4 library is
14393     # incompatible with the Cstd library. Avoid specifying
14394     # it if it's in CXXFLAGS. Ignore libCrun as
14395     # -library=stlport4 depends on it.
14396     case " $CXX $CXXFLAGS " in
14397     *" -library=stlport4 "*)
14398       solaris_use_stlport4=yes
14399       ;;
14400     esac
14401
14402     # Adding this requires a known-good setup of shared libraries for
14403     # Sun compiler versions before 5.6, else PIC objects from an old
14404     # archive will be linked into the output, leading to subtle bugs.
14405     if test "$solaris_use_stlport4" != yes; then
14406       postdeps_CXX='-library=Cstd -library=Crun'
14407     fi
14408     ;;
14409   esac
14410   ;;
14411 esac
14412
14413
14414 case " $postdeps_CXX " in
14415 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14416 esac
14417  compiler_lib_search_dirs_CXX=
14418 if test -n "${compiler_lib_search_path_CXX}"; then
14419  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14420 fi
14421
14422
14423
14424
14425
14426
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     lt_prog_compiler_wl_CXX=
14453 lt_prog_compiler_pic_CXX=
14454 lt_prog_compiler_static_CXX=
14455
14456 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14457 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14458
14459   # C++ specific cases for pic, static, wl, etc.
14460   if test "$GXX" = yes; then
14461     lt_prog_compiler_wl_CXX='-Wl,'
14462     lt_prog_compiler_static_CXX='-static'
14463
14464     case $host_os in
14465     aix*)
14466       # All AIX code is PIC.
14467       if test "$host_cpu" = ia64; then
14468         # AIX 5 now supports IA64 processor
14469         lt_prog_compiler_static_CXX='-Bstatic'
14470       fi
14471       ;;
14472
14473     amigaos*)
14474       case $host_cpu in
14475       powerpc)
14476             # see comment about AmigaOS4 .so support
14477             lt_prog_compiler_pic_CXX='-fPIC'
14478         ;;
14479       m68k)
14480             # FIXME: we need at least 68020 code to build shared libraries, but
14481             # adding the `-m68020' flag to GCC prevents building anything better,
14482             # like `-m68040'.
14483             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14484         ;;
14485       esac
14486       ;;
14487
14488     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14489       # PIC is the default for these OSes.
14490       ;;
14491     mingw* | cygwin* | os2* | pw32* | cegcc*)
14492       # This hack is so that the source file can tell whether it is being
14493       # built for inclusion in a dll (and should export symbols for example).
14494       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14495       # (--disable-auto-import) libraries
14496       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14497       ;;
14498     darwin* | rhapsody*)
14499       # PIC is the default on this platform
14500       # Common symbols not allowed in MH_DYLIB files
14501       lt_prog_compiler_pic_CXX='-fno-common'
14502       ;;
14503     *djgpp*)
14504       # DJGPP does not support shared libraries at all
14505       lt_prog_compiler_pic_CXX=
14506       ;;
14507     interix[3-9]*)
14508       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14509       # Instead, we relocate shared libraries at runtime.
14510       ;;
14511     sysv4*MP*)
14512       if test -d /usr/nec; then
14513         lt_prog_compiler_pic_CXX=-Kconform_pic
14514       fi
14515       ;;
14516     hpux*)
14517       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14518       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14519       # sets the default TLS model and affects inlining.
14520       case $host_cpu in
14521       hppa*64*)
14522         ;;
14523       *)
14524         lt_prog_compiler_pic_CXX='-fPIC'
14525         ;;
14526       esac
14527       ;;
14528     *qnx* | *nto*)
14529       # QNX uses GNU C++, but need to define -shared option too, otherwise
14530       # it will coredump.
14531       lt_prog_compiler_pic_CXX='-fPIC -shared'
14532       ;;
14533     *)
14534       lt_prog_compiler_pic_CXX='-fPIC'
14535       ;;
14536     esac
14537   else
14538     case $host_os in
14539       aix[4-9]*)
14540         # All AIX code is PIC.
14541         if test "$host_cpu" = ia64; then
14542           # AIX 5 now supports IA64 processor
14543           lt_prog_compiler_static_CXX='-Bstatic'
14544         else
14545           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14546         fi
14547         ;;
14548       chorus*)
14549         case $cc_basename in
14550         cxch68*)
14551           # Green Hills C++ Compiler
14552           # _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"
14553           ;;
14554         esac
14555         ;;
14556       dgux*)
14557         case $cc_basename in
14558           ec++*)
14559             lt_prog_compiler_pic_CXX='-KPIC'
14560             ;;
14561           ghcx*)
14562             # Green Hills C++ Compiler
14563             lt_prog_compiler_pic_CXX='-pic'
14564             ;;
14565           *)
14566             ;;
14567         esac
14568         ;;
14569       freebsd* | dragonfly*)
14570         # FreeBSD uses GNU C++
14571         ;;
14572       hpux9* | hpux10* | hpux11*)
14573         case $cc_basename in
14574           CC*)
14575             lt_prog_compiler_wl_CXX='-Wl,'
14576             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14577             if test "$host_cpu" != ia64; then
14578               lt_prog_compiler_pic_CXX='+Z'
14579             fi
14580             ;;
14581           aCC*)
14582             lt_prog_compiler_wl_CXX='-Wl,'
14583             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14584             case $host_cpu in
14585             hppa*64*|ia64*)
14586               # +Z the default
14587               ;;
14588             *)
14589               lt_prog_compiler_pic_CXX='+Z'
14590               ;;
14591             esac
14592             ;;
14593           *)
14594             ;;
14595         esac
14596         ;;
14597       interix*)
14598         # This is c89, which is MS Visual C++ (no shared libs)
14599         # Anyone wants to do a port?
14600         ;;
14601       irix5* | irix6* | nonstopux*)
14602         case $cc_basename in
14603           CC*)
14604             lt_prog_compiler_wl_CXX='-Wl,'
14605             lt_prog_compiler_static_CXX='-non_shared'
14606             # CC pic flag -KPIC is the default.
14607             ;;
14608           *)
14609             ;;
14610         esac
14611         ;;
14612       linux* | k*bsd*-gnu)
14613         case $cc_basename in
14614           KCC*)
14615             # KAI C++ Compiler
14616             lt_prog_compiler_wl_CXX='--backend -Wl,'
14617             lt_prog_compiler_pic_CXX='-fPIC'
14618             ;;
14619           ecpc* )
14620             # old Intel C++ for x86_64 which still supported -KPIC.
14621             lt_prog_compiler_wl_CXX='-Wl,'
14622             lt_prog_compiler_pic_CXX='-KPIC'
14623             lt_prog_compiler_static_CXX='-static'
14624             ;;
14625           icpc* )
14626             # Intel C++, used to be incompatible with GCC.
14627             # ICC 10 doesn't accept -KPIC any more.
14628             lt_prog_compiler_wl_CXX='-Wl,'
14629             lt_prog_compiler_pic_CXX='-fPIC'
14630             lt_prog_compiler_static_CXX='-static'
14631             ;;
14632           pgCC* | pgcpp*)
14633             # Portland Group C++ compiler
14634             lt_prog_compiler_wl_CXX='-Wl,'
14635             lt_prog_compiler_pic_CXX='-fpic'
14636             lt_prog_compiler_static_CXX='-Bstatic'
14637             ;;
14638           cxx*)
14639             # Compaq C++
14640             # Make sure the PIC flag is empty.  It appears that all Alpha
14641             # Linux and Compaq Tru64 Unix objects are PIC.
14642             lt_prog_compiler_pic_CXX=
14643             lt_prog_compiler_static_CXX='-non_shared'
14644             ;;
14645           xlc* | xlC*)
14646             # IBM XL 8.0 on PPC
14647             lt_prog_compiler_wl_CXX='-Wl,'
14648             lt_prog_compiler_pic_CXX='-qpic'
14649             lt_prog_compiler_static_CXX='-qstaticlink'
14650             ;;
14651           *)
14652             case `$CC -V 2>&1 | sed 5q` in
14653             *Sun\ C*)
14654               # Sun C++ 5.9
14655               lt_prog_compiler_pic_CXX='-KPIC'
14656               lt_prog_compiler_static_CXX='-Bstatic'
14657               lt_prog_compiler_wl_CXX='-Qoption ld '
14658               ;;
14659             esac
14660             ;;
14661         esac
14662         ;;
14663       lynxos*)
14664         ;;
14665       m88k*)
14666         ;;
14667       mvs*)
14668         case $cc_basename in
14669           cxx*)
14670             lt_prog_compiler_pic_CXX='-W c,exportall'
14671             ;;
14672           *)
14673             ;;
14674         esac
14675         ;;
14676       netbsd*)
14677         ;;
14678       *qnx* | *nto*)
14679         # QNX uses GNU C++, but need to define -shared option too, otherwise
14680         # it will coredump.
14681         lt_prog_compiler_pic_CXX='-fPIC -shared'
14682         ;;
14683       osf3* | osf4* | osf5*)
14684         case $cc_basename in
14685           KCC*)
14686             lt_prog_compiler_wl_CXX='--backend -Wl,'
14687             ;;
14688           RCC*)
14689             # Rational C++ 2.4.1
14690             lt_prog_compiler_pic_CXX='-pic'
14691             ;;
14692           cxx*)
14693             # Digital/Compaq C++
14694             lt_prog_compiler_wl_CXX='-Wl,'
14695             # Make sure the PIC flag is empty.  It appears that all Alpha
14696             # Linux and Compaq Tru64 Unix objects are PIC.
14697             lt_prog_compiler_pic_CXX=
14698             lt_prog_compiler_static_CXX='-non_shared'
14699             ;;
14700           *)
14701             ;;
14702         esac
14703         ;;
14704       psos*)
14705         ;;
14706       solaris*)
14707         case $cc_basename in
14708           CC*)
14709             # Sun C++ 4.2, 5.x and Centerline C++
14710             lt_prog_compiler_pic_CXX='-KPIC'
14711             lt_prog_compiler_static_CXX='-Bstatic'
14712             lt_prog_compiler_wl_CXX='-Qoption ld '
14713             ;;
14714           gcx*)
14715             # Green Hills C++ Compiler
14716             lt_prog_compiler_pic_CXX='-PIC'
14717             ;;
14718           *)
14719             ;;
14720         esac
14721         ;;
14722       sunos4*)
14723         case $cc_basename in
14724           CC*)
14725             # Sun C++ 4.x
14726             lt_prog_compiler_pic_CXX='-pic'
14727             lt_prog_compiler_static_CXX='-Bstatic'
14728             ;;
14729           lcc*)
14730             # Lucid
14731             lt_prog_compiler_pic_CXX='-pic'
14732             ;;
14733           *)
14734             ;;
14735         esac
14736         ;;
14737       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14738         case $cc_basename in
14739           CC*)
14740             lt_prog_compiler_wl_CXX='-Wl,'
14741             lt_prog_compiler_pic_CXX='-KPIC'
14742             lt_prog_compiler_static_CXX='-Bstatic'
14743             ;;
14744         esac
14745         ;;
14746       tandem*)
14747         case $cc_basename in
14748           NCC*)
14749             # NonStop-UX NCC 3.20
14750             lt_prog_compiler_pic_CXX='-KPIC'
14751             ;;
14752           *)
14753             ;;
14754         esac
14755         ;;
14756       vxworks*)
14757         ;;
14758       *)
14759         lt_prog_compiler_can_build_shared_CXX=no
14760         ;;
14761     esac
14762   fi
14763
14764 case $host_os in
14765   # For platforms which do not support PIC, -DPIC is meaningless:
14766   *djgpp*)
14767     lt_prog_compiler_pic_CXX=
14768     ;;
14769   *)
14770     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14771     ;;
14772 esac
14773 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14774 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14775
14776
14777
14778 #
14779 # Check to make sure the PIC flag actually works.
14780 #
14781 if test -n "$lt_prog_compiler_pic_CXX"; then
14782   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14783 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14784 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14785   echo $ECHO_N "(cached) $ECHO_C" >&6
14786 else
14787   lt_cv_prog_compiler_pic_works_CXX=no
14788    ac_outfile=conftest.$ac_objext
14789    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14790    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14791    # Insert the option either (1) after the last *FLAGS variable, or
14792    # (2) before a word containing "conftest.", or (3) at the end.
14793    # Note that $ac_compile itself does not contain backslashes and begins
14794    # with a dollar sign (not a hyphen), so the echo should work correctly.
14795    # The option is referenced via a variable to avoid confusing sed.
14796    lt_compile=`echo "$ac_compile" | $SED \
14797    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14798    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14799    -e 's:$: $lt_compiler_flag:'`
14800    (eval echo "\"\$as_me:14800: $lt_compile\"" >&5)
14801    (eval "$lt_compile" 2>conftest.err)
14802    ac_status=$?
14803    cat conftest.err >&5
14804    echo "$as_me:14804: \$? = $ac_status" >&5
14805    if (exit $ac_status) && test -s "$ac_outfile"; then
14806      # The compiler can only warn and ignore the option if not recognized
14807      # So say no if there are warnings other than the usual output.
14808      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14809      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14810      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14811        lt_cv_prog_compiler_pic_works_CXX=yes
14812      fi
14813    fi
14814    $RM conftest*
14815
14816 fi
14817 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14818 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14819
14820 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14821     case $lt_prog_compiler_pic_CXX in
14822      "" | " "*) ;;
14823      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14824      esac
14825 else
14826     lt_prog_compiler_pic_CXX=
14827      lt_prog_compiler_can_build_shared_CXX=no
14828 fi
14829
14830 fi
14831
14832
14833
14834 #
14835 # Check to make sure the static flag actually works.
14836 #
14837 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14838 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14839 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14840 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14841   echo $ECHO_N "(cached) $ECHO_C" >&6
14842 else
14843   lt_cv_prog_compiler_static_works_CXX=no
14844    save_LDFLAGS="$LDFLAGS"
14845    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14846    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14847    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14848      # The linker can only warn and ignore the option if not recognized
14849      # So say no if there are warnings
14850      if test -s conftest.err; then
14851        # Append any errors to the config.log.
14852        cat conftest.err 1>&5
14853        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14854        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14855        if diff conftest.exp conftest.er2 >/dev/null; then
14856          lt_cv_prog_compiler_static_works_CXX=yes
14857        fi
14858      else
14859        lt_cv_prog_compiler_static_works_CXX=yes
14860      fi
14861    fi
14862    $RM -r conftest*
14863    LDFLAGS="$save_LDFLAGS"
14864
14865 fi
14866 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14867 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14868
14869 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14870     :
14871 else
14872     lt_prog_compiler_static_CXX=
14873 fi
14874
14875
14876
14877
14878     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14879 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14880 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14881   echo $ECHO_N "(cached) $ECHO_C" >&6
14882 else
14883   lt_cv_prog_compiler_c_o_CXX=no
14884    $RM -r conftest 2>/dev/null
14885    mkdir conftest
14886    cd conftest
14887    mkdir out
14888    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14889
14890    lt_compiler_flag="-o out/conftest2.$ac_objext"
14891    # Insert the option either (1) after the last *FLAGS variable, or
14892    # (2) before a word containing "conftest.", or (3) at the end.
14893    # Note that $ac_compile itself does not contain backslashes and begins
14894    # with a dollar sign (not a hyphen), so the echo should work correctly.
14895    lt_compile=`echo "$ac_compile" | $SED \
14896    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14897    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14898    -e 's:$: $lt_compiler_flag:'`
14899    (eval echo "\"\$as_me:14899: $lt_compile\"" >&5)
14900    (eval "$lt_compile" 2>out/conftest.err)
14901    ac_status=$?
14902    cat out/conftest.err >&5
14903    echo "$as_me:14903: \$? = $ac_status" >&5
14904    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14905    then
14906      # The compiler can only warn and ignore the option if not recognized
14907      # So say no if there are warnings
14908      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14909      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14910      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14911        lt_cv_prog_compiler_c_o_CXX=yes
14912      fi
14913    fi
14914    chmod u+w . 2>&5
14915    $RM conftest*
14916    # SGI C++ compiler will create directory out/ii_files/ for
14917    # template instantiation
14918    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14919    $RM out/* && rmdir out
14920    cd ..
14921    $RM -r conftest
14922    $RM conftest*
14923
14924 fi
14925 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14926 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14927
14928
14929
14930     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14931 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14932 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14933   echo $ECHO_N "(cached) $ECHO_C" >&6
14934 else
14935   lt_cv_prog_compiler_c_o_CXX=no
14936    $RM -r conftest 2>/dev/null
14937    mkdir conftest
14938    cd conftest
14939    mkdir out
14940    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14941
14942    lt_compiler_flag="-o out/conftest2.$ac_objext"
14943    # Insert the option either (1) after the last *FLAGS variable, or
14944    # (2) before a word containing "conftest.", or (3) at the end.
14945    # Note that $ac_compile itself does not contain backslashes and begins
14946    # with a dollar sign (not a hyphen), so the echo should work correctly.
14947    lt_compile=`echo "$ac_compile" | $SED \
14948    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14949    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14950    -e 's:$: $lt_compiler_flag:'`
14951    (eval echo "\"\$as_me:14951: $lt_compile\"" >&5)
14952    (eval "$lt_compile" 2>out/conftest.err)
14953    ac_status=$?
14954    cat out/conftest.err >&5
14955    echo "$as_me:14955: \$? = $ac_status" >&5
14956    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14957    then
14958      # The compiler can only warn and ignore the option if not recognized
14959      # So say no if there are warnings
14960      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14961      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14962      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14963        lt_cv_prog_compiler_c_o_CXX=yes
14964      fi
14965    fi
14966    chmod u+w . 2>&5
14967    $RM conftest*
14968    # SGI C++ compiler will create directory out/ii_files/ for
14969    # template instantiation
14970    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14971    $RM out/* && rmdir out
14972    cd ..
14973    $RM -r conftest
14974    $RM conftest*
14975
14976 fi
14977 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14978 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14979
14980
14981
14982
14983 hard_links="nottested"
14984 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14985   # do not overwrite the value of need_locks provided by the user
14986   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14987 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14988   hard_links=yes
14989   $RM conftest*
14990   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14991   touch conftest.a
14992   ln conftest.a conftest.b 2>&5 || hard_links=no
14993   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14994   { echo "$as_me:$LINENO: result: $hard_links" >&5
14995 echo "${ECHO_T}$hard_links" >&6; }
14996   if test "$hard_links" = no; then
14997     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14998 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14999     need_locks=warn
15000   fi
15001 else
15002   need_locks=no
15003 fi
15004
15005
15006
15007     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15008 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15009
15010   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15011   case $host_os in
15012   aix[4-9]*)
15013     # If we're using GNU nm, then we don't want the "-C" option.
15014     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15015     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15016       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'
15017     else
15018       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'
15019     fi
15020     ;;
15021   pw32*)
15022     export_symbols_cmds_CXX="$ltdll_cmds"
15023   ;;
15024   cygwin* | mingw* | cegcc*)
15025     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'
15026   ;;
15027   *)
15028     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15029   ;;
15030   esac
15031   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15032
15033 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15034 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15035 test "$ld_shlibs_CXX" = no && can_build_shared=no
15036
15037 with_gnu_ld_CXX=$with_gnu_ld
15038
15039
15040
15041
15042
15043
15044 #
15045 # Do we need to explicitly link libc?
15046 #
15047 case "x$archive_cmds_need_lc_CXX" in
15048 x|xyes)
15049   # Assume -lc should be added
15050   archive_cmds_need_lc_CXX=yes
15051
15052   if test "$enable_shared" = yes && test "$GCC" = yes; then
15053     case $archive_cmds_CXX in
15054     *'~'*)
15055       # FIXME: we may have to deal with multi-command sequences.
15056       ;;
15057     '$CC '*)
15058       # Test whether the compiler implicitly links with -lc since on some
15059       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15060       # to ld, don't add -lc before -lgcc.
15061       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15062 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15063       $RM conftest*
15064       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15065
15066       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15067   (eval $ac_compile) 2>&5
15068   ac_status=$?
15069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070   (exit $ac_status); } 2>conftest.err; then
15071         soname=conftest
15072         lib=conftest
15073         libobjs=conftest.$ac_objext
15074         deplibs=
15075         wl=$lt_prog_compiler_wl_CXX
15076         pic_flag=$lt_prog_compiler_pic_CXX
15077         compiler_flags=-v
15078         linker_flags=-v
15079         verstring=
15080         output_objdir=.
15081         libname=conftest
15082         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15083         allow_undefined_flag_CXX=
15084         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15085   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15086   ac_status=$?
15087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088   (exit $ac_status); }
15089         then
15090           archive_cmds_need_lc_CXX=no
15091         else
15092           archive_cmds_need_lc_CXX=yes
15093         fi
15094         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15095       else
15096         cat conftest.err 1>&5
15097       fi
15098       $RM conftest*
15099       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15100 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15101       ;;
15102     esac
15103   fi
15104   ;;
15105 esac
15106
15107
15108
15109
15110
15111
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     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15171 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15172
15173 library_names_spec=
15174 libname_spec='lib$name'
15175 soname_spec=
15176 shrext_cmds=".so"
15177 postinstall_cmds=
15178 postuninstall_cmds=
15179 finish_cmds=
15180 finish_eval=
15181 shlibpath_var=
15182 shlibpath_overrides_runpath=unknown
15183 version_type=none
15184 dynamic_linker="$host_os ld.so"
15185 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15186 need_lib_prefix=unknown
15187 hardcode_into_libs=no
15188
15189 # when you set need_version to no, make sure it does not cause -set_version
15190 # flags to be left without arguments
15191 need_version=unknown
15192
15193 case $host_os in
15194 aix3*)
15195   version_type=linux
15196   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15197   shlibpath_var=LIBPATH
15198
15199   # AIX 3 has no versioning support, so we append a major version to the name.
15200   soname_spec='${libname}${release}${shared_ext}$major'
15201   ;;
15202
15203 aix[4-9]*)
15204   version_type=linux
15205   need_lib_prefix=no
15206   need_version=no
15207   hardcode_into_libs=yes
15208   if test "$host_cpu" = ia64; then
15209     # AIX 5 supports IA64
15210     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15211     shlibpath_var=LD_LIBRARY_PATH
15212   else
15213     # With GCC up to 2.95.x, collect2 would create an import file
15214     # for dependence libraries.  The import file would start with
15215     # the line `#! .'.  This would cause the generated library to
15216     # depend on `.', always an invalid library.  This was fixed in
15217     # development snapshots of GCC prior to 3.0.
15218     case $host_os in
15219       aix4 | aix4.[01] | aix4.[01].*)
15220       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15221            echo ' yes '
15222            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15223         :
15224       else
15225         can_build_shared=no
15226       fi
15227       ;;
15228     esac
15229     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15230     # soname into executable. Probably we can add versioning support to
15231     # collect2, so additional links can be useful in future.
15232     if test "$aix_use_runtimelinking" = yes; then
15233       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15234       # instead of lib<name>.a to let people know that these are not
15235       # typical AIX shared libraries.
15236       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15237     else
15238       # We preserve .a as extension for shared libraries through AIX4.2
15239       # and later when we are not doing run time linking.
15240       library_names_spec='${libname}${release}.a $libname.a'
15241       soname_spec='${libname}${release}${shared_ext}$major'
15242     fi
15243     shlibpath_var=LIBPATH
15244   fi
15245   ;;
15246
15247 amigaos*)
15248   case $host_cpu in
15249   powerpc)
15250     # Since July 2007 AmigaOS4 officially supports .so libraries.
15251     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15252     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15253     ;;
15254   m68k)
15255     library_names_spec='$libname.ixlibrary $libname.a'
15256     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15257     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'
15258     ;;
15259   esac
15260   ;;
15261
15262 beos*)
15263   library_names_spec='${libname}${shared_ext}'
15264   dynamic_linker="$host_os ld.so"
15265   shlibpath_var=LIBRARY_PATH
15266   ;;
15267
15268 bsdi[45]*)
15269   version_type=linux
15270   need_version=no
15271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15272   soname_spec='${libname}${release}${shared_ext}$major'
15273   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15274   shlibpath_var=LD_LIBRARY_PATH
15275   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15276   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15277   # the default ld.so.conf also contains /usr/contrib/lib and
15278   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15279   # libtool to hard-code these into programs
15280   ;;
15281
15282 cygwin* | mingw* | pw32* | cegcc*)
15283   version_type=windows
15284   shrext_cmds=".dll"
15285   need_version=no
15286   need_lib_prefix=no
15287
15288   case $GCC,$host_os in
15289   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15290     library_names_spec='$libname.dll.a'
15291     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15292     postinstall_cmds='base_file=`basename \${file}`~
15293       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15294       dldir=$destdir/`dirname \$dlpath`~
15295       test -d \$dldir || mkdir -p \$dldir~
15296       $install_prog $dir/$dlname \$dldir/$dlname~
15297       chmod a+x \$dldir/$dlname~
15298       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15299         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15300       fi'
15301     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15302       dlpath=$dir/\$dldll~
15303        $RM \$dlpath'
15304     shlibpath_overrides_runpath=yes
15305
15306     case $host_os in
15307     cygwin*)
15308       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15309       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15310       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15311       ;;
15312     mingw* | cegcc*)
15313       # MinGW DLLs use traditional 'lib' prefix
15314       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15315       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15316       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15317         # It is most probably a Windows format PATH printed by
15318         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15319         # path with ; separators, and with drive letters. We can handle the
15320         # drive letters (cygwin fileutils understands them), so leave them,
15321         # especially as we might pass files found there to a mingw objdump,
15322         # which wouldn't understand a cygwinified path. Ahh.
15323         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15324       else
15325         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15326       fi
15327       ;;
15328     pw32*)
15329       # pw32 DLLs use 'pw' prefix rather than 'lib'
15330       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15331       ;;
15332     esac
15333     ;;
15334
15335   *)
15336     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15337     ;;
15338   esac
15339   dynamic_linker='Win32 ld.exe'
15340   # FIXME: first we should search . and the directory the executable is in
15341   shlibpath_var=PATH
15342   ;;
15343
15344 darwin* | rhapsody*)
15345   dynamic_linker="$host_os dyld"
15346   version_type=darwin
15347   need_lib_prefix=no
15348   need_version=no
15349   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15350   soname_spec='${libname}${release}${major}$shared_ext'
15351   shlibpath_overrides_runpath=yes
15352   shlibpath_var=DYLD_LIBRARY_PATH
15353   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15354
15355   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15356   ;;
15357
15358 dgux*)
15359   version_type=linux
15360   need_lib_prefix=no
15361   need_version=no
15362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15363   soname_spec='${libname}${release}${shared_ext}$major'
15364   shlibpath_var=LD_LIBRARY_PATH
15365   ;;
15366
15367 freebsd1*)
15368   dynamic_linker=no
15369   ;;
15370
15371 freebsd* | dragonfly*)
15372   # DragonFly does not have aout.  When/if they implement a new
15373   # versioning mechanism, adjust this.
15374   if test -x /usr/bin/objformat; then
15375     objformat=`/usr/bin/objformat`
15376   else
15377     case $host_os in
15378     freebsd[123]*) objformat=aout ;;
15379     *) objformat=elf ;;
15380     esac
15381   fi
15382   version_type=freebsd-$objformat
15383   case $version_type in
15384     freebsd-elf*)
15385       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15386       need_version=no
15387       need_lib_prefix=no
15388       ;;
15389     freebsd-*)
15390       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15391       need_version=yes
15392       ;;
15393   esac
15394   shlibpath_var=LD_LIBRARY_PATH
15395   case $host_os in
15396   freebsd2*)
15397     shlibpath_overrides_runpath=yes
15398     ;;
15399   freebsd3.[01]* | freebsdelf3.[01]*)
15400     shlibpath_overrides_runpath=yes
15401     hardcode_into_libs=yes
15402     ;;
15403   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15404   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15405     shlibpath_overrides_runpath=no
15406     hardcode_into_libs=yes
15407     ;;
15408   *) # from 4.6 on, and DragonFly
15409     shlibpath_overrides_runpath=yes
15410     hardcode_into_libs=yes
15411     ;;
15412   esac
15413   ;;
15414
15415 gnu*)
15416   version_type=linux
15417   need_lib_prefix=no
15418   need_version=no
15419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15420   soname_spec='${libname}${release}${shared_ext}$major'
15421   shlibpath_var=LD_LIBRARY_PATH
15422   hardcode_into_libs=yes
15423   ;;
15424
15425 hpux9* | hpux10* | hpux11*)
15426   # Give a soname corresponding to the major version so that dld.sl refuses to
15427   # link against other versions.
15428   version_type=sunos
15429   need_lib_prefix=no
15430   need_version=no
15431   case $host_cpu in
15432   ia64*)
15433     shrext_cmds='.so'
15434     hardcode_into_libs=yes
15435     dynamic_linker="$host_os dld.so"
15436     shlibpath_var=LD_LIBRARY_PATH
15437     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15438     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15439     soname_spec='${libname}${release}${shared_ext}$major'
15440     if test "X$HPUX_IA64_MODE" = X32; then
15441       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15442     else
15443       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15444     fi
15445     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15446     ;;
15447   hppa*64*)
15448     shrext_cmds='.sl'
15449     hardcode_into_libs=yes
15450     dynamic_linker="$host_os dld.sl"
15451     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15452     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15453     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15454     soname_spec='${libname}${release}${shared_ext}$major'
15455     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15456     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15457     ;;
15458   *)
15459     shrext_cmds='.sl'
15460     dynamic_linker="$host_os dld.sl"
15461     shlibpath_var=SHLIB_PATH
15462     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15463     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15464     soname_spec='${libname}${release}${shared_ext}$major'
15465     ;;
15466   esac
15467   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15468   postinstall_cmds='chmod 555 $lib'
15469   ;;
15470
15471 interix[3-9]*)
15472   version_type=linux
15473   need_lib_prefix=no
15474   need_version=no
15475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15476   soname_spec='${libname}${release}${shared_ext}$major'
15477   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15478   shlibpath_var=LD_LIBRARY_PATH
15479   shlibpath_overrides_runpath=no
15480   hardcode_into_libs=yes
15481   ;;
15482
15483 irix5* | irix6* | nonstopux*)
15484   case $host_os in
15485     nonstopux*) version_type=nonstopux ;;
15486     *)
15487         if test "$lt_cv_prog_gnu_ld" = yes; then
15488                 version_type=linux
15489         else
15490                 version_type=irix
15491         fi ;;
15492   esac
15493   need_lib_prefix=no
15494   need_version=no
15495   soname_spec='${libname}${release}${shared_ext}$major'
15496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15497   case $host_os in
15498   irix5* | nonstopux*)
15499     libsuff= shlibsuff=
15500     ;;
15501   *)
15502     case $LD in # libtool.m4 will add one of these switches to LD
15503     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15504       libsuff= shlibsuff= libmagic=32-bit;;
15505     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15506       libsuff=32 shlibsuff=N32 libmagic=N32;;
15507     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15508       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15509     *) libsuff= shlibsuff= libmagic=never-match;;
15510     esac
15511     ;;
15512   esac
15513   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15514   shlibpath_overrides_runpath=no
15515   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15516   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15517   hardcode_into_libs=yes
15518   ;;
15519
15520 # No shared lib support for Linux oldld, aout, or coff.
15521 linux*oldld* | linux*aout* | linux*coff*)
15522   dynamic_linker=no
15523   ;;
15524
15525 # This must be Linux ELF.
15526 linux* | k*bsd*-gnu)
15527   version_type=linux
15528   need_lib_prefix=no
15529   need_version=no
15530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15531   soname_spec='${libname}${release}${shared_ext}$major'
15532   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15533   shlibpath_var=LD_LIBRARY_PATH
15534   shlibpath_overrides_runpath=no
15535   # Some binutils ld are patched to set DT_RUNPATH
15536   save_LDFLAGS=$LDFLAGS
15537   save_libdir=$libdir
15538   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15539        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15540   cat >conftest.$ac_ext <<_ACEOF
15541 /* confdefs.h.  */
15542 _ACEOF
15543 cat confdefs.h >>conftest.$ac_ext
15544 cat >>conftest.$ac_ext <<_ACEOF
15545 /* end confdefs.h.  */
15546
15547 int
15548 main ()
15549 {
15550
15551   ;
15552   return 0;
15553 }
15554 _ACEOF
15555 rm -f conftest.$ac_objext conftest$ac_exeext
15556 if { (ac_try="$ac_link"
15557 case "(($ac_try" in
15558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559   *) ac_try_echo=$ac_try;;
15560 esac
15561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562   (eval "$ac_link") 2>conftest.er1
15563   ac_status=$?
15564   grep -v '^ *+' conftest.er1 >conftest.err
15565   rm -f conftest.er1
15566   cat conftest.err >&5
15567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568   (exit $ac_status); } && {
15569          test -z "$ac_cxx_werror_flag" ||
15570          test ! -s conftest.err
15571        } && test -s conftest$ac_exeext &&
15572        $as_test_x conftest$ac_exeext; then
15573   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15574   shlibpath_overrides_runpath=yes
15575 fi
15576
15577 else
15578   echo "$as_me: failed program was:" >&5
15579 sed 's/^/| /' conftest.$ac_ext >&5
15580
15581
15582 fi
15583
15584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15585       conftest$ac_exeext conftest.$ac_ext
15586   LDFLAGS=$save_LDFLAGS
15587   libdir=$save_libdir
15588
15589   # This implies no fast_install, which is unacceptable.
15590   # Some rework will be needed to allow for fast_install
15591   # before this can be enabled.
15592   hardcode_into_libs=yes
15593
15594   # Append ld.so.conf contents to the search path
15595   if test -f /etc/ld.so.conf; then
15596     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' ' '`
15597     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15598   fi
15599
15600   # We used to test for /lib/ld.so.1 and disable shared libraries on
15601   # powerpc, because MkLinux only supported shared libraries with the
15602   # GNU dynamic linker.  Since this was broken with cross compilers,
15603   # most powerpc-linux boxes support dynamic linking these days and
15604   # people can always --disable-shared, the test was removed, and we
15605   # assume the GNU/Linux dynamic linker is in use.
15606   dynamic_linker='GNU/Linux ld.so'
15607   ;;
15608
15609 netbsd*)
15610   version_type=sunos
15611   need_lib_prefix=no
15612   need_version=no
15613   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15614     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15615     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15616     dynamic_linker='NetBSD (a.out) ld.so'
15617   else
15618     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15619     soname_spec='${libname}${release}${shared_ext}$major'
15620     dynamic_linker='NetBSD ld.elf_so'
15621   fi
15622   shlibpath_var=LD_LIBRARY_PATH
15623   shlibpath_overrides_runpath=yes
15624   hardcode_into_libs=yes
15625   ;;
15626
15627 newsos6)
15628   version_type=linux
15629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15630   shlibpath_var=LD_LIBRARY_PATH
15631   shlibpath_overrides_runpath=yes
15632   ;;
15633
15634 *nto* | *qnx*)
15635   version_type=qnx
15636   need_lib_prefix=no
15637   need_version=no
15638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15639   soname_spec='${libname}${release}${shared_ext}$major'
15640   shlibpath_var=LD_LIBRARY_PATH
15641   shlibpath_overrides_runpath=no
15642   hardcode_into_libs=yes
15643   dynamic_linker='ldqnx.so'
15644   ;;
15645
15646 openbsd*)
15647   version_type=sunos
15648   sys_lib_dlsearch_path_spec="/usr/lib"
15649   need_lib_prefix=no
15650   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15651   case $host_os in
15652     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15653     *)                          need_version=no  ;;
15654   esac
15655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15656   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15657   shlibpath_var=LD_LIBRARY_PATH
15658   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15659     case $host_os in
15660       openbsd2.[89] | openbsd2.[89].*)
15661         shlibpath_overrides_runpath=no
15662         ;;
15663       *)
15664         shlibpath_overrides_runpath=yes
15665         ;;
15666       esac
15667   else
15668     shlibpath_overrides_runpath=yes
15669   fi
15670   ;;
15671
15672 os2*)
15673   libname_spec='$name'
15674   shrext_cmds=".dll"
15675   need_lib_prefix=no
15676   library_names_spec='$libname${shared_ext} $libname.a'
15677   dynamic_linker='OS/2 ld.exe'
15678   shlibpath_var=LIBPATH
15679   ;;
15680
15681 osf3* | osf4* | osf5*)
15682   version_type=osf
15683   need_lib_prefix=no
15684   need_version=no
15685   soname_spec='${libname}${release}${shared_ext}$major'
15686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15687   shlibpath_var=LD_LIBRARY_PATH
15688   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15689   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15690   ;;
15691
15692 rdos*)
15693   dynamic_linker=no
15694   ;;
15695
15696 solaris*)
15697   version_type=linux
15698   need_lib_prefix=no
15699   need_version=no
15700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15701   soname_spec='${libname}${release}${shared_ext}$major'
15702   shlibpath_var=LD_LIBRARY_PATH
15703   shlibpath_overrides_runpath=yes
15704   hardcode_into_libs=yes
15705   # ldd complains unless libraries are executable
15706   postinstall_cmds='chmod +x $lib'
15707   ;;
15708
15709 sunos4*)
15710   version_type=sunos
15711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15712   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15713   shlibpath_var=LD_LIBRARY_PATH
15714   shlibpath_overrides_runpath=yes
15715   if test "$with_gnu_ld" = yes; then
15716     need_lib_prefix=no
15717   fi
15718   need_version=yes
15719   ;;
15720
15721 sysv4 | sysv4.3*)
15722   version_type=linux
15723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15724   soname_spec='${libname}${release}${shared_ext}$major'
15725   shlibpath_var=LD_LIBRARY_PATH
15726   case $host_vendor in
15727     sni)
15728       shlibpath_overrides_runpath=no
15729       need_lib_prefix=no
15730       runpath_var=LD_RUN_PATH
15731       ;;
15732     siemens)
15733       need_lib_prefix=no
15734       ;;
15735     motorola)
15736       need_lib_prefix=no
15737       need_version=no
15738       shlibpath_overrides_runpath=no
15739       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15740       ;;
15741   esac
15742   ;;
15743
15744 sysv4*MP*)
15745   if test -d /usr/nec ;then
15746     version_type=linux
15747     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15748     soname_spec='$libname${shared_ext}.$major'
15749     shlibpath_var=LD_LIBRARY_PATH
15750   fi
15751   ;;
15752
15753 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15754   version_type=freebsd-elf
15755   need_lib_prefix=no
15756   need_version=no
15757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15758   soname_spec='${libname}${release}${shared_ext}$major'
15759   shlibpath_var=LD_LIBRARY_PATH
15760   shlibpath_overrides_runpath=yes
15761   hardcode_into_libs=yes
15762   if test "$with_gnu_ld" = yes; then
15763     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15764   else
15765     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15766     case $host_os in
15767       sco3.2v5*)
15768         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15769         ;;
15770     esac
15771   fi
15772   sys_lib_dlsearch_path_spec='/usr/lib'
15773   ;;
15774
15775 tpf*)
15776   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15777   version_type=linux
15778   need_lib_prefix=no
15779   need_version=no
15780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15781   shlibpath_var=LD_LIBRARY_PATH
15782   shlibpath_overrides_runpath=no
15783   hardcode_into_libs=yes
15784   ;;
15785
15786 uts4*)
15787   version_type=linux
15788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15789   soname_spec='${libname}${release}${shared_ext}$major'
15790   shlibpath_var=LD_LIBRARY_PATH
15791   ;;
15792
15793 *)
15794   dynamic_linker=no
15795   ;;
15796 esac
15797 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15798 echo "${ECHO_T}$dynamic_linker" >&6; }
15799 test "$dynamic_linker" = no && can_build_shared=no
15800
15801 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15802 if test "$GCC" = yes; then
15803   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15804 fi
15805
15806 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15807   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15808 fi
15809 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15810   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15811 fi
15812
15813
15814
15815
15816
15817
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     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15849 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15850 hardcode_action_CXX=
15851 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15852    test -n "$runpath_var_CXX" ||
15853    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15854
15855   # We can hardcode non-existent directories.
15856   if test "$hardcode_direct_CXX" != no &&
15857      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15858      # have to relink, otherwise we might link with an installed library
15859      # when we should be linking with a yet-to-be-installed one
15860      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15861      test "$hardcode_minus_L_CXX" != no; then
15862     # Linking always hardcodes the temporary library directory.
15863     hardcode_action_CXX=relink
15864   else
15865     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15866     hardcode_action_CXX=immediate
15867   fi
15868 else
15869   # We cannot hardcode anything, or else we can only hardcode existing
15870   # directories.
15871   hardcode_action_CXX=unsupported
15872 fi
15873 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15874 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15875
15876 if test "$hardcode_action_CXX" = relink ||
15877    test "$inherit_rpath_CXX" = yes; then
15878   # Fast installation is not supported
15879   enable_fast_install=no
15880 elif test "$shlibpath_overrides_runpath" = yes ||
15881      test "$enable_shared" = no; then
15882   # Fast installation is not necessary
15883   enable_fast_install=needless
15884 fi
15885
15886
15887
15888
15889
15890
15891
15892   fi # test -n "$compiler"
15893
15894   CC=$lt_save_CC
15895   LDCXX=$LD
15896   LD=$lt_save_LD
15897   GCC=$lt_save_GCC
15898   with_gnu_ld=$lt_save_with_gnu_ld
15899   lt_cv_path_LDCXX=$lt_cv_path_LD
15900   lt_cv_path_LD=$lt_save_path_LD
15901   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15902   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15903 fi # test "$_lt_caught_CXX_error" != yes
15904
15905 ac_ext=c
15906 ac_cpp='$CPP $CPPFLAGS'
15907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923         ac_config_commands="$ac_config_commands libtool"
15924
15925
15926
15927
15928 # Only expand once:
15929
15930
15931
15932
15933 if test x$use_libtool != xno; then
15934    DEFAULT_OBJECT_TYPE=".lo"
15935    DEFAULT_ARCHIVE_TYPE=".la"
15936    DEFAULT_SHARED_OBJECT_TYPE=".la"
15937    LIBTOOL="\$(LIBTOOL)"
15938    LIBTOOL_INSTALL_TARGET="libtool-install"
15939    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15940    LIBTOOL_CLEAN_TARGET="libtool-clean"
15941    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15942 else
15943    DEFAULT_OBJECT_TYPE=".o"
15944    DEFAULT_ARCHIVE_TYPE=".a"
15945    DEFAULT_SHARED_OBJECT_TYPE=".so"
15946    LIBTOOL="# \$(LIBTOOL)"
15947    LIBTOOL_INSTALL_TARGET=""
15948    LIBTOOL_UNINSTALL_TARGET=""
15949    LIBTOOL_CLEAN_TARGET=""
15950    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15951 fi
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962 # Check whether --enable-includes was given.
15963 if test "${enable_includes+set}" = set; then
15964   enableval=$enable_includes;
15965        if test x$enableval = xyes; then
15966           install_includes=yes
15967        fi
15968
15969
15970 fi
15971
15972
15973
15974 if test x$use_libtool != xno -a x$install_includes = xyes; then
15975    INCLUDE_INSTALL_TARGET="install-includes"
15976    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15977 else
15978    INCLUDE_INSTALL_TARGET=""
15979    INCLUDE_UNINSTALL_TARGET=""
15980 fi
15981
15982
15983
15984
15985 { echo "$as_me:$LINENO: checking host system type" >&5
15986 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15987 if test "${ac_cv_host+set}" = set; then
15988   echo $ECHO_N "(cached) $ECHO_C" >&6
15989 else
15990   if test "x$host_alias" = x; then
15991   ac_cv_host=$ac_cv_build
15992 else
15993   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15994     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15995 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15996    { (exit 1); exit 1; }; }
15997 fi
15998
15999 fi
16000 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16001 echo "${ECHO_T}$ac_cv_host" >&6; }
16002 case $ac_cv_host in
16003 *-*-*) ;;
16004 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16005 echo "$as_me: error: invalid value of canonical host" >&2;}
16006    { (exit 1); exit 1; }; };;
16007 esac
16008 host=$ac_cv_host
16009 ac_save_IFS=$IFS; IFS='-'
16010 set x $ac_cv_host
16011 shift
16012 host_cpu=$1
16013 host_vendor=$2
16014 shift; shift
16015 # Remember, the first character of IFS is used to create $*,
16016 # except with old shells:
16017 host_os=$*
16018 IFS=$ac_save_IFS
16019 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16020
16021
16022 case $host_os in
16023   *cygwin* ) CYGWIN=yes;;
16024          * ) CYGWIN=no;;
16025 esac
16026
16027 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16028 then
16029
16030
16031 if $TRUEPRG; then
16032   HAVE_SUN_OS_TRUE=
16033   HAVE_SUN_OS_FALSE='#'
16034 else
16035   HAVE_SUN_OS_TRUE='#'
16036   HAVE_SUN_OS_FALSE=
16037 fi
16038         cat >>confdefs.h <<\_ACEOF
16039 #define HAVE_SUN_OS 1
16040 _ACEOF
16041
16042 else
16043
16044
16045 if $FALSEPRG; then
16046   HAVE_SUN_OS_TRUE=
16047   HAVE_SUN_OS_FALSE='#'
16048 else
16049   HAVE_SUN_OS_TRUE='#'
16050   HAVE_SUN_OS_FALSE=
16051 fi
16052 fi
16053
16054 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16055 then
16056
16057
16058 if $TRUEPRG; then
16059   HAVE_OSF1_OS_TRUE=
16060   HAVE_OSF1_OS_FALSE='#'
16061 else
16062   HAVE_OSF1_OS_TRUE='#'
16063   HAVE_OSF1_OS_FALSE=
16064 fi
16065         cat >>confdefs.h <<\_ACEOF
16066 #define HAVE_OSF1_OS 1
16067 _ACEOF
16068
16069 else
16070
16071
16072 if $FALSEPRG; then
16073   HAVE_OSF1_OS_TRUE=
16074   HAVE_OSF1_OS_FALSE='#'
16075 else
16076   HAVE_OSF1_OS_TRUE='#'
16077   HAVE_OSF1_OS_FALSE=
16078 fi
16079 fi
16080
16081 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16082 then
16083
16084
16085 if $TRUEPRG; then
16086   HAVE_AIX_OS_TRUE=
16087   HAVE_AIX_OS_FALSE='#'
16088 else
16089   HAVE_AIX_OS_TRUE='#'
16090   HAVE_AIX_OS_FALSE=
16091 fi
16092         cat >>confdefs.h <<\_ACEOF
16093 #define HAVE_AIX_OS 1
16094 _ACEOF
16095
16096 else
16097
16098
16099 if $FALSEPRG; then
16100   HAVE_AIX_OS_TRUE=
16101   HAVE_AIX_OS_FALSE='#'
16102 else
16103   HAVE_AIX_OS_TRUE='#'
16104   HAVE_AIX_OS_FALSE=
16105 fi
16106 fi
16107
16108 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16109 then
16110
16111
16112 if $TRUEPRG; then
16113   HAVE_HPUX_OS_TRUE=
16114   HAVE_HPUX_OS_FALSE='#'
16115 else
16116   HAVE_HPUX_OS_TRUE='#'
16117   HAVE_HPUX_OS_FALSE=
16118 fi
16119         cat >>confdefs.h <<\_ACEOF
16120 #define HAVE_HPUX_OS 1
16121 _ACEOF
16122
16123 else
16124
16125
16126 if $FALSEPRG; then
16127   HAVE_HPUX_OS_TRUE=
16128   HAVE_HPUX_OS_FALSE='#'
16129 else
16130   HAVE_HPUX_OS_TRUE='#'
16131   HAVE_HPUX_OS_FALSE=
16132 fi
16133 fi
16134
16135 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16136 then
16137
16138
16139 if $TRUEPRG; then
16140   HAVE_LINUX_OS_TRUE=
16141   HAVE_LINUX_OS_FALSE='#'
16142 else
16143   HAVE_LINUX_OS_TRUE='#'
16144   HAVE_LINUX_OS_FALSE=
16145 fi
16146         cat >>confdefs.h <<\_ACEOF
16147 #define HAVE_LINUX_OS 1
16148 _ACEOF
16149
16150 else
16151
16152
16153 if $FALSEPRG; then
16154   HAVE_LINUX_OS_TRUE=
16155   HAVE_LINUX_OS_FALSE='#'
16156 else
16157   HAVE_LINUX_OS_TRUE='#'
16158   HAVE_LINUX_OS_FALSE=
16159 fi
16160 fi
16161
16162 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16163 then
16164
16165
16166 if $TRUEPRG; then
16167   HAVE_FREEBSD_OS_TRUE=
16168   HAVE_FREEBSD_OS_FALSE='#'
16169 else
16170   HAVE_FREEBSD_OS_TRUE='#'
16171   HAVE_FREEBSD_OS_FALSE=
16172 fi
16173         cat >>confdefs.h <<\_ACEOF
16174 #define HAVE_FREEBSD_OS 1
16175 _ACEOF
16176
16177 else
16178
16179
16180 if $FALSEPRG; then
16181   HAVE_FREEBSD_OS_TRUE=
16182   HAVE_FREEBSD_OS_FALSE='#'
16183 else
16184   HAVE_FREEBSD_OS_TRUE='#'
16185   HAVE_FREEBSD_OS_FALSE=
16186 fi
16187 fi
16188
16189 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16190 then
16191
16192
16193 if $TRUEPRG; then
16194   HAVE_NETBSD_OS_TRUE=
16195   HAVE_NETBSD_OS_FALSE='#'
16196 else
16197   HAVE_NETBSD_OS_TRUE='#'
16198   HAVE_NETBSD_OS_FALSE=
16199 fi
16200         cat >>confdefs.h <<\_ACEOF
16201 #define HAVE_NETBSD_OS 1
16202 _ACEOF
16203
16204 else
16205
16206
16207 if $FALSEPRG; then
16208   HAVE_NETBSD_OS_TRUE=
16209   HAVE_NETBSD_OS_FALSE='#'
16210 else
16211   HAVE_NETBSD_OS_TRUE='#'
16212   HAVE_NETBSD_OS_FALSE=
16213 fi
16214 fi
16215
16216 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16217 then
16218
16219
16220 if $TRUEPRG; then
16221   HAVE_OPENBSD_OS_TRUE=
16222   HAVE_OPENBSD_OS_FALSE='#'
16223 else
16224   HAVE_OPENBSD_OS_TRUE='#'
16225   HAVE_OPENBSD_OS_FALSE=
16226 fi
16227         cat >>confdefs.h <<\_ACEOF
16228 #define HAVE_OPENBSD_OS 1
16229 _ACEOF
16230
16231 else
16232
16233
16234 if $FALSEPRG; then
16235   HAVE_OPENBSD_OS_TRUE=
16236   HAVE_OPENBSD_OS_FALSE='#'
16237 else
16238   HAVE_OPENBSD_OS_TRUE='#'
16239   HAVE_OPENBSD_OS_FALSE=
16240 fi
16241 fi
16242
16243 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16244 then
16245
16246
16247 if $TRUEPRG; then
16248   HAVE_BSDI_OS_TRUE=
16249   HAVE_BSDI_OS_FALSE='#'
16250 else
16251   HAVE_BSDI_OS_TRUE='#'
16252   HAVE_BSDI_OS_FALSE=
16253 fi
16254         cat >>confdefs.h <<\_ACEOF
16255 #define HAVE_BSDI_OS 1
16256 _ACEOF
16257
16258 else
16259
16260
16261 if $FALSEPRG; then
16262   HAVE_BSDI_OS_TRUE=
16263   HAVE_BSDI_OS_FALSE='#'
16264 else
16265   HAVE_BSDI_OS_TRUE='#'
16266   HAVE_BSDI_OS_FALSE=
16267 fi
16268 fi
16269
16270 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16271 then
16272
16273
16274 if $TRUEPRG; then
16275   HAVE_SGI_OS_TRUE=
16276   HAVE_SGI_OS_FALSE='#'
16277 else
16278   HAVE_SGI_OS_TRUE='#'
16279   HAVE_SGI_OS_FALSE=
16280 fi
16281         cat >>confdefs.h <<\_ACEOF
16282 #define HAVE_SGI_OS 1
16283 _ACEOF
16284
16285 else
16286
16287
16288 if $FALSEPRG; then
16289   HAVE_SGI_OS_TRUE=
16290   HAVE_SGI_OS_FALSE='#'
16291 else
16292   HAVE_SGI_OS_TRUE='#'
16293   HAVE_SGI_OS_FALSE=
16294 fi
16295 fi
16296
16297 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16298 then
16299
16300
16301 if $TRUEPRG; then
16302   HAVE_IRIX_OS_TRUE=
16303   HAVE_IRIX_OS_FALSE='#'
16304 else
16305   HAVE_IRIX_OS_TRUE='#'
16306   HAVE_IRIX_OS_FALSE=
16307 fi
16308         cat >>confdefs.h <<\_ACEOF
16309 #define HAVE_IRIX_OS 1
16310 _ACEOF
16311
16312 else
16313
16314
16315 if $FALSEPRG; then
16316   HAVE_IRIX_OS_TRUE=
16317   HAVE_IRIX_OS_FALSE='#'
16318 else
16319   HAVE_IRIX_OS_TRUE='#'
16320   HAVE_IRIX_OS_FALSE=
16321 fi
16322 fi
16323
16324 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16325 then
16326
16327
16328 if $TRUEPRG; then
16329   HAVE_DARWIN_OS_TRUE=
16330   HAVE_DARWIN_OS_FALSE='#'
16331 else
16332   HAVE_DARWIN_OS_TRUE='#'
16333   HAVE_DARWIN_OS_FALSE=
16334 fi
16335     cat >>confdefs.h <<\_ACEOF
16336 #define HAVE_DARWIN_OS 1
16337 _ACEOF
16338
16339 else
16340
16341
16342 if $FALSEPRG; then
16343   HAVE_DARWIN_OS_TRUE=
16344   HAVE_DARWIN_OS_FALSE='#'
16345 else
16346   HAVE_DARWIN_OS_TRUE='#'
16347   HAVE_DARWIN_OS_FALSE=
16348 fi
16349 fi
16350
16351
16352 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16353 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16354 if test "x$DISTNAME" != "x"
16355 then
16356         echo "distname set to $DISTNAME"
16357 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16358 then
16359         DISTNAME=alpha
16360 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16361 then
16362         DISTNAME=aix
16363 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16364 then
16365         DISTNAME=hpux
16366 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16367 then
16368         DISTNAME=solaris
16369 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16370 then
16371         DISTNAME=freebsd
16372 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16373 then
16374         DISTNAME=netbsd
16375 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16376 then
16377         DISTNAME=openbsd
16378 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16379 then
16380         DISTNAME=irix
16381 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16382 then
16383         DISTNAME=bsdi
16384 elif test -f /etc/SuSE-release
16385 then
16386         DISTNAME=suse
16387 elif test -d /etc/SuSEconfig
16388 then
16389         DISTNAME=suse5
16390 elif test -f /etc/mandrake-release
16391 then
16392         DISTNAME=mandrake
16393 elif test -f /etc/whitebox-release
16394 then
16395        DISTNAME=redhat
16396 elif test -f /etc/redhat-release
16397 then
16398         DISTNAME=redhat
16399 elif test -f /etc/gentoo-release
16400 then
16401         DISTNAME=gentoo
16402 elif test -f /etc/debian_version
16403 then
16404         DISTNAME=debian
16405 elif test -f /etc/slackware-version
16406 then
16407         DISTNAME=slackware
16408 elif test x$host_vendor = xapple
16409 then
16410     DISTNAME=osx
16411 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16412 then
16413     DISTNAME=darwin
16414 elif test -f /etc/engarde-version
16415 then
16416         DISTNAME=engarde
16417 elif test "$CYGWIN" = yes
16418 then
16419         DISTNAME=cygwin
16420         cat >>confdefs.h <<\_ACEOF
16421 #define HAVE_CYGWIN 1
16422 _ACEOF
16423
16424 else
16425         DISTNAME=unknown
16426 fi
16427 { echo "$as_me:$LINENO: result: done" >&5
16428 echo "${ECHO_T}done" >&6; }
16429
16430
16431 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16432 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16433 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16434 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16435   echo $ECHO_N "(cached) $ECHO_C" >&6
16436 else
16437   cat >conftest.make <<\_ACEOF
16438 SHELL = /bin/sh
16439 all:
16440         @echo '@@@%%%=$(MAKE)=@@@%%%'
16441 _ACEOF
16442 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16443 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16444   *@@@%%%=?*=@@@%%%*)
16445     eval ac_cv_prog_make_${ac_make}_set=yes;;
16446   *)
16447     eval ac_cv_prog_make_${ac_make}_set=no;;
16448 esac
16449 rm -f conftest.make
16450 fi
16451 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16452   { echo "$as_me:$LINENO: result: yes" >&5
16453 echo "${ECHO_T}yes" >&6; }
16454   SET_MAKE=
16455 else
16456   { echo "$as_me:$LINENO: result: no" >&5
16457 echo "${ECHO_T}no" >&6; }
16458   SET_MAKE="MAKE=${MAKE-make}"
16459 fi
16460
16461
16462
16463         MKINSTALLDIRS=
16464   if test -n "$ac_aux_dir"; then
16465     case "$ac_aux_dir" in
16466       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16467       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16468     esac
16469   fi
16470   if test -z "$MKINSTALLDIRS"; then
16471     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16472   fi
16473
16474
16475
16476   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16477 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16478     # Check whether --enable-nls was given.
16479 if test "${enable_nls+set}" = set; then
16480   enableval=$enable_nls; USE_NLS=$enableval
16481 else
16482   USE_NLS=yes
16483 fi
16484
16485   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16486 echo "${ECHO_T}$USE_NLS" >&6; }
16487
16488
16489
16490
16491
16492
16493 # Prepare PATH_SEPARATOR.
16494 # The user is always right.
16495 if test "${PATH_SEPARATOR+set}" != set; then
16496   echo "#! /bin/sh" >conf$$.sh
16497   echo  "exit 0"   >>conf$$.sh
16498   chmod +x conf$$.sh
16499   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16500     PATH_SEPARATOR=';'
16501   else
16502     PATH_SEPARATOR=:
16503   fi
16504   rm -f conf$$.sh
16505 fi
16506
16507 # Find out how to test for executable files. Don't use a zero-byte file,
16508 # as systems may use methods other than mode bits to determine executability.
16509 cat >conf$$.file <<_ASEOF
16510 #! /bin/sh
16511 exit 0
16512 _ASEOF
16513 chmod +x conf$$.file
16514 if test -x conf$$.file >/dev/null 2>&1; then
16515   ac_executable_p="test -x"
16516 else
16517   ac_executable_p="test -f"
16518 fi
16519 rm -f conf$$.file
16520
16521 # Extract the first word of "msgfmt", so it can be a program name with args.
16522 set dummy msgfmt; ac_word=$2
16523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16525 if test "${ac_cv_path_MSGFMT+set}" = set; then
16526   echo $ECHO_N "(cached) $ECHO_C" >&6
16527 else
16528   case "$MSGFMT" in
16529   [\\/]* | ?:[\\/]*)
16530     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16531     ;;
16532   *)
16533     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16534     for ac_dir in $PATH; do
16535       IFS="$ac_save_IFS"
16536       test -z "$ac_dir" && ac_dir=.
16537       for ac_exec_ext in '' $ac_executable_extensions; do
16538         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16539           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16540           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16541      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16542             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16543             break 2
16544           fi
16545         fi
16546       done
16547     done
16548     IFS="$ac_save_IFS"
16549   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16550     ;;
16551 esac
16552 fi
16553 MSGFMT="$ac_cv_path_MSGFMT"
16554 if test "$MSGFMT" != ":"; then
16555   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16556 echo "${ECHO_T}$MSGFMT" >&6; }
16557 else
16558   { echo "$as_me:$LINENO: result: no" >&5
16559 echo "${ECHO_T}no" >&6; }
16560 fi
16561
16562   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16563 set dummy gmsgfmt; ac_word=$2
16564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16566 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16567   echo $ECHO_N "(cached) $ECHO_C" >&6
16568 else
16569   case $GMSGFMT in
16570   [\\/]* | ?:[\\/]*)
16571   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16572   ;;
16573   *)
16574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16575 for as_dir in $PATH
16576 do
16577   IFS=$as_save_IFS
16578   test -z "$as_dir" && as_dir=.
16579   for ac_exec_ext in '' $ac_executable_extensions; do
16580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16581     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16583     break 2
16584   fi
16585 done
16586 done
16587 IFS=$as_save_IFS
16588
16589   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16590   ;;
16591 esac
16592 fi
16593 GMSGFMT=$ac_cv_path_GMSGFMT
16594 if test -n "$GMSGFMT"; then
16595   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16596 echo "${ECHO_T}$GMSGFMT" >&6; }
16597 else
16598   { echo "$as_me:$LINENO: result: no" >&5
16599 echo "${ECHO_T}no" >&6; }
16600 fi
16601
16602
16603
16604
16605 # Prepare PATH_SEPARATOR.
16606 # The user is always right.
16607 if test "${PATH_SEPARATOR+set}" != set; then
16608   echo "#! /bin/sh" >conf$$.sh
16609   echo  "exit 0"   >>conf$$.sh
16610   chmod +x conf$$.sh
16611   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16612     PATH_SEPARATOR=';'
16613   else
16614     PATH_SEPARATOR=:
16615   fi
16616   rm -f conf$$.sh
16617 fi
16618
16619 # Find out how to test for executable files. Don't use a zero-byte file,
16620 # as systems may use methods other than mode bits to determine executability.
16621 cat >conf$$.file <<_ASEOF
16622 #! /bin/sh
16623 exit 0
16624 _ASEOF
16625 chmod +x conf$$.file
16626 if test -x conf$$.file >/dev/null 2>&1; then
16627   ac_executable_p="test -x"
16628 else
16629   ac_executable_p="test -f"
16630 fi
16631 rm -f conf$$.file
16632
16633 # Extract the first word of "xgettext", so it can be a program name with args.
16634 set dummy xgettext; ac_word=$2
16635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16637 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16638   echo $ECHO_N "(cached) $ECHO_C" >&6
16639 else
16640   case "$XGETTEXT" in
16641   [\\/]* | ?:[\\/]*)
16642     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16643     ;;
16644   *)
16645     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16646     for ac_dir in $PATH; do
16647       IFS="$ac_save_IFS"
16648       test -z "$ac_dir" && ac_dir=.
16649       for ac_exec_ext in '' $ac_executable_extensions; do
16650         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16651           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16652           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16653      (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
16654             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16655             break 2
16656           fi
16657         fi
16658       done
16659     done
16660     IFS="$ac_save_IFS"
16661   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16662     ;;
16663 esac
16664 fi
16665 XGETTEXT="$ac_cv_path_XGETTEXT"
16666 if test "$XGETTEXT" != ":"; then
16667   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16668 echo "${ECHO_T}$XGETTEXT" >&6; }
16669 else
16670   { echo "$as_me:$LINENO: result: no" >&5
16671 echo "${ECHO_T}no" >&6; }
16672 fi
16673
16674     rm -f messages.po
16675
16676
16677 # Prepare PATH_SEPARATOR.
16678 # The user is always right.
16679 if test "${PATH_SEPARATOR+set}" != set; then
16680   echo "#! /bin/sh" >conf$$.sh
16681   echo  "exit 0"   >>conf$$.sh
16682   chmod +x conf$$.sh
16683   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16684     PATH_SEPARATOR=';'
16685   else
16686     PATH_SEPARATOR=:
16687   fi
16688   rm -f conf$$.sh
16689 fi
16690
16691 # Find out how to test for executable files. Don't use a zero-byte file,
16692 # as systems may use methods other than mode bits to determine executability.
16693 cat >conf$$.file <<_ASEOF
16694 #! /bin/sh
16695 exit 0
16696 _ASEOF
16697 chmod +x conf$$.file
16698 if test -x conf$$.file >/dev/null 2>&1; then
16699   ac_executable_p="test -x"
16700 else
16701   ac_executable_p="test -f"
16702 fi
16703 rm -f conf$$.file
16704
16705 # Extract the first word of "msgmerge", so it can be a program name with args.
16706 set dummy msgmerge; ac_word=$2
16707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16709 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16710   echo $ECHO_N "(cached) $ECHO_C" >&6
16711 else
16712   case "$MSGMERGE" in
16713   [\\/]* | ?:[\\/]*)
16714     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16715     ;;
16716   *)
16717     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16718     for ac_dir in $PATH; do
16719       IFS="$ac_save_IFS"
16720       test -z "$ac_dir" && ac_dir=.
16721       for ac_exec_ext in '' $ac_executable_extensions; do
16722         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16723           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16724           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16725             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16726             break 2
16727           fi
16728         fi
16729       done
16730     done
16731     IFS="$ac_save_IFS"
16732   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16733     ;;
16734 esac
16735 fi
16736 MSGMERGE="$ac_cv_path_MSGMERGE"
16737 if test "$MSGMERGE" != ":"; then
16738   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16739 echo "${ECHO_T}$MSGMERGE" >&6; }
16740 else
16741   { echo "$as_me:$LINENO: result: no" >&5
16742 echo "${ECHO_T}no" >&6; }
16743 fi
16744
16745
16746       if test "$GMSGFMT" != ":"; then
16747             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16748        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16749       : ;
16750     else
16751       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16752       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16753 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16754       GMSGFMT=":"
16755     fi
16756   fi
16757
16758       if test "$XGETTEXT" != ":"; then
16759             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16760        (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
16761       : ;
16762     else
16763       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16764 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16765       XGETTEXT=":"
16766     fi
16767         rm -f messages.po
16768   fi
16769
16770   ac_config_commands="$ac_config_commands default-1"
16771
16772
16773
16774       if test "X$prefix" = "XNONE"; then
16775     acl_final_prefix="$ac_default_prefix"
16776   else
16777     acl_final_prefix="$prefix"
16778   fi
16779   if test "X$exec_prefix" = "XNONE"; then
16780     acl_final_exec_prefix='${prefix}'
16781   else
16782     acl_final_exec_prefix="$exec_prefix"
16783   fi
16784   acl_save_prefix="$prefix"
16785   prefix="$acl_final_prefix"
16786   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16787   prefix="$acl_save_prefix"
16788
16789
16790 # Check whether --with-gnu-ld was given.
16791 if test "${with_gnu_ld+set}" = set; then
16792   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16793 else
16794   with_gnu_ld=no
16795 fi
16796
16797 # Prepare PATH_SEPARATOR.
16798 # The user is always right.
16799 if test "${PATH_SEPARATOR+set}" != set; then
16800   echo "#! /bin/sh" >conf$$.sh
16801   echo  "exit 0"   >>conf$$.sh
16802   chmod +x conf$$.sh
16803   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16804     PATH_SEPARATOR=';'
16805   else
16806     PATH_SEPARATOR=:
16807   fi
16808   rm -f conf$$.sh
16809 fi
16810 ac_prog=ld
16811 if test "$GCC" = yes; then
16812   # Check if gcc -print-prog-name=ld gives a path.
16813   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16814 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16815   case $host in
16816   *-*-mingw*)
16817     # gcc leaves a trailing carriage return which upsets mingw
16818     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16819   *)
16820     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16821   esac
16822   case $ac_prog in
16823     # Accept absolute paths.
16824     [\\/]* | [A-Za-z]:[\\/]*)
16825       re_direlt='/[^/][^/]*/\.\./'
16826       # Canonicalize the path of ld
16827       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16828       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16829         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16830       done
16831       test -z "$LD" && LD="$ac_prog"
16832       ;;
16833   "")
16834     # If it fails, then pretend we aren't using GCC.
16835     ac_prog=ld
16836     ;;
16837   *)
16838     # If it is relative, then search for the first ld in PATH.
16839     with_gnu_ld=unknown
16840     ;;
16841   esac
16842 elif test "$with_gnu_ld" = yes; then
16843   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16844 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16845 else
16846   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16847 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16848 fi
16849 if test "${acl_cv_path_LD+set}" = set; then
16850   echo $ECHO_N "(cached) $ECHO_C" >&6
16851 else
16852   if test -z "$LD"; then
16853   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16854   for ac_dir in $PATH; do
16855     test -z "$ac_dir" && ac_dir=.
16856     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16857       acl_cv_path_LD="$ac_dir/$ac_prog"
16858       # Check to see if the program is GNU ld.  I'd rather use --version,
16859       # but apparently some GNU ld's only accept -v.
16860       # Break only if it was the GNU/non-GNU ld that we prefer.
16861       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16862       *GNU* | *'with BFD'*)
16863         test "$with_gnu_ld" != no && break ;;
16864       *)
16865         test "$with_gnu_ld" != yes && break ;;
16866       esac
16867     fi
16868   done
16869   IFS="$ac_save_ifs"
16870 else
16871   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16872 fi
16873 fi
16874
16875 LD="$acl_cv_path_LD"
16876 if test -n "$LD"; then
16877   { echo "$as_me:$LINENO: result: $LD" >&5
16878 echo "${ECHO_T}$LD" >&6; }
16879 else
16880   { echo "$as_me:$LINENO: result: no" >&5
16881 echo "${ECHO_T}no" >&6; }
16882 fi
16883 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16884 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16885    { (exit 1); exit 1; }; }
16886 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16887 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16888 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16889   echo $ECHO_N "(cached) $ECHO_C" >&6
16890 else
16891   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16892 case `$LD -v 2>&1 </dev/null` in
16893 *GNU* | *'with BFD'*)
16894   acl_cv_prog_gnu_ld=yes ;;
16895 *)
16896   acl_cv_prog_gnu_ld=no ;;
16897 esac
16898 fi
16899 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16900 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16901 with_gnu_ld=$acl_cv_prog_gnu_ld
16902
16903
16904
16905
16906                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16907 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16908 if test "${acl_cv_rpath+set}" = set; then
16909   echo $ECHO_N "(cached) $ECHO_C" >&6
16910 else
16911
16912     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16913     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16914     . ./conftest.sh
16915     rm -f ./conftest.sh
16916     acl_cv_rpath=done
16917
16918 fi
16919 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16920 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16921   wl="$acl_cv_wl"
16922   libext="$acl_cv_libext"
16923   shlibext="$acl_cv_shlibext"
16924   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16925   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16926   hardcode_direct="$acl_cv_hardcode_direct"
16927   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16928     # Check whether --enable-rpath was given.
16929 if test "${enable_rpath+set}" = set; then
16930   enableval=$enable_rpath; :
16931 else
16932   enable_rpath=yes
16933 fi
16934
16935
16936
16937
16938
16939
16940
16941
16942     use_additional=yes
16943
16944   acl_save_prefix="$prefix"
16945   prefix="$acl_final_prefix"
16946   acl_save_exec_prefix="$exec_prefix"
16947   exec_prefix="$acl_final_exec_prefix"
16948
16949     eval additional_includedir=\"$includedir\"
16950     eval additional_libdir=\"$libdir\"
16951
16952   exec_prefix="$acl_save_exec_prefix"
16953   prefix="$acl_save_prefix"
16954
16955
16956 # Check whether --with-libiconv-prefix was given.
16957 if test "${with_libiconv_prefix+set}" = set; then
16958   withval=$with_libiconv_prefix;
16959     if test "X$withval" = "Xno"; then
16960       use_additional=no
16961     else
16962       if test "X$withval" = "X"; then
16963
16964   acl_save_prefix="$prefix"
16965   prefix="$acl_final_prefix"
16966   acl_save_exec_prefix="$exec_prefix"
16967   exec_prefix="$acl_final_exec_prefix"
16968
16969           eval additional_includedir=\"$includedir\"
16970           eval additional_libdir=\"$libdir\"
16971
16972   exec_prefix="$acl_save_exec_prefix"
16973   prefix="$acl_save_prefix"
16974
16975       else
16976         additional_includedir="$withval/include"
16977         additional_libdir="$withval/lib"
16978       fi
16979     fi
16980
16981 fi
16982
16983       LIBICONV=
16984   LTLIBICONV=
16985   INCICONV=
16986   rpathdirs=
16987   ltrpathdirs=
16988   names_already_handled=
16989   names_next_round='iconv '
16990   while test -n "$names_next_round"; do
16991     names_this_round="$names_next_round"
16992     names_next_round=
16993     for name in $names_this_round; do
16994       already_handled=
16995       for n in $names_already_handled; do
16996         if test "$n" = "$name"; then
16997           already_handled=yes
16998           break
16999         fi
17000       done
17001       if test -z "$already_handled"; then
17002         names_already_handled="$names_already_handled $name"
17003                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17004         eval value=\"\$HAVE_LIB$uppername\"
17005         if test -n "$value"; then
17006           if test "$value" = yes; then
17007             eval value=\"\$LIB$uppername\"
17008             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17009             eval value=\"\$LTLIB$uppername\"
17010             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17011           else
17012                                     :
17013           fi
17014         else
17015                               found_dir=
17016           found_la=
17017           found_so=
17018           found_a=
17019           if test $use_additional = yes; then
17020             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17021               found_dir="$additional_libdir"
17022               found_so="$additional_libdir/lib$name.$shlibext"
17023               if test -f "$additional_libdir/lib$name.la"; then
17024                 found_la="$additional_libdir/lib$name.la"
17025               fi
17026             else
17027               if test -f "$additional_libdir/lib$name.$libext"; then
17028                 found_dir="$additional_libdir"
17029                 found_a="$additional_libdir/lib$name.$libext"
17030                 if test -f "$additional_libdir/lib$name.la"; then
17031                   found_la="$additional_libdir/lib$name.la"
17032                 fi
17033               fi
17034             fi
17035           fi
17036           if test "X$found_dir" = "X"; then
17037             for x in $LDFLAGS $LTLIBICONV; do
17038
17039   acl_save_prefix="$prefix"
17040   prefix="$acl_final_prefix"
17041   acl_save_exec_prefix="$exec_prefix"
17042   exec_prefix="$acl_final_exec_prefix"
17043   eval x=\"$x\"
17044   exec_prefix="$acl_save_exec_prefix"
17045   prefix="$acl_save_prefix"
17046
17047               case "$x" in
17048                 -L*)
17049                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17050                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17051                     found_dir="$dir"
17052                     found_so="$dir/lib$name.$shlibext"
17053                     if test -f "$dir/lib$name.la"; then
17054                       found_la="$dir/lib$name.la"
17055                     fi
17056                   else
17057                     if test -f "$dir/lib$name.$libext"; then
17058                       found_dir="$dir"
17059                       found_a="$dir/lib$name.$libext"
17060                       if test -f "$dir/lib$name.la"; then
17061                         found_la="$dir/lib$name.la"
17062                       fi
17063                     fi
17064                   fi
17065                   ;;
17066               esac
17067               if test "X$found_dir" != "X"; then
17068                 break
17069               fi
17070             done
17071           fi
17072           if test "X$found_dir" != "X"; then
17073                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17074             if test "X$found_so" != "X"; then
17075                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17076                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17077               else
17078                                                                                 haveit=
17079                 for x in $ltrpathdirs; do
17080                   if test "X$x" = "X$found_dir"; then
17081                     haveit=yes
17082                     break
17083                   fi
17084                 done
17085                 if test -z "$haveit"; then
17086                   ltrpathdirs="$ltrpathdirs $found_dir"
17087                 fi
17088                                 if test "$hardcode_direct" = yes; then
17089                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17090                 else
17091                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17092                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17093                                                             haveit=
17094                     for x in $rpathdirs; do
17095                       if test "X$x" = "X$found_dir"; then
17096                         haveit=yes
17097                         break
17098                       fi
17099                     done
17100                     if test -z "$haveit"; then
17101                       rpathdirs="$rpathdirs $found_dir"
17102                     fi
17103                   else
17104                                                                                 haveit=
17105                     for x in $LDFLAGS $LIBICONV; do
17106
17107   acl_save_prefix="$prefix"
17108   prefix="$acl_final_prefix"
17109   acl_save_exec_prefix="$exec_prefix"
17110   exec_prefix="$acl_final_exec_prefix"
17111   eval x=\"$x\"
17112   exec_prefix="$acl_save_exec_prefix"
17113   prefix="$acl_save_prefix"
17114
17115                       if test "X$x" = "X-L$found_dir"; then
17116                         haveit=yes
17117                         break
17118                       fi
17119                     done
17120                     if test -z "$haveit"; then
17121                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17122                     fi
17123                     if test "$hardcode_minus_L" != no; then
17124                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17125                     else
17126                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17127                     fi
17128                   fi
17129                 fi
17130               fi
17131             else
17132               if test "X$found_a" != "X"; then
17133                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17134               else
17135                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17136               fi
17137             fi
17138                         additional_includedir=
17139             case "$found_dir" in
17140               */lib | */lib/)
17141                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17142                 additional_includedir="$basedir/include"
17143                 ;;
17144             esac
17145             if test "X$additional_includedir" != "X"; then
17146                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17147                 haveit=
17148                 if test "X$additional_includedir" = "X/usr/local/include"; then
17149                   if test -n "$GCC"; then
17150                     case $host_os in
17151                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17152                     esac
17153                   fi
17154                 fi
17155                 if test -z "$haveit"; then
17156                   for x in $CPPFLAGS $INCICONV; do
17157
17158   acl_save_prefix="$prefix"
17159   prefix="$acl_final_prefix"
17160   acl_save_exec_prefix="$exec_prefix"
17161   exec_prefix="$acl_final_exec_prefix"
17162   eval x=\"$x\"
17163   exec_prefix="$acl_save_exec_prefix"
17164   prefix="$acl_save_prefix"
17165
17166                     if test "X$x" = "X-I$additional_includedir"; then
17167                       haveit=yes
17168                       break
17169                     fi
17170                   done
17171                   if test -z "$haveit"; then
17172                     if test -d "$additional_includedir"; then
17173                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17174                     fi
17175                   fi
17176                 fi
17177               fi
17178             fi
17179                         if test -n "$found_la"; then
17180                                                         save_libdir="$libdir"
17181               case "$found_la" in
17182                 */* | *\\*) . "$found_la" ;;
17183                 *) . "./$found_la" ;;
17184               esac
17185               libdir="$save_libdir"
17186                             for dep in $dependency_libs; do
17187                 case "$dep" in
17188                   -L*)
17189                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17190                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17191                       haveit=
17192                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17193                         if test -n "$GCC"; then
17194                           case $host_os in
17195                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17196                           esac
17197                         fi
17198                       fi
17199                       if test -z "$haveit"; then
17200                         haveit=
17201                         for x in $LDFLAGS $LIBICONV; do
17202
17203   acl_save_prefix="$prefix"
17204   prefix="$acl_final_prefix"
17205   acl_save_exec_prefix="$exec_prefix"
17206   exec_prefix="$acl_final_exec_prefix"
17207   eval x=\"$x\"
17208   exec_prefix="$acl_save_exec_prefix"
17209   prefix="$acl_save_prefix"
17210
17211                           if test "X$x" = "X-L$additional_libdir"; then
17212                             haveit=yes
17213                             break
17214                           fi
17215                         done
17216                         if test -z "$haveit"; then
17217                           if test -d "$additional_libdir"; then
17218                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17219                           fi
17220                         fi
17221                         haveit=
17222                         for x in $LDFLAGS $LTLIBICONV; do
17223
17224   acl_save_prefix="$prefix"
17225   prefix="$acl_final_prefix"
17226   acl_save_exec_prefix="$exec_prefix"
17227   exec_prefix="$acl_final_exec_prefix"
17228   eval x=\"$x\"
17229   exec_prefix="$acl_save_exec_prefix"
17230   prefix="$acl_save_prefix"
17231
17232                           if test "X$x" = "X-L$additional_libdir"; then
17233                             haveit=yes
17234                             break
17235                           fi
17236                         done
17237                         if test -z "$haveit"; then
17238                           if test -d "$additional_libdir"; then
17239                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17240                           fi
17241                         fi
17242                       fi
17243                     fi
17244                     ;;
17245                   -R*)
17246                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17247                     if test "$enable_rpath" != no; then
17248                                                                   haveit=
17249                       for x in $rpathdirs; do
17250                         if test "X$x" = "X$dir"; then
17251                           haveit=yes
17252                           break
17253                         fi
17254                       done
17255                       if test -z "$haveit"; then
17256                         rpathdirs="$rpathdirs $dir"
17257                       fi
17258                                                                   haveit=
17259                       for x in $ltrpathdirs; do
17260                         if test "X$x" = "X$dir"; then
17261                           haveit=yes
17262                           break
17263                         fi
17264                       done
17265                       if test -z "$haveit"; then
17266                         ltrpathdirs="$ltrpathdirs $dir"
17267                       fi
17268                     fi
17269                     ;;
17270                   -l*)
17271                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17272                     ;;
17273                   *.la)
17274                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17275                     ;;
17276                   *)
17277                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17278                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17279                     ;;
17280                 esac
17281               done
17282             fi
17283           else
17284                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17285             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17286           fi
17287         fi
17288       fi
17289     done
17290   done
17291   if test "X$rpathdirs" != "X"; then
17292     if test -n "$hardcode_libdir_separator"; then
17293                         alldirs=
17294       for found_dir in $rpathdirs; do
17295         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17296       done
17297             acl_save_libdir="$libdir"
17298       libdir="$alldirs"
17299       eval flag=\"$hardcode_libdir_flag_spec\"
17300       libdir="$acl_save_libdir"
17301       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17302     else
17303             for found_dir in $rpathdirs; do
17304         acl_save_libdir="$libdir"
17305         libdir="$found_dir"
17306         eval flag=\"$hardcode_libdir_flag_spec\"
17307         libdir="$acl_save_libdir"
17308         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17309       done
17310     fi
17311   fi
17312   if test "X$ltrpathdirs" != "X"; then
17313             for found_dir in $ltrpathdirs; do
17314       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17315     done
17316   fi
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17336 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17337 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17338   echo $ECHO_N "(cached) $ECHO_C" >&6
17339 else
17340   gt_save_CPPFLAGS="$CPPFLAGS"
17341      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17342      gt_save_LIBS="$LIBS"
17343      LIBS="$LIBS -framework CoreFoundation"
17344      cat >conftest.$ac_ext <<_ACEOF
17345 /* confdefs.h.  */
17346 _ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h.  */
17350 #include <CFPreferences.h>
17351 int
17352 main ()
17353 {
17354 CFPreferencesCopyAppValue(NULL, NULL)
17355   ;
17356   return 0;
17357 }
17358 _ACEOF
17359 rm -f conftest.$ac_objext conftest$ac_exeext
17360 if { (ac_try="$ac_link"
17361 case "(($ac_try" in
17362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363   *) ac_try_echo=$ac_try;;
17364 esac
17365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366   (eval "$ac_link") 2>conftest.er1
17367   ac_status=$?
17368   grep -v '^ *+' conftest.er1 >conftest.err
17369   rm -f conftest.er1
17370   cat conftest.err >&5
17371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372   (exit $ac_status); } && {
17373          test -z "$ac_c_werror_flag" ||
17374          test ! -s conftest.err
17375        } && test -s conftest$ac_exeext &&
17376        $as_test_x conftest$ac_exeext; then
17377   gt_cv_func_CFPreferencesCopyAppValue=yes
17378 else
17379   echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17381
17382         gt_cv_func_CFPreferencesCopyAppValue=no
17383 fi
17384
17385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17386       conftest$ac_exeext conftest.$ac_ext
17387      CPPFLAGS="$gt_save_CPPFLAGS"
17388      LIBS="$gt_save_LIBS"
17389 fi
17390 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17391 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17392   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17393
17394 cat >>confdefs.h <<\_ACEOF
17395 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17396 _ACEOF
17397
17398   fi
17399     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17400 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17401 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17402   echo $ECHO_N "(cached) $ECHO_C" >&6
17403 else
17404   gt_save_CPPFLAGS="$CPPFLAGS"
17405      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17406      gt_save_LIBS="$LIBS"
17407      LIBS="$LIBS -framework CoreFoundation"
17408      cat >conftest.$ac_ext <<_ACEOF
17409 /* confdefs.h.  */
17410 _ACEOF
17411 cat confdefs.h >>conftest.$ac_ext
17412 cat >>conftest.$ac_ext <<_ACEOF
17413 /* end confdefs.h.  */
17414 #include <CFLocale.h>
17415 int
17416 main ()
17417 {
17418 CFLocaleCopyCurrent();
17419   ;
17420   return 0;
17421 }
17422 _ACEOF
17423 rm -f conftest.$ac_objext conftest$ac_exeext
17424 if { (ac_try="$ac_link"
17425 case "(($ac_try" in
17426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17427   *) ac_try_echo=$ac_try;;
17428 esac
17429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17430   (eval "$ac_link") 2>conftest.er1
17431   ac_status=$?
17432   grep -v '^ *+' conftest.er1 >conftest.err
17433   rm -f conftest.er1
17434   cat conftest.err >&5
17435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436   (exit $ac_status); } && {
17437          test -z "$ac_c_werror_flag" ||
17438          test ! -s conftest.err
17439        } && test -s conftest$ac_exeext &&
17440        $as_test_x conftest$ac_exeext; then
17441   gt_cv_func_CFLocaleCopyCurrent=yes
17442 else
17443   echo "$as_me: failed program was:" >&5
17444 sed 's/^/| /' conftest.$ac_ext >&5
17445
17446         gt_cv_func_CFLocaleCopyCurrent=no
17447 fi
17448
17449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17450       conftest$ac_exeext conftest.$ac_ext
17451      CPPFLAGS="$gt_save_CPPFLAGS"
17452      LIBS="$gt_save_LIBS"
17453 fi
17454 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17455 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17456   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17457
17458 cat >>confdefs.h <<\_ACEOF
17459 #define HAVE_CFLOCALECOPYCURRENT 1
17460 _ACEOF
17461
17462   fi
17463   INTL_MACOSX_LIBS=
17464   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17465     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17466   fi
17467
17468
17469
17470
17471   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17472 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17473     # Check whether --enable-nls was given.
17474 if test "${enable_nls+set}" = set; then
17475   enableval=$enable_nls; USE_NLS=$enableval
17476 else
17477   USE_NLS=yes
17478 fi
17479
17480   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17481 echo "${ECHO_T}$USE_NLS" >&6; }
17482
17483
17484
17485
17486   LIBINTL=
17487   LTLIBINTL=
17488   POSUB=
17489
17490     if test "$USE_NLS" = "yes"; then
17491     gt_use_preinstalled_gnugettext=no
17492
17493
17494
17495
17496
17497
17498         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17499 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17500 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17501   echo $ECHO_N "(cached) $ECHO_C" >&6
17502 else
17503   cat >conftest.$ac_ext <<_ACEOF
17504 /* confdefs.h.  */
17505 _ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h.  */
17509 #include <libintl.h>
17510 extern int _nl_msg_cat_cntr;
17511 extern int *_nl_domain_bindings;
17512 int
17513 main ()
17514 {
17515 bindtextdomain ("", "");
17516 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17517   ;
17518   return 0;
17519 }
17520 _ACEOF
17521 rm -f conftest.$ac_objext conftest$ac_exeext
17522 if { (ac_try="$ac_link"
17523 case "(($ac_try" in
17524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525   *) ac_try_echo=$ac_try;;
17526 esac
17527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528   (eval "$ac_link") 2>conftest.er1
17529   ac_status=$?
17530   grep -v '^ *+' conftest.er1 >conftest.err
17531   rm -f conftest.er1
17532   cat conftest.err >&5
17533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534   (exit $ac_status); } && {
17535          test -z "$ac_c_werror_flag" ||
17536          test ! -s conftest.err
17537        } && test -s conftest$ac_exeext &&
17538        $as_test_x conftest$ac_exeext; then
17539   gt_cv_func_gnugettext1_libc=yes
17540 else
17541   echo "$as_me: failed program was:" >&5
17542 sed 's/^/| /' conftest.$ac_ext >&5
17543
17544         gt_cv_func_gnugettext1_libc=no
17545 fi
17546
17547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17548       conftest$ac_exeext conftest.$ac_ext
17549 fi
17550 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17551 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17552
17553         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17554
17555
17556
17557
17558
17559           am_save_CPPFLAGS="$CPPFLAGS"
17560
17561   for element in $INCICONV; do
17562     haveit=
17563     for x in $CPPFLAGS; do
17564
17565   acl_save_prefix="$prefix"
17566   prefix="$acl_final_prefix"
17567   acl_save_exec_prefix="$exec_prefix"
17568   exec_prefix="$acl_final_exec_prefix"
17569   eval x=\"$x\"
17570   exec_prefix="$acl_save_exec_prefix"
17571   prefix="$acl_save_prefix"
17572
17573       if test "X$x" = "X$element"; then
17574         haveit=yes
17575         break
17576       fi
17577     done
17578     if test -z "$haveit"; then
17579       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17580     fi
17581   done
17582
17583
17584   { echo "$as_me:$LINENO: checking for iconv" >&5
17585 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17586 if test "${am_cv_func_iconv+set}" = set; then
17587   echo $ECHO_N "(cached) $ECHO_C" >&6
17588 else
17589
17590     am_cv_func_iconv="no, consider installing GNU libiconv"
17591     am_cv_lib_iconv=no
17592     cat >conftest.$ac_ext <<_ACEOF
17593 /* confdefs.h.  */
17594 _ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h.  */
17598 #include <stdlib.h>
17599 #include <iconv.h>
17600 int
17601 main ()
17602 {
17603 iconv_t cd = iconv_open("","");
17604        iconv(cd,NULL,NULL,NULL,NULL);
17605        iconv_close(cd);
17606   ;
17607   return 0;
17608 }
17609 _ACEOF
17610 rm -f conftest.$ac_objext conftest$ac_exeext
17611 if { (ac_try="$ac_link"
17612 case "(($ac_try" in
17613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17614   *) ac_try_echo=$ac_try;;
17615 esac
17616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17617   (eval "$ac_link") 2>conftest.er1
17618   ac_status=$?
17619   grep -v '^ *+' conftest.er1 >conftest.err
17620   rm -f conftest.er1
17621   cat conftest.err >&5
17622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623   (exit $ac_status); } && {
17624          test -z "$ac_c_werror_flag" ||
17625          test ! -s conftest.err
17626        } && test -s conftest$ac_exeext &&
17627        $as_test_x conftest$ac_exeext; then
17628   am_cv_func_iconv=yes
17629 else
17630   echo "$as_me: failed program was:" >&5
17631 sed 's/^/| /' conftest.$ac_ext >&5
17632
17633
17634 fi
17635
17636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17637       conftest$ac_exeext conftest.$ac_ext
17638     if test "$am_cv_func_iconv" != yes; then
17639       am_save_LIBS="$LIBS"
17640       LIBS="$LIBS $LIBICONV"
17641       cat >conftest.$ac_ext <<_ACEOF
17642 /* confdefs.h.  */
17643 _ACEOF
17644 cat confdefs.h >>conftest.$ac_ext
17645 cat >>conftest.$ac_ext <<_ACEOF
17646 /* end confdefs.h.  */
17647 #include <stdlib.h>
17648 #include <iconv.h>
17649 int
17650 main ()
17651 {
17652 iconv_t cd = iconv_open("","");
17653          iconv(cd,NULL,NULL,NULL,NULL);
17654          iconv_close(cd);
17655   ;
17656   return 0;
17657 }
17658 _ACEOF
17659 rm -f conftest.$ac_objext conftest$ac_exeext
17660 if { (ac_try="$ac_link"
17661 case "(($ac_try" in
17662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17663   *) ac_try_echo=$ac_try;;
17664 esac
17665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17666   (eval "$ac_link") 2>conftest.er1
17667   ac_status=$?
17668   grep -v '^ *+' conftest.er1 >conftest.err
17669   rm -f conftest.er1
17670   cat conftest.err >&5
17671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672   (exit $ac_status); } && {
17673          test -z "$ac_c_werror_flag" ||
17674          test ! -s conftest.err
17675        } && test -s conftest$ac_exeext &&
17676        $as_test_x conftest$ac_exeext; then
17677   am_cv_lib_iconv=yes
17678         am_cv_func_iconv=yes
17679 else
17680   echo "$as_me: failed program was:" >&5
17681 sed 's/^/| /' conftest.$ac_ext >&5
17682
17683
17684 fi
17685
17686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17687       conftest$ac_exeext conftest.$ac_ext
17688       LIBS="$am_save_LIBS"
17689     fi
17690
17691 fi
17692 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17693 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17694   if test "$am_cv_func_iconv" = yes; then
17695
17696 cat >>confdefs.h <<\_ACEOF
17697 #define HAVE_ICONV 1
17698 _ACEOF
17699
17700   fi
17701   if test "$am_cv_lib_iconv" = yes; then
17702     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17703 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17704     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17705 echo "${ECHO_T}$LIBICONV" >&6; }
17706   else
17707             CPPFLAGS="$am_save_CPPFLAGS"
17708     LIBICONV=
17709     LTLIBICONV=
17710   fi
17711
17712
17713
17714
17715
17716
17717     use_additional=yes
17718
17719   acl_save_prefix="$prefix"
17720   prefix="$acl_final_prefix"
17721   acl_save_exec_prefix="$exec_prefix"
17722   exec_prefix="$acl_final_exec_prefix"
17723
17724     eval additional_includedir=\"$includedir\"
17725     eval additional_libdir=\"$libdir\"
17726
17727   exec_prefix="$acl_save_exec_prefix"
17728   prefix="$acl_save_prefix"
17729
17730
17731 # Check whether --with-libintl-prefix was given.
17732 if test "${with_libintl_prefix+set}" = set; then
17733   withval=$with_libintl_prefix;
17734     if test "X$withval" = "Xno"; then
17735       use_additional=no
17736     else
17737       if test "X$withval" = "X"; then
17738
17739   acl_save_prefix="$prefix"
17740   prefix="$acl_final_prefix"
17741   acl_save_exec_prefix="$exec_prefix"
17742   exec_prefix="$acl_final_exec_prefix"
17743
17744           eval additional_includedir=\"$includedir\"
17745           eval additional_libdir=\"$libdir\"
17746
17747   exec_prefix="$acl_save_exec_prefix"
17748   prefix="$acl_save_prefix"
17749
17750       else
17751         additional_includedir="$withval/include"
17752         additional_libdir="$withval/lib"
17753       fi
17754     fi
17755
17756 fi
17757
17758       LIBINTL=
17759   LTLIBINTL=
17760   INCINTL=
17761   rpathdirs=
17762   ltrpathdirs=
17763   names_already_handled=
17764   names_next_round='intl '
17765   while test -n "$names_next_round"; do
17766     names_this_round="$names_next_round"
17767     names_next_round=
17768     for name in $names_this_round; do
17769       already_handled=
17770       for n in $names_already_handled; do
17771         if test "$n" = "$name"; then
17772           already_handled=yes
17773           break
17774         fi
17775       done
17776       if test -z "$already_handled"; then
17777         names_already_handled="$names_already_handled $name"
17778                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17779         eval value=\"\$HAVE_LIB$uppername\"
17780         if test -n "$value"; then
17781           if test "$value" = yes; then
17782             eval value=\"\$LIB$uppername\"
17783             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17784             eval value=\"\$LTLIB$uppername\"
17785             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17786           else
17787                                     :
17788           fi
17789         else
17790                               found_dir=
17791           found_la=
17792           found_so=
17793           found_a=
17794           if test $use_additional = yes; then
17795             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17796               found_dir="$additional_libdir"
17797               found_so="$additional_libdir/lib$name.$shlibext"
17798               if test -f "$additional_libdir/lib$name.la"; then
17799                 found_la="$additional_libdir/lib$name.la"
17800               fi
17801             else
17802               if test -f "$additional_libdir/lib$name.$libext"; then
17803                 found_dir="$additional_libdir"
17804                 found_a="$additional_libdir/lib$name.$libext"
17805                 if test -f "$additional_libdir/lib$name.la"; then
17806                   found_la="$additional_libdir/lib$name.la"
17807                 fi
17808               fi
17809             fi
17810           fi
17811           if test "X$found_dir" = "X"; then
17812             for x in $LDFLAGS $LTLIBINTL; do
17813
17814   acl_save_prefix="$prefix"
17815   prefix="$acl_final_prefix"
17816   acl_save_exec_prefix="$exec_prefix"
17817   exec_prefix="$acl_final_exec_prefix"
17818   eval x=\"$x\"
17819   exec_prefix="$acl_save_exec_prefix"
17820   prefix="$acl_save_prefix"
17821
17822               case "$x" in
17823                 -L*)
17824                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17825                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17826                     found_dir="$dir"
17827                     found_so="$dir/lib$name.$shlibext"
17828                     if test -f "$dir/lib$name.la"; then
17829                       found_la="$dir/lib$name.la"
17830                     fi
17831                   else
17832                     if test -f "$dir/lib$name.$libext"; then
17833                       found_dir="$dir"
17834                       found_a="$dir/lib$name.$libext"
17835                       if test -f "$dir/lib$name.la"; then
17836                         found_la="$dir/lib$name.la"
17837                       fi
17838                     fi
17839                   fi
17840                   ;;
17841               esac
17842               if test "X$found_dir" != "X"; then
17843                 break
17844               fi
17845             done
17846           fi
17847           if test "X$found_dir" != "X"; then
17848                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17849             if test "X$found_so" != "X"; then
17850                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17851                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17852               else
17853                                                                                 haveit=
17854                 for x in $ltrpathdirs; do
17855                   if test "X$x" = "X$found_dir"; then
17856                     haveit=yes
17857                     break
17858                   fi
17859                 done
17860                 if test -z "$haveit"; then
17861                   ltrpathdirs="$ltrpathdirs $found_dir"
17862                 fi
17863                                 if test "$hardcode_direct" = yes; then
17864                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17865                 else
17866                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17867                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17868                                                             haveit=
17869                     for x in $rpathdirs; do
17870                       if test "X$x" = "X$found_dir"; then
17871                         haveit=yes
17872                         break
17873                       fi
17874                     done
17875                     if test -z "$haveit"; then
17876                       rpathdirs="$rpathdirs $found_dir"
17877                     fi
17878                   else
17879                                                                                 haveit=
17880                     for x in $LDFLAGS $LIBINTL; do
17881
17882   acl_save_prefix="$prefix"
17883   prefix="$acl_final_prefix"
17884   acl_save_exec_prefix="$exec_prefix"
17885   exec_prefix="$acl_final_exec_prefix"
17886   eval x=\"$x\"
17887   exec_prefix="$acl_save_exec_prefix"
17888   prefix="$acl_save_prefix"
17889
17890                       if test "X$x" = "X-L$found_dir"; then
17891                         haveit=yes
17892                         break
17893                       fi
17894                     done
17895                     if test -z "$haveit"; then
17896                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17897                     fi
17898                     if test "$hardcode_minus_L" != no; then
17899                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17900                     else
17901                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17902                     fi
17903                   fi
17904                 fi
17905               fi
17906             else
17907               if test "X$found_a" != "X"; then
17908                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17909               else
17910                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17911               fi
17912             fi
17913                         additional_includedir=
17914             case "$found_dir" in
17915               */lib | */lib/)
17916                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17917                 additional_includedir="$basedir/include"
17918                 ;;
17919             esac
17920             if test "X$additional_includedir" != "X"; then
17921                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17922                 haveit=
17923                 if test "X$additional_includedir" = "X/usr/local/include"; then
17924                   if test -n "$GCC"; then
17925                     case $host_os in
17926                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17927                     esac
17928                   fi
17929                 fi
17930                 if test -z "$haveit"; then
17931                   for x in $CPPFLAGS $INCINTL; do
17932
17933   acl_save_prefix="$prefix"
17934   prefix="$acl_final_prefix"
17935   acl_save_exec_prefix="$exec_prefix"
17936   exec_prefix="$acl_final_exec_prefix"
17937   eval x=\"$x\"
17938   exec_prefix="$acl_save_exec_prefix"
17939   prefix="$acl_save_prefix"
17940
17941                     if test "X$x" = "X-I$additional_includedir"; then
17942                       haveit=yes
17943                       break
17944                     fi
17945                   done
17946                   if test -z "$haveit"; then
17947                     if test -d "$additional_includedir"; then
17948                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17949                     fi
17950                   fi
17951                 fi
17952               fi
17953             fi
17954                         if test -n "$found_la"; then
17955                                                         save_libdir="$libdir"
17956               case "$found_la" in
17957                 */* | *\\*) . "$found_la" ;;
17958                 *) . "./$found_la" ;;
17959               esac
17960               libdir="$save_libdir"
17961                             for dep in $dependency_libs; do
17962                 case "$dep" in
17963                   -L*)
17964                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17965                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17966                       haveit=
17967                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17968                         if test -n "$GCC"; then
17969                           case $host_os in
17970                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17971                           esac
17972                         fi
17973                       fi
17974                       if test -z "$haveit"; then
17975                         haveit=
17976                         for x in $LDFLAGS $LIBINTL; do
17977
17978   acl_save_prefix="$prefix"
17979   prefix="$acl_final_prefix"
17980   acl_save_exec_prefix="$exec_prefix"
17981   exec_prefix="$acl_final_exec_prefix"
17982   eval x=\"$x\"
17983   exec_prefix="$acl_save_exec_prefix"
17984   prefix="$acl_save_prefix"
17985
17986                           if test "X$x" = "X-L$additional_libdir"; then
17987                             haveit=yes
17988                             break
17989                           fi
17990                         done
17991                         if test -z "$haveit"; then
17992                           if test -d "$additional_libdir"; then
17993                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17994                           fi
17995                         fi
17996                         haveit=
17997                         for x in $LDFLAGS $LTLIBINTL; do
17998
17999   acl_save_prefix="$prefix"
18000   prefix="$acl_final_prefix"
18001   acl_save_exec_prefix="$exec_prefix"
18002   exec_prefix="$acl_final_exec_prefix"
18003   eval x=\"$x\"
18004   exec_prefix="$acl_save_exec_prefix"
18005   prefix="$acl_save_prefix"
18006
18007                           if test "X$x" = "X-L$additional_libdir"; then
18008                             haveit=yes
18009                             break
18010                           fi
18011                         done
18012                         if test -z "$haveit"; then
18013                           if test -d "$additional_libdir"; then
18014                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18015                           fi
18016                         fi
18017                       fi
18018                     fi
18019                     ;;
18020                   -R*)
18021                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18022                     if test "$enable_rpath" != no; then
18023                                                                   haveit=
18024                       for x in $rpathdirs; do
18025                         if test "X$x" = "X$dir"; then
18026                           haveit=yes
18027                           break
18028                         fi
18029                       done
18030                       if test -z "$haveit"; then
18031                         rpathdirs="$rpathdirs $dir"
18032                       fi
18033                                                                   haveit=
18034                       for x in $ltrpathdirs; do
18035                         if test "X$x" = "X$dir"; then
18036                           haveit=yes
18037                           break
18038                         fi
18039                       done
18040                       if test -z "$haveit"; then
18041                         ltrpathdirs="$ltrpathdirs $dir"
18042                       fi
18043                     fi
18044                     ;;
18045                   -l*)
18046                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18047                     ;;
18048                   *.la)
18049                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18050                     ;;
18051                   *)
18052                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18053                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18054                     ;;
18055                 esac
18056               done
18057             fi
18058           else
18059                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18060             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18061           fi
18062         fi
18063       fi
18064     done
18065   done
18066   if test "X$rpathdirs" != "X"; then
18067     if test -n "$hardcode_libdir_separator"; then
18068                         alldirs=
18069       for found_dir in $rpathdirs; do
18070         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18071       done
18072             acl_save_libdir="$libdir"
18073       libdir="$alldirs"
18074       eval flag=\"$hardcode_libdir_flag_spec\"
18075       libdir="$acl_save_libdir"
18076       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18077     else
18078             for found_dir in $rpathdirs; do
18079         acl_save_libdir="$libdir"
18080         libdir="$found_dir"
18081         eval flag=\"$hardcode_libdir_flag_spec\"
18082         libdir="$acl_save_libdir"
18083         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18084       done
18085     fi
18086   fi
18087   if test "X$ltrpathdirs" != "X"; then
18088             for found_dir in $ltrpathdirs; do
18089       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18090     done
18091   fi
18092
18093           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18094 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18095 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18096   echo $ECHO_N "(cached) $ECHO_C" >&6
18097 else
18098   gt_save_CPPFLAGS="$CPPFLAGS"
18099             CPPFLAGS="$CPPFLAGS $INCINTL"
18100             gt_save_LIBS="$LIBS"
18101             LIBS="$LIBS $LIBINTL"
18102                         cat >conftest.$ac_ext <<_ACEOF
18103 /* confdefs.h.  */
18104 _ACEOF
18105 cat confdefs.h >>conftest.$ac_ext
18106 cat >>conftest.$ac_ext <<_ACEOF
18107 /* end confdefs.h.  */
18108 #include <libintl.h>
18109 extern int _nl_msg_cat_cntr;
18110 extern
18111 #ifdef __cplusplus
18112 "C"
18113 #endif
18114 const char *_nl_expand_alias (const char *);
18115 int
18116 main ()
18117 {
18118 bindtextdomain ("", "");
18119 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18120   ;
18121   return 0;
18122 }
18123 _ACEOF
18124 rm -f conftest.$ac_objext conftest$ac_exeext
18125 if { (ac_try="$ac_link"
18126 case "(($ac_try" in
18127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18128   *) ac_try_echo=$ac_try;;
18129 esac
18130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18131   (eval "$ac_link") 2>conftest.er1
18132   ac_status=$?
18133   grep -v '^ *+' conftest.er1 >conftest.err
18134   rm -f conftest.er1
18135   cat conftest.err >&5
18136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137   (exit $ac_status); } && {
18138          test -z "$ac_c_werror_flag" ||
18139          test ! -s conftest.err
18140        } && test -s conftest$ac_exeext &&
18141        $as_test_x conftest$ac_exeext; then
18142   gt_cv_func_gnugettext1_libintl=yes
18143 else
18144   echo "$as_me: failed program was:" >&5
18145 sed 's/^/| /' conftest.$ac_ext >&5
18146
18147         gt_cv_func_gnugettext1_libintl=no
18148 fi
18149
18150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18151       conftest$ac_exeext conftest.$ac_ext
18152                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18153               LIBS="$LIBS $LIBICONV"
18154               cat >conftest.$ac_ext <<_ACEOF
18155 /* confdefs.h.  */
18156 _ACEOF
18157 cat confdefs.h >>conftest.$ac_ext
18158 cat >>conftest.$ac_ext <<_ACEOF
18159 /* end confdefs.h.  */
18160 #include <libintl.h>
18161 extern int _nl_msg_cat_cntr;
18162 extern
18163 #ifdef __cplusplus
18164 "C"
18165 #endif
18166 const char *_nl_expand_alias (const char *);
18167 int
18168 main ()
18169 {
18170 bindtextdomain ("", "");
18171 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18172   ;
18173   return 0;
18174 }
18175 _ACEOF
18176 rm -f conftest.$ac_objext conftest$ac_exeext
18177 if { (ac_try="$ac_link"
18178 case "(($ac_try" in
18179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18180   *) ac_try_echo=$ac_try;;
18181 esac
18182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18183   (eval "$ac_link") 2>conftest.er1
18184   ac_status=$?
18185   grep -v '^ *+' conftest.er1 >conftest.err
18186   rm -f conftest.er1
18187   cat conftest.err >&5
18188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189   (exit $ac_status); } && {
18190          test -z "$ac_c_werror_flag" ||
18191          test ! -s conftest.err
18192        } && test -s conftest$ac_exeext &&
18193        $as_test_x conftest$ac_exeext; then
18194   LIBINTL="$LIBINTL $LIBICONV"
18195                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18196                 gt_cv_func_gnugettext1_libintl=yes
18197
18198 else
18199   echo "$as_me: failed program was:" >&5
18200 sed 's/^/| /' conftest.$ac_ext >&5
18201
18202
18203 fi
18204
18205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18206       conftest$ac_exeext conftest.$ac_ext
18207             fi
18208             CPPFLAGS="$gt_save_CPPFLAGS"
18209             LIBS="$gt_save_LIBS"
18210 fi
18211 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18212 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18213         fi
18214
18215                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18216            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18217                 && test "$PACKAGE" != gettext-runtime \
18218                 && test "$PACKAGE" != gettext-tools; }; then
18219           gt_use_preinstalled_gnugettext=yes
18220         else
18221                     LIBINTL=
18222           LTLIBINTL=
18223           INCINTL=
18224         fi
18225
18226
18227
18228     if test -n "$INTL_MACOSX_LIBS"; then
18229       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18230          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18231                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18232         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18233       fi
18234     fi
18235
18236     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18237        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18238
18239 cat >>confdefs.h <<\_ACEOF
18240 #define ENABLE_NLS 1
18241 _ACEOF
18242
18243     else
18244       USE_NLS=no
18245     fi
18246   fi
18247
18248   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18249 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18250   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18251 echo "${ECHO_T}$USE_NLS" >&6; }
18252   if test "$USE_NLS" = "yes"; then
18253     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18254 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18255     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18256       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18257         gt_source="external libintl"
18258       else
18259         gt_source="libc"
18260       fi
18261     else
18262       gt_source="included intl directory"
18263     fi
18264     { echo "$as_me:$LINENO: result: $gt_source" >&5
18265 echo "${ECHO_T}$gt_source" >&6; }
18266   fi
18267
18268   if test "$USE_NLS" = "yes"; then
18269
18270     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18271       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18272         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18273 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18274         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18275 echo "${ECHO_T}$LIBINTL" >&6; }
18276
18277   for element in $INCINTL; do
18278     haveit=
18279     for x in $CPPFLAGS; do
18280
18281   acl_save_prefix="$prefix"
18282   prefix="$acl_final_prefix"
18283   acl_save_exec_prefix="$exec_prefix"
18284   exec_prefix="$acl_final_exec_prefix"
18285   eval x=\"$x\"
18286   exec_prefix="$acl_save_exec_prefix"
18287   prefix="$acl_save_prefix"
18288
18289       if test "X$x" = "X$element"; then
18290         haveit=yes
18291         break
18292       fi
18293     done
18294     if test -z "$haveit"; then
18295       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18296     fi
18297   done
18298
18299       fi
18300
18301
18302 cat >>confdefs.h <<\_ACEOF
18303 #define HAVE_GETTEXT 1
18304 _ACEOF
18305
18306
18307 cat >>confdefs.h <<\_ACEOF
18308 #define HAVE_DCGETTEXT 1
18309 _ACEOF
18310
18311     fi
18312
18313         POSUB=po
18314   fi
18315
18316
18317
18318     INTLLIBS="$LIBINTL"
18319
18320
18321
18322
18323
18324
18325
18326 os_name=`uname -s 2>/dev/null`
18327 if test x${prefix} = xNONE ; then
18328    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18329       sysconfdir=/etc/bacula
18330    fi
18331
18332    if test `eval echo ${libdir}` = NONE/lib ; then
18333       case ${os_name} in
18334       Linux)
18335          os_processor=`uname -p 2>/dev/null`
18336          case ${os_processor} in
18337          x86_64)
18338             libdir=/usr/lib64
18339             ;;
18340          *)
18341             libdir=/usr/lib
18342             ;;
18343          esac
18344          ;;
18345       *)
18346          libdir=/usr/lib
18347          ;;
18348       esac
18349    fi
18350
18351    if test `eval echo ${includedir}` = NONE/include ; then
18352       includedir=/usr/include
18353    fi
18354
18355    if test `eval echo ${datarootdir}` = NONE/share ; then
18356       datarootdir=/usr/share
18357    fi
18358    prefix=
18359 fi
18360
18361 if test x${exec_prefix} = xNONE ; then
18362    exec_prefix=${prefix}
18363 fi
18364
18365 sysconfdir=`eval echo ${sysconfdir}`
18366 datarootdir=`eval echo ${datarootdir}`
18367 docdir=`eval echo ${docdir}`
18368 htmldir=`eval echo ${htmldir}`
18369 libdir=`eval echo ${libdir}`
18370 includedir=`eval echo ${includedir}`
18371 localedir=`eval echo ${datarootdir}/locale`
18372 cat >>confdefs.h <<_ACEOF
18373 #define SYSCONFDIR "$sysconfdir"
18374 _ACEOF
18375
18376 cat >>confdefs.h <<_ACEOF
18377 #define LOCALEDIR "$localedir"
18378 _ACEOF
18379
18380
18381 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18382    sbindir=${exec_prefix}/sbin
18383 fi
18384 sbindir=`eval echo ${sbindir}`
18385
18386 if test x$mandir = x'${prefix}/man' ; then
18387    mandir=/usr/share/man
18388 fi
18389
18390 if test x$htmldir = x${docdir} ; then
18391    htmldir=`eval echo ${docdir}bacula/html`
18392 fi
18393
18394 if test x$docdir = x'/usr/share/doc/' ; then
18395    docdir=`eval echo ${docdir}bacula`
18396 fi
18397
18398
18399 for ac_prog in msgfmt
18400 do
18401   # Extract the first word of "$ac_prog", so it can be a program name with args.
18402 set dummy $ac_prog; ac_word=$2
18403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18405 if test "${ac_cv_path_MSGFMT+set}" = set; then
18406   echo $ECHO_N "(cached) $ECHO_C" >&6
18407 else
18408   case $MSGFMT in
18409   [\\/]* | ?:[\\/]*)
18410   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18411   ;;
18412   *)
18413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18414 for as_dir in $PATH
18415 do
18416   IFS=$as_save_IFS
18417   test -z "$as_dir" && as_dir=.
18418   for ac_exec_ext in '' $ac_executable_extensions; do
18419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18420     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18422     break 2
18423   fi
18424 done
18425 done
18426 IFS=$as_save_IFS
18427
18428   ;;
18429 esac
18430 fi
18431 MSGFMT=$ac_cv_path_MSGFMT
18432 if test -n "$MSGFMT"; then
18433   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18434 echo "${ECHO_T}$MSGFMT" >&6; }
18435 else
18436   { echo "$as_me:$LINENO: result: no" >&5
18437 echo "${ECHO_T}no" >&6; }
18438 fi
18439
18440
18441   test -n "$MSGFMT" && break
18442 done
18443 test -n "$MSGFMT" || MSGFMT="no"
18444
18445 if test "$MSGFMT" = "no"
18446 then
18447    echo 'msgfmt program not found, disabling NLS !'
18448    USE_NLS=no
18449    USE_INCLUDED_LIBINTL=no
18450 #else
18451
18452     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18453 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18454 if test "${ac_cv_gnu_library_2+set}" = set; then
18455   echo $ECHO_N "(cached) $ECHO_C" >&6
18456 else
18457   cat >conftest.$ac_ext <<_ACEOF
18458 /* confdefs.h.  */
18459 _ACEOF
18460 cat confdefs.h >>conftest.$ac_ext
18461 cat >>conftest.$ac_ext <<_ACEOF
18462 /* end confdefs.h.  */
18463
18464 #include <features.h>
18465 #ifdef __GNU_LIBRARY__
18466  #if (__GLIBC__ >= 2)
18467   Lucky GNU user
18468  #endif
18469 #endif
18470
18471 _ACEOF
18472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18473   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18474   ac_cv_gnu_library_2=yes
18475 else
18476   ac_cv_gnu_library_2=no
18477 fi
18478 rm -f conftest*
18479
18480
18481
18482 fi
18483 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18484 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18485
18486     GLIBC2="$ac_cv_gnu_library_2"
18487
18488
18489 if test -n "$ac_tool_prefix"; then
18490   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18491 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18494 if test "${ac_cv_prog_RANLIB+set}" = set; then
18495   echo $ECHO_N "(cached) $ECHO_C" >&6
18496 else
18497   if test -n "$RANLIB"; then
18498   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18499 else
18500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18501 for as_dir in $PATH
18502 do
18503   IFS=$as_save_IFS
18504   test -z "$as_dir" && as_dir=.
18505   for ac_exec_ext in '' $ac_executable_extensions; do
18506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18507     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18509     break 2
18510   fi
18511 done
18512 done
18513 IFS=$as_save_IFS
18514
18515 fi
18516 fi
18517 RANLIB=$ac_cv_prog_RANLIB
18518 if test -n "$RANLIB"; then
18519   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18520 echo "${ECHO_T}$RANLIB" >&6; }
18521 else
18522   { echo "$as_me:$LINENO: result: no" >&5
18523 echo "${ECHO_T}no" >&6; }
18524 fi
18525
18526
18527 fi
18528 if test -z "$ac_cv_prog_RANLIB"; then
18529   ac_ct_RANLIB=$RANLIB
18530   # Extract the first word of "ranlib", so it can be a program name with args.
18531 set dummy ranlib; ac_word=$2
18532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18534 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18535   echo $ECHO_N "(cached) $ECHO_C" >&6
18536 else
18537   if test -n "$ac_ct_RANLIB"; then
18538   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18539 else
18540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18541 for as_dir in $PATH
18542 do
18543   IFS=$as_save_IFS
18544   test -z "$as_dir" && as_dir=.
18545   for ac_exec_ext in '' $ac_executable_extensions; do
18546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18547     ac_cv_prog_ac_ct_RANLIB="ranlib"
18548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18549     break 2
18550   fi
18551 done
18552 done
18553 IFS=$as_save_IFS
18554
18555 fi
18556 fi
18557 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18558 if test -n "$ac_ct_RANLIB"; then
18559   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18560 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18561 else
18562   { echo "$as_me:$LINENO: result: no" >&5
18563 echo "${ECHO_T}no" >&6; }
18564 fi
18565
18566   if test "x$ac_ct_RANLIB" = x; then
18567     RANLIB=":"
18568   else
18569     case $cross_compiling:$ac_tool_warned in
18570 yes:)
18571 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18572 whose name does not start with the host triplet.  If you think this
18573 configuration is useful to you, please write to autoconf@gnu.org." >&5
18574 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18575 whose name does not start with the host triplet.  If you think this
18576 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18577 ac_tool_warned=yes ;;
18578 esac
18579     RANLIB=$ac_ct_RANLIB
18580   fi
18581 else
18582   RANLIB="$ac_cv_prog_RANLIB"
18583 fi
18584
18585
18586         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18587 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18588 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18589   echo $ECHO_N "(cached) $ECHO_C" >&6
18590 else
18591   ac_check_lib_save_LIBS=$LIBS
18592 LIBS="-lcposix  $LIBS"
18593 cat >conftest.$ac_ext <<_ACEOF
18594 /* confdefs.h.  */
18595 _ACEOF
18596 cat confdefs.h >>conftest.$ac_ext
18597 cat >>conftest.$ac_ext <<_ACEOF
18598 /* end confdefs.h.  */
18599
18600 /* Override any GCC internal prototype to avoid an error.
18601    Use char because int might match the return type of a GCC
18602    builtin and then its argument prototype would still apply.  */
18603 #ifdef __cplusplus
18604 extern "C"
18605 #endif
18606 char strerror ();
18607 int
18608 main ()
18609 {
18610 return strerror ();
18611   ;
18612   return 0;
18613 }
18614 _ACEOF
18615 rm -f conftest.$ac_objext conftest$ac_exeext
18616 if { (ac_try="$ac_link"
18617 case "(($ac_try" in
18618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619   *) ac_try_echo=$ac_try;;
18620 esac
18621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18622   (eval "$ac_link") 2>conftest.er1
18623   ac_status=$?
18624   grep -v '^ *+' conftest.er1 >conftest.err
18625   rm -f conftest.er1
18626   cat conftest.err >&5
18627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628   (exit $ac_status); } && {
18629          test -z "$ac_c_werror_flag" ||
18630          test ! -s conftest.err
18631        } && test -s conftest$ac_exeext &&
18632        $as_test_x conftest$ac_exeext; then
18633   ac_cv_lib_cposix_strerror=yes
18634 else
18635   echo "$as_me: failed program was:" >&5
18636 sed 's/^/| /' conftest.$ac_ext >&5
18637
18638         ac_cv_lib_cposix_strerror=no
18639 fi
18640
18641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18642       conftest$ac_exeext conftest.$ac_ext
18643 LIBS=$ac_check_lib_save_LIBS
18644 fi
18645 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18646 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18647 if test $ac_cv_lib_cposix_strerror = yes; then
18648   LIBS="$LIBS -lcposix"
18649 fi
18650
18651
18652
18653 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18654 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18655 if test "${ac_cv_c_const+set}" = set; then
18656   echo $ECHO_N "(cached) $ECHO_C" >&6
18657 else
18658   cat >conftest.$ac_ext <<_ACEOF
18659 /* confdefs.h.  */
18660 _ACEOF
18661 cat confdefs.h >>conftest.$ac_ext
18662 cat >>conftest.$ac_ext <<_ACEOF
18663 /* end confdefs.h.  */
18664
18665 int
18666 main ()
18667 {
18668 /* FIXME: Include the comments suggested by Paul. */
18669 #ifndef __cplusplus
18670   /* Ultrix mips cc rejects this.  */
18671   typedef int charset[2];
18672   const charset cs;
18673   /* SunOS 4.1.1 cc rejects this.  */
18674   char const *const *pcpcc;
18675   char **ppc;
18676   /* NEC SVR4.0.2 mips cc rejects this.  */
18677   struct point {int x, y;};
18678   static struct point const zero = {0,0};
18679   /* AIX XL C 1.02.0.0 rejects this.
18680      It does not let you subtract one const X* pointer from another in
18681      an arm of an if-expression whose if-part is not a constant
18682      expression */
18683   const char *g = "string";
18684   pcpcc = &g + (g ? g-g : 0);
18685   /* HPUX 7.0 cc rejects these. */
18686   ++pcpcc;
18687   ppc = (char**) pcpcc;
18688   pcpcc = (char const *const *) ppc;
18689   { /* SCO 3.2v4 cc rejects this.  */
18690     char *t;
18691     char const *s = 0 ? (char *) 0 : (char const *) 0;
18692
18693     *t++ = 0;
18694     if (s) return 0;
18695   }
18696   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18697     int x[] = {25, 17};
18698     const int *foo = &x[0];
18699     ++foo;
18700   }
18701   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18702     typedef const int *iptr;
18703     iptr p = 0;
18704     ++p;
18705   }
18706   { /* AIX XL C 1.02.0.0 rejects this saying
18707        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18708     struct s { int j; const int *ap[3]; };
18709     struct s *b; b->j = 5;
18710   }
18711   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18712     const int foo = 10;
18713     if (!foo) return 0;
18714   }
18715   return !cs[0] && !zero.x;
18716 #endif
18717
18718   ;
18719   return 0;
18720 }
18721 _ACEOF
18722 rm -f conftest.$ac_objext
18723 if { (ac_try="$ac_compile"
18724 case "(($ac_try" in
18725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18726   *) ac_try_echo=$ac_try;;
18727 esac
18728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18729   (eval "$ac_compile") 2>conftest.er1
18730   ac_status=$?
18731   grep -v '^ *+' conftest.er1 >conftest.err
18732   rm -f conftest.er1
18733   cat conftest.err >&5
18734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735   (exit $ac_status); } && {
18736          test -z "$ac_c_werror_flag" ||
18737          test ! -s conftest.err
18738        } && test -s conftest.$ac_objext; then
18739   ac_cv_c_const=yes
18740 else
18741   echo "$as_me: failed program was:" >&5
18742 sed 's/^/| /' conftest.$ac_ext >&5
18743
18744         ac_cv_c_const=no
18745 fi
18746
18747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18748 fi
18749 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18750 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18751 if test $ac_cv_c_const = no; then
18752
18753 cat >>confdefs.h <<\_ACEOF
18754 #define const
18755 _ACEOF
18756
18757 fi
18758
18759
18760   { echo "$as_me:$LINENO: checking for signed" >&5
18761 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18762 if test "${bh_cv_c_signed+set}" = set; then
18763   echo $ECHO_N "(cached) $ECHO_C" >&6
18764 else
18765   cat >conftest.$ac_ext <<_ACEOF
18766 /* confdefs.h.  */
18767 _ACEOF
18768 cat confdefs.h >>conftest.$ac_ext
18769 cat >>conftest.$ac_ext <<_ACEOF
18770 /* end confdefs.h.  */
18771
18772 int
18773 main ()
18774 {
18775 signed char x;
18776   ;
18777   return 0;
18778 }
18779 _ACEOF
18780 rm -f conftest.$ac_objext
18781 if { (ac_try="$ac_compile"
18782 case "(($ac_try" in
18783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784   *) ac_try_echo=$ac_try;;
18785 esac
18786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18787   (eval "$ac_compile") 2>conftest.er1
18788   ac_status=$?
18789   grep -v '^ *+' conftest.er1 >conftest.err
18790   rm -f conftest.er1
18791   cat conftest.err >&5
18792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793   (exit $ac_status); } && {
18794          test -z "$ac_c_werror_flag" ||
18795          test ! -s conftest.err
18796        } && test -s conftest.$ac_objext; then
18797   bh_cv_c_signed=yes
18798 else
18799   echo "$as_me: failed program was:" >&5
18800 sed 's/^/| /' conftest.$ac_ext >&5
18801
18802         bh_cv_c_signed=no
18803 fi
18804
18805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18806 fi
18807 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18808 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18809   if test $bh_cv_c_signed = no; then
18810
18811 cat >>confdefs.h <<\_ACEOF
18812 #define signed
18813 _ACEOF
18814
18815   fi
18816
18817 { echo "$as_me:$LINENO: checking for inline" >&5
18818 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18819 if test "${ac_cv_c_inline+set}" = set; then
18820   echo $ECHO_N "(cached) $ECHO_C" >&6
18821 else
18822   ac_cv_c_inline=no
18823 for ac_kw in inline __inline__ __inline; do
18824   cat >conftest.$ac_ext <<_ACEOF
18825 /* confdefs.h.  */
18826 _ACEOF
18827 cat confdefs.h >>conftest.$ac_ext
18828 cat >>conftest.$ac_ext <<_ACEOF
18829 /* end confdefs.h.  */
18830 #ifndef __cplusplus
18831 typedef int foo_t;
18832 static $ac_kw foo_t static_foo () {return 0; }
18833 $ac_kw foo_t foo () {return 0; }
18834 #endif
18835
18836 _ACEOF
18837 rm -f conftest.$ac_objext
18838 if { (ac_try="$ac_compile"
18839 case "(($ac_try" in
18840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18841   *) ac_try_echo=$ac_try;;
18842 esac
18843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18844   (eval "$ac_compile") 2>conftest.er1
18845   ac_status=$?
18846   grep -v '^ *+' conftest.er1 >conftest.err
18847   rm -f conftest.er1
18848   cat conftest.err >&5
18849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850   (exit $ac_status); } && {
18851          test -z "$ac_c_werror_flag" ||
18852          test ! -s conftest.err
18853        } && test -s conftest.$ac_objext; then
18854   ac_cv_c_inline=$ac_kw
18855 else
18856   echo "$as_me: failed program was:" >&5
18857 sed 's/^/| /' conftest.$ac_ext >&5
18858
18859
18860 fi
18861
18862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18863   test "$ac_cv_c_inline" != no && break
18864 done
18865
18866 fi
18867 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18868 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18869
18870
18871 case $ac_cv_c_inline in
18872   inline | yes) ;;
18873   *)
18874     case $ac_cv_c_inline in
18875       no) ac_val=;;
18876       *) ac_val=$ac_cv_c_inline;;
18877     esac
18878     cat >>confdefs.h <<_ACEOF
18879 #ifndef __cplusplus
18880 #define inline $ac_val
18881 #endif
18882 _ACEOF
18883     ;;
18884 esac
18885
18886 { echo "$as_me:$LINENO: checking for off_t" >&5
18887 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18888 if test "${ac_cv_type_off_t+set}" = set; then
18889   echo $ECHO_N "(cached) $ECHO_C" >&6
18890 else
18891   cat >conftest.$ac_ext <<_ACEOF
18892 /* confdefs.h.  */
18893 _ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h.  */
18897 $ac_includes_default
18898 typedef off_t ac__type_new_;
18899 int
18900 main ()
18901 {
18902 if ((ac__type_new_ *) 0)
18903   return 0;
18904 if (sizeof (ac__type_new_))
18905   return 0;
18906   ;
18907   return 0;
18908 }
18909 _ACEOF
18910 rm -f conftest.$ac_objext
18911 if { (ac_try="$ac_compile"
18912 case "(($ac_try" in
18913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18914   *) ac_try_echo=$ac_try;;
18915 esac
18916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18917   (eval "$ac_compile") 2>conftest.er1
18918   ac_status=$?
18919   grep -v '^ *+' conftest.er1 >conftest.err
18920   rm -f conftest.er1
18921   cat conftest.err >&5
18922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923   (exit $ac_status); } && {
18924          test -z "$ac_c_werror_flag" ||
18925          test ! -s conftest.err
18926        } && test -s conftest.$ac_objext; then
18927   ac_cv_type_off_t=yes
18928 else
18929   echo "$as_me: failed program was:" >&5
18930 sed 's/^/| /' conftest.$ac_ext >&5
18931
18932         ac_cv_type_off_t=no
18933 fi
18934
18935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18936 fi
18937 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18938 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18939 if test $ac_cv_type_off_t = yes; then
18940   :
18941 else
18942
18943 cat >>confdefs.h <<_ACEOF
18944 #define off_t long int
18945 _ACEOF
18946
18947 fi
18948
18949 { echo "$as_me:$LINENO: checking for size_t" >&5
18950 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18951 if test "${ac_cv_type_size_t+set}" = set; then
18952   echo $ECHO_N "(cached) $ECHO_C" >&6
18953 else
18954   cat >conftest.$ac_ext <<_ACEOF
18955 /* confdefs.h.  */
18956 _ACEOF
18957 cat confdefs.h >>conftest.$ac_ext
18958 cat >>conftest.$ac_ext <<_ACEOF
18959 /* end confdefs.h.  */
18960 $ac_includes_default
18961 typedef size_t ac__type_new_;
18962 int
18963 main ()
18964 {
18965 if ((ac__type_new_ *) 0)
18966   return 0;
18967 if (sizeof (ac__type_new_))
18968   return 0;
18969   ;
18970   return 0;
18971 }
18972 _ACEOF
18973 rm -f conftest.$ac_objext
18974 if { (ac_try="$ac_compile"
18975 case "(($ac_try" in
18976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18977   *) ac_try_echo=$ac_try;;
18978 esac
18979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18980   (eval "$ac_compile") 2>conftest.er1
18981   ac_status=$?
18982   grep -v '^ *+' conftest.er1 >conftest.err
18983   rm -f conftest.er1
18984   cat conftest.err >&5
18985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986   (exit $ac_status); } && {
18987          test -z "$ac_c_werror_flag" ||
18988          test ! -s conftest.err
18989        } && test -s conftest.$ac_objext; then
18990   ac_cv_type_size_t=yes
18991 else
18992   echo "$as_me: failed program was:" >&5
18993 sed 's/^/| /' conftest.$ac_ext >&5
18994
18995         ac_cv_type_size_t=no
18996 fi
18997
18998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18999 fi
19000 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19001 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
19002 if test $ac_cv_type_size_t = yes; then
19003   :
19004 else
19005
19006 cat >>confdefs.h <<_ACEOF
19007 #define size_t unsigned int
19008 _ACEOF
19009
19010 fi
19011
19012
19013   { echo "$as_me:$LINENO: checking for long long" >&5
19014 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19015 if test "${ac_cv_type_long_long+set}" = set; then
19016   echo $ECHO_N "(cached) $ECHO_C" >&6
19017 else
19018   cat >conftest.$ac_ext <<_ACEOF
19019 /* confdefs.h.  */
19020 _ACEOF
19021 cat confdefs.h >>conftest.$ac_ext
19022 cat >>conftest.$ac_ext <<_ACEOF
19023 /* end confdefs.h.  */
19024 long long ll = 1LL; int i = 63;
19025 int
19026 main ()
19027 {
19028 long long llmax = (long long) -1;
19029      return ll << i | ll >> i | llmax / ll | llmax % ll;
19030   ;
19031   return 0;
19032 }
19033 _ACEOF
19034 rm -f conftest.$ac_objext conftest$ac_exeext
19035 if { (ac_try="$ac_link"
19036 case "(($ac_try" in
19037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19038   *) ac_try_echo=$ac_try;;
19039 esac
19040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19041   (eval "$ac_link") 2>conftest.er1
19042   ac_status=$?
19043   grep -v '^ *+' conftest.er1 >conftest.err
19044   rm -f conftest.er1
19045   cat conftest.err >&5
19046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047   (exit $ac_status); } && {
19048          test -z "$ac_c_werror_flag" ||
19049          test ! -s conftest.err
19050        } && test -s conftest$ac_exeext &&
19051        $as_test_x conftest$ac_exeext; then
19052   ac_cv_type_long_long=yes
19053 else
19054   echo "$as_me: failed program was:" >&5
19055 sed 's/^/| /' conftest.$ac_ext >&5
19056
19057         ac_cv_type_long_long=no
19058 fi
19059
19060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19061       conftest$ac_exeext conftest.$ac_ext
19062 fi
19063 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19064 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19065   if test $ac_cv_type_long_long = yes; then
19066
19067 cat >>confdefs.h <<\_ACEOF
19068 #define HAVE_LONG_LONG 1
19069 _ACEOF
19070
19071   fi
19072
19073
19074   { echo "$as_me:$LINENO: checking for long double" >&5
19075 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19076 if test "${gt_cv_c_long_double+set}" = set; then
19077   echo $ECHO_N "(cached) $ECHO_C" >&6
19078 else
19079   if test "$GCC" = yes; then
19080        gt_cv_c_long_double=yes
19081      else
19082        cat >conftest.$ac_ext <<_ACEOF
19083 /* confdefs.h.  */
19084 _ACEOF
19085 cat confdefs.h >>conftest.$ac_ext
19086 cat >>conftest.$ac_ext <<_ACEOF
19087 /* end confdefs.h.  */
19088
19089          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19090          long double foo = 0.0;
19091          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19092          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19093
19094 int
19095 main ()
19096 {
19097
19098   ;
19099   return 0;
19100 }
19101 _ACEOF
19102 rm -f conftest.$ac_objext
19103 if { (ac_try="$ac_compile"
19104 case "(($ac_try" in
19105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19106   *) ac_try_echo=$ac_try;;
19107 esac
19108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19109   (eval "$ac_compile") 2>conftest.er1
19110   ac_status=$?
19111   grep -v '^ *+' conftest.er1 >conftest.err
19112   rm -f conftest.er1
19113   cat conftest.err >&5
19114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115   (exit $ac_status); } && {
19116          test -z "$ac_c_werror_flag" ||
19117          test ! -s conftest.err
19118        } && test -s conftest.$ac_objext; then
19119   gt_cv_c_long_double=yes
19120 else
19121   echo "$as_me: failed program was:" >&5
19122 sed 's/^/| /' conftest.$ac_ext >&5
19123
19124         gt_cv_c_long_double=no
19125 fi
19126
19127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19128      fi
19129 fi
19130 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19131 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19132   if test $gt_cv_c_long_double = yes; then
19133
19134 cat >>confdefs.h <<\_ACEOF
19135 #define HAVE_LONG_DOUBLE 1
19136 _ACEOF
19137
19138   fi
19139
19140
19141   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19142 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19143 if test "${gt_cv_c_wchar_t+set}" = set; then
19144   echo $ECHO_N "(cached) $ECHO_C" >&6
19145 else
19146   cat >conftest.$ac_ext <<_ACEOF
19147 /* confdefs.h.  */
19148 _ACEOF
19149 cat confdefs.h >>conftest.$ac_ext
19150 cat >>conftest.$ac_ext <<_ACEOF
19151 /* end confdefs.h.  */
19152 #include <stddef.h>
19153        wchar_t foo = (wchar_t)'\0';
19154 int
19155 main ()
19156 {
19157
19158   ;
19159   return 0;
19160 }
19161 _ACEOF
19162 rm -f conftest.$ac_objext
19163 if { (ac_try="$ac_compile"
19164 case "(($ac_try" in
19165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19166   *) ac_try_echo=$ac_try;;
19167 esac
19168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19169   (eval "$ac_compile") 2>conftest.er1
19170   ac_status=$?
19171   grep -v '^ *+' conftest.er1 >conftest.err
19172   rm -f conftest.er1
19173   cat conftest.err >&5
19174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175   (exit $ac_status); } && {
19176          test -z "$ac_c_werror_flag" ||
19177          test ! -s conftest.err
19178        } && test -s conftest.$ac_objext; then
19179   gt_cv_c_wchar_t=yes
19180 else
19181   echo "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.$ac_ext >&5
19183
19184         gt_cv_c_wchar_t=no
19185 fi
19186
19187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19188 fi
19189 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19190 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19191   if test $gt_cv_c_wchar_t = yes; then
19192
19193 cat >>confdefs.h <<\_ACEOF
19194 #define HAVE_WCHAR_T 1
19195 _ACEOF
19196
19197   fi
19198
19199
19200   { echo "$as_me:$LINENO: checking for wint_t" >&5
19201 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19202 if test "${gt_cv_c_wint_t+set}" = set; then
19203   echo $ECHO_N "(cached) $ECHO_C" >&6
19204 else
19205   cat >conftest.$ac_ext <<_ACEOF
19206 /* confdefs.h.  */
19207 _ACEOF
19208 cat confdefs.h >>conftest.$ac_ext
19209 cat >>conftest.$ac_ext <<_ACEOF
19210 /* end confdefs.h.  */
19211 #include <wchar.h>
19212        wint_t foo = (wchar_t)'\0';
19213 int
19214 main ()
19215 {
19216
19217   ;
19218   return 0;
19219 }
19220 _ACEOF
19221 rm -f conftest.$ac_objext
19222 if { (ac_try="$ac_compile"
19223 case "(($ac_try" in
19224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19225   *) ac_try_echo=$ac_try;;
19226 esac
19227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19228   (eval "$ac_compile") 2>conftest.er1
19229   ac_status=$?
19230   grep -v '^ *+' conftest.er1 >conftest.err
19231   rm -f conftest.er1
19232   cat conftest.err >&5
19233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234   (exit $ac_status); } && {
19235          test -z "$ac_c_werror_flag" ||
19236          test ! -s conftest.err
19237        } && test -s conftest.$ac_objext; then
19238   gt_cv_c_wint_t=yes
19239 else
19240   echo "$as_me: failed program was:" >&5
19241 sed 's/^/| /' conftest.$ac_ext >&5
19242
19243         gt_cv_c_wint_t=no
19244 fi
19245
19246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19247 fi
19248 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19249 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19250   if test $gt_cv_c_wint_t = yes; then
19251
19252 cat >>confdefs.h <<\_ACEOF
19253 #define HAVE_WINT_T 1
19254 _ACEOF
19255
19256   fi
19257
19258
19259   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19260 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19261 if test "${gl_cv_header_inttypes_h+set}" = set; then
19262   echo $ECHO_N "(cached) $ECHO_C" >&6
19263 else
19264   cat >conftest.$ac_ext <<_ACEOF
19265 /* confdefs.h.  */
19266 _ACEOF
19267 cat confdefs.h >>conftest.$ac_ext
19268 cat >>conftest.$ac_ext <<_ACEOF
19269 /* end confdefs.h.  */
19270 #include <sys/types.h>
19271 #include <inttypes.h>
19272 int
19273 main ()
19274 {
19275 uintmax_t i = (uintmax_t) -1;
19276   ;
19277   return 0;
19278 }
19279 _ACEOF
19280 rm -f conftest.$ac_objext
19281 if { (ac_try="$ac_compile"
19282 case "(($ac_try" in
19283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19284   *) ac_try_echo=$ac_try;;
19285 esac
19286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19287   (eval "$ac_compile") 2>conftest.er1
19288   ac_status=$?
19289   grep -v '^ *+' conftest.er1 >conftest.err
19290   rm -f conftest.er1
19291   cat conftest.err >&5
19292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293   (exit $ac_status); } && {
19294          test -z "$ac_c_werror_flag" ||
19295          test ! -s conftest.err
19296        } && test -s conftest.$ac_objext; then
19297   gl_cv_header_inttypes_h=yes
19298 else
19299   echo "$as_me: failed program was:" >&5
19300 sed 's/^/| /' conftest.$ac_ext >&5
19301
19302         gl_cv_header_inttypes_h=no
19303 fi
19304
19305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19306 fi
19307 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19308 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19309   if test $gl_cv_header_inttypes_h = yes; then
19310
19311 cat >>confdefs.h <<_ACEOF
19312 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19313 _ACEOF
19314
19315   fi
19316
19317
19318   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19319 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19320 if test "${gl_cv_header_stdint_h+set}" = set; then
19321   echo $ECHO_N "(cached) $ECHO_C" >&6
19322 else
19323   cat >conftest.$ac_ext <<_ACEOF
19324 /* confdefs.h.  */
19325 _ACEOF
19326 cat confdefs.h >>conftest.$ac_ext
19327 cat >>conftest.$ac_ext <<_ACEOF
19328 /* end confdefs.h.  */
19329 #include <sys/types.h>
19330 #include <stdint.h>
19331 int
19332 main ()
19333 {
19334 uintmax_t i = (uintmax_t) -1;
19335   ;
19336   return 0;
19337 }
19338 _ACEOF
19339 rm -f conftest.$ac_objext
19340 if { (ac_try="$ac_compile"
19341 case "(($ac_try" in
19342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343   *) ac_try_echo=$ac_try;;
19344 esac
19345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19346   (eval "$ac_compile") 2>conftest.er1
19347   ac_status=$?
19348   grep -v '^ *+' conftest.er1 >conftest.err
19349   rm -f conftest.er1
19350   cat conftest.err >&5
19351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352   (exit $ac_status); } && {
19353          test -z "$ac_c_werror_flag" ||
19354          test ! -s conftest.err
19355        } && test -s conftest.$ac_objext; then
19356   gl_cv_header_stdint_h=yes
19357 else
19358   echo "$as_me: failed program was:" >&5
19359 sed 's/^/| /' conftest.$ac_ext >&5
19360
19361         gl_cv_header_stdint_h=no
19362 fi
19363
19364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19365 fi
19366 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19367 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19368   if test $gl_cv_header_stdint_h = yes; then
19369
19370 cat >>confdefs.h <<_ACEOF
19371 #define HAVE_STDINT_H_WITH_UINTMAX 1
19372 _ACEOF
19373
19374   fi
19375
19376
19377
19378
19379   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19380 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19381 if test "${gt_cv_c_intmax_t+set}" = set; then
19382   echo $ECHO_N "(cached) $ECHO_C" >&6
19383 else
19384   cat >conftest.$ac_ext <<_ACEOF
19385 /* confdefs.h.  */
19386 _ACEOF
19387 cat confdefs.h >>conftest.$ac_ext
19388 cat >>conftest.$ac_ext <<_ACEOF
19389 /* end confdefs.h.  */
19390
19391 #include <stddef.h>
19392 #include <stdlib.h>
19393 #if HAVE_STDINT_H_WITH_UINTMAX
19394 #include <stdint.h>
19395 #endif
19396 #if HAVE_INTTYPES_H_WITH_UINTMAX
19397 #include <inttypes.h>
19398 #endif
19399
19400 int
19401 main ()
19402 {
19403 intmax_t x = -1;
19404   ;
19405   return 0;
19406 }
19407 _ACEOF
19408 rm -f conftest.$ac_objext
19409 if { (ac_try="$ac_compile"
19410 case "(($ac_try" in
19411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412   *) ac_try_echo=$ac_try;;
19413 esac
19414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19415   (eval "$ac_compile") 2>conftest.er1
19416   ac_status=$?
19417   grep -v '^ *+' conftest.er1 >conftest.err
19418   rm -f conftest.er1
19419   cat conftest.err >&5
19420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421   (exit $ac_status); } && {
19422          test -z "$ac_c_werror_flag" ||
19423          test ! -s conftest.err
19424        } && test -s conftest.$ac_objext; then
19425   gt_cv_c_intmax_t=yes
19426 else
19427   echo "$as_me: failed program was:" >&5
19428 sed 's/^/| /' conftest.$ac_ext >&5
19429
19430         gt_cv_c_intmax_t=no
19431 fi
19432
19433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19434 fi
19435 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19436 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19437   if test $gt_cv_c_intmax_t = yes; then
19438
19439 cat >>confdefs.h <<\_ACEOF
19440 #define HAVE_INTMAX_T 1
19441 _ACEOF
19442
19443   fi
19444
19445
19446
19447   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19448 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19449 if test "${gt_cv_func_printf_posix+set}" = set; then
19450   echo $ECHO_N "(cached) $ECHO_C" >&6
19451 else
19452
19453       if test "$cross_compiling" = yes; then
19454
19455         cat >conftest.$ac_ext <<_ACEOF
19456 /* confdefs.h.  */
19457 _ACEOF
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h.  */
19461
19462 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19463   notposix
19464 #endif
19465
19466 _ACEOF
19467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19468   $EGREP "notposix" >/dev/null 2>&1; then
19469   gt_cv_func_printf_posix="guessing no"
19470 else
19471   gt_cv_func_printf_posix="guessing yes"
19472 fi
19473 rm -f conftest*
19474
19475
19476 else
19477   cat >conftest.$ac_ext <<_ACEOF
19478 /* confdefs.h.  */
19479 _ACEOF
19480 cat confdefs.h >>conftest.$ac_ext
19481 cat >>conftest.$ac_ext <<_ACEOF
19482 /* end confdefs.h.  */
19483
19484 #include <stdio.h>
19485 #include <string.h>
19486 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19487    dollar expansion (possibly an autoconf bug).  */
19488 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19489 static char buf[100];
19490 int main ()
19491 {
19492   sprintf (buf, format, 33, 55);
19493   return (strcmp (buf, "55 33") != 0);
19494 }
19495 _ACEOF
19496 rm -f conftest$ac_exeext
19497 if { (ac_try="$ac_link"
19498 case "(($ac_try" in
19499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19500   *) ac_try_echo=$ac_try;;
19501 esac
19502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19503   (eval "$ac_link") 2>&5
19504   ac_status=$?
19505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19507   { (case "(($ac_try" in
19508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19509   *) ac_try_echo=$ac_try;;
19510 esac
19511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19512   (eval "$ac_try") 2>&5
19513   ac_status=$?
19514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515   (exit $ac_status); }; }; then
19516   gt_cv_func_printf_posix=yes
19517 else
19518   echo "$as_me: program exited with status $ac_status" >&5
19519 echo "$as_me: failed program was:" >&5
19520 sed 's/^/| /' conftest.$ac_ext >&5
19521
19522 ( exit $ac_status )
19523 gt_cv_func_printf_posix=no
19524 fi
19525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19526 fi
19527
19528
19529
19530 fi
19531 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19532 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19533   case $gt_cv_func_printf_posix in
19534     *yes)
19535
19536 cat >>confdefs.h <<\_ACEOF
19537 #define HAVE_POSIX_PRINTF 1
19538 _ACEOF
19539
19540       ;;
19541   esac
19542
19543 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19544 # for constant arguments.  Useless!
19545 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19546 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19547 if test "${ac_cv_working_alloca_h+set}" = set; then
19548   echo $ECHO_N "(cached) $ECHO_C" >&6
19549 else
19550   cat >conftest.$ac_ext <<_ACEOF
19551 /* confdefs.h.  */
19552 _ACEOF
19553 cat confdefs.h >>conftest.$ac_ext
19554 cat >>conftest.$ac_ext <<_ACEOF
19555 /* end confdefs.h.  */
19556 #include <alloca.h>
19557 int
19558 main ()
19559 {
19560 char *p = (char *) alloca (2 * sizeof (int));
19561                           if (p) return 0;
19562   ;
19563   return 0;
19564 }
19565 _ACEOF
19566 rm -f conftest.$ac_objext conftest$ac_exeext
19567 if { (ac_try="$ac_link"
19568 case "(($ac_try" in
19569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19570   *) ac_try_echo=$ac_try;;
19571 esac
19572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19573   (eval "$ac_link") 2>conftest.er1
19574   ac_status=$?
19575   grep -v '^ *+' conftest.er1 >conftest.err
19576   rm -f conftest.er1
19577   cat conftest.err >&5
19578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579   (exit $ac_status); } && {
19580          test -z "$ac_c_werror_flag" ||
19581          test ! -s conftest.err
19582        } && test -s conftest$ac_exeext &&
19583        $as_test_x conftest$ac_exeext; then
19584   ac_cv_working_alloca_h=yes
19585 else
19586   echo "$as_me: failed program was:" >&5
19587 sed 's/^/| /' conftest.$ac_ext >&5
19588
19589         ac_cv_working_alloca_h=no
19590 fi
19591
19592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19593       conftest$ac_exeext conftest.$ac_ext
19594 fi
19595 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19596 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19597 if test $ac_cv_working_alloca_h = yes; then
19598
19599 cat >>confdefs.h <<\_ACEOF
19600 #define HAVE_ALLOCA_H 1
19601 _ACEOF
19602
19603 fi
19604
19605 { echo "$as_me:$LINENO: checking for alloca" >&5
19606 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19607 if test "${ac_cv_func_alloca_works+set}" = set; then
19608   echo $ECHO_N "(cached) $ECHO_C" >&6
19609 else
19610   cat >conftest.$ac_ext <<_ACEOF
19611 /* confdefs.h.  */
19612 _ACEOF
19613 cat confdefs.h >>conftest.$ac_ext
19614 cat >>conftest.$ac_ext <<_ACEOF
19615 /* end confdefs.h.  */
19616 #ifdef __GNUC__
19617 # define alloca __builtin_alloca
19618 #else
19619 # ifdef _MSC_VER
19620 #  include <malloc.h>
19621 #  define alloca _alloca
19622 # else
19623 #  ifdef HAVE_ALLOCA_H
19624 #   include <alloca.h>
19625 #  else
19626 #   ifdef _AIX
19627  #pragma alloca
19628 #   else
19629 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19630 char *alloca ();
19631 #    endif
19632 #   endif
19633 #  endif
19634 # endif
19635 #endif
19636
19637 int
19638 main ()
19639 {
19640 char *p = (char *) alloca (1);
19641                                     if (p) return 0;
19642   ;
19643   return 0;
19644 }
19645 _ACEOF
19646 rm -f conftest.$ac_objext conftest$ac_exeext
19647 if { (ac_try="$ac_link"
19648 case "(($ac_try" in
19649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19650   *) ac_try_echo=$ac_try;;
19651 esac
19652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19653   (eval "$ac_link") 2>conftest.er1
19654   ac_status=$?
19655   grep -v '^ *+' conftest.er1 >conftest.err
19656   rm -f conftest.er1
19657   cat conftest.err >&5
19658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659   (exit $ac_status); } && {
19660          test -z "$ac_c_werror_flag" ||
19661          test ! -s conftest.err
19662        } && test -s conftest$ac_exeext &&
19663        $as_test_x conftest$ac_exeext; then
19664   ac_cv_func_alloca_works=yes
19665 else
19666   echo "$as_me: failed program was:" >&5
19667 sed 's/^/| /' conftest.$ac_ext >&5
19668
19669         ac_cv_func_alloca_works=no
19670 fi
19671
19672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19673       conftest$ac_exeext conftest.$ac_ext
19674 fi
19675 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19676 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19677
19678 if test $ac_cv_func_alloca_works = yes; then
19679
19680 cat >>confdefs.h <<\_ACEOF
19681 #define HAVE_ALLOCA 1
19682 _ACEOF
19683
19684 else
19685   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19686 # that cause trouble.  Some versions do not even contain alloca or
19687 # contain a buggy version.  If you still want to use their alloca,
19688 # use ar to extract alloca.o from them instead of compiling alloca.c.
19689
19690 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19691
19692 cat >>confdefs.h <<\_ACEOF
19693 #define C_ALLOCA 1
19694 _ACEOF
19695
19696
19697 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19698 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19699 if test "${ac_cv_os_cray+set}" = set; then
19700   echo $ECHO_N "(cached) $ECHO_C" >&6
19701 else
19702   cat >conftest.$ac_ext <<_ACEOF
19703 /* confdefs.h.  */
19704 _ACEOF
19705 cat confdefs.h >>conftest.$ac_ext
19706 cat >>conftest.$ac_ext <<_ACEOF
19707 /* end confdefs.h.  */
19708 #if defined CRAY && ! defined CRAY2
19709 webecray
19710 #else
19711 wenotbecray
19712 #endif
19713
19714 _ACEOF
19715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19716   $EGREP "webecray" >/dev/null 2>&1; then
19717   ac_cv_os_cray=yes
19718 else
19719   ac_cv_os_cray=no
19720 fi
19721 rm -f conftest*
19722
19723 fi
19724 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19725 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19726 if test $ac_cv_os_cray = yes; then
19727   for ac_func in _getb67 GETB67 getb67; do
19728     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19729 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19732   echo $ECHO_N "(cached) $ECHO_C" >&6
19733 else
19734   cat >conftest.$ac_ext <<_ACEOF
19735 /* confdefs.h.  */
19736 _ACEOF
19737 cat confdefs.h >>conftest.$ac_ext
19738 cat >>conftest.$ac_ext <<_ACEOF
19739 /* end confdefs.h.  */
19740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19741    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19742 #define $ac_func innocuous_$ac_func
19743
19744 /* System header to define __stub macros and hopefully few prototypes,
19745     which can conflict with char $ac_func (); below.
19746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19747     <limits.h> exists even on freestanding compilers.  */
19748
19749 #ifdef __STDC__
19750 # include <limits.h>
19751 #else
19752 # include <assert.h>
19753 #endif
19754
19755 #undef $ac_func
19756
19757 /* Override any GCC internal prototype to avoid an error.
19758    Use char because int might match the return type of a GCC
19759    builtin and then its argument prototype would still apply.  */
19760 #ifdef __cplusplus
19761 extern "C"
19762 #endif
19763 char $ac_func ();
19764 /* The GNU C library defines this for functions which it implements
19765     to always fail with ENOSYS.  Some functions are actually named
19766     something starting with __ and the normal name is an alias.  */
19767 #if defined __stub_$ac_func || defined __stub___$ac_func
19768 choke me
19769 #endif
19770
19771 int
19772 main ()
19773 {
19774 return $ac_func ();
19775   ;
19776   return 0;
19777 }
19778 _ACEOF
19779 rm -f conftest.$ac_objext conftest$ac_exeext
19780 if { (ac_try="$ac_link"
19781 case "(($ac_try" in
19782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783   *) ac_try_echo=$ac_try;;
19784 esac
19785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19786   (eval "$ac_link") 2>conftest.er1
19787   ac_status=$?
19788   grep -v '^ *+' conftest.er1 >conftest.err
19789   rm -f conftest.er1
19790   cat conftest.err >&5
19791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792   (exit $ac_status); } && {
19793          test -z "$ac_c_werror_flag" ||
19794          test ! -s conftest.err
19795        } && test -s conftest$ac_exeext &&
19796        $as_test_x conftest$ac_exeext; then
19797   eval "$as_ac_var=yes"
19798 else
19799   echo "$as_me: failed program was:" >&5
19800 sed 's/^/| /' conftest.$ac_ext >&5
19801
19802         eval "$as_ac_var=no"
19803 fi
19804
19805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19806       conftest$ac_exeext conftest.$ac_ext
19807 fi
19808 ac_res=`eval echo '${'$as_ac_var'}'`
19809                { echo "$as_me:$LINENO: result: $ac_res" >&5
19810 echo "${ECHO_T}$ac_res" >&6; }
19811 if test `eval echo '${'$as_ac_var'}'` = yes; then
19812
19813 cat >>confdefs.h <<_ACEOF
19814 #define CRAY_STACKSEG_END $ac_func
19815 _ACEOF
19816
19817     break
19818 fi
19819
19820   done
19821 fi
19822
19823 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19824 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19825 if test "${ac_cv_c_stack_direction+set}" = set; then
19826   echo $ECHO_N "(cached) $ECHO_C" >&6
19827 else
19828   if test "$cross_compiling" = yes; then
19829   ac_cv_c_stack_direction=0
19830 else
19831   cat >conftest.$ac_ext <<_ACEOF
19832 /* confdefs.h.  */
19833 _ACEOF
19834 cat confdefs.h >>conftest.$ac_ext
19835 cat >>conftest.$ac_ext <<_ACEOF
19836 /* end confdefs.h.  */
19837 $ac_includes_default
19838 int
19839 find_stack_direction ()
19840 {
19841   static char *addr = 0;
19842   auto char dummy;
19843   if (addr == 0)
19844     {
19845       addr = &dummy;
19846       return find_stack_direction ();
19847     }
19848   else
19849     return (&dummy > addr) ? 1 : -1;
19850 }
19851
19852 int
19853 main ()
19854 {
19855   return find_stack_direction () < 0;
19856 }
19857 _ACEOF
19858 rm -f conftest$ac_exeext
19859 if { (ac_try="$ac_link"
19860 case "(($ac_try" in
19861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862   *) ac_try_echo=$ac_try;;
19863 esac
19864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865   (eval "$ac_link") 2>&5
19866   ac_status=$?
19867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19869   { (case "(($ac_try" in
19870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19871   *) ac_try_echo=$ac_try;;
19872 esac
19873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19874   (eval "$ac_try") 2>&5
19875   ac_status=$?
19876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877   (exit $ac_status); }; }; then
19878   ac_cv_c_stack_direction=1
19879 else
19880   echo "$as_me: program exited with status $ac_status" >&5
19881 echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19883
19884 ( exit $ac_status )
19885 ac_cv_c_stack_direction=-1
19886 fi
19887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19888 fi
19889
19890
19891 fi
19892 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19893 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19894
19895 cat >>confdefs.h <<_ACEOF
19896 #define STACK_DIRECTION $ac_cv_c_stack_direction
19897 _ACEOF
19898
19899
19900 fi
19901
19902
19903
19904 for ac_header in stdlib.h unistd.h
19905 do
19906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19908   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19911   echo $ECHO_N "(cached) $ECHO_C" >&6
19912 fi
19913 ac_res=`eval echo '${'$as_ac_Header'}'`
19914                { echo "$as_me:$LINENO: result: $ac_res" >&5
19915 echo "${ECHO_T}$ac_res" >&6; }
19916 else
19917   # Is the header compilable?
19918 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19920 cat >conftest.$ac_ext <<_ACEOF
19921 /* confdefs.h.  */
19922 _ACEOF
19923 cat confdefs.h >>conftest.$ac_ext
19924 cat >>conftest.$ac_ext <<_ACEOF
19925 /* end confdefs.h.  */
19926 $ac_includes_default
19927 #include <$ac_header>
19928 _ACEOF
19929 rm -f conftest.$ac_objext
19930 if { (ac_try="$ac_compile"
19931 case "(($ac_try" in
19932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19933   *) ac_try_echo=$ac_try;;
19934 esac
19935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19936   (eval "$ac_compile") 2>conftest.er1
19937   ac_status=$?
19938   grep -v '^ *+' conftest.er1 >conftest.err
19939   rm -f conftest.er1
19940   cat conftest.err >&5
19941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942   (exit $ac_status); } && {
19943          test -z "$ac_c_werror_flag" ||
19944          test ! -s conftest.err
19945        } && test -s conftest.$ac_objext; then
19946   ac_header_compiler=yes
19947 else
19948   echo "$as_me: failed program was:" >&5
19949 sed 's/^/| /' conftest.$ac_ext >&5
19950
19951         ac_header_compiler=no
19952 fi
19953
19954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19955 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19956 echo "${ECHO_T}$ac_header_compiler" >&6; }
19957
19958 # Is the header present?
19959 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19960 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19961 cat >conftest.$ac_ext <<_ACEOF
19962 /* confdefs.h.  */
19963 _ACEOF
19964 cat confdefs.h >>conftest.$ac_ext
19965 cat >>conftest.$ac_ext <<_ACEOF
19966 /* end confdefs.h.  */
19967 #include <$ac_header>
19968 _ACEOF
19969 if { (ac_try="$ac_cpp conftest.$ac_ext"
19970 case "(($ac_try" in
19971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19972   *) ac_try_echo=$ac_try;;
19973 esac
19974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19975   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19976   ac_status=$?
19977   grep -v '^ *+' conftest.er1 >conftest.err
19978   rm -f conftest.er1
19979   cat conftest.err >&5
19980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981   (exit $ac_status); } >/dev/null && {
19982          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19983          test ! -s conftest.err
19984        }; then
19985   ac_header_preproc=yes
19986 else
19987   echo "$as_me: failed program was:" >&5
19988 sed 's/^/| /' conftest.$ac_ext >&5
19989
19990   ac_header_preproc=no
19991 fi
19992
19993 rm -f conftest.err conftest.$ac_ext
19994 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19995 echo "${ECHO_T}$ac_header_preproc" >&6; }
19996
19997 # So?  What about this header?
19998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19999   yes:no: )
20000     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20002     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20003 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20004     ac_header_preproc=yes
20005     ;;
20006   no:yes:* )
20007     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20008 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20009     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20010 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20011     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20012 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20013     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20014 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20015     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20016 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20017     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20018 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20019
20020     ;;
20021 esac
20022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20025   echo $ECHO_N "(cached) $ECHO_C" >&6
20026 else
20027   eval "$as_ac_Header=\$ac_header_preproc"
20028 fi
20029 ac_res=`eval echo '${'$as_ac_Header'}'`
20030                { echo "$as_me:$LINENO: result: $ac_res" >&5
20031 echo "${ECHO_T}$ac_res" >&6; }
20032
20033 fi
20034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20035   cat >>confdefs.h <<_ACEOF
20036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20037 _ACEOF
20038
20039 fi
20040
20041 done
20042
20043
20044 for ac_func in getpagesize
20045 do
20046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20047 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20049 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20050   echo $ECHO_N "(cached) $ECHO_C" >&6
20051 else
20052   cat >conftest.$ac_ext <<_ACEOF
20053 /* confdefs.h.  */
20054 _ACEOF
20055 cat confdefs.h >>conftest.$ac_ext
20056 cat >>conftest.$ac_ext <<_ACEOF
20057 /* end confdefs.h.  */
20058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20059    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20060 #define $ac_func innocuous_$ac_func
20061
20062 /* System header to define __stub macros and hopefully few prototypes,
20063     which can conflict with char $ac_func (); below.
20064     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20065     <limits.h> exists even on freestanding compilers.  */
20066
20067 #ifdef __STDC__
20068 # include <limits.h>
20069 #else
20070 # include <assert.h>
20071 #endif
20072
20073 #undef $ac_func
20074
20075 /* Override any GCC internal prototype to avoid an error.
20076    Use char because int might match the return type of a GCC
20077    builtin and then its argument prototype would still apply.  */
20078 #ifdef __cplusplus
20079 extern "C"
20080 #endif
20081 char $ac_func ();
20082 /* The GNU C library defines this for functions which it implements
20083     to always fail with ENOSYS.  Some functions are actually named
20084     something starting with __ and the normal name is an alias.  */
20085 #if defined __stub_$ac_func || defined __stub___$ac_func
20086 choke me
20087 #endif
20088
20089 int
20090 main ()
20091 {
20092 return $ac_func ();
20093   ;
20094   return 0;
20095 }
20096 _ACEOF
20097 rm -f conftest.$ac_objext conftest$ac_exeext
20098 if { (ac_try="$ac_link"
20099 case "(($ac_try" in
20100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20101   *) ac_try_echo=$ac_try;;
20102 esac
20103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20104   (eval "$ac_link") 2>conftest.er1
20105   ac_status=$?
20106   grep -v '^ *+' conftest.er1 >conftest.err
20107   rm -f conftest.er1
20108   cat conftest.err >&5
20109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110   (exit $ac_status); } && {
20111          test -z "$ac_c_werror_flag" ||
20112          test ! -s conftest.err
20113        } && test -s conftest$ac_exeext &&
20114        $as_test_x conftest$ac_exeext; then
20115   eval "$as_ac_var=yes"
20116 else
20117   echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.$ac_ext >&5
20119
20120         eval "$as_ac_var=no"
20121 fi
20122
20123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20124       conftest$ac_exeext conftest.$ac_ext
20125 fi
20126 ac_res=`eval echo '${'$as_ac_var'}'`
20127                { echo "$as_me:$LINENO: result: $ac_res" >&5
20128 echo "${ECHO_T}$ac_res" >&6; }
20129 if test `eval echo '${'$as_ac_var'}'` = yes; then
20130   cat >>confdefs.h <<_ACEOF
20131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20132 _ACEOF
20133
20134 fi
20135 done
20136
20137 { echo "$as_me:$LINENO: checking for working mmap" >&5
20138 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20139 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20140   echo $ECHO_N "(cached) $ECHO_C" >&6
20141 else
20142   if test "$cross_compiling" = yes; then
20143   ac_cv_func_mmap_fixed_mapped=no
20144 else
20145   cat >conftest.$ac_ext <<_ACEOF
20146 /* confdefs.h.  */
20147 _ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h.  */
20151 $ac_includes_default
20152 /* malloc might have been renamed as rpl_malloc. */
20153 #undef malloc
20154
20155 /* Thanks to Mike Haertel and Jim Avera for this test.
20156    Here is a matrix of mmap possibilities:
20157         mmap private not fixed
20158         mmap private fixed at somewhere currently unmapped
20159         mmap private fixed at somewhere already mapped
20160         mmap shared not fixed
20161         mmap shared fixed at somewhere currently unmapped
20162         mmap shared fixed at somewhere already mapped
20163    For private mappings, we should verify that changes cannot be read()
20164    back from the file, nor mmap's back from the file at a different
20165    address.  (There have been systems where private was not correctly
20166    implemented like the infamous i386 svr4.0, and systems where the
20167    VM page cache was not coherent with the file system buffer cache
20168    like early versions of FreeBSD and possibly contemporary NetBSD.)
20169    For shared mappings, we should conversely verify that changes get
20170    propagated back to all the places they're supposed to be.
20171
20172    Grep wants private fixed already mapped.
20173    The main things grep needs to know about mmap are:
20174    * does it exist and is it safe to write into the mmap'd area
20175    * how to use it (BSD variants)  */
20176
20177 #include <fcntl.h>
20178 #include <sys/mman.h>
20179
20180 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20181 char *malloc ();
20182 #endif
20183
20184 /* This mess was copied from the GNU getpagesize.h.  */
20185 #ifndef HAVE_GETPAGESIZE
20186 /* Assume that all systems that can run configure have sys/param.h.  */
20187 # ifndef HAVE_SYS_PARAM_H
20188 #  define HAVE_SYS_PARAM_H 1
20189 # endif
20190
20191 # ifdef _SC_PAGESIZE
20192 #  define getpagesize() sysconf(_SC_PAGESIZE)
20193 # else /* no _SC_PAGESIZE */
20194 #  ifdef HAVE_SYS_PARAM_H
20195 #   include <sys/param.h>
20196 #   ifdef EXEC_PAGESIZE
20197 #    define getpagesize() EXEC_PAGESIZE
20198 #   else /* no EXEC_PAGESIZE */
20199 #    ifdef NBPG
20200 #     define getpagesize() NBPG * CLSIZE
20201 #     ifndef CLSIZE
20202 #      define CLSIZE 1
20203 #     endif /* no CLSIZE */
20204 #    else /* no NBPG */
20205 #     ifdef NBPC
20206 #      define getpagesize() NBPC
20207 #     else /* no NBPC */
20208 #      ifdef PAGESIZE
20209 #       define getpagesize() PAGESIZE
20210 #      endif /* PAGESIZE */
20211 #     endif /* no NBPC */
20212 #    endif /* no NBPG */
20213 #   endif /* no EXEC_PAGESIZE */
20214 #  else /* no HAVE_SYS_PARAM_H */
20215 #   define getpagesize() 8192   /* punt totally */
20216 #  endif /* no HAVE_SYS_PARAM_H */
20217 # endif /* no _SC_PAGESIZE */
20218
20219 #endif /* no HAVE_GETPAGESIZE */
20220
20221 int
20222 main ()
20223 {
20224   char *data, *data2, *data3;
20225   int i, pagesize;
20226   int fd;
20227
20228   pagesize = getpagesize ();
20229
20230   /* First, make a file with some known garbage in it. */
20231   data = (char *) malloc (pagesize);
20232   if (!data)
20233     return 1;
20234   for (i = 0; i < pagesize; ++i)
20235     *(data + i) = rand ();
20236   umask (0);
20237   fd = creat ("conftest.mmap", 0600);
20238   if (fd < 0)
20239     return 1;
20240   if (write (fd, data, pagesize) != pagesize)
20241     return 1;
20242   close (fd);
20243
20244   /* Next, try to mmap the file at a fixed address which already has
20245      something else allocated at it.  If we can, also make sure that
20246      we see the same garbage.  */
20247   fd = open ("conftest.mmap", O_RDWR);
20248   if (fd < 0)
20249     return 1;
20250   data2 = (char *) malloc (2 * pagesize);
20251   if (!data2)
20252     return 1;
20253   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20254   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20255                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20256     return 1;
20257   for (i = 0; i < pagesize; ++i)
20258     if (*(data + i) != *(data2 + i))
20259       return 1;
20260
20261   /* Finally, make sure that changes to the mapped area do not
20262      percolate back to the file as seen by read().  (This is a bug on
20263      some variants of i386 svr4.0.)  */
20264   for (i = 0; i < pagesize; ++i)
20265     *(data2 + i) = *(data2 + i) + 1;
20266   data3 = (char *) malloc (pagesize);
20267   if (!data3)
20268     return 1;
20269   if (read (fd, data3, pagesize) != pagesize)
20270     return 1;
20271   for (i = 0; i < pagesize; ++i)
20272     if (*(data + i) != *(data3 + i))
20273       return 1;
20274   close (fd);
20275   return 0;
20276 }
20277 _ACEOF
20278 rm -f conftest$ac_exeext
20279 if { (ac_try="$ac_link"
20280 case "(($ac_try" in
20281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282   *) ac_try_echo=$ac_try;;
20283 esac
20284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20285   (eval "$ac_link") 2>&5
20286   ac_status=$?
20287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20289   { (case "(($ac_try" in
20290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20291   *) ac_try_echo=$ac_try;;
20292 esac
20293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20294   (eval "$ac_try") 2>&5
20295   ac_status=$?
20296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297   (exit $ac_status); }; }; then
20298   ac_cv_func_mmap_fixed_mapped=yes
20299 else
20300   echo "$as_me: program exited with status $ac_status" >&5
20301 echo "$as_me: failed program was:" >&5
20302 sed 's/^/| /' conftest.$ac_ext >&5
20303
20304 ( exit $ac_status )
20305 ac_cv_func_mmap_fixed_mapped=no
20306 fi
20307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20308 fi
20309
20310
20311 fi
20312 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20313 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20314 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20315
20316 cat >>confdefs.h <<\_ACEOF
20317 #define HAVE_MMAP 1
20318 _ACEOF
20319
20320 fi
20321 rm -f conftest.mmap
20322
20323
20324     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20325 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20326 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20327   echo $ECHO_N "(cached) $ECHO_C" >&6
20328 else
20329   cat >conftest.$ac_ext <<_ACEOF
20330 /* confdefs.h.  */
20331 _ACEOF
20332 cat confdefs.h >>conftest.$ac_ext
20333 cat >>conftest.$ac_ext <<_ACEOF
20334 /* end confdefs.h.  */
20335
20336 #include <features.h>
20337 #ifdef __GNU_LIBRARY__
20338  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20339   Lucky GNU user
20340  #endif
20341 #endif
20342
20343 _ACEOF
20344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20345   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20346   ac_cv_gnu_library_2_1=yes
20347 else
20348   ac_cv_gnu_library_2_1=no
20349 fi
20350 rm -f conftest*
20351
20352
20353
20354 fi
20355 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20356 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20357
20358     GLIBC21="$ac_cv_gnu_library_2_1"
20359
20360
20361
20362
20363   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20364 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20365 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20366   echo $ECHO_N "(cached) $ECHO_C" >&6
20367 else
20368
20369       if test "$cross_compiling" = yes; then
20370
20371           # Guess based on the CPU.
20372           case "$host_cpu" in
20373             alpha* | i3456786 | m68k | s390*)
20374               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20375             *)
20376               gt_cv_int_divbyzero_sigfpe="guessing no";;
20377           esac
20378
20379 else
20380   cat >conftest.$ac_ext <<_ACEOF
20381 /* confdefs.h.  */
20382 _ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h.  */
20386
20387 #include <stdlib.h>
20388 #include <signal.h>
20389
20390 static void
20391 #ifdef __cplusplus
20392 sigfpe_handler (int sig)
20393 #else
20394 sigfpe_handler (sig) int sig;
20395 #endif
20396 {
20397   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20398   exit (sig != SIGFPE);
20399 }
20400
20401 int x = 1;
20402 int y = 0;
20403 int z;
20404 int nan;
20405
20406 int main ()
20407 {
20408   signal (SIGFPE, sigfpe_handler);
20409 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20410 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20411   signal (SIGTRAP, sigfpe_handler);
20412 #endif
20413 /* Linux/SPARC yields signal SIGILL.  */
20414 #if defined (__sparc__) && defined (__linux__)
20415   signal (SIGILL, sigfpe_handler);
20416 #endif
20417
20418   z = x / y;
20419   nan = y / y;
20420   exit (1);
20421 }
20422
20423 _ACEOF
20424 rm -f conftest$ac_exeext
20425 if { (ac_try="$ac_link"
20426 case "(($ac_try" in
20427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428   *) ac_try_echo=$ac_try;;
20429 esac
20430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431   (eval "$ac_link") 2>&5
20432   ac_status=$?
20433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20435   { (case "(($ac_try" in
20436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20437   *) ac_try_echo=$ac_try;;
20438 esac
20439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20440   (eval "$ac_try") 2>&5
20441   ac_status=$?
20442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443   (exit $ac_status); }; }; then
20444   gt_cv_int_divbyzero_sigfpe=yes
20445 else
20446   echo "$as_me: program exited with status $ac_status" >&5
20447 echo "$as_me: failed program was:" >&5
20448 sed 's/^/| /' conftest.$ac_ext >&5
20449
20450 ( exit $ac_status )
20451 gt_cv_int_divbyzero_sigfpe=no
20452 fi
20453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20454 fi
20455
20456
20457
20458 fi
20459 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20460 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20461   case "$gt_cv_int_divbyzero_sigfpe" in
20462     *yes) value=1;;
20463     *) value=0;;
20464   esac
20465
20466 cat >>confdefs.h <<_ACEOF
20467 #define INTDIV0_RAISES_SIGFPE $value
20468 _ACEOF
20469
20470
20471
20472   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20473 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20474 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20475   echo $ECHO_N "(cached) $ECHO_C" >&6
20476 else
20477   cat >conftest.$ac_ext <<_ACEOF
20478 /* confdefs.h.  */
20479 _ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h.  */
20483 unsigned long long ull = 1ULL; int i = 63;
20484 int
20485 main ()
20486 {
20487 unsigned long long ullmax = (unsigned long long) -1;
20488      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20489   ;
20490   return 0;
20491 }
20492 _ACEOF
20493 rm -f conftest.$ac_objext conftest$ac_exeext
20494 if { (ac_try="$ac_link"
20495 case "(($ac_try" in
20496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20497   *) ac_try_echo=$ac_try;;
20498 esac
20499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20500   (eval "$ac_link") 2>conftest.er1
20501   ac_status=$?
20502   grep -v '^ *+' conftest.er1 >conftest.err
20503   rm -f conftest.er1
20504   cat conftest.err >&5
20505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506   (exit $ac_status); } && {
20507          test -z "$ac_c_werror_flag" ||
20508          test ! -s conftest.err
20509        } && test -s conftest$ac_exeext &&
20510        $as_test_x conftest$ac_exeext; then
20511   ac_cv_type_unsigned_long_long=yes
20512 else
20513   echo "$as_me: failed program was:" >&5
20514 sed 's/^/| /' conftest.$ac_ext >&5
20515
20516         ac_cv_type_unsigned_long_long=no
20517 fi
20518
20519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20520       conftest$ac_exeext conftest.$ac_ext
20521 fi
20522 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20523 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20524   if test $ac_cv_type_unsigned_long_long = yes; then
20525
20526 cat >>confdefs.h <<\_ACEOF
20527 #define HAVE_UNSIGNED_LONG_LONG 1
20528 _ACEOF
20529
20530   fi
20531
20532
20533
20534
20535   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20536
20537     test $ac_cv_type_unsigned_long_long = yes \
20538       && ac_type='unsigned long long' \
20539       || ac_type='unsigned long'
20540
20541 cat >>confdefs.h <<_ACEOF
20542 #define uintmax_t $ac_type
20543 _ACEOF
20544
20545   else
20546
20547 cat >>confdefs.h <<\_ACEOF
20548 #define HAVE_UINTMAX_T 1
20549 _ACEOF
20550
20551   fi
20552
20553
20554   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20555 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20556 if test "${gt_cv_header_inttypes_h+set}" = set; then
20557   echo $ECHO_N "(cached) $ECHO_C" >&6
20558 else
20559
20560     cat >conftest.$ac_ext <<_ACEOF
20561 /* confdefs.h.  */
20562 _ACEOF
20563 cat confdefs.h >>conftest.$ac_ext
20564 cat >>conftest.$ac_ext <<_ACEOF
20565 /* end confdefs.h.  */
20566 #include <sys/types.h>
20567 #include <inttypes.h>
20568 int
20569 main ()
20570 {
20571
20572   ;
20573   return 0;
20574 }
20575 _ACEOF
20576 rm -f conftest.$ac_objext
20577 if { (ac_try="$ac_compile"
20578 case "(($ac_try" in
20579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580   *) ac_try_echo=$ac_try;;
20581 esac
20582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20583   (eval "$ac_compile") 2>conftest.er1
20584   ac_status=$?
20585   grep -v '^ *+' conftest.er1 >conftest.err
20586   rm -f conftest.er1
20587   cat conftest.err >&5
20588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589   (exit $ac_status); } && {
20590          test -z "$ac_c_werror_flag" ||
20591          test ! -s conftest.err
20592        } && test -s conftest.$ac_objext; then
20593   gt_cv_header_inttypes_h=yes
20594 else
20595   echo "$as_me: failed program was:" >&5
20596 sed 's/^/| /' conftest.$ac_ext >&5
20597
20598         gt_cv_header_inttypes_h=no
20599 fi
20600
20601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20602
20603 fi
20604 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20605 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20606   if test $gt_cv_header_inttypes_h = yes; then
20607
20608 cat >>confdefs.h <<_ACEOF
20609 #define HAVE_INTTYPES_H 1
20610 _ACEOF
20611
20612   fi
20613
20614
20615
20616   if test $gt_cv_header_inttypes_h = yes; then
20617     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20618 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20619 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20620   echo $ECHO_N "(cached) $ECHO_C" >&6
20621 else
20622
20623         cat >conftest.$ac_ext <<_ACEOF
20624 /* confdefs.h.  */
20625 _ACEOF
20626 cat confdefs.h >>conftest.$ac_ext
20627 cat >>conftest.$ac_ext <<_ACEOF
20628 /* end confdefs.h.  */
20629 #include <inttypes.h>
20630 #ifdef PRId32
20631 char *p = PRId32;
20632 #endif
20633
20634 int
20635 main ()
20636 {
20637
20638   ;
20639   return 0;
20640 }
20641 _ACEOF
20642 rm -f conftest.$ac_objext
20643 if { (ac_try="$ac_compile"
20644 case "(($ac_try" in
20645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646   *) ac_try_echo=$ac_try;;
20647 esac
20648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649   (eval "$ac_compile") 2>conftest.er1
20650   ac_status=$?
20651   grep -v '^ *+' conftest.er1 >conftest.err
20652   rm -f conftest.er1
20653   cat conftest.err >&5
20654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655   (exit $ac_status); } && {
20656          test -z "$ac_c_werror_flag" ||
20657          test ! -s conftest.err
20658        } && test -s conftest.$ac_objext; then
20659   gt_cv_inttypes_pri_broken=no
20660 else
20661   echo "$as_me: failed program was:" >&5
20662 sed 's/^/| /' conftest.$ac_ext >&5
20663
20664         gt_cv_inttypes_pri_broken=yes
20665 fi
20666
20667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20668
20669 fi
20670 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20671 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20672   fi
20673   if test "$gt_cv_inttypes_pri_broken" = yes; then
20674
20675 cat >>confdefs.h <<_ACEOF
20676 #define PRI_MACROS_BROKEN 1
20677 _ACEOF
20678
20679   fi
20680
20681
20682
20683 for ac_header in stdint.h
20684 do
20685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20687   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20690   echo $ECHO_N "(cached) $ECHO_C" >&6
20691 fi
20692 ac_res=`eval echo '${'$as_ac_Header'}'`
20693                { echo "$as_me:$LINENO: result: $ac_res" >&5
20694 echo "${ECHO_T}$ac_res" >&6; }
20695 else
20696   # Is the header compilable?
20697 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20699 cat >conftest.$ac_ext <<_ACEOF
20700 /* confdefs.h.  */
20701 _ACEOF
20702 cat confdefs.h >>conftest.$ac_ext
20703 cat >>conftest.$ac_ext <<_ACEOF
20704 /* end confdefs.h.  */
20705 $ac_includes_default
20706 #include <$ac_header>
20707 _ACEOF
20708 rm -f conftest.$ac_objext
20709 if { (ac_try="$ac_compile"
20710 case "(($ac_try" in
20711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20712   *) ac_try_echo=$ac_try;;
20713 esac
20714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20715   (eval "$ac_compile") 2>conftest.er1
20716   ac_status=$?
20717   grep -v '^ *+' conftest.er1 >conftest.err
20718   rm -f conftest.er1
20719   cat conftest.err >&5
20720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721   (exit $ac_status); } && {
20722          test -z "$ac_c_werror_flag" ||
20723          test ! -s conftest.err
20724        } && test -s conftest.$ac_objext; then
20725   ac_header_compiler=yes
20726 else
20727   echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.$ac_ext >&5
20729
20730         ac_header_compiler=no
20731 fi
20732
20733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20734 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20735 echo "${ECHO_T}$ac_header_compiler" >&6; }
20736
20737 # Is the header present?
20738 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20740 cat >conftest.$ac_ext <<_ACEOF
20741 /* confdefs.h.  */
20742 _ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h.  */
20746 #include <$ac_header>
20747 _ACEOF
20748 if { (ac_try="$ac_cpp conftest.$ac_ext"
20749 case "(($ac_try" in
20750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20751   *) ac_try_echo=$ac_try;;
20752 esac
20753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20754   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20755   ac_status=$?
20756   grep -v '^ *+' conftest.er1 >conftest.err
20757   rm -f conftest.er1
20758   cat conftest.err >&5
20759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760   (exit $ac_status); } >/dev/null && {
20761          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20762          test ! -s conftest.err
20763        }; then
20764   ac_header_preproc=yes
20765 else
20766   echo "$as_me: failed program was:" >&5
20767 sed 's/^/| /' conftest.$ac_ext >&5
20768
20769   ac_header_preproc=no
20770 fi
20771
20772 rm -f conftest.err conftest.$ac_ext
20773 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20774 echo "${ECHO_T}$ac_header_preproc" >&6; }
20775
20776 # So?  What about this header?
20777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20778   yes:no: )
20779     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20781     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20782 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20783     ac_header_preproc=yes
20784     ;;
20785   no:yes:* )
20786     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20788     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20789 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20790     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20791 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20792     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20793 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20794     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20796     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20797 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20798
20799     ;;
20800 esac
20801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20804   echo $ECHO_N "(cached) $ECHO_C" >&6
20805 else
20806   eval "$as_ac_Header=\$ac_header_preproc"
20807 fi
20808 ac_res=`eval echo '${'$as_ac_Header'}'`
20809                { echo "$as_me:$LINENO: result: $ac_res" >&5
20810 echo "${ECHO_T}$ac_res" >&6; }
20811
20812 fi
20813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20814   cat >>confdefs.h <<_ACEOF
20815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20816 _ACEOF
20817
20818 fi
20819
20820 done
20821
20822     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20823 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20824   result=
20825   cat >conftest.$ac_ext <<_ACEOF
20826 /* confdefs.h.  */
20827 _ACEOF
20828 cat confdefs.h >>conftest.$ac_ext
20829 cat >>conftest.$ac_ext <<_ACEOF
20830 /* end confdefs.h.  */
20831
20832 #include <limits.h>
20833 #if HAVE_STDINT_H
20834 #include <stdint.h>
20835 #endif
20836 #ifdef SIZE_MAX
20837 Found it
20838 #endif
20839
20840 _ACEOF
20841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20842   $EGREP "Found it" >/dev/null 2>&1; then
20843   result=yes
20844 fi
20845 rm -f conftest*
20846
20847   if test -z "$result"; then
20848                     if test "$cross_compiling" = yes; then
20849   # Depending upon the size, compute the lo and hi bounds.
20850 cat >conftest.$ac_ext <<_ACEOF
20851 /* confdefs.h.  */
20852 _ACEOF
20853 cat confdefs.h >>conftest.$ac_ext
20854 cat >>conftest.$ac_ext <<_ACEOF
20855 /* end confdefs.h.  */
20856 #include <stddef.h>
20857 int
20858 main ()
20859 {
20860 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20861 test_array [0] = 0
20862
20863   ;
20864   return 0;
20865 }
20866 _ACEOF
20867 rm -f conftest.$ac_objext
20868 if { (ac_try="$ac_compile"
20869 case "(($ac_try" in
20870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20871   *) ac_try_echo=$ac_try;;
20872 esac
20873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20874   (eval "$ac_compile") 2>conftest.er1
20875   ac_status=$?
20876   grep -v '^ *+' conftest.er1 >conftest.err
20877   rm -f conftest.er1
20878   cat conftest.err >&5
20879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880   (exit $ac_status); } && {
20881          test -z "$ac_c_werror_flag" ||
20882          test ! -s conftest.err
20883        } && test -s conftest.$ac_objext; then
20884   ac_lo=0 ac_mid=0
20885   while :; do
20886     cat >conftest.$ac_ext <<_ACEOF
20887 /* confdefs.h.  */
20888 _ACEOF
20889 cat confdefs.h >>conftest.$ac_ext
20890 cat >>conftest.$ac_ext <<_ACEOF
20891 /* end confdefs.h.  */
20892 #include <stddef.h>
20893 int
20894 main ()
20895 {
20896 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20897 test_array [0] = 0
20898
20899   ;
20900   return 0;
20901 }
20902 _ACEOF
20903 rm -f conftest.$ac_objext
20904 if { (ac_try="$ac_compile"
20905 case "(($ac_try" in
20906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20907   *) ac_try_echo=$ac_try;;
20908 esac
20909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20910   (eval "$ac_compile") 2>conftest.er1
20911   ac_status=$?
20912   grep -v '^ *+' conftest.er1 >conftest.err
20913   rm -f conftest.er1
20914   cat conftest.err >&5
20915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916   (exit $ac_status); } && {
20917          test -z "$ac_c_werror_flag" ||
20918          test ! -s conftest.err
20919        } && test -s conftest.$ac_objext; then
20920   ac_hi=$ac_mid; break
20921 else
20922   echo "$as_me: failed program was:" >&5
20923 sed 's/^/| /' conftest.$ac_ext >&5
20924
20925         ac_lo=`expr $ac_mid + 1`
20926                         if test $ac_lo -le $ac_mid; then
20927                           ac_lo= ac_hi=
20928                           break
20929                         fi
20930                         ac_mid=`expr 2 '*' $ac_mid + 1`
20931 fi
20932
20933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20934   done
20935 else
20936   echo "$as_me: failed program was:" >&5
20937 sed 's/^/| /' conftest.$ac_ext >&5
20938
20939         cat >conftest.$ac_ext <<_ACEOF
20940 /* confdefs.h.  */
20941 _ACEOF
20942 cat confdefs.h >>conftest.$ac_ext
20943 cat >>conftest.$ac_ext <<_ACEOF
20944 /* end confdefs.h.  */
20945 #include <stddef.h>
20946 int
20947 main ()
20948 {
20949 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20950 test_array [0] = 0
20951
20952   ;
20953   return 0;
20954 }
20955 _ACEOF
20956 rm -f conftest.$ac_objext
20957 if { (ac_try="$ac_compile"
20958 case "(($ac_try" in
20959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20960   *) ac_try_echo=$ac_try;;
20961 esac
20962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20963   (eval "$ac_compile") 2>conftest.er1
20964   ac_status=$?
20965   grep -v '^ *+' conftest.er1 >conftest.err
20966   rm -f conftest.er1
20967   cat conftest.err >&5
20968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969   (exit $ac_status); } && {
20970          test -z "$ac_c_werror_flag" ||
20971          test ! -s conftest.err
20972        } && test -s conftest.$ac_objext; then
20973   ac_hi=-1 ac_mid=-1
20974   while :; do
20975     cat >conftest.$ac_ext <<_ACEOF
20976 /* confdefs.h.  */
20977 _ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h.  */
20981 #include <stddef.h>
20982 int
20983 main ()
20984 {
20985 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20986 test_array [0] = 0
20987
20988   ;
20989   return 0;
20990 }
20991 _ACEOF
20992 rm -f conftest.$ac_objext
20993 if { (ac_try="$ac_compile"
20994 case "(($ac_try" in
20995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20996   *) ac_try_echo=$ac_try;;
20997 esac
20998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20999   (eval "$ac_compile") 2>conftest.er1
21000   ac_status=$?
21001   grep -v '^ *+' conftest.er1 >conftest.err
21002   rm -f conftest.er1
21003   cat conftest.err >&5
21004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005   (exit $ac_status); } && {
21006          test -z "$ac_c_werror_flag" ||
21007          test ! -s conftest.err
21008        } && test -s conftest.$ac_objext; then
21009   ac_lo=$ac_mid; break
21010 else
21011   echo "$as_me: failed program was:" >&5
21012 sed 's/^/| /' conftest.$ac_ext >&5
21013
21014         ac_hi=`expr '(' $ac_mid ')' - 1`
21015                         if test $ac_mid -le $ac_hi; then
21016                           ac_lo= ac_hi=
21017                           break
21018                         fi
21019                         ac_mid=`expr 2 '*' $ac_mid`
21020 fi
21021
21022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21023   done
21024 else
21025   echo "$as_me: failed program was:" >&5
21026 sed 's/^/| /' conftest.$ac_ext >&5
21027
21028         ac_lo= ac_hi=
21029 fi
21030
21031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21032 fi
21033
21034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21035 # Binary search between lo and hi bounds.
21036 while test "x$ac_lo" != "x$ac_hi"; do
21037   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21038   cat >conftest.$ac_ext <<_ACEOF
21039 /* confdefs.h.  */
21040 _ACEOF
21041 cat confdefs.h >>conftest.$ac_ext
21042 cat >>conftest.$ac_ext <<_ACEOF
21043 /* end confdefs.h.  */
21044 #include <stddef.h>
21045 int
21046 main ()
21047 {
21048 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21049 test_array [0] = 0
21050
21051   ;
21052   return 0;
21053 }
21054 _ACEOF
21055 rm -f conftest.$ac_objext
21056 if { (ac_try="$ac_compile"
21057 case "(($ac_try" in
21058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21059   *) ac_try_echo=$ac_try;;
21060 esac
21061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21062   (eval "$ac_compile") 2>conftest.er1
21063   ac_status=$?
21064   grep -v '^ *+' conftest.er1 >conftest.err
21065   rm -f conftest.er1
21066   cat conftest.err >&5
21067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068   (exit $ac_status); } && {
21069          test -z "$ac_c_werror_flag" ||
21070          test ! -s conftest.err
21071        } && test -s conftest.$ac_objext; then
21072   ac_hi=$ac_mid
21073 else
21074   echo "$as_me: failed program was:" >&5
21075 sed 's/^/| /' conftest.$ac_ext >&5
21076
21077         ac_lo=`expr '(' $ac_mid ')' + 1`
21078 fi
21079
21080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21081 done
21082 case $ac_lo in
21083 ?*) res_hi=$ac_lo;;
21084 '') result=? ;;
21085 esac
21086 else
21087   cat >conftest.$ac_ext <<_ACEOF
21088 /* confdefs.h.  */
21089 _ACEOF
21090 cat confdefs.h >>conftest.$ac_ext
21091 cat >>conftest.$ac_ext <<_ACEOF
21092 /* end confdefs.h.  */
21093 #include <stddef.h>
21094 static long int longval () { return ~(size_t)0 / 10; }
21095 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21096 #include <stdio.h>
21097 #include <stdlib.h>
21098 int
21099 main ()
21100 {
21101
21102   FILE *f = fopen ("conftest.val", "w");
21103   if (! f)
21104     return 1;
21105   if ((~(size_t)0 / 10) < 0)
21106     {
21107       long int i = longval ();
21108       if (i != (~(size_t)0 / 10))
21109         return 1;
21110       fprintf (f, "%ld\n", i);
21111     }
21112   else
21113     {
21114       unsigned long int i = ulongval ();
21115       if (i != (~(size_t)0 / 10))
21116         return 1;
21117       fprintf (f, "%lu\n", i);
21118     }
21119   return ferror (f) || fclose (f) != 0;
21120
21121   ;
21122   return 0;
21123 }
21124 _ACEOF
21125 rm -f conftest$ac_exeext
21126 if { (ac_try="$ac_link"
21127 case "(($ac_try" in
21128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129   *) ac_try_echo=$ac_try;;
21130 esac
21131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21132   (eval "$ac_link") 2>&5
21133   ac_status=$?
21134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21136   { (case "(($ac_try" in
21137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21138   *) ac_try_echo=$ac_try;;
21139 esac
21140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21141   (eval "$ac_try") 2>&5
21142   ac_status=$?
21143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144   (exit $ac_status); }; }; then
21145   res_hi=`cat conftest.val`
21146 else
21147   echo "$as_me: program exited with status $ac_status" >&5
21148 echo "$as_me: failed program was:" >&5
21149 sed 's/^/| /' conftest.$ac_ext >&5
21150
21151 ( exit $ac_status )
21152 result=?
21153 fi
21154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21155 fi
21156 rm -f conftest.val
21157
21158     if test "$cross_compiling" = yes; then
21159   # Depending upon the size, compute the lo and hi bounds.
21160 cat >conftest.$ac_ext <<_ACEOF
21161 /* confdefs.h.  */
21162 _ACEOF
21163 cat confdefs.h >>conftest.$ac_ext
21164 cat >>conftest.$ac_ext <<_ACEOF
21165 /* end confdefs.h.  */
21166 #include <stddef.h>
21167 int
21168 main ()
21169 {
21170 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21171 test_array [0] = 0
21172
21173   ;
21174   return 0;
21175 }
21176 _ACEOF
21177 rm -f conftest.$ac_objext
21178 if { (ac_try="$ac_compile"
21179 case "(($ac_try" in
21180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21181   *) ac_try_echo=$ac_try;;
21182 esac
21183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21184   (eval "$ac_compile") 2>conftest.er1
21185   ac_status=$?
21186   grep -v '^ *+' conftest.er1 >conftest.err
21187   rm -f conftest.er1
21188   cat conftest.err >&5
21189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190   (exit $ac_status); } && {
21191          test -z "$ac_c_werror_flag" ||
21192          test ! -s conftest.err
21193        } && test -s conftest.$ac_objext; then
21194   ac_lo=0 ac_mid=0
21195   while :; do
21196     cat >conftest.$ac_ext <<_ACEOF
21197 /* confdefs.h.  */
21198 _ACEOF
21199 cat confdefs.h >>conftest.$ac_ext
21200 cat >>conftest.$ac_ext <<_ACEOF
21201 /* end confdefs.h.  */
21202 #include <stddef.h>
21203 int
21204 main ()
21205 {
21206 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21207 test_array [0] = 0
21208
21209   ;
21210   return 0;
21211 }
21212 _ACEOF
21213 rm -f conftest.$ac_objext
21214 if { (ac_try="$ac_compile"
21215 case "(($ac_try" in
21216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21217   *) ac_try_echo=$ac_try;;
21218 esac
21219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21220   (eval "$ac_compile") 2>conftest.er1
21221   ac_status=$?
21222   grep -v '^ *+' conftest.er1 >conftest.err
21223   rm -f conftest.er1
21224   cat conftest.err >&5
21225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226   (exit $ac_status); } && {
21227          test -z "$ac_c_werror_flag" ||
21228          test ! -s conftest.err
21229        } && test -s conftest.$ac_objext; then
21230   ac_hi=$ac_mid; break
21231 else
21232   echo "$as_me: failed program was:" >&5
21233 sed 's/^/| /' conftest.$ac_ext >&5
21234
21235         ac_lo=`expr $ac_mid + 1`
21236                         if test $ac_lo -le $ac_mid; then
21237                           ac_lo= ac_hi=
21238                           break
21239                         fi
21240                         ac_mid=`expr 2 '*' $ac_mid + 1`
21241 fi
21242
21243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21244   done
21245 else
21246   echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21248
21249         cat >conftest.$ac_ext <<_ACEOF
21250 /* confdefs.h.  */
21251 _ACEOF
21252 cat confdefs.h >>conftest.$ac_ext
21253 cat >>conftest.$ac_ext <<_ACEOF
21254 /* end confdefs.h.  */
21255 #include <stddef.h>
21256 int
21257 main ()
21258 {
21259 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21260 test_array [0] = 0
21261
21262   ;
21263   return 0;
21264 }
21265 _ACEOF
21266 rm -f conftest.$ac_objext
21267 if { (ac_try="$ac_compile"
21268 case "(($ac_try" in
21269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21270   *) ac_try_echo=$ac_try;;
21271 esac
21272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21273   (eval "$ac_compile") 2>conftest.er1
21274   ac_status=$?
21275   grep -v '^ *+' conftest.er1 >conftest.err
21276   rm -f conftest.er1
21277   cat conftest.err >&5
21278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279   (exit $ac_status); } && {
21280          test -z "$ac_c_werror_flag" ||
21281          test ! -s conftest.err
21282        } && test -s conftest.$ac_objext; then
21283   ac_hi=-1 ac_mid=-1
21284   while :; do
21285     cat >conftest.$ac_ext <<_ACEOF
21286 /* confdefs.h.  */
21287 _ACEOF
21288 cat confdefs.h >>conftest.$ac_ext
21289 cat >>conftest.$ac_ext <<_ACEOF
21290 /* end confdefs.h.  */
21291 #include <stddef.h>
21292 int
21293 main ()
21294 {
21295 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21296 test_array [0] = 0
21297
21298   ;
21299   return 0;
21300 }
21301 _ACEOF
21302 rm -f conftest.$ac_objext
21303 if { (ac_try="$ac_compile"
21304 case "(($ac_try" in
21305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21306   *) ac_try_echo=$ac_try;;
21307 esac
21308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21309   (eval "$ac_compile") 2>conftest.er1
21310   ac_status=$?
21311   grep -v '^ *+' conftest.er1 >conftest.err
21312   rm -f conftest.er1
21313   cat conftest.err >&5
21314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315   (exit $ac_status); } && {
21316          test -z "$ac_c_werror_flag" ||
21317          test ! -s conftest.err
21318        } && test -s conftest.$ac_objext; then
21319   ac_lo=$ac_mid; break
21320 else
21321   echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21323
21324         ac_hi=`expr '(' $ac_mid ')' - 1`
21325                         if test $ac_mid -le $ac_hi; then
21326                           ac_lo= ac_hi=
21327                           break
21328                         fi
21329                         ac_mid=`expr 2 '*' $ac_mid`
21330 fi
21331
21332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21333   done
21334 else
21335   echo "$as_me: failed program was:" >&5
21336 sed 's/^/| /' conftest.$ac_ext >&5
21337
21338         ac_lo= ac_hi=
21339 fi
21340
21341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21342 fi
21343
21344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21345 # Binary search between lo and hi bounds.
21346 while test "x$ac_lo" != "x$ac_hi"; do
21347   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21348   cat >conftest.$ac_ext <<_ACEOF
21349 /* confdefs.h.  */
21350 _ACEOF
21351 cat confdefs.h >>conftest.$ac_ext
21352 cat >>conftest.$ac_ext <<_ACEOF
21353 /* end confdefs.h.  */
21354 #include <stddef.h>
21355 int
21356 main ()
21357 {
21358 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21359 test_array [0] = 0
21360
21361   ;
21362   return 0;
21363 }
21364 _ACEOF
21365 rm -f conftest.$ac_objext
21366 if { (ac_try="$ac_compile"
21367 case "(($ac_try" in
21368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21369   *) ac_try_echo=$ac_try;;
21370 esac
21371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21372   (eval "$ac_compile") 2>conftest.er1
21373   ac_status=$?
21374   grep -v '^ *+' conftest.er1 >conftest.err
21375   rm -f conftest.er1
21376   cat conftest.err >&5
21377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378   (exit $ac_status); } && {
21379          test -z "$ac_c_werror_flag" ||
21380          test ! -s conftest.err
21381        } && test -s conftest.$ac_objext; then
21382   ac_hi=$ac_mid
21383 else
21384   echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21386
21387         ac_lo=`expr '(' $ac_mid ')' + 1`
21388 fi
21389
21390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21391 done
21392 case $ac_lo in
21393 ?*) res_lo=$ac_lo;;
21394 '') result=? ;;
21395 esac
21396 else
21397   cat >conftest.$ac_ext <<_ACEOF
21398 /* confdefs.h.  */
21399 _ACEOF
21400 cat confdefs.h >>conftest.$ac_ext
21401 cat >>conftest.$ac_ext <<_ACEOF
21402 /* end confdefs.h.  */
21403 #include <stddef.h>
21404 static long int longval () { return ~(size_t)0 % 10; }
21405 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21406 #include <stdio.h>
21407 #include <stdlib.h>
21408 int
21409 main ()
21410 {
21411
21412   FILE *f = fopen ("conftest.val", "w");
21413   if (! f)
21414     return 1;
21415   if ((~(size_t)0 % 10) < 0)
21416     {
21417       long int i = longval ();
21418       if (i != (~(size_t)0 % 10))
21419         return 1;
21420       fprintf (f, "%ld\n", i);
21421     }
21422   else
21423     {
21424       unsigned long int i = ulongval ();
21425       if (i != (~(size_t)0 % 10))
21426         return 1;
21427       fprintf (f, "%lu\n", i);
21428     }
21429   return ferror (f) || fclose (f) != 0;
21430
21431   ;
21432   return 0;
21433 }
21434 _ACEOF
21435 rm -f conftest$ac_exeext
21436 if { (ac_try="$ac_link"
21437 case "(($ac_try" in
21438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21439   *) ac_try_echo=$ac_try;;
21440 esac
21441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21442   (eval "$ac_link") 2>&5
21443   ac_status=$?
21444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21446   { (case "(($ac_try" in
21447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21448   *) ac_try_echo=$ac_try;;
21449 esac
21450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21451   (eval "$ac_try") 2>&5
21452   ac_status=$?
21453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454   (exit $ac_status); }; }; then
21455   res_lo=`cat conftest.val`
21456 else
21457   echo "$as_me: program exited with status $ac_status" >&5
21458 echo "$as_me: failed program was:" >&5
21459 sed 's/^/| /' conftest.$ac_ext >&5
21460
21461 ( exit $ac_status )
21462 result=?
21463 fi
21464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21465 fi
21466 rm -f conftest.val
21467
21468     if test "$cross_compiling" = yes; then
21469   # Depending upon the size, compute the lo and hi bounds.
21470 cat >conftest.$ac_ext <<_ACEOF
21471 /* confdefs.h.  */
21472 _ACEOF
21473 cat confdefs.h >>conftest.$ac_ext
21474 cat >>conftest.$ac_ext <<_ACEOF
21475 /* end confdefs.h.  */
21476 #include <stddef.h>
21477 int
21478 main ()
21479 {
21480 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21481 test_array [0] = 0
21482
21483   ;
21484   return 0;
21485 }
21486 _ACEOF
21487 rm -f conftest.$ac_objext
21488 if { (ac_try="$ac_compile"
21489 case "(($ac_try" in
21490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21491   *) ac_try_echo=$ac_try;;
21492 esac
21493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21494   (eval "$ac_compile") 2>conftest.er1
21495   ac_status=$?
21496   grep -v '^ *+' conftest.er1 >conftest.err
21497   rm -f conftest.er1
21498   cat conftest.err >&5
21499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500   (exit $ac_status); } && {
21501          test -z "$ac_c_werror_flag" ||
21502          test ! -s conftest.err
21503        } && test -s conftest.$ac_objext; then
21504   ac_lo=0 ac_mid=0
21505   while :; do
21506     cat >conftest.$ac_ext <<_ACEOF
21507 /* confdefs.h.  */
21508 _ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h.  */
21512 #include <stddef.h>
21513 int
21514 main ()
21515 {
21516 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21517 test_array [0] = 0
21518
21519   ;
21520   return 0;
21521 }
21522 _ACEOF
21523 rm -f conftest.$ac_objext
21524 if { (ac_try="$ac_compile"
21525 case "(($ac_try" in
21526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21527   *) ac_try_echo=$ac_try;;
21528 esac
21529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21530   (eval "$ac_compile") 2>conftest.er1
21531   ac_status=$?
21532   grep -v '^ *+' conftest.er1 >conftest.err
21533   rm -f conftest.er1
21534   cat conftest.err >&5
21535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536   (exit $ac_status); } && {
21537          test -z "$ac_c_werror_flag" ||
21538          test ! -s conftest.err
21539        } && test -s conftest.$ac_objext; then
21540   ac_hi=$ac_mid; break
21541 else
21542   echo "$as_me: failed program was:" >&5
21543 sed 's/^/| /' conftest.$ac_ext >&5
21544
21545         ac_lo=`expr $ac_mid + 1`
21546                         if test $ac_lo -le $ac_mid; then
21547                           ac_lo= ac_hi=
21548                           break
21549                         fi
21550                         ac_mid=`expr 2 '*' $ac_mid + 1`
21551 fi
21552
21553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21554   done
21555 else
21556   echo "$as_me: failed program was:" >&5
21557 sed 's/^/| /' conftest.$ac_ext >&5
21558
21559         cat >conftest.$ac_ext <<_ACEOF
21560 /* confdefs.h.  */
21561 _ACEOF
21562 cat confdefs.h >>conftest.$ac_ext
21563 cat >>conftest.$ac_ext <<_ACEOF
21564 /* end confdefs.h.  */
21565 #include <stddef.h>
21566 int
21567 main ()
21568 {
21569 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21570 test_array [0] = 0
21571
21572   ;
21573   return 0;
21574 }
21575 _ACEOF
21576 rm -f conftest.$ac_objext
21577 if { (ac_try="$ac_compile"
21578 case "(($ac_try" in
21579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21580   *) ac_try_echo=$ac_try;;
21581 esac
21582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21583   (eval "$ac_compile") 2>conftest.er1
21584   ac_status=$?
21585   grep -v '^ *+' conftest.er1 >conftest.err
21586   rm -f conftest.er1
21587   cat conftest.err >&5
21588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589   (exit $ac_status); } && {
21590          test -z "$ac_c_werror_flag" ||
21591          test ! -s conftest.err
21592        } && test -s conftest.$ac_objext; then
21593   ac_hi=-1 ac_mid=-1
21594   while :; do
21595     cat >conftest.$ac_ext <<_ACEOF
21596 /* confdefs.h.  */
21597 _ACEOF
21598 cat confdefs.h >>conftest.$ac_ext
21599 cat >>conftest.$ac_ext <<_ACEOF
21600 /* end confdefs.h.  */
21601 #include <stddef.h>
21602 int
21603 main ()
21604 {
21605 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21606 test_array [0] = 0
21607
21608   ;
21609   return 0;
21610 }
21611 _ACEOF
21612 rm -f conftest.$ac_objext
21613 if { (ac_try="$ac_compile"
21614 case "(($ac_try" in
21615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21616   *) ac_try_echo=$ac_try;;
21617 esac
21618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21619   (eval "$ac_compile") 2>conftest.er1
21620   ac_status=$?
21621   grep -v '^ *+' conftest.er1 >conftest.err
21622   rm -f conftest.er1
21623   cat conftest.err >&5
21624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625   (exit $ac_status); } && {
21626          test -z "$ac_c_werror_flag" ||
21627          test ! -s conftest.err
21628        } && test -s conftest.$ac_objext; then
21629   ac_lo=$ac_mid; break
21630 else
21631   echo "$as_me: failed program was:" >&5
21632 sed 's/^/| /' conftest.$ac_ext >&5
21633
21634         ac_hi=`expr '(' $ac_mid ')' - 1`
21635                         if test $ac_mid -le $ac_hi; then
21636                           ac_lo= ac_hi=
21637                           break
21638                         fi
21639                         ac_mid=`expr 2 '*' $ac_mid`
21640 fi
21641
21642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21643   done
21644 else
21645   echo "$as_me: failed program was:" >&5
21646 sed 's/^/| /' conftest.$ac_ext >&5
21647
21648         ac_lo= ac_hi=
21649 fi
21650
21651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21652 fi
21653
21654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21655 # Binary search between lo and hi bounds.
21656 while test "x$ac_lo" != "x$ac_hi"; do
21657   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21658   cat >conftest.$ac_ext <<_ACEOF
21659 /* confdefs.h.  */
21660 _ACEOF
21661 cat confdefs.h >>conftest.$ac_ext
21662 cat >>conftest.$ac_ext <<_ACEOF
21663 /* end confdefs.h.  */
21664 #include <stddef.h>
21665 int
21666 main ()
21667 {
21668 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21669 test_array [0] = 0
21670
21671   ;
21672   return 0;
21673 }
21674 _ACEOF
21675 rm -f conftest.$ac_objext
21676 if { (ac_try="$ac_compile"
21677 case "(($ac_try" in
21678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21679   *) ac_try_echo=$ac_try;;
21680 esac
21681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21682   (eval "$ac_compile") 2>conftest.er1
21683   ac_status=$?
21684   grep -v '^ *+' conftest.er1 >conftest.err
21685   rm -f conftest.er1
21686   cat conftest.err >&5
21687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688   (exit $ac_status); } && {
21689          test -z "$ac_c_werror_flag" ||
21690          test ! -s conftest.err
21691        } && test -s conftest.$ac_objext; then
21692   ac_hi=$ac_mid
21693 else
21694   echo "$as_me: failed program was:" >&5
21695 sed 's/^/| /' conftest.$ac_ext >&5
21696
21697         ac_lo=`expr '(' $ac_mid ')' + 1`
21698 fi
21699
21700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21701 done
21702 case $ac_lo in
21703 ?*) fits_in_uint=$ac_lo;;
21704 '') result=? ;;
21705 esac
21706 else
21707   cat >conftest.$ac_ext <<_ACEOF
21708 /* confdefs.h.  */
21709 _ACEOF
21710 cat confdefs.h >>conftest.$ac_ext
21711 cat >>conftest.$ac_ext <<_ACEOF
21712 /* end confdefs.h.  */
21713 #include <stddef.h>
21714 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21715 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21716 #include <stdio.h>
21717 #include <stdlib.h>
21718 int
21719 main ()
21720 {
21721
21722   FILE *f = fopen ("conftest.val", "w");
21723   if (! f)
21724     return 1;
21725   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21726     {
21727       long int i = longval ();
21728       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21729         return 1;
21730       fprintf (f, "%ld\n", i);
21731     }
21732   else
21733     {
21734       unsigned long int i = ulongval ();
21735       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21736         return 1;
21737       fprintf (f, "%lu\n", i);
21738     }
21739   return ferror (f) || fclose (f) != 0;
21740
21741   ;
21742   return 0;
21743 }
21744 _ACEOF
21745 rm -f conftest$ac_exeext
21746 if { (ac_try="$ac_link"
21747 case "(($ac_try" in
21748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21749   *) ac_try_echo=$ac_try;;
21750 esac
21751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21752   (eval "$ac_link") 2>&5
21753   ac_status=$?
21754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21756   { (case "(($ac_try" in
21757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21758   *) ac_try_echo=$ac_try;;
21759 esac
21760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21761   (eval "$ac_try") 2>&5
21762   ac_status=$?
21763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764   (exit $ac_status); }; }; then
21765   fits_in_uint=`cat conftest.val`
21766 else
21767   echo "$as_me: program exited with status $ac_status" >&5
21768 echo "$as_me: failed program was:" >&5
21769 sed 's/^/| /' conftest.$ac_ext >&5
21770
21771 ( exit $ac_status )
21772 result=?
21773 fi
21774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21775 fi
21776 rm -f conftest.val
21777
21778     if test "$fits_in_uint" = 1; then
21779                   cat >conftest.$ac_ext <<_ACEOF
21780 /* confdefs.h.  */
21781 _ACEOF
21782 cat confdefs.h >>conftest.$ac_ext
21783 cat >>conftest.$ac_ext <<_ACEOF
21784 /* end confdefs.h.  */
21785 #include <stddef.h>
21786         extern size_t foo;
21787         extern unsigned long foo;
21788
21789 int
21790 main ()
21791 {
21792
21793   ;
21794   return 0;
21795 }
21796 _ACEOF
21797 rm -f conftest.$ac_objext
21798 if { (ac_try="$ac_compile"
21799 case "(($ac_try" in
21800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801   *) ac_try_echo=$ac_try;;
21802 esac
21803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21804   (eval "$ac_compile") 2>conftest.er1
21805   ac_status=$?
21806   grep -v '^ *+' conftest.er1 >conftest.err
21807   rm -f conftest.er1
21808   cat conftest.err >&5
21809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810   (exit $ac_status); } && {
21811          test -z "$ac_c_werror_flag" ||
21812          test ! -s conftest.err
21813        } && test -s conftest.$ac_objext; then
21814   fits_in_uint=0
21815 else
21816   echo "$as_me: failed program was:" >&5
21817 sed 's/^/| /' conftest.$ac_ext >&5
21818
21819
21820 fi
21821
21822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21823     fi
21824     if test -z "$result"; then
21825       if test "$fits_in_uint" = 1; then
21826         result="$res_hi$res_lo"U
21827       else
21828         result="$res_hi$res_lo"UL
21829       fi
21830     else
21831             result='~(size_t)0'
21832     fi
21833   fi
21834   { echo "$as_me:$LINENO: result: $result" >&5
21835 echo "${ECHO_T}$result" >&6; }
21836   if test "$result" != yes; then
21837
21838 cat >>confdefs.h <<_ACEOF
21839 #define SIZE_MAX $result
21840 _ACEOF
21841
21842   fi
21843
21844
21845
21846
21847
21848 for ac_header in stdint.h
21849 do
21850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21852   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21855   echo $ECHO_N "(cached) $ECHO_C" >&6
21856 fi
21857 ac_res=`eval echo '${'$as_ac_Header'}'`
21858                { echo "$as_me:$LINENO: result: $ac_res" >&5
21859 echo "${ECHO_T}$ac_res" >&6; }
21860 else
21861   # Is the header compilable?
21862 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21864 cat >conftest.$ac_ext <<_ACEOF
21865 /* confdefs.h.  */
21866 _ACEOF
21867 cat confdefs.h >>conftest.$ac_ext
21868 cat >>conftest.$ac_ext <<_ACEOF
21869 /* end confdefs.h.  */
21870 $ac_includes_default
21871 #include <$ac_header>
21872 _ACEOF
21873 rm -f conftest.$ac_objext
21874 if { (ac_try="$ac_compile"
21875 case "(($ac_try" in
21876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21877   *) ac_try_echo=$ac_try;;
21878 esac
21879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21880   (eval "$ac_compile") 2>conftest.er1
21881   ac_status=$?
21882   grep -v '^ *+' conftest.er1 >conftest.err
21883   rm -f conftest.er1
21884   cat conftest.err >&5
21885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886   (exit $ac_status); } && {
21887          test -z "$ac_c_werror_flag" ||
21888          test ! -s conftest.err
21889        } && test -s conftest.$ac_objext; then
21890   ac_header_compiler=yes
21891 else
21892   echo "$as_me: failed program was:" >&5
21893 sed 's/^/| /' conftest.$ac_ext >&5
21894
21895         ac_header_compiler=no
21896 fi
21897
21898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21899 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21900 echo "${ECHO_T}$ac_header_compiler" >&6; }
21901
21902 # Is the header present?
21903 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21905 cat >conftest.$ac_ext <<_ACEOF
21906 /* confdefs.h.  */
21907 _ACEOF
21908 cat confdefs.h >>conftest.$ac_ext
21909 cat >>conftest.$ac_ext <<_ACEOF
21910 /* end confdefs.h.  */
21911 #include <$ac_header>
21912 _ACEOF
21913 if { (ac_try="$ac_cpp conftest.$ac_ext"
21914 case "(($ac_try" in
21915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21916   *) ac_try_echo=$ac_try;;
21917 esac
21918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21919   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21920   ac_status=$?
21921   grep -v '^ *+' conftest.er1 >conftest.err
21922   rm -f conftest.er1
21923   cat conftest.err >&5
21924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925   (exit $ac_status); } >/dev/null && {
21926          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21927          test ! -s conftest.err
21928        }; then
21929   ac_header_preproc=yes
21930 else
21931   echo "$as_me: failed program was:" >&5
21932 sed 's/^/| /' conftest.$ac_ext >&5
21933
21934   ac_header_preproc=no
21935 fi
21936
21937 rm -f conftest.err conftest.$ac_ext
21938 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21939 echo "${ECHO_T}$ac_header_preproc" >&6; }
21940
21941 # So?  What about this header?
21942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21943   yes:no: )
21944     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21946     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21947 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21948     ac_header_preproc=yes
21949     ;;
21950   no:yes:* )
21951     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21953     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21954 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21955     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21956 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21957     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21958 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21959     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21961     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21962 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21963
21964     ;;
21965 esac
21966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21969   echo $ECHO_N "(cached) $ECHO_C" >&6
21970 else
21971   eval "$as_ac_Header=\$ac_header_preproc"
21972 fi
21973 ac_res=`eval echo '${'$as_ac_Header'}'`
21974                { echo "$as_me:$LINENO: result: $ac_res" >&5
21975 echo "${ECHO_T}$ac_res" >&6; }
21976
21977 fi
21978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21979   cat >>confdefs.h <<_ACEOF
21980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21981 _ACEOF
21982
21983 fi
21984
21985 done
21986
21987
21988
21989
21990
21991
21992
21993
21994   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21995 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21996 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21997   echo $ECHO_N "(cached) $ECHO_C" >&6
21998 else
21999   cat >conftest.$ac_ext <<_ACEOF
22000 /* confdefs.h.  */
22001 _ACEOF
22002 cat confdefs.h >>conftest.$ac_ext
22003 cat >>conftest.$ac_ext <<_ACEOF
22004 /* end confdefs.h.  */
22005 $ac_includes_default
22006 typedef ptrdiff_t ac__type_new_;
22007 int
22008 main ()
22009 {
22010 if ((ac__type_new_ *) 0)
22011   return 0;
22012 if (sizeof (ac__type_new_))
22013   return 0;
22014   ;
22015   return 0;
22016 }
22017 _ACEOF
22018 rm -f conftest.$ac_objext
22019 if { (ac_try="$ac_compile"
22020 case "(($ac_try" in
22021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22022   *) ac_try_echo=$ac_try;;
22023 esac
22024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22025   (eval "$ac_compile") 2>conftest.er1
22026   ac_status=$?
22027   grep -v '^ *+' conftest.er1 >conftest.err
22028   rm -f conftest.er1
22029   cat conftest.err >&5
22030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031   (exit $ac_status); } && {
22032          test -z "$ac_c_werror_flag" ||
22033          test ! -s conftest.err
22034        } && test -s conftest.$ac_objext; then
22035   ac_cv_type_ptrdiff_t=yes
22036 else
22037   echo "$as_me: failed program was:" >&5
22038 sed 's/^/| /' conftest.$ac_ext >&5
22039
22040         ac_cv_type_ptrdiff_t=no
22041 fi
22042
22043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22044 fi
22045 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22046 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22047 if test $ac_cv_type_ptrdiff_t = yes; then
22048   :
22049 else
22050
22051 cat >>confdefs.h <<\_ACEOF
22052 #define ptrdiff_t long
22053 _ACEOF
22054
22055
22056 fi
22057
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067
22068 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22069 stdlib.h string.h unistd.h sys/param.h
22070 do
22071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22073   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22076   echo $ECHO_N "(cached) $ECHO_C" >&6
22077 fi
22078 ac_res=`eval echo '${'$as_ac_Header'}'`
22079                { echo "$as_me:$LINENO: result: $ac_res" >&5
22080 echo "${ECHO_T}$ac_res" >&6; }
22081 else
22082   # Is the header compilable?
22083 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22085 cat >conftest.$ac_ext <<_ACEOF
22086 /* confdefs.h.  */
22087 _ACEOF
22088 cat confdefs.h >>conftest.$ac_ext
22089 cat >>conftest.$ac_ext <<_ACEOF
22090 /* end confdefs.h.  */
22091 $ac_includes_default
22092 #include <$ac_header>
22093 _ACEOF
22094 rm -f conftest.$ac_objext
22095 if { (ac_try="$ac_compile"
22096 case "(($ac_try" in
22097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22098   *) ac_try_echo=$ac_try;;
22099 esac
22100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22101   (eval "$ac_compile") 2>conftest.er1
22102   ac_status=$?
22103   grep -v '^ *+' conftest.er1 >conftest.err
22104   rm -f conftest.er1
22105   cat conftest.err >&5
22106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107   (exit $ac_status); } && {
22108          test -z "$ac_c_werror_flag" ||
22109          test ! -s conftest.err
22110        } && test -s conftest.$ac_objext; then
22111   ac_header_compiler=yes
22112 else
22113   echo "$as_me: failed program was:" >&5
22114 sed 's/^/| /' conftest.$ac_ext >&5
22115
22116         ac_header_compiler=no
22117 fi
22118
22119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22120 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22121 echo "${ECHO_T}$ac_header_compiler" >&6; }
22122
22123 # Is the header present?
22124 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22126 cat >conftest.$ac_ext <<_ACEOF
22127 /* confdefs.h.  */
22128 _ACEOF
22129 cat confdefs.h >>conftest.$ac_ext
22130 cat >>conftest.$ac_ext <<_ACEOF
22131 /* end confdefs.h.  */
22132 #include <$ac_header>
22133 _ACEOF
22134 if { (ac_try="$ac_cpp conftest.$ac_ext"
22135 case "(($ac_try" in
22136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22137   *) ac_try_echo=$ac_try;;
22138 esac
22139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22140   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22141   ac_status=$?
22142   grep -v '^ *+' conftest.er1 >conftest.err
22143   rm -f conftest.er1
22144   cat conftest.err >&5
22145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146   (exit $ac_status); } >/dev/null && {
22147          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22148          test ! -s conftest.err
22149        }; then
22150   ac_header_preproc=yes
22151 else
22152   echo "$as_me: failed program was:" >&5
22153 sed 's/^/| /' conftest.$ac_ext >&5
22154
22155   ac_header_preproc=no
22156 fi
22157
22158 rm -f conftest.err conftest.$ac_ext
22159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22160 echo "${ECHO_T}$ac_header_preproc" >&6; }
22161
22162 # So?  What about this header?
22163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22164   yes:no: )
22165     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22167     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22169     ac_header_preproc=yes
22170     ;;
22171   no:yes:* )
22172     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22174     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22175 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22176     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22178     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22179 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22180     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22182     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22184
22185     ;;
22186 esac
22187 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22190   echo $ECHO_N "(cached) $ECHO_C" >&6
22191 else
22192   eval "$as_ac_Header=\$ac_header_preproc"
22193 fi
22194 ac_res=`eval echo '${'$as_ac_Header'}'`
22195                { echo "$as_me:$LINENO: result: $ac_res" >&5
22196 echo "${ECHO_T}$ac_res" >&6; }
22197
22198 fi
22199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22200   cat >>confdefs.h <<_ACEOF
22201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22202 _ACEOF
22203
22204 fi
22205
22206 done
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22232 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22233 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22234 __fsetlocking
22235 do
22236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22237 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22240   echo $ECHO_N "(cached) $ECHO_C" >&6
22241 else
22242   cat >conftest.$ac_ext <<_ACEOF
22243 /* confdefs.h.  */
22244 _ACEOF
22245 cat confdefs.h >>conftest.$ac_ext
22246 cat >>conftest.$ac_ext <<_ACEOF
22247 /* end confdefs.h.  */
22248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22249    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22250 #define $ac_func innocuous_$ac_func
22251
22252 /* System header to define __stub macros and hopefully few prototypes,
22253     which can conflict with char $ac_func (); below.
22254     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22255     <limits.h> exists even on freestanding compilers.  */
22256
22257 #ifdef __STDC__
22258 # include <limits.h>
22259 #else
22260 # include <assert.h>
22261 #endif
22262
22263 #undef $ac_func
22264
22265 /* Override any GCC internal prototype to avoid an error.
22266    Use char because int might match the return type of a GCC
22267    builtin and then its argument prototype would still apply.  */
22268 #ifdef __cplusplus
22269 extern "C"
22270 #endif
22271 char $ac_func ();
22272 /* The GNU C library defines this for functions which it implements
22273     to always fail with ENOSYS.  Some functions are actually named
22274     something starting with __ and the normal name is an alias.  */
22275 #if defined __stub_$ac_func || defined __stub___$ac_func
22276 choke me
22277 #endif
22278
22279 int
22280 main ()
22281 {
22282 return $ac_func ();
22283   ;
22284   return 0;
22285 }
22286 _ACEOF
22287 rm -f conftest.$ac_objext conftest$ac_exeext
22288 if { (ac_try="$ac_link"
22289 case "(($ac_try" in
22290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22291   *) ac_try_echo=$ac_try;;
22292 esac
22293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22294   (eval "$ac_link") 2>conftest.er1
22295   ac_status=$?
22296   grep -v '^ *+' conftest.er1 >conftest.err
22297   rm -f conftest.er1
22298   cat conftest.err >&5
22299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300   (exit $ac_status); } && {
22301          test -z "$ac_c_werror_flag" ||
22302          test ! -s conftest.err
22303        } && test -s conftest$ac_exeext &&
22304        $as_test_x conftest$ac_exeext; then
22305   eval "$as_ac_var=yes"
22306 else
22307   echo "$as_me: failed program was:" >&5
22308 sed 's/^/| /' conftest.$ac_ext >&5
22309
22310         eval "$as_ac_var=no"
22311 fi
22312
22313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22314       conftest$ac_exeext conftest.$ac_ext
22315 fi
22316 ac_res=`eval echo '${'$as_ac_var'}'`
22317                { echo "$as_me:$LINENO: result: $ac_res" >&5
22318 echo "${ECHO_T}$ac_res" >&6; }
22319 if test `eval echo '${'$as_ac_var'}'` = yes; then
22320   cat >>confdefs.h <<_ACEOF
22321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22322 _ACEOF
22323
22324 fi
22325 done
22326
22327
22328
22329   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22330 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22331 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22332   echo $ECHO_N "(cached) $ECHO_C" >&6
22333 else
22334   cat >conftest.$ac_ext <<_ACEOF
22335 /* confdefs.h.  */
22336 _ACEOF
22337 cat confdefs.h >>conftest.$ac_ext
22338 cat >>conftest.$ac_ext <<_ACEOF
22339 /* end confdefs.h.  */
22340 #include <stdio.h>
22341 int
22342 main ()
22343 {
22344
22345 #ifndef _snprintf
22346   char *p = (char *) _snprintf;
22347 #endif
22348
22349   ;
22350   return 0;
22351 }
22352 _ACEOF
22353 rm -f conftest.$ac_objext
22354 if { (ac_try="$ac_compile"
22355 case "(($ac_try" in
22356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22357   *) ac_try_echo=$ac_try;;
22358 esac
22359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22360   (eval "$ac_compile") 2>conftest.er1
22361   ac_status=$?
22362   grep -v '^ *+' conftest.er1 >conftest.err
22363   rm -f conftest.er1
22364   cat conftest.err >&5
22365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366   (exit $ac_status); } && {
22367          test -z "$ac_c_werror_flag" ||
22368          test ! -s conftest.err
22369        } && test -s conftest.$ac_objext; then
22370   ac_cv_have_decl__snprintf=yes
22371 else
22372   echo "$as_me: failed program was:" >&5
22373 sed 's/^/| /' conftest.$ac_ext >&5
22374
22375         ac_cv_have_decl__snprintf=no
22376 fi
22377
22378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22379 fi
22380 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22381 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22382   if test $ac_cv_have_decl__snprintf = yes; then
22383     gt_value=1
22384   else
22385     gt_value=0
22386   fi
22387
22388 cat >>confdefs.h <<_ACEOF
22389 #define HAVE_DECL__SNPRINTF $gt_value
22390 _ACEOF
22391
22392
22393
22394   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22395 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22396 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22397   echo $ECHO_N "(cached) $ECHO_C" >&6
22398 else
22399   cat >conftest.$ac_ext <<_ACEOF
22400 /* confdefs.h.  */
22401 _ACEOF
22402 cat confdefs.h >>conftest.$ac_ext
22403 cat >>conftest.$ac_ext <<_ACEOF
22404 /* end confdefs.h.  */
22405 #include <stdio.h>
22406 int
22407 main ()
22408 {
22409
22410 #ifndef _snwprintf
22411   char *p = (char *) _snwprintf;
22412 #endif
22413
22414   ;
22415   return 0;
22416 }
22417 _ACEOF
22418 rm -f conftest.$ac_objext
22419 if { (ac_try="$ac_compile"
22420 case "(($ac_try" in
22421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22422   *) ac_try_echo=$ac_try;;
22423 esac
22424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22425   (eval "$ac_compile") 2>conftest.er1
22426   ac_status=$?
22427   grep -v '^ *+' conftest.er1 >conftest.err
22428   rm -f conftest.er1
22429   cat conftest.err >&5
22430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431   (exit $ac_status); } && {
22432          test -z "$ac_c_werror_flag" ||
22433          test ! -s conftest.err
22434        } && test -s conftest.$ac_objext; then
22435   ac_cv_have_decl__snwprintf=yes
22436 else
22437   echo "$as_me: failed program was:" >&5
22438 sed 's/^/| /' conftest.$ac_ext >&5
22439
22440         ac_cv_have_decl__snwprintf=no
22441 fi
22442
22443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22444 fi
22445 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22446 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22447   if test $ac_cv_have_decl__snwprintf = yes; then
22448     gt_value=1
22449   else
22450     gt_value=0
22451   fi
22452
22453 cat >>confdefs.h <<_ACEOF
22454 #define HAVE_DECL__SNWPRINTF $gt_value
22455 _ACEOF
22456
22457
22458
22459
22460   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22461 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22462 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22463   echo $ECHO_N "(cached) $ECHO_C" >&6
22464 else
22465   cat >conftest.$ac_ext <<_ACEOF
22466 /* confdefs.h.  */
22467 _ACEOF
22468 cat confdefs.h >>conftest.$ac_ext
22469 cat >>conftest.$ac_ext <<_ACEOF
22470 /* end confdefs.h.  */
22471 #include <stdio.h>
22472 int
22473 main ()
22474 {
22475
22476 #ifndef feof_unlocked
22477   char *p = (char *) feof_unlocked;
22478 #endif
22479
22480   ;
22481   return 0;
22482 }
22483 _ACEOF
22484 rm -f conftest.$ac_objext
22485 if { (ac_try="$ac_compile"
22486 case "(($ac_try" in
22487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22488   *) ac_try_echo=$ac_try;;
22489 esac
22490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22491   (eval "$ac_compile") 2>conftest.er1
22492   ac_status=$?
22493   grep -v '^ *+' conftest.er1 >conftest.err
22494   rm -f conftest.er1
22495   cat conftest.err >&5
22496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497   (exit $ac_status); } && {
22498          test -z "$ac_c_werror_flag" ||
22499          test ! -s conftest.err
22500        } && test -s conftest.$ac_objext; then
22501   ac_cv_have_decl_feof_unlocked=yes
22502 else
22503   echo "$as_me: failed program was:" >&5
22504 sed 's/^/| /' conftest.$ac_ext >&5
22505
22506         ac_cv_have_decl_feof_unlocked=no
22507 fi
22508
22509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22510 fi
22511 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22512 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22513   if test $ac_cv_have_decl_feof_unlocked = yes; then
22514     gt_value=1
22515   else
22516     gt_value=0
22517   fi
22518
22519 cat >>confdefs.h <<_ACEOF
22520 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22521 _ACEOF
22522
22523
22524
22525   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22526 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22527 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22528   echo $ECHO_N "(cached) $ECHO_C" >&6
22529 else
22530   cat >conftest.$ac_ext <<_ACEOF
22531 /* confdefs.h.  */
22532 _ACEOF
22533 cat confdefs.h >>conftest.$ac_ext
22534 cat >>conftest.$ac_ext <<_ACEOF
22535 /* end confdefs.h.  */
22536 #include <stdio.h>
22537 int
22538 main ()
22539 {
22540
22541 #ifndef fgets_unlocked
22542   char *p = (char *) fgets_unlocked;
22543 #endif
22544
22545   ;
22546   return 0;
22547 }
22548 _ACEOF
22549 rm -f conftest.$ac_objext
22550 if { (ac_try="$ac_compile"
22551 case "(($ac_try" in
22552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22553   *) ac_try_echo=$ac_try;;
22554 esac
22555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22556   (eval "$ac_compile") 2>conftest.er1
22557   ac_status=$?
22558   grep -v '^ *+' conftest.er1 >conftest.err
22559   rm -f conftest.er1
22560   cat conftest.err >&5
22561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562   (exit $ac_status); } && {
22563          test -z "$ac_c_werror_flag" ||
22564          test ! -s conftest.err
22565        } && test -s conftest.$ac_objext; then
22566   ac_cv_have_decl_fgets_unlocked=yes
22567 else
22568   echo "$as_me: failed program was:" >&5
22569 sed 's/^/| /' conftest.$ac_ext >&5
22570
22571         ac_cv_have_decl_fgets_unlocked=no
22572 fi
22573
22574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22575 fi
22576 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22577 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22578   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22579     gt_value=1
22580   else
22581     gt_value=0
22582   fi
22583
22584 cat >>confdefs.h <<_ACEOF
22585 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22586 _ACEOF
22587
22588
22589
22590   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22591 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22592 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22593   echo $ECHO_N "(cached) $ECHO_C" >&6
22594 else
22595   cat >conftest.$ac_ext <<_ACEOF
22596 /* confdefs.h.  */
22597 _ACEOF
22598 cat confdefs.h >>conftest.$ac_ext
22599 cat >>conftest.$ac_ext <<_ACEOF
22600 /* end confdefs.h.  */
22601 #include <stdio.h>
22602 int
22603 main ()
22604 {
22605
22606 #ifndef getc_unlocked
22607   char *p = (char *) getc_unlocked;
22608 #endif
22609
22610   ;
22611   return 0;
22612 }
22613 _ACEOF
22614 rm -f conftest.$ac_objext
22615 if { (ac_try="$ac_compile"
22616 case "(($ac_try" in
22617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22618   *) ac_try_echo=$ac_try;;
22619 esac
22620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22621   (eval "$ac_compile") 2>conftest.er1
22622   ac_status=$?
22623   grep -v '^ *+' conftest.er1 >conftest.err
22624   rm -f conftest.er1
22625   cat conftest.err >&5
22626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627   (exit $ac_status); } && {
22628          test -z "$ac_c_werror_flag" ||
22629          test ! -s conftest.err
22630        } && test -s conftest.$ac_objext; then
22631   ac_cv_have_decl_getc_unlocked=yes
22632 else
22633   echo "$as_me: failed program was:" >&5
22634 sed 's/^/| /' conftest.$ac_ext >&5
22635
22636         ac_cv_have_decl_getc_unlocked=no
22637 fi
22638
22639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22640 fi
22641 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22642 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22643   if test $ac_cv_have_decl_getc_unlocked = yes; then
22644     gt_value=1
22645   else
22646     gt_value=0
22647   fi
22648
22649 cat >>confdefs.h <<_ACEOF
22650 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22651 _ACEOF
22652
22653
22654
22655   case $gt_cv_func_printf_posix in
22656     *yes) HAVE_POSIX_PRINTF=1 ;;
22657     *) HAVE_POSIX_PRINTF=0 ;;
22658   esac
22659
22660   if test "$ac_cv_func_asprintf" = yes; then
22661     HAVE_ASPRINTF=1
22662   else
22663     HAVE_ASPRINTF=0
22664   fi
22665
22666   if test "$ac_cv_func_snprintf" = yes; then
22667     HAVE_SNPRINTF=1
22668   else
22669     HAVE_SNPRINTF=0
22670   fi
22671
22672   if test "$ac_cv_func_wprintf" = yes; then
22673     HAVE_WPRINTF=1
22674   else
22675     HAVE_WPRINTF=0
22676   fi
22677
22678
22679
22680
22681
22682
22683
22684           am_save_CPPFLAGS="$CPPFLAGS"
22685
22686   for element in $INCICONV; do
22687     haveit=
22688     for x in $CPPFLAGS; do
22689
22690   acl_save_prefix="$prefix"
22691   prefix="$acl_final_prefix"
22692   acl_save_exec_prefix="$exec_prefix"
22693   exec_prefix="$acl_final_exec_prefix"
22694   eval x=\"$x\"
22695   exec_prefix="$acl_save_exec_prefix"
22696   prefix="$acl_save_prefix"
22697
22698       if test "X$x" = "X$element"; then
22699         haveit=yes
22700         break
22701       fi
22702     done
22703     if test -z "$haveit"; then
22704       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22705     fi
22706   done
22707
22708
22709   { echo "$as_me:$LINENO: checking for iconv" >&5
22710 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22711 if test "${am_cv_func_iconv+set}" = set; then
22712   echo $ECHO_N "(cached) $ECHO_C" >&6
22713 else
22714
22715     am_cv_func_iconv="no, consider installing GNU libiconv"
22716     am_cv_lib_iconv=no
22717     cat >conftest.$ac_ext <<_ACEOF
22718 /* confdefs.h.  */
22719 _ACEOF
22720 cat confdefs.h >>conftest.$ac_ext
22721 cat >>conftest.$ac_ext <<_ACEOF
22722 /* end confdefs.h.  */
22723 #include <stdlib.h>
22724 #include <iconv.h>
22725 int
22726 main ()
22727 {
22728 iconv_t cd = iconv_open("","");
22729        iconv(cd,NULL,NULL,NULL,NULL);
22730        iconv_close(cd);
22731   ;
22732   return 0;
22733 }
22734 _ACEOF
22735 rm -f conftest.$ac_objext conftest$ac_exeext
22736 if { (ac_try="$ac_link"
22737 case "(($ac_try" in
22738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22739   *) ac_try_echo=$ac_try;;
22740 esac
22741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22742   (eval "$ac_link") 2>conftest.er1
22743   ac_status=$?
22744   grep -v '^ *+' conftest.er1 >conftest.err
22745   rm -f conftest.er1
22746   cat conftest.err >&5
22747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748   (exit $ac_status); } && {
22749          test -z "$ac_c_werror_flag" ||
22750          test ! -s conftest.err
22751        } && test -s conftest$ac_exeext &&
22752        $as_test_x conftest$ac_exeext; then
22753   am_cv_func_iconv=yes
22754 else
22755   echo "$as_me: failed program was:" >&5
22756 sed 's/^/| /' conftest.$ac_ext >&5
22757
22758
22759 fi
22760
22761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22762       conftest$ac_exeext conftest.$ac_ext
22763     if test "$am_cv_func_iconv" != yes; then
22764       am_save_LIBS="$LIBS"
22765       LIBS="$LIBS $LIBICONV"
22766       cat >conftest.$ac_ext <<_ACEOF
22767 /* confdefs.h.  */
22768 _ACEOF
22769 cat confdefs.h >>conftest.$ac_ext
22770 cat >>conftest.$ac_ext <<_ACEOF
22771 /* end confdefs.h.  */
22772 #include <stdlib.h>
22773 #include <iconv.h>
22774 int
22775 main ()
22776 {
22777 iconv_t cd = iconv_open("","");
22778          iconv(cd,NULL,NULL,NULL,NULL);
22779          iconv_close(cd);
22780   ;
22781   return 0;
22782 }
22783 _ACEOF
22784 rm -f conftest.$ac_objext conftest$ac_exeext
22785 if { (ac_try="$ac_link"
22786 case "(($ac_try" in
22787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22788   *) ac_try_echo=$ac_try;;
22789 esac
22790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22791   (eval "$ac_link") 2>conftest.er1
22792   ac_status=$?
22793   grep -v '^ *+' conftest.er1 >conftest.err
22794   rm -f conftest.er1
22795   cat conftest.err >&5
22796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797   (exit $ac_status); } && {
22798          test -z "$ac_c_werror_flag" ||
22799          test ! -s conftest.err
22800        } && test -s conftest$ac_exeext &&
22801        $as_test_x conftest$ac_exeext; then
22802   am_cv_lib_iconv=yes
22803         am_cv_func_iconv=yes
22804 else
22805   echo "$as_me: failed program was:" >&5
22806 sed 's/^/| /' conftest.$ac_ext >&5
22807
22808
22809 fi
22810
22811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22812       conftest$ac_exeext conftest.$ac_ext
22813       LIBS="$am_save_LIBS"
22814     fi
22815
22816 fi
22817 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22818 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22819   if test "$am_cv_func_iconv" = yes; then
22820
22821 cat >>confdefs.h <<\_ACEOF
22822 #define HAVE_ICONV 1
22823 _ACEOF
22824
22825   fi
22826   if test "$am_cv_lib_iconv" = yes; then
22827     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22828 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22829     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22830 echo "${ECHO_T}$LIBICONV" >&6; }
22831   else
22832             CPPFLAGS="$am_save_CPPFLAGS"
22833     LIBICONV=
22834     LTLIBICONV=
22835   fi
22836
22837
22838
22839   if test "$am_cv_func_iconv" = yes; then
22840     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22841 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22842     if test "${am_cv_proto_iconv+set}" = set; then
22843   echo $ECHO_N "(cached) $ECHO_C" >&6
22844 else
22845
22846       cat >conftest.$ac_ext <<_ACEOF
22847 /* confdefs.h.  */
22848 _ACEOF
22849 cat confdefs.h >>conftest.$ac_ext
22850 cat >>conftest.$ac_ext <<_ACEOF
22851 /* end confdefs.h.  */
22852
22853 #include <stdlib.h>
22854 #include <iconv.h>
22855 extern
22856 #ifdef __cplusplus
22857 "C"
22858 #endif
22859 #if defined(__STDC__) || defined(__cplusplus)
22860 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22861 #else
22862 size_t iconv();
22863 #endif
22864
22865 int
22866 main ()
22867 {
22868
22869   ;
22870   return 0;
22871 }
22872 _ACEOF
22873 rm -f conftest.$ac_objext
22874 if { (ac_try="$ac_compile"
22875 case "(($ac_try" in
22876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22877   *) ac_try_echo=$ac_try;;
22878 esac
22879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22880   (eval "$ac_compile") 2>conftest.er1
22881   ac_status=$?
22882   grep -v '^ *+' conftest.er1 >conftest.err
22883   rm -f conftest.er1
22884   cat conftest.err >&5
22885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886   (exit $ac_status); } && {
22887          test -z "$ac_c_werror_flag" ||
22888          test ! -s conftest.err
22889        } && test -s conftest.$ac_objext; then
22890   am_cv_proto_iconv_arg1=""
22891 else
22892   echo "$as_me: failed program was:" >&5
22893 sed 's/^/| /' conftest.$ac_ext >&5
22894
22895         am_cv_proto_iconv_arg1="const"
22896 fi
22897
22898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22899       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);"
22900 fi
22901
22902     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22903     { echo "$as_me:$LINENO: result: ${ac_t:-
22904          }$am_cv_proto_iconv" >&5
22905 echo "${ECHO_T}${ac_t:-
22906          }$am_cv_proto_iconv" >&6; }
22907
22908 cat >>confdefs.h <<_ACEOF
22909 #define ICONV_CONST $am_cv_proto_iconv_arg1
22910 _ACEOF
22911
22912   fi
22913
22914
22915   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22916 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22917 if test "${am_cv_langinfo_codeset+set}" = set; then
22918   echo $ECHO_N "(cached) $ECHO_C" >&6
22919 else
22920   cat >conftest.$ac_ext <<_ACEOF
22921 /* confdefs.h.  */
22922 _ACEOF
22923 cat confdefs.h >>conftest.$ac_ext
22924 cat >>conftest.$ac_ext <<_ACEOF
22925 /* end confdefs.h.  */
22926 #include <langinfo.h>
22927 int
22928 main ()
22929 {
22930 char* cs = nl_langinfo(CODESET);
22931   ;
22932   return 0;
22933 }
22934 _ACEOF
22935 rm -f conftest.$ac_objext conftest$ac_exeext
22936 if { (ac_try="$ac_link"
22937 case "(($ac_try" in
22938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22939   *) ac_try_echo=$ac_try;;
22940 esac
22941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22942   (eval "$ac_link") 2>conftest.er1
22943   ac_status=$?
22944   grep -v '^ *+' conftest.er1 >conftest.err
22945   rm -f conftest.er1
22946   cat conftest.err >&5
22947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948   (exit $ac_status); } && {
22949          test -z "$ac_c_werror_flag" ||
22950          test ! -s conftest.err
22951        } && test -s conftest$ac_exeext &&
22952        $as_test_x conftest$ac_exeext; then
22953   am_cv_langinfo_codeset=yes
22954 else
22955   echo "$as_me: failed program was:" >&5
22956 sed 's/^/| /' conftest.$ac_ext >&5
22957
22958         am_cv_langinfo_codeset=no
22959 fi
22960
22961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22962       conftest$ac_exeext conftest.$ac_ext
22963
22964 fi
22965 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22966 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22967   if test $am_cv_langinfo_codeset = yes; then
22968
22969 cat >>confdefs.h <<\_ACEOF
22970 #define HAVE_LANGINFO_CODESET 1
22971 _ACEOF
22972
22973   fi
22974
22975   if test $ac_cv_header_locale_h = yes; then
22976
22977   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22978 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22979 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22980   echo $ECHO_N "(cached) $ECHO_C" >&6
22981 else
22982   cat >conftest.$ac_ext <<_ACEOF
22983 /* confdefs.h.  */
22984 _ACEOF
22985 cat confdefs.h >>conftest.$ac_ext
22986 cat >>conftest.$ac_ext <<_ACEOF
22987 /* end confdefs.h.  */
22988 #include <locale.h>
22989 int
22990 main ()
22991 {
22992 return LC_MESSAGES
22993   ;
22994   return 0;
22995 }
22996 _ACEOF
22997 rm -f conftest.$ac_objext conftest$ac_exeext
22998 if { (ac_try="$ac_link"
22999 case "(($ac_try" in
23000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23001   *) ac_try_echo=$ac_try;;
23002 esac
23003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23004   (eval "$ac_link") 2>conftest.er1
23005   ac_status=$?
23006   grep -v '^ *+' conftest.er1 >conftest.err
23007   rm -f conftest.er1
23008   cat conftest.err >&5
23009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010   (exit $ac_status); } && {
23011          test -z "$ac_c_werror_flag" ||
23012          test ! -s conftest.err
23013        } && test -s conftest$ac_exeext &&
23014        $as_test_x conftest$ac_exeext; then
23015   gt_cv_val_LC_MESSAGES=yes
23016 else
23017   echo "$as_me: failed program was:" >&5
23018 sed 's/^/| /' conftest.$ac_ext >&5
23019
23020         gt_cv_val_LC_MESSAGES=no
23021 fi
23022
23023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23024       conftest$ac_exeext conftest.$ac_ext
23025 fi
23026 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23027 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23028   if test $gt_cv_val_LC_MESSAGES = yes; then
23029
23030 cat >>confdefs.h <<\_ACEOF
23031 #define HAVE_LC_MESSAGES 1
23032 _ACEOF
23033
23034   fi
23035
23036   fi
23037
23038   if test -n "$INTL_MACOSX_LIBS"; then
23039     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23040   fi
23041
23042                       for ac_prog in bison
23043 do
23044   # Extract the first word of "$ac_prog", so it can be a program name with args.
23045 set dummy $ac_prog; ac_word=$2
23046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23048 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23049   echo $ECHO_N "(cached) $ECHO_C" >&6
23050 else
23051   if test -n "$INTLBISON"; then
23052   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23053 else
23054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23055 for as_dir in $PATH
23056 do
23057   IFS=$as_save_IFS
23058   test -z "$as_dir" && as_dir=.
23059   for ac_exec_ext in '' $ac_executable_extensions; do
23060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23061     ac_cv_prog_INTLBISON="$ac_prog"
23062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23063     break 2
23064   fi
23065 done
23066 done
23067 IFS=$as_save_IFS
23068
23069 fi
23070 fi
23071 INTLBISON=$ac_cv_prog_INTLBISON
23072 if test -n "$INTLBISON"; then
23073   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23074 echo "${ECHO_T}$INTLBISON" >&6; }
23075 else
23076   { echo "$as_me:$LINENO: result: no" >&5
23077 echo "${ECHO_T}no" >&6; }
23078 fi
23079
23080
23081   test -n "$INTLBISON" && break
23082 done
23083
23084   if test -z "$INTLBISON"; then
23085     ac_verc_fail=yes
23086   else
23087         { echo "$as_me:$LINENO: checking version of bison" >&5
23088 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23089     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23090     case $ac_prog_version in
23091       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23092       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23093          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23094       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23095     esac
23096     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23097 echo "${ECHO_T}$ac_prog_version" >&6; }
23098   fi
23099   if test $ac_verc_fail = yes; then
23100     INTLBISON=:
23101   fi
23102
23103
23104
23105
23106
23107
23108
23109
23110
23111
23112
23113
23114
23115
23116
23117
23118     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23119 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23120 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23121   echo $ECHO_N "(cached) $ECHO_C" >&6
23122 else
23123   gt_save_CPPFLAGS="$CPPFLAGS"
23124      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23125      gt_save_LIBS="$LIBS"
23126      LIBS="$LIBS -framework CoreFoundation"
23127      cat >conftest.$ac_ext <<_ACEOF
23128 /* confdefs.h.  */
23129 _ACEOF
23130 cat confdefs.h >>conftest.$ac_ext
23131 cat >>conftest.$ac_ext <<_ACEOF
23132 /* end confdefs.h.  */
23133 #include <CFPreferences.h>
23134 int
23135 main ()
23136 {
23137 CFPreferencesCopyAppValue(NULL, NULL)
23138   ;
23139   return 0;
23140 }
23141 _ACEOF
23142 rm -f conftest.$ac_objext conftest$ac_exeext
23143 if { (ac_try="$ac_link"
23144 case "(($ac_try" in
23145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23146   *) ac_try_echo=$ac_try;;
23147 esac
23148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23149   (eval "$ac_link") 2>conftest.er1
23150   ac_status=$?
23151   grep -v '^ *+' conftest.er1 >conftest.err
23152   rm -f conftest.er1
23153   cat conftest.err >&5
23154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155   (exit $ac_status); } && {
23156          test -z "$ac_c_werror_flag" ||
23157          test ! -s conftest.err
23158        } && test -s conftest$ac_exeext &&
23159        $as_test_x conftest$ac_exeext; then
23160   gt_cv_func_CFPreferencesCopyAppValue=yes
23161 else
23162   echo "$as_me: failed program was:" >&5
23163 sed 's/^/| /' conftest.$ac_ext >&5
23164
23165         gt_cv_func_CFPreferencesCopyAppValue=no
23166 fi
23167
23168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23169       conftest$ac_exeext conftest.$ac_ext
23170      CPPFLAGS="$gt_save_CPPFLAGS"
23171      LIBS="$gt_save_LIBS"
23172 fi
23173 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23174 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23175   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23176
23177 cat >>confdefs.h <<\_ACEOF
23178 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23179 _ACEOF
23180
23181   fi
23182     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23183 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23184 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23185   echo $ECHO_N "(cached) $ECHO_C" >&6
23186 else
23187   gt_save_CPPFLAGS="$CPPFLAGS"
23188      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23189      gt_save_LIBS="$LIBS"
23190      LIBS="$LIBS -framework CoreFoundation"
23191      cat >conftest.$ac_ext <<_ACEOF
23192 /* confdefs.h.  */
23193 _ACEOF
23194 cat confdefs.h >>conftest.$ac_ext
23195 cat >>conftest.$ac_ext <<_ACEOF
23196 /* end confdefs.h.  */
23197 #include <CFLocale.h>
23198 int
23199 main ()
23200 {
23201 CFLocaleCopyCurrent();
23202   ;
23203   return 0;
23204 }
23205 _ACEOF
23206 rm -f conftest.$ac_objext conftest$ac_exeext
23207 if { (ac_try="$ac_link"
23208 case "(($ac_try" in
23209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23210   *) ac_try_echo=$ac_try;;
23211 esac
23212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23213   (eval "$ac_link") 2>conftest.er1
23214   ac_status=$?
23215   grep -v '^ *+' conftest.er1 >conftest.err
23216   rm -f conftest.er1
23217   cat conftest.err >&5
23218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219   (exit $ac_status); } && {
23220          test -z "$ac_c_werror_flag" ||
23221          test ! -s conftest.err
23222        } && test -s conftest$ac_exeext &&
23223        $as_test_x conftest$ac_exeext; then
23224   gt_cv_func_CFLocaleCopyCurrent=yes
23225 else
23226   echo "$as_me: failed program was:" >&5
23227 sed 's/^/| /' conftest.$ac_ext >&5
23228
23229         gt_cv_func_CFLocaleCopyCurrent=no
23230 fi
23231
23232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23233       conftest$ac_exeext conftest.$ac_ext
23234      CPPFLAGS="$gt_save_CPPFLAGS"
23235      LIBS="$gt_save_LIBS"
23236 fi
23237 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23238 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23239   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23240
23241 cat >>confdefs.h <<\_ACEOF
23242 #define HAVE_CFLOCALECOPYCURRENT 1
23243 _ACEOF
23244
23245   fi
23246   INTL_MACOSX_LIBS=
23247   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23248     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23249   fi
23250
23251
23252
23253
23254   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23255 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23256     # Check whether --enable-nls was given.
23257 if test "${enable_nls+set}" = set; then
23258   enableval=$enable_nls; USE_NLS=$enableval
23259 else
23260   USE_NLS=yes
23261 fi
23262
23263   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23264 echo "${ECHO_T}$USE_NLS" >&6; }
23265
23266
23267
23268
23269     BUILD_INCLUDED_LIBINTL=no
23270     USE_INCLUDED_LIBINTL=no
23271
23272   LIBINTL=
23273   LTLIBINTL=
23274   POSUB=
23275
23276     if test "$USE_NLS" = "yes"; then
23277     gt_use_preinstalled_gnugettext=no
23278
23279       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23280 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23281
23282 # Check whether --with-included-gettext was given.
23283 if test "${with_included_gettext+set}" = set; then
23284   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23285 else
23286   nls_cv_force_use_gnu_gettext=no
23287 fi
23288
23289       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23290 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23291
23292       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23293       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23294
23295
23296
23297
23298
23299
23300         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23301 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23302 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23303   echo $ECHO_N "(cached) $ECHO_C" >&6
23304 else
23305   cat >conftest.$ac_ext <<_ACEOF
23306 /* confdefs.h.  */
23307 _ACEOF
23308 cat confdefs.h >>conftest.$ac_ext
23309 cat >>conftest.$ac_ext <<_ACEOF
23310 /* end confdefs.h.  */
23311 #include <libintl.h>
23312 extern int _nl_msg_cat_cntr;
23313 extern int *_nl_domain_bindings;
23314 int
23315 main ()
23316 {
23317 bindtextdomain ("", "");
23318 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23319   ;
23320   return 0;
23321 }
23322 _ACEOF
23323 rm -f conftest.$ac_objext conftest$ac_exeext
23324 if { (ac_try="$ac_link"
23325 case "(($ac_try" in
23326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23327   *) ac_try_echo=$ac_try;;
23328 esac
23329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23330   (eval "$ac_link") 2>conftest.er1
23331   ac_status=$?
23332   grep -v '^ *+' conftest.er1 >conftest.err
23333   rm -f conftest.er1
23334   cat conftest.err >&5
23335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336   (exit $ac_status); } && {
23337          test -z "$ac_c_werror_flag" ||
23338          test ! -s conftest.err
23339        } && test -s conftest$ac_exeext &&
23340        $as_test_x conftest$ac_exeext; then
23341   gt_cv_func_gnugettext1_libc=yes
23342 else
23343   echo "$as_me: failed program was:" >&5
23344 sed 's/^/| /' conftest.$ac_ext >&5
23345
23346         gt_cv_func_gnugettext1_libc=no
23347 fi
23348
23349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23350       conftest$ac_exeext conftest.$ac_ext
23351 fi
23352 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23353 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23354
23355         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23356
23357
23358
23359     use_additional=yes
23360
23361   acl_save_prefix="$prefix"
23362   prefix="$acl_final_prefix"
23363   acl_save_exec_prefix="$exec_prefix"
23364   exec_prefix="$acl_final_exec_prefix"
23365
23366     eval additional_includedir=\"$includedir\"
23367     eval additional_libdir=\"$libdir\"
23368
23369   exec_prefix="$acl_save_exec_prefix"
23370   prefix="$acl_save_prefix"
23371
23372
23373 # Check whether --with-libintl-prefix was given.
23374 if test "${with_libintl_prefix+set}" = set; then
23375   withval=$with_libintl_prefix;
23376     if test "X$withval" = "Xno"; then
23377       use_additional=no
23378     else
23379       if test "X$withval" = "X"; then
23380
23381   acl_save_prefix="$prefix"
23382   prefix="$acl_final_prefix"
23383   acl_save_exec_prefix="$exec_prefix"
23384   exec_prefix="$acl_final_exec_prefix"
23385
23386           eval additional_includedir=\"$includedir\"
23387           eval additional_libdir=\"$libdir\"
23388
23389   exec_prefix="$acl_save_exec_prefix"
23390   prefix="$acl_save_prefix"
23391
23392       else
23393         additional_includedir="$withval/include"
23394         additional_libdir="$withval/lib"
23395       fi
23396     fi
23397
23398 fi
23399
23400       LIBINTL=
23401   LTLIBINTL=
23402   INCINTL=
23403   rpathdirs=
23404   ltrpathdirs=
23405   names_already_handled=
23406   names_next_round='intl '
23407   while test -n "$names_next_round"; do
23408     names_this_round="$names_next_round"
23409     names_next_round=
23410     for name in $names_this_round; do
23411       already_handled=
23412       for n in $names_already_handled; do
23413         if test "$n" = "$name"; then
23414           already_handled=yes
23415           break
23416         fi
23417       done
23418       if test -z "$already_handled"; then
23419         names_already_handled="$names_already_handled $name"
23420                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23421         eval value=\"\$HAVE_LIB$uppername\"
23422         if test -n "$value"; then
23423           if test "$value" = yes; then
23424             eval value=\"\$LIB$uppername\"
23425             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23426             eval value=\"\$LTLIB$uppername\"
23427             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23428           else
23429                                     :
23430           fi
23431         else
23432                               found_dir=
23433           found_la=
23434           found_so=
23435           found_a=
23436           if test $use_additional = yes; then
23437             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23438               found_dir="$additional_libdir"
23439               found_so="$additional_libdir/lib$name.$shlibext"
23440               if test -f "$additional_libdir/lib$name.la"; then
23441                 found_la="$additional_libdir/lib$name.la"
23442               fi
23443             else
23444               if test -f "$additional_libdir/lib$name.$libext"; then
23445                 found_dir="$additional_libdir"
23446                 found_a="$additional_libdir/lib$name.$libext"
23447                 if test -f "$additional_libdir/lib$name.la"; then
23448                   found_la="$additional_libdir/lib$name.la"
23449                 fi
23450               fi
23451             fi
23452           fi
23453           if test "X$found_dir" = "X"; then
23454             for x in $LDFLAGS $LTLIBINTL; do
23455
23456   acl_save_prefix="$prefix"
23457   prefix="$acl_final_prefix"
23458   acl_save_exec_prefix="$exec_prefix"
23459   exec_prefix="$acl_final_exec_prefix"
23460   eval x=\"$x\"
23461   exec_prefix="$acl_save_exec_prefix"
23462   prefix="$acl_save_prefix"
23463
23464               case "$x" in
23465                 -L*)
23466                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23467                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23468                     found_dir="$dir"
23469                     found_so="$dir/lib$name.$shlibext"
23470                     if test -f "$dir/lib$name.la"; then
23471                       found_la="$dir/lib$name.la"
23472                     fi
23473                   else
23474                     if test -f "$dir/lib$name.$libext"; then
23475                       found_dir="$dir"
23476                       found_a="$dir/lib$name.$libext"
23477                       if test -f "$dir/lib$name.la"; then
23478                         found_la="$dir/lib$name.la"
23479                       fi
23480                     fi
23481                   fi
23482                   ;;
23483               esac
23484               if test "X$found_dir" != "X"; then
23485                 break
23486               fi
23487             done
23488           fi
23489           if test "X$found_dir" != "X"; then
23490                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23491             if test "X$found_so" != "X"; then
23492                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23493                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23494               else
23495                                                                                 haveit=
23496                 for x in $ltrpathdirs; do
23497                   if test "X$x" = "X$found_dir"; then
23498                     haveit=yes
23499                     break
23500                   fi
23501                 done
23502                 if test -z "$haveit"; then
23503                   ltrpathdirs="$ltrpathdirs $found_dir"
23504                 fi
23505                                 if test "$hardcode_direct" = yes; then
23506                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23507                 else
23508                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23509                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23510                                                             haveit=
23511                     for x in $rpathdirs; do
23512                       if test "X$x" = "X$found_dir"; then
23513                         haveit=yes
23514                         break
23515                       fi
23516                     done
23517                     if test -z "$haveit"; then
23518                       rpathdirs="$rpathdirs $found_dir"
23519                     fi
23520                   else
23521                                                                                 haveit=
23522                     for x in $LDFLAGS $LIBINTL; do
23523
23524   acl_save_prefix="$prefix"
23525   prefix="$acl_final_prefix"
23526   acl_save_exec_prefix="$exec_prefix"
23527   exec_prefix="$acl_final_exec_prefix"
23528   eval x=\"$x\"
23529   exec_prefix="$acl_save_exec_prefix"
23530   prefix="$acl_save_prefix"
23531
23532                       if test "X$x" = "X-L$found_dir"; then
23533                         haveit=yes
23534                         break
23535                       fi
23536                     done
23537                     if test -z "$haveit"; then
23538                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23539                     fi
23540                     if test "$hardcode_minus_L" != no; then
23541                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23542                     else
23543                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23544                     fi
23545                   fi
23546                 fi
23547               fi
23548             else
23549               if test "X$found_a" != "X"; then
23550                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23551               else
23552                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23553               fi
23554             fi
23555                         additional_includedir=
23556             case "$found_dir" in
23557               */lib | */lib/)
23558                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23559                 additional_includedir="$basedir/include"
23560                 ;;
23561             esac
23562             if test "X$additional_includedir" != "X"; then
23563                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23564                 haveit=
23565                 if test "X$additional_includedir" = "X/usr/local/include"; then
23566                   if test -n "$GCC"; then
23567                     case $host_os in
23568                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23569                     esac
23570                   fi
23571                 fi
23572                 if test -z "$haveit"; then
23573                   for x in $CPPFLAGS $INCINTL; do
23574
23575   acl_save_prefix="$prefix"
23576   prefix="$acl_final_prefix"
23577   acl_save_exec_prefix="$exec_prefix"
23578   exec_prefix="$acl_final_exec_prefix"
23579   eval x=\"$x\"
23580   exec_prefix="$acl_save_exec_prefix"
23581   prefix="$acl_save_prefix"
23582
23583                     if test "X$x" = "X-I$additional_includedir"; then
23584                       haveit=yes
23585                       break
23586                     fi
23587                   done
23588                   if test -z "$haveit"; then
23589                     if test -d "$additional_includedir"; then
23590                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23591                     fi
23592                   fi
23593                 fi
23594               fi
23595             fi
23596                         if test -n "$found_la"; then
23597                                                         save_libdir="$libdir"
23598               case "$found_la" in
23599                 */* | *\\*) . "$found_la" ;;
23600                 *) . "./$found_la" ;;
23601               esac
23602               libdir="$save_libdir"
23603                             for dep in $dependency_libs; do
23604                 case "$dep" in
23605                   -L*)
23606                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23607                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23608                       haveit=
23609                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23610                         if test -n "$GCC"; then
23611                           case $host_os in
23612                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23613                           esac
23614                         fi
23615                       fi
23616                       if test -z "$haveit"; then
23617                         haveit=
23618                         for x in $LDFLAGS $LIBINTL; do
23619
23620   acl_save_prefix="$prefix"
23621   prefix="$acl_final_prefix"
23622   acl_save_exec_prefix="$exec_prefix"
23623   exec_prefix="$acl_final_exec_prefix"
23624   eval x=\"$x\"
23625   exec_prefix="$acl_save_exec_prefix"
23626   prefix="$acl_save_prefix"
23627
23628                           if test "X$x" = "X-L$additional_libdir"; then
23629                             haveit=yes
23630                             break
23631                           fi
23632                         done
23633                         if test -z "$haveit"; then
23634                           if test -d "$additional_libdir"; then
23635                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23636                           fi
23637                         fi
23638                         haveit=
23639                         for x in $LDFLAGS $LTLIBINTL; do
23640
23641   acl_save_prefix="$prefix"
23642   prefix="$acl_final_prefix"
23643   acl_save_exec_prefix="$exec_prefix"
23644   exec_prefix="$acl_final_exec_prefix"
23645   eval x=\"$x\"
23646   exec_prefix="$acl_save_exec_prefix"
23647   prefix="$acl_save_prefix"
23648
23649                           if test "X$x" = "X-L$additional_libdir"; then
23650                             haveit=yes
23651                             break
23652                           fi
23653                         done
23654                         if test -z "$haveit"; then
23655                           if test -d "$additional_libdir"; then
23656                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23657                           fi
23658                         fi
23659                       fi
23660                     fi
23661                     ;;
23662                   -R*)
23663                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23664                     if test "$enable_rpath" != no; then
23665                                                                   haveit=
23666                       for x in $rpathdirs; do
23667                         if test "X$x" = "X$dir"; then
23668                           haveit=yes
23669                           break
23670                         fi
23671                       done
23672                       if test -z "$haveit"; then
23673                         rpathdirs="$rpathdirs $dir"
23674                       fi
23675                                                                   haveit=
23676                       for x in $ltrpathdirs; do
23677                         if test "X$x" = "X$dir"; then
23678                           haveit=yes
23679                           break
23680                         fi
23681                       done
23682                       if test -z "$haveit"; then
23683                         ltrpathdirs="$ltrpathdirs $dir"
23684                       fi
23685                     fi
23686                     ;;
23687                   -l*)
23688                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23689                     ;;
23690                   *.la)
23691                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23692                     ;;
23693                   *)
23694                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23695                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23696                     ;;
23697                 esac
23698               done
23699             fi
23700           else
23701                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23702             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23703           fi
23704         fi
23705       fi
23706     done
23707   done
23708   if test "X$rpathdirs" != "X"; then
23709     if test -n "$hardcode_libdir_separator"; then
23710                         alldirs=
23711       for found_dir in $rpathdirs; do
23712         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23713       done
23714             acl_save_libdir="$libdir"
23715       libdir="$alldirs"
23716       eval flag=\"$hardcode_libdir_flag_spec\"
23717       libdir="$acl_save_libdir"
23718       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23719     else
23720             for found_dir in $rpathdirs; do
23721         acl_save_libdir="$libdir"
23722         libdir="$found_dir"
23723         eval flag=\"$hardcode_libdir_flag_spec\"
23724         libdir="$acl_save_libdir"
23725         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23726       done
23727     fi
23728   fi
23729   if test "X$ltrpathdirs" != "X"; then
23730             for found_dir in $ltrpathdirs; do
23731       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23732     done
23733   fi
23734
23735           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23736 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23737 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23738   echo $ECHO_N "(cached) $ECHO_C" >&6
23739 else
23740   gt_save_CPPFLAGS="$CPPFLAGS"
23741             CPPFLAGS="$CPPFLAGS $INCINTL"
23742             gt_save_LIBS="$LIBS"
23743             LIBS="$LIBS $LIBINTL"
23744                         cat >conftest.$ac_ext <<_ACEOF
23745 /* confdefs.h.  */
23746 _ACEOF
23747 cat confdefs.h >>conftest.$ac_ext
23748 cat >>conftest.$ac_ext <<_ACEOF
23749 /* end confdefs.h.  */
23750 #include <libintl.h>
23751 extern int _nl_msg_cat_cntr;
23752 extern
23753 #ifdef __cplusplus
23754 "C"
23755 #endif
23756 const char *_nl_expand_alias (const char *);
23757 int
23758 main ()
23759 {
23760 bindtextdomain ("", "");
23761 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23762   ;
23763   return 0;
23764 }
23765 _ACEOF
23766 rm -f conftest.$ac_objext conftest$ac_exeext
23767 if { (ac_try="$ac_link"
23768 case "(($ac_try" in
23769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23770   *) ac_try_echo=$ac_try;;
23771 esac
23772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23773   (eval "$ac_link") 2>conftest.er1
23774   ac_status=$?
23775   grep -v '^ *+' conftest.er1 >conftest.err
23776   rm -f conftest.er1
23777   cat conftest.err >&5
23778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23779   (exit $ac_status); } && {
23780          test -z "$ac_c_werror_flag" ||
23781          test ! -s conftest.err
23782        } && test -s conftest$ac_exeext &&
23783        $as_test_x conftest$ac_exeext; then
23784   gt_cv_func_gnugettext1_libintl=yes
23785 else
23786   echo "$as_me: failed program was:" >&5
23787 sed 's/^/| /' conftest.$ac_ext >&5
23788
23789         gt_cv_func_gnugettext1_libintl=no
23790 fi
23791
23792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23793       conftest$ac_exeext conftest.$ac_ext
23794                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23795               LIBS="$LIBS $LIBICONV"
23796               cat >conftest.$ac_ext <<_ACEOF
23797 /* confdefs.h.  */
23798 _ACEOF
23799 cat confdefs.h >>conftest.$ac_ext
23800 cat >>conftest.$ac_ext <<_ACEOF
23801 /* end confdefs.h.  */
23802 #include <libintl.h>
23803 extern int _nl_msg_cat_cntr;
23804 extern
23805 #ifdef __cplusplus
23806 "C"
23807 #endif
23808 const char *_nl_expand_alias (const char *);
23809 int
23810 main ()
23811 {
23812 bindtextdomain ("", "");
23813 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23814   ;
23815   return 0;
23816 }
23817 _ACEOF
23818 rm -f conftest.$ac_objext conftest$ac_exeext
23819 if { (ac_try="$ac_link"
23820 case "(($ac_try" in
23821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23822   *) ac_try_echo=$ac_try;;
23823 esac
23824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23825   (eval "$ac_link") 2>conftest.er1
23826   ac_status=$?
23827   grep -v '^ *+' conftest.er1 >conftest.err
23828   rm -f conftest.er1
23829   cat conftest.err >&5
23830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23831   (exit $ac_status); } && {
23832          test -z "$ac_c_werror_flag" ||
23833          test ! -s conftest.err
23834        } && test -s conftest$ac_exeext &&
23835        $as_test_x conftest$ac_exeext; then
23836   LIBINTL="$LIBINTL $LIBICONV"
23837                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23838                 gt_cv_func_gnugettext1_libintl=yes
23839
23840 else
23841   echo "$as_me: failed program was:" >&5
23842 sed 's/^/| /' conftest.$ac_ext >&5
23843
23844
23845 fi
23846
23847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23848       conftest$ac_exeext conftest.$ac_ext
23849             fi
23850             CPPFLAGS="$gt_save_CPPFLAGS"
23851             LIBS="$gt_save_LIBS"
23852 fi
23853 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23854 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23855         fi
23856
23857                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23858            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23859                 && test "$PACKAGE" != gettext-runtime \
23860                 && test "$PACKAGE" != gettext-tools; }; then
23861           gt_use_preinstalled_gnugettext=yes
23862         else
23863                     LIBINTL=
23864           LTLIBINTL=
23865           INCINTL=
23866         fi
23867
23868
23869         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23870                               nls_cv_use_gnu_gettext=yes
23871         fi
23872       fi
23873
23874       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23875                 BUILD_INCLUDED_LIBINTL=yes
23876         USE_INCLUDED_LIBINTL=yes
23877         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23878         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23879         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23880       fi
23881
23882       CATOBJEXT=
23883       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23884          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23885                 CATOBJEXT=.gmo
23886       fi
23887
23888
23889     if test -n "$INTL_MACOSX_LIBS"; then
23890       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23891          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23892                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23893         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23894       fi
23895     fi
23896
23897     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23898        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23899
23900 cat >>confdefs.h <<\_ACEOF
23901 #define ENABLE_NLS 1
23902 _ACEOF
23903
23904     else
23905       USE_NLS=no
23906     fi
23907   fi
23908
23909   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23910 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23911   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23912 echo "${ECHO_T}$USE_NLS" >&6; }
23913   if test "$USE_NLS" = "yes"; then
23914     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23915 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23916     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23917       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23918         gt_source="external libintl"
23919       else
23920         gt_source="libc"
23921       fi
23922     else
23923       gt_source="included intl directory"
23924     fi
23925     { echo "$as_me:$LINENO: result: $gt_source" >&5
23926 echo "${ECHO_T}$gt_source" >&6; }
23927   fi
23928
23929   if test "$USE_NLS" = "yes"; then
23930
23931     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23932       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23933         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23934 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23935         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23936 echo "${ECHO_T}$LIBINTL" >&6; }
23937
23938   for element in $INCINTL; do
23939     haveit=
23940     for x in $CPPFLAGS; do
23941
23942   acl_save_prefix="$prefix"
23943   prefix="$acl_final_prefix"
23944   acl_save_exec_prefix="$exec_prefix"
23945   exec_prefix="$acl_final_exec_prefix"
23946   eval x=\"$x\"
23947   exec_prefix="$acl_save_exec_prefix"
23948   prefix="$acl_save_prefix"
23949
23950       if test "X$x" = "X$element"; then
23951         haveit=yes
23952         break
23953       fi
23954     done
23955     if test -z "$haveit"; then
23956       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23957     fi
23958   done
23959
23960       fi
23961
23962
23963 cat >>confdefs.h <<\_ACEOF
23964 #define HAVE_GETTEXT 1
23965 _ACEOF
23966
23967
23968 cat >>confdefs.h <<\_ACEOF
23969 #define HAVE_DCGETTEXT 1
23970 _ACEOF
23971
23972     fi
23973
23974         POSUB=po
23975   fi
23976
23977
23978             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23979       BUILD_INCLUDED_LIBINTL=yes
23980     fi
23981
23982
23983
23984
23985
23986         nls_cv_header_intl=
23987     nls_cv_header_libgt=
23988
23989         DATADIRNAME=share
23990
23991
23992         INSTOBJEXT=.mo
23993
23994
23995         GENCAT=gencat
23996
23997
23998         INTLOBJS=
23999     if test "$USE_INCLUDED_LIBINTL" = yes; then
24000       INTLOBJS="\$(GETTOBJS)"
24001     fi
24002
24003
24004         INTL_LIBTOOL_SUFFIX_PREFIX=
24005
24006
24007
24008     INTLLIBS="$LIBINTL"
24009
24010
24011
24012
24013
24014
24015 fi
24016
24017 support_mysql=no
24018 support_sqlite=no
24019 support_sqlite3=no
24020 support_postgresql=no
24021 support_dbi=no
24022 support_smartalloc=yes
24023 support_readline=yes
24024 support_conio=yes
24025 support_gnome=no
24026 support_bat=no
24027 support_wx_console=no
24028 support_tray_monitor=no
24029 support_tls=no
24030 support_crypto=no
24031 gnome_version=
24032 wx_version=
24033 support_static_tools=no
24034 support_static_fd=no
24035 support_static_sd=no
24036 support_static_dir=no
24037 support_static_cons=no
24038 support_python=no
24039 build_client_only=no
24040 build_dird=yes
24041 build_stored=yes
24042 cats=
24043 db_type=Internal
24044 support_lockmgr=no
24045 DB_TYPE=bdb
24046
24047
24048 # Check whether --enable-gnome was given.
24049 if test "${enable_gnome+set}" = set; then
24050   enableval=$enable_gnome;
24051        if test x$enableval = xyes; then
24052           support_gnome=yes
24053        fi
24054
24055
24056 fi
24057
24058
24059 GNOME_DIR=
24060 if test x$support_gnome = xyes; then
24061    { { echo "$as_me:$LINENO: error: bgnome-console no longer supported" >&5
24062 echo "$as_me: error: bgnome-console no longer supported" >&2;}
24063    { (exit 1); exit 1; }; }
24064    { { echo "$as_me:$LINENO: error: --enable-gnome option no longer supported" >&5
24065 echo "$as_me: error: --enable-gnome option no longer supported" >&2;}
24066    { (exit 1); exit 1; }; }
24067 fi
24068 # AC_SUBST(GNOME_DIR)
24069
24070 # Check whether --enable-bat was given.
24071 if test "${enable_bat+set}" = set; then
24072   enableval=$enable_bat;
24073        if test x$enableval = xyes; then
24074
24075 cat >>confdefs.h <<\_ACEOF
24076 #define HAVE_BAT 1
24077 _ACEOF
24078
24079           support_bat=yes
24080        fi
24081
24082
24083 fi
24084
24085
24086 BAT_DIR=
24087 if test x$support_bat = xyes; then
24088    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24089    pkg=$?
24090    if test $pkg = 0; then
24091       BAT_DIR=src/qt-console
24092    else
24093       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24094 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24095    { (exit 1); exit 1; }; }
24096    fi
24097 fi
24098
24099 got_qwt=no
24100 QWT_INC=
24101 QWT_LDFLAGS=
24102 QWT_LIB=
24103 QWT=
24104 no_qwt=no
24105 if test x$support_bat = xyes; then
24106    { echo "$as_me:$LINENO: checking for qwt support" >&5
24107 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24108
24109 # Check whether --with-qwt was given.
24110 if test "${with_qwt+set}" = set; then
24111   withval=$with_qwt;
24112           case "$with_qwt" in
24113           no)
24114              no_qwt=yes
24115              ;;
24116           yes|*)
24117              if test -f ${with_qwt}/include/qwt.h; then
24118                 QWT_INC="${with_qwt}/include"
24119                 QWT_LDFLAGS="-L${with_qwt}/lib"
24120                 QWT_LIB="-lqwt"
24121                 QWT="qwt"
24122              fi
24123              ;;
24124           esac
24125
24126
24127 fi
24128
24129
24130             if test $no_qwt = no; then
24131       if test x$QWT_INC = x; then
24132          for root in /usr /usr/local; do
24133             for ver in qwt qwt5 qwt-qt4; do
24134                if test -f ${root}/include/${ver}/qwt.h; then
24135                   QWT_INC="${root}/include/${ver}"
24136                   if test -d ${root}/lib64/; then
24137                      QWT_LDFLAGS="-L${root}/lib64"
24138                   elif test -d ${root}/lib/64/; then
24139                      QWT_LDFLAGS="-L${root}/64"
24140                   else
24141                      QWT_LDFLAGS="-L${root}/lib"
24142                   fi
24143                   QWT_LIB="-lqwt"
24144                   QWT="qwt"
24145                   got_qwt=yes
24146                   break;
24147                fi
24148             done
24149          done
24150       fi
24151    fi
24152    if test x$QWT_INC = x; then
24153       { echo "$as_me:$LINENO: result: no" >&5
24154 echo "${ECHO_T}no" >&6; }
24155    else
24156
24157 cat >>confdefs.h <<\_ACEOF
24158 #define HAVE_QWT 1
24159 _ACEOF
24160
24161       { echo "$as_me:$LINENO: result: yes" >&5
24162 echo "${ECHO_T}yes" >&6; }
24163    fi
24164 fi
24165
24166
24167
24168
24169
24170
24171
24172 # Check whether --enable-bwx-console was given.
24173 if test "${enable_bwx_console+set}" = set; then
24174   enableval=$enable_bwx_console;
24175        if test x$enableval = xyes; then
24176           support_wx_console=yes
24177        fi
24178
24179
24180 fi
24181
24182
24183 WX_DIR=
24184 if test x$support_wx_console = xyes; then
24185    abc=`$WXCONFIG $WXFLAGS --cppflags`
24186    pkg=$?
24187    if test $pkg = 0; then
24188       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24189       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24190       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24191
24192
24193
24194       WX_DIR="src/wx-console"
24195    else
24196       echo " "
24197       echo "wx-config program not found. bwx-console disabled."
24198       echo " "
24199       support_wx_console=no
24200    fi
24201 fi
24202
24203
24204 # Check whether --enable-tray-monitor was given.
24205 if test "${enable_tray_monitor+set}" = set; then
24206   enableval=$enable_tray_monitor;
24207        if test x$enableval = xyes; then
24208           support_tray_monitor=yes
24209        fi
24210
24211
24212 fi
24213
24214
24215 TRAY_MONITOR_DIR=
24216 if test x$support_tray_monitor = xyes; then
24217    abc=`$PKGCONFIG --exists gtk+-2.0`
24218    pkg=$?
24219    if test $pkg = 0; then
24220       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24221       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24222
24223
24224       TRAY_MONITOR_DIR=src/tray-monitor
24225       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24226       pkg=$?
24227       if test $pkg = 0; then
24228
24229 cat >>confdefs.h <<\_ACEOF
24230 #define HAVE_GTK_2_4 1
24231 _ACEOF
24232
24233       fi
24234    fi
24235 fi
24236
24237
24238 # Check whether --enable-smartalloc was given.
24239 if test "${enable_smartalloc+set}" = set; then
24240   enableval=$enable_smartalloc;
24241        if test x$enableval = xno; then
24242           support_smartalloc=no
24243        fi
24244
24245
24246 fi
24247
24248
24249 if test x$support_smartalloc = xyes; then
24250
24251 cat >>confdefs.h <<\_ACEOF
24252 #define SMARTALLOC 1
24253 _ACEOF
24254
24255 fi
24256
24257 # Check whether --enable-lockmgr was given.
24258 if test "${enable_lockmgr+set}" = set; then
24259   enableval=$enable_lockmgr;
24260        if test x$enableval = xyes; then
24261           support_lockmgr=yes
24262        fi
24263
24264
24265 fi
24266
24267
24268 if test x$support_lockmgr = xyes; then
24269
24270 cat >>confdefs.h <<\_ACEOF
24271 #define _USE_LOCKMGR 1
24272 _ACEOF
24273
24274 fi
24275
24276
24277 # Check whether --enable-static-tools was given.
24278 if test "${enable_static_tools+set}" = set; then
24279   enableval=$enable_static_tools;
24280        if test x$enableval = xyes; then
24281           if test x$use_libtool = xyes; then
24282              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24283   please rerun configure with --disable-libtool" >&5
24284 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24285   please rerun configure with --disable-libtool" >&2;}
24286    { (exit 1); exit 1; }; }
24287           fi
24288           support_static_tools=yes
24289        fi
24290
24291
24292 fi
24293
24294
24295 TTOOL_LDFLAGS=
24296 if test x$support_static_tools = xyes; then
24297    TTOOL_LDFLAGS="-static"
24298 fi
24299
24300
24301 # Check whether --enable-static-fd was given.
24302 if test "${enable_static_fd+set}" = set; then
24303   enableval=$enable_static_fd;
24304        if test x$enableval = xyes; then
24305           if test x$use_libtool = xyes; then
24306              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24307   please rerun configure with --disable-libtool" >&5
24308 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24309   please rerun configure with --disable-libtool" >&2;}
24310    { (exit 1); exit 1; }; }
24311           fi
24312           support_static_fd=yes
24313        fi
24314
24315
24316 fi
24317
24318
24319 STATIC_FD=
24320 if test x$support_static_fd = xyes; then
24321    STATIC_FD="static-bacula-fd"
24322 fi
24323
24324
24325 # Check whether --enable-static-sd was given.
24326 if test "${enable_static_sd+set}" = set; then
24327   enableval=$enable_static_sd;
24328        if test x$enableval = xyes; then
24329           if test x$use_libtool = xyes; then
24330              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24331   please rerun configure with --disable-libtool" >&5
24332 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24333   please rerun configure with --disable-libtool" >&2;}
24334    { (exit 1); exit 1; }; }
24335           fi
24336           support_static_sd=yes
24337        fi
24338
24339
24340 fi
24341
24342
24343 STATIC_SD=
24344 if test x$support_static_sd = xyes; then
24345    STATIC_SD="static-bacula-sd"
24346 fi
24347
24348
24349 # Check whether --enable-static-dir was given.
24350 if test "${enable_static_dir+set}" = set; then
24351   enableval=$enable_static_dir;
24352        if test x$enableval = xyes; then
24353           if test x$use_libtool = xyes; then
24354              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24355   please rerun configure with --disable-libtool" >&5
24356 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24357   please rerun configure with --disable-libtool" >&2;}
24358    { (exit 1); exit 1; }; }
24359           fi
24360           support_static_dir=yes
24361        fi
24362
24363
24364 fi
24365
24366
24367 STATIC_DIR=
24368 if test x$support_static_dir = xyes; then
24369    STATIC_DIR="static-bacula-dir"
24370 fi
24371
24372
24373 # Check whether --enable-static-cons was given.
24374 if test "${enable_static_cons+set}" = set; then
24375   enableval=$enable_static_cons;
24376        if test x$enableval = xyes; then
24377           if test x$use_libtool = xyes; then
24378              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24379   please rerun configure with --disable-libtool" >&5
24380 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24381   please rerun configure with --disable-libtool" >&2;}
24382    { (exit 1); exit 1; }; }
24383           fi
24384           support_static_cons=yes
24385        fi
24386
24387
24388 fi
24389
24390
24391 STATIC_CONS=
24392 STATIC_GNOME_CONS=
24393 STATIC_WX_CONS=
24394 if test x$support_static_cons = xyes; then
24395    STATIC_CONS="static-bconsole"
24396    STATIC_GNOME_CONS="static-bgnome-console"
24397    STATIC_WX_CONS="static-bwx-console"
24398 fi
24399
24400
24401
24402
24403 # Check whether --enable-client-only was given.
24404 if test "${enable_client_only+set}" = set; then
24405   enableval=$enable_client_only;
24406        if test x$enableval = xyes; then
24407           build_client_only=yes
24408           db_type=None
24409           DB_TYPE=none
24410        fi
24411
24412
24413 fi
24414
24415 if test x$build_client_only = xno; then
24416    ALL_DIRS="subdirs"
24417 else
24418    ALL_DIRS=""
24419 fi
24420
24421
24422 # Check whether --enable-build-dird was given.
24423 if test "${enable_build_dird+set}" = set; then
24424   enableval=$enable_build_dird;
24425        if test x$enableval = xno; then
24426           build_dird=no
24427        fi
24428
24429
24430 fi
24431
24432 if test x$build_dird = xyes; then
24433    DIRD_DIR="src/dird"
24434    DIR_TOOLS="DIRTOOLS"
24435 else
24436    DIRD_DIR=""
24437    DIR_TOOLS="NODIRTOOLS"
24438 fi
24439
24440
24441
24442 # Check whether --enable-build-stored was given.
24443 if test "${enable_build_stored+set}" = set; then
24444   enableval=$enable_build_stored;
24445       if test x$enableval = xno; then
24446          build_stored=no
24447       fi
24448
24449
24450 fi
24451
24452 if test x$build_stored = xyes; then
24453    STORED_DIR="src/stored"
24454 else
24455    STORED_DIR=""
24456 fi
24457
24458
24459 # Check whether --enable-conio was given.
24460 if test "${enable_conio+set}" = set; then
24461   enableval=$enable_conio;
24462        if test x$enableval = xno; then
24463           support_conio=no
24464        fi
24465
24466
24467 fi
24468
24469
24470
24471 support_ipv6=yes
24472 # Check whether --enable-ipv6 was given.
24473 if test "${enable_ipv6+set}" = set; then
24474   enableval=$enable_ipv6;
24475        if test x$enableval = xno; then
24476           support_ipv6=no
24477        fi
24478
24479
24480 fi
24481
24482
24483 if test x$support_ipv6 = xyes; then
24484     cat >conftest.$ac_ext <<_ACEOF
24485 /* confdefs.h.  */
24486 _ACEOF
24487 cat confdefs.h >>conftest.$ac_ext
24488 cat >>conftest.$ac_ext <<_ACEOF
24489 /* end confdefs.h.  */
24490  #include <sys/types.h>
24491 #include <sys/socket.h>
24492 #include <netinet/in.h>
24493 int
24494 main ()
24495 {
24496 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24497   ;
24498   return 0;
24499 }
24500 _ACEOF
24501 rm -f conftest.$ac_objext conftest$ac_exeext
24502 if { (ac_try="$ac_link"
24503 case "(($ac_try" in
24504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24505   *) ac_try_echo=$ac_try;;
24506 esac
24507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24508   (eval "$ac_link") 2>conftest.er1
24509   ac_status=$?
24510   grep -v '^ *+' conftest.er1 >conftest.err
24511   rm -f conftest.er1
24512   cat conftest.err >&5
24513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24514   (exit $ac_status); } && {
24515          test -z "$ac_c_werror_flag" ||
24516          test ! -s conftest.err
24517        } && test -s conftest$ac_exeext &&
24518        $as_test_x conftest$ac_exeext; then
24519   support_ipv6=yes
24520 else
24521   echo "$as_me: failed program was:" >&5
24522 sed 's/^/| /' conftest.$ac_ext >&5
24523
24524         support_ipv6=no
24525 fi
24526
24527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24528       conftest$ac_exeext conftest.$ac_ext
24529 fi
24530
24531 if test x$support_ipv6 = xyes; then
24532
24533 cat >>confdefs.h <<\_ACEOF
24534 #define HAVE_IPV6 1
24535 _ACEOF
24536
24537 fi
24538
24539 got_conio="no"
24540 if test x$support_conio = xyes; then
24541    if test "${ac_cv_header_termcap_h+set}" = set; then
24542   { echo "$as_me:$LINENO: checking for termcap.h" >&5
24543 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24544 if test "${ac_cv_header_termcap_h+set}" = set; then
24545   echo $ECHO_N "(cached) $ECHO_C" >&6
24546 fi
24547 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24548 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24549 else
24550   # Is the header compilable?
24551 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24552 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24553 cat >conftest.$ac_ext <<_ACEOF
24554 /* confdefs.h.  */
24555 _ACEOF
24556 cat confdefs.h >>conftest.$ac_ext
24557 cat >>conftest.$ac_ext <<_ACEOF
24558 /* end confdefs.h.  */
24559 $ac_includes_default
24560 #include <termcap.h>
24561 _ACEOF
24562 rm -f conftest.$ac_objext
24563 if { (ac_try="$ac_compile"
24564 case "(($ac_try" in
24565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24566   *) ac_try_echo=$ac_try;;
24567 esac
24568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24569   (eval "$ac_compile") 2>conftest.er1
24570   ac_status=$?
24571   grep -v '^ *+' conftest.er1 >conftest.err
24572   rm -f conftest.er1
24573   cat conftest.err >&5
24574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575   (exit $ac_status); } && {
24576          test -z "$ac_c_werror_flag" ||
24577          test ! -s conftest.err
24578        } && test -s conftest.$ac_objext; then
24579   ac_header_compiler=yes
24580 else
24581   echo "$as_me: failed program was:" >&5
24582 sed 's/^/| /' conftest.$ac_ext >&5
24583
24584         ac_header_compiler=no
24585 fi
24586
24587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24589 echo "${ECHO_T}$ac_header_compiler" >&6; }
24590
24591 # Is the header present?
24592 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24593 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24594 cat >conftest.$ac_ext <<_ACEOF
24595 /* confdefs.h.  */
24596 _ACEOF
24597 cat confdefs.h >>conftest.$ac_ext
24598 cat >>conftest.$ac_ext <<_ACEOF
24599 /* end confdefs.h.  */
24600 #include <termcap.h>
24601 _ACEOF
24602 if { (ac_try="$ac_cpp conftest.$ac_ext"
24603 case "(($ac_try" in
24604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24605   *) ac_try_echo=$ac_try;;
24606 esac
24607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24608   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24609   ac_status=$?
24610   grep -v '^ *+' conftest.er1 >conftest.err
24611   rm -f conftest.er1
24612   cat conftest.err >&5
24613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24614   (exit $ac_status); } >/dev/null && {
24615          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24616          test ! -s conftest.err
24617        }; then
24618   ac_header_preproc=yes
24619 else
24620   echo "$as_me: failed program was:" >&5
24621 sed 's/^/| /' conftest.$ac_ext >&5
24622
24623   ac_header_preproc=no
24624 fi
24625
24626 rm -f conftest.err conftest.$ac_ext
24627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24628 echo "${ECHO_T}$ac_header_preproc" >&6; }
24629
24630 # So?  What about this header?
24631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24632   yes:no: )
24633     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24634 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24635     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24636 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24637     ac_header_preproc=yes
24638     ;;
24639   no:yes:* )
24640     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24641 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24642     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
24643 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
24644     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24645 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24646     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
24647 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24648     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24649 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24650     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24651 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24652
24653     ;;
24654 esac
24655 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24656 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24657 if test "${ac_cv_header_termcap_h+set}" = set; then
24658   echo $ECHO_N "(cached) $ECHO_C" >&6
24659 else
24660   ac_cv_header_termcap_h=$ac_header_preproc
24661 fi
24662 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24663 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24664
24665 fi
24666 if test $ac_cv_header_termcap_h = yes; then
24667    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24668 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24669 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24670   echo $ECHO_N "(cached) $ECHO_C" >&6
24671 else
24672   ac_check_lib_save_LIBS=$LIBS
24673 LIBS="-ltermcap  $LIBS"
24674 cat >conftest.$ac_ext <<_ACEOF
24675 /* confdefs.h.  */
24676 _ACEOF
24677 cat confdefs.h >>conftest.$ac_ext
24678 cat >>conftest.$ac_ext <<_ACEOF
24679 /* end confdefs.h.  */
24680
24681 /* Override any GCC internal prototype to avoid an error.
24682    Use char because int might match the return type of a GCC
24683    builtin and then its argument prototype would still apply.  */
24684 #ifdef __cplusplus
24685 extern "C"
24686 #endif
24687 char tgetent ();
24688 int
24689 main ()
24690 {
24691 return tgetent ();
24692   ;
24693   return 0;
24694 }
24695 _ACEOF
24696 rm -f conftest.$ac_objext conftest$ac_exeext
24697 if { (ac_try="$ac_link"
24698 case "(($ac_try" in
24699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24700   *) ac_try_echo=$ac_try;;
24701 esac
24702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24703   (eval "$ac_link") 2>conftest.er1
24704   ac_status=$?
24705   grep -v '^ *+' conftest.er1 >conftest.err
24706   rm -f conftest.er1
24707   cat conftest.err >&5
24708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24709   (exit $ac_status); } && {
24710          test -z "$ac_c_werror_flag" ||
24711          test ! -s conftest.err
24712        } && test -s conftest$ac_exeext &&
24713        $as_test_x conftest$ac_exeext; then
24714   ac_cv_lib_termcap_tgetent=yes
24715 else
24716   echo "$as_me: failed program was:" >&5
24717 sed 's/^/| /' conftest.$ac_ext >&5
24718
24719         ac_cv_lib_termcap_tgetent=no
24720 fi
24721
24722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24723       conftest$ac_exeext conftest.$ac_ext
24724 LIBS=$ac_check_lib_save_LIBS
24725 fi
24726 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24727 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24728 if test $ac_cv_lib_termcap_tgetent = yes; then
24729    CONS_LIBS="-ltermcap"
24730     CONS_OBJ="conio.o"
24731     CONS_SRC="conio.c"
24732     got_conio="yes"
24733     support_readline=no
24734
24735 cat >>confdefs.h <<\_ACEOF
24736 #define HAVE_CONIO 1
24737 _ACEOF
24738
24739
24740 else
24741    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24742 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24743 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24744   echo $ECHO_N "(cached) $ECHO_C" >&6
24745 else
24746   ac_check_lib_save_LIBS=$LIBS
24747 LIBS="-lncurses  $LIBS"
24748 cat >conftest.$ac_ext <<_ACEOF
24749 /* confdefs.h.  */
24750 _ACEOF
24751 cat confdefs.h >>conftest.$ac_ext
24752 cat >>conftest.$ac_ext <<_ACEOF
24753 /* end confdefs.h.  */
24754
24755 /* Override any GCC internal prototype to avoid an error.
24756    Use char because int might match the return type of a GCC
24757    builtin and then its argument prototype would still apply.  */
24758 #ifdef __cplusplus
24759 extern "C"
24760 #endif
24761 char tgetent ();
24762 int
24763 main ()
24764 {
24765 return tgetent ();
24766   ;
24767   return 0;
24768 }
24769 _ACEOF
24770 rm -f conftest.$ac_objext conftest$ac_exeext
24771 if { (ac_try="$ac_link"
24772 case "(($ac_try" in
24773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24774   *) ac_try_echo=$ac_try;;
24775 esac
24776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24777   (eval "$ac_link") 2>conftest.er1
24778   ac_status=$?
24779   grep -v '^ *+' conftest.er1 >conftest.err
24780   rm -f conftest.er1
24781   cat conftest.err >&5
24782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24783   (exit $ac_status); } && {
24784          test -z "$ac_c_werror_flag" ||
24785          test ! -s conftest.err
24786        } && test -s conftest$ac_exeext &&
24787        $as_test_x conftest$ac_exeext; then
24788   ac_cv_lib_ncurses_tgetent=yes
24789 else
24790   echo "$as_me: failed program was:" >&5
24791 sed 's/^/| /' conftest.$ac_ext >&5
24792
24793         ac_cv_lib_ncurses_tgetent=no
24794 fi
24795
24796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24797       conftest$ac_exeext conftest.$ac_ext
24798 LIBS=$ac_check_lib_save_LIBS
24799 fi
24800 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24801 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24802 if test $ac_cv_lib_ncurses_tgetent = yes; then
24803    CONS_LIBS="-lncurses"
24804       CONS_OBJ="conio.o"
24805       CONS_SRC="conio.c"
24806       got_conio="yes"
24807       support_readline=no
24808
24809 cat >>confdefs.h <<\_ACEOF
24810 #define HAVE_CONIO 1
24811 _ACEOF
24812
24813
24814 fi
24815
24816
24817 fi
24818
24819
24820 else
24821
24822
24823 for ac_header in curses.h
24824 do
24825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24827   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24830   echo $ECHO_N "(cached) $ECHO_C" >&6
24831 fi
24832 ac_res=`eval echo '${'$as_ac_Header'}'`
24833                { echo "$as_me:$LINENO: result: $ac_res" >&5
24834 echo "${ECHO_T}$ac_res" >&6; }
24835 else
24836   # Is the header compilable?
24837 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24838 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24839 cat >conftest.$ac_ext <<_ACEOF
24840 /* confdefs.h.  */
24841 _ACEOF
24842 cat confdefs.h >>conftest.$ac_ext
24843 cat >>conftest.$ac_ext <<_ACEOF
24844 /* end confdefs.h.  */
24845 $ac_includes_default
24846 #include <$ac_header>
24847 _ACEOF
24848 rm -f conftest.$ac_objext
24849 if { (ac_try="$ac_compile"
24850 case "(($ac_try" in
24851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24852   *) ac_try_echo=$ac_try;;
24853 esac
24854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24855   (eval "$ac_compile") 2>conftest.er1
24856   ac_status=$?
24857   grep -v '^ *+' conftest.er1 >conftest.err
24858   rm -f conftest.er1
24859   cat conftest.err >&5
24860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861   (exit $ac_status); } && {
24862          test -z "$ac_c_werror_flag" ||
24863          test ! -s conftest.err
24864        } && test -s conftest.$ac_objext; then
24865   ac_header_compiler=yes
24866 else
24867   echo "$as_me: failed program was:" >&5
24868 sed 's/^/| /' conftest.$ac_ext >&5
24869
24870         ac_header_compiler=no
24871 fi
24872
24873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24874 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24875 echo "${ECHO_T}$ac_header_compiler" >&6; }
24876
24877 # Is the header present?
24878 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24880 cat >conftest.$ac_ext <<_ACEOF
24881 /* confdefs.h.  */
24882 _ACEOF
24883 cat confdefs.h >>conftest.$ac_ext
24884 cat >>conftest.$ac_ext <<_ACEOF
24885 /* end confdefs.h.  */
24886 #include <$ac_header>
24887 _ACEOF
24888 if { (ac_try="$ac_cpp conftest.$ac_ext"
24889 case "(($ac_try" in
24890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24891   *) ac_try_echo=$ac_try;;
24892 esac
24893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24894   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24895   ac_status=$?
24896   grep -v '^ *+' conftest.er1 >conftest.err
24897   rm -f conftest.er1
24898   cat conftest.err >&5
24899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900   (exit $ac_status); } >/dev/null && {
24901          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24902          test ! -s conftest.err
24903        }; then
24904   ac_header_preproc=yes
24905 else
24906   echo "$as_me: failed program was:" >&5
24907 sed 's/^/| /' conftest.$ac_ext >&5
24908
24909   ac_header_preproc=no
24910 fi
24911
24912 rm -f conftest.err conftest.$ac_ext
24913 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24914 echo "${ECHO_T}$ac_header_preproc" >&6; }
24915
24916 # So?  What about this header?
24917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24918   yes:no: )
24919     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24920 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24921     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24922 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24923     ac_header_preproc=yes
24924     ;;
24925   no:yes:* )
24926     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24927 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24928     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24929 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24930     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24931 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24932     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24933 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24936     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24937 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24938
24939     ;;
24940 esac
24941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24944   echo $ECHO_N "(cached) $ECHO_C" >&6
24945 else
24946   eval "$as_ac_Header=\$ac_header_preproc"
24947 fi
24948 ac_res=`eval echo '${'$as_ac_Header'}'`
24949                { echo "$as_me:$LINENO: result: $ac_res" >&5
24950 echo "${ECHO_T}$ac_res" >&6; }
24951
24952 fi
24953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24954   cat >>confdefs.h <<_ACEOF
24955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24956 _ACEOF
24957
24958 fi
24959
24960 done
24961
24962     { echo "$as_me:$LINENO: checking for term.h" >&5
24963 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24964 if test "${ac_cv_header_term_h+set}" = set; then
24965   echo $ECHO_N "(cached) $ECHO_C" >&6
24966 else
24967   cat >conftest.$ac_ext <<_ACEOF
24968 /* confdefs.h.  */
24969 _ACEOF
24970 cat confdefs.h >>conftest.$ac_ext
24971 cat >>conftest.$ac_ext <<_ACEOF
24972 /* end confdefs.h.  */
24973 #if HAVE_CURSES_H
24974 #include <curses.h>
24975 #endif
24976
24977
24978 #include <term.h>
24979 _ACEOF
24980 rm -f conftest.$ac_objext
24981 if { (ac_try="$ac_compile"
24982 case "(($ac_try" in
24983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24984   *) ac_try_echo=$ac_try;;
24985 esac
24986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24987   (eval "$ac_compile") 2>conftest.er1
24988   ac_status=$?
24989   grep -v '^ *+' conftest.er1 >conftest.err
24990   rm -f conftest.er1
24991   cat conftest.err >&5
24992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993   (exit $ac_status); } && {
24994          test -z "$ac_c_werror_flag" ||
24995          test ! -s conftest.err
24996        } && test -s conftest.$ac_objext; then
24997   ac_cv_header_term_h=yes
24998 else
24999   echo "$as_me: failed program was:" >&5
25000 sed 's/^/| /' conftest.$ac_ext >&5
25001
25002         ac_cv_header_term_h=no
25003 fi
25004
25005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25006 fi
25007 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25008 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
25009 if test $ac_cv_header_term_h = yes; then
25010    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
25011 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
25012 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
25013   echo $ECHO_N "(cached) $ECHO_C" >&6
25014 else
25015   ac_check_lib_save_LIBS=$LIBS
25016 LIBS="-lcurses  $LIBS"
25017 cat >conftest.$ac_ext <<_ACEOF
25018 /* confdefs.h.  */
25019 _ACEOF
25020 cat confdefs.h >>conftest.$ac_ext
25021 cat >>conftest.$ac_ext <<_ACEOF
25022 /* end confdefs.h.  */
25023
25024 /* Override any GCC internal prototype to avoid an error.
25025    Use char because int might match the return type of a GCC
25026    builtin and then its argument prototype would still apply.  */
25027 #ifdef __cplusplus
25028 extern "C"
25029 #endif
25030 char tgetent ();
25031 int
25032 main ()
25033 {
25034 return tgetent ();
25035   ;
25036   return 0;
25037 }
25038 _ACEOF
25039 rm -f conftest.$ac_objext conftest$ac_exeext
25040 if { (ac_try="$ac_link"
25041 case "(($ac_try" in
25042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25043   *) ac_try_echo=$ac_try;;
25044 esac
25045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25046   (eval "$ac_link") 2>conftest.er1
25047   ac_status=$?
25048   grep -v '^ *+' conftest.er1 >conftest.err
25049   rm -f conftest.er1
25050   cat conftest.err >&5
25051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052   (exit $ac_status); } && {
25053          test -z "$ac_c_werror_flag" ||
25054          test ! -s conftest.err
25055        } && test -s conftest$ac_exeext &&
25056        $as_test_x conftest$ac_exeext; then
25057   ac_cv_lib_curses_tgetent=yes
25058 else
25059   echo "$as_me: failed program was:" >&5
25060 sed 's/^/| /' conftest.$ac_ext >&5
25061
25062         ac_cv_lib_curses_tgetent=no
25063 fi
25064
25065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25066       conftest$ac_exeext conftest.$ac_ext
25067 LIBS=$ac_check_lib_save_LIBS
25068 fi
25069 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25070 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25071 if test $ac_cv_lib_curses_tgetent = yes; then
25072    CONS_LIBS="-lcurses"
25073          CONS_OBJ="conio.o"
25074          CONS_SRC="conio.c"
25075          got_conio="yes"
25076          support_readline=no
25077
25078 cat >>confdefs.h <<\_ACEOF
25079 #define HAVE_CONIO 1
25080 _ACEOF
25081
25082
25083 fi
25084
25085
25086 else
25087    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25088 fi
25089
25090
25091
25092 fi
25093
25094
25095 fi
25096
25097
25098 # Check whether --enable-readline was given.
25099 if test "${enable_readline+set}" = set; then
25100   enableval=$enable_readline;
25101        if test x$enableval = xno; then
25102           support_readline=no
25103        fi
25104
25105
25106 fi
25107
25108
25109 got_readline="no"
25110 READLINE_SRC=
25111 if test x$support_readline = xyes; then
25112
25113 # Check whether --with-readline was given.
25114 if test "${with_readline+set}" = set; then
25115   withval=$with_readline;
25116           case "$with_readline" in
25117           no)
25118              :
25119              ;;
25120           yes|*)
25121              if test -f ${with_readline}/readline.h; then
25122                 CONS_INC="-I${with_readline}"
25123                 CONS_LDFLAGS="-L$with_readline"
25124              elif test -f ${with_readline}/include/readline/readline.h; then
25125                 CONS_INC="-I${with_readline}/include/readline"
25126                 CONS_LDFLAGS="-L${with_readline}/lib"
25127                 with_readline="${with_readline}/include/readline"
25128              else
25129                 with_readline="/usr/include/readline"
25130              fi
25131
25132              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25134   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25135 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25137   echo $ECHO_N "(cached) $ECHO_C" >&6
25138 fi
25139 ac_res=`eval echo '${'$as_ac_Header'}'`
25140                { echo "$as_me:$LINENO: result: $ac_res" >&5
25141 echo "${ECHO_T}$ac_res" >&6; }
25142 else
25143   # Is the header compilable?
25144 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25145 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25146 cat >conftest.$ac_ext <<_ACEOF
25147 /* confdefs.h.  */
25148 _ACEOF
25149 cat confdefs.h >>conftest.$ac_ext
25150 cat >>conftest.$ac_ext <<_ACEOF
25151 /* end confdefs.h.  */
25152 $ac_includes_default
25153 #include <${with_readline}/readline.h>
25154 _ACEOF
25155 rm -f conftest.$ac_objext
25156 if { (ac_try="$ac_compile"
25157 case "(($ac_try" in
25158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25159   *) ac_try_echo=$ac_try;;
25160 esac
25161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25162   (eval "$ac_compile") 2>conftest.er1
25163   ac_status=$?
25164   grep -v '^ *+' conftest.er1 >conftest.err
25165   rm -f conftest.er1
25166   cat conftest.err >&5
25167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25168   (exit $ac_status); } && {
25169          test -z "$ac_c_werror_flag" ||
25170          test ! -s conftest.err
25171        } && test -s conftest.$ac_objext; then
25172   ac_header_compiler=yes
25173 else
25174   echo "$as_me: failed program was:" >&5
25175 sed 's/^/| /' conftest.$ac_ext >&5
25176
25177         ac_header_compiler=no
25178 fi
25179
25180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25181 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25182 echo "${ECHO_T}$ac_header_compiler" >&6; }
25183
25184 # Is the header present?
25185 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25186 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25187 cat >conftest.$ac_ext <<_ACEOF
25188 /* confdefs.h.  */
25189 _ACEOF
25190 cat confdefs.h >>conftest.$ac_ext
25191 cat >>conftest.$ac_ext <<_ACEOF
25192 /* end confdefs.h.  */
25193 #include <${with_readline}/readline.h>
25194 _ACEOF
25195 if { (ac_try="$ac_cpp conftest.$ac_ext"
25196 case "(($ac_try" in
25197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25198   *) ac_try_echo=$ac_try;;
25199 esac
25200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25201   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25202   ac_status=$?
25203   grep -v '^ *+' conftest.er1 >conftest.err
25204   rm -f conftest.er1
25205   cat conftest.err >&5
25206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207   (exit $ac_status); } >/dev/null && {
25208          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25209          test ! -s conftest.err
25210        }; then
25211   ac_header_preproc=yes
25212 else
25213   echo "$as_me: failed program was:" >&5
25214 sed 's/^/| /' conftest.$ac_ext >&5
25215
25216   ac_header_preproc=no
25217 fi
25218
25219 rm -f conftest.err conftest.$ac_ext
25220 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25221 echo "${ECHO_T}$ac_header_preproc" >&6; }
25222
25223 # So?  What about this header?
25224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25225   yes:no: )
25226     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25227 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25228     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25229 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25230     ac_header_preproc=yes
25231     ;;
25232   no:yes:* )
25233     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25234 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25235     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25236 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25237     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25238 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25239     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25240 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25241     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25242 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25243     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25244 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25245
25246     ;;
25247 esac
25248 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25249 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25251   echo $ECHO_N "(cached) $ECHO_C" >&6
25252 else
25253   eval "$as_ac_Header=\$ac_header_preproc"
25254 fi
25255 ac_res=`eval echo '${'$as_ac_Header'}'`
25256                { echo "$as_me:$LINENO: result: $ac_res" >&5
25257 echo "${ECHO_T}$ac_res" >&6; }
25258
25259 fi
25260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25261
25262
25263 cat >>confdefs.h <<\_ACEOF
25264 #define HAVE_READLINE 1
25265 _ACEOF
25266
25267                     CONS_LIBS="-lreadline -lhistory -ltermcap"
25268                     got_readline="yes"
25269
25270 else
25271
25272                     echo " "
25273                     echo "readline.h not found. readline turned off ..."
25274                     echo " "
25275
25276
25277 fi
25278
25279
25280              ;;
25281           esac
25282
25283 else
25284
25285                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25286   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25287 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25288 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25289   echo $ECHO_N "(cached) $ECHO_C" >&6
25290 fi
25291 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25292 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25293 else
25294   # Is the header compilable?
25295 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25296 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25297 cat >conftest.$ac_ext <<_ACEOF
25298 /* confdefs.h.  */
25299 _ACEOF
25300 cat confdefs.h >>conftest.$ac_ext
25301 cat >>conftest.$ac_ext <<_ACEOF
25302 /* end confdefs.h.  */
25303 $ac_includes_default
25304 #include </usr/include/readline/readline.h>
25305 _ACEOF
25306 rm -f conftest.$ac_objext
25307 if { (ac_try="$ac_compile"
25308 case "(($ac_try" in
25309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25310   *) ac_try_echo=$ac_try;;
25311 esac
25312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25313   (eval "$ac_compile") 2>conftest.er1
25314   ac_status=$?
25315   grep -v '^ *+' conftest.er1 >conftest.err
25316   rm -f conftest.er1
25317   cat conftest.err >&5
25318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319   (exit $ac_status); } && {
25320          test -z "$ac_c_werror_flag" ||
25321          test ! -s conftest.err
25322        } && test -s conftest.$ac_objext; then
25323   ac_header_compiler=yes
25324 else
25325   echo "$as_me: failed program was:" >&5
25326 sed 's/^/| /' conftest.$ac_ext >&5
25327
25328         ac_header_compiler=no
25329 fi
25330
25331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25332 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25333 echo "${ECHO_T}$ac_header_compiler" >&6; }
25334
25335 # Is the header present?
25336 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25337 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25338 cat >conftest.$ac_ext <<_ACEOF
25339 /* confdefs.h.  */
25340 _ACEOF
25341 cat confdefs.h >>conftest.$ac_ext
25342 cat >>conftest.$ac_ext <<_ACEOF
25343 /* end confdefs.h.  */
25344 #include </usr/include/readline/readline.h>
25345 _ACEOF
25346 if { (ac_try="$ac_cpp conftest.$ac_ext"
25347 case "(($ac_try" in
25348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25349   *) ac_try_echo=$ac_try;;
25350 esac
25351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25352   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25353   ac_status=$?
25354   grep -v '^ *+' conftest.er1 >conftest.err
25355   rm -f conftest.er1
25356   cat conftest.err >&5
25357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358   (exit $ac_status); } >/dev/null && {
25359          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25360          test ! -s conftest.err
25361        }; then
25362   ac_header_preproc=yes
25363 else
25364   echo "$as_me: failed program was:" >&5
25365 sed 's/^/| /' conftest.$ac_ext >&5
25366
25367   ac_header_preproc=no
25368 fi
25369
25370 rm -f conftest.err conftest.$ac_ext
25371 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25372 echo "${ECHO_T}$ac_header_preproc" >&6; }
25373
25374 # So?  What about this header?
25375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25376   yes:no: )
25377     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25378 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25379     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25380 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25381     ac_header_preproc=yes
25382     ;;
25383   no:yes:* )
25384     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25385 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25386     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25387 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25388     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25389 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25390     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25391 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25392     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25393 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25394     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25395 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25396
25397     ;;
25398 esac
25399 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25400 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25401 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25402   echo $ECHO_N "(cached) $ECHO_C" >&6
25403 else
25404   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25405 fi
25406 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25407 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25408
25409 fi
25410 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25411
25412
25413 cat >>confdefs.h <<\_ACEOF
25414 #define HAVE_READLINE 1
25415 _ACEOF
25416
25417                 got_readline="yes"
25418                 CONS_INC="-I/usr/include/readline"
25419                 CONS_LIBS="-lreadline -ltermcap"
25420
25421 else
25422
25423                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25425   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25426 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25428   echo $ECHO_N "(cached) $ECHO_C" >&6
25429 fi
25430 ac_res=`eval echo '${'$as_ac_Header'}'`
25431                { echo "$as_me:$LINENO: result: $ac_res" >&5
25432 echo "${ECHO_T}$ac_res" >&6; }
25433 else
25434   # Is the header compilable?
25435 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25436 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25437 cat >conftest.$ac_ext <<_ACEOF
25438 /* confdefs.h.  */
25439 _ACEOF
25440 cat confdefs.h >>conftest.$ac_ext
25441 cat >>conftest.$ac_ext <<_ACEOF
25442 /* end confdefs.h.  */
25443 $ac_includes_default
25444 #include <${TOP_DIR}/depkgs/readline/readline.h>
25445 _ACEOF
25446 rm -f conftest.$ac_objext
25447 if { (ac_try="$ac_compile"
25448 case "(($ac_try" in
25449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25450   *) ac_try_echo=$ac_try;;
25451 esac
25452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25453   (eval "$ac_compile") 2>conftest.er1
25454   ac_status=$?
25455   grep -v '^ *+' conftest.er1 >conftest.err
25456   rm -f conftest.er1
25457   cat conftest.err >&5
25458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25459   (exit $ac_status); } && {
25460          test -z "$ac_c_werror_flag" ||
25461          test ! -s conftest.err
25462        } && test -s conftest.$ac_objext; then
25463   ac_header_compiler=yes
25464 else
25465   echo "$as_me: failed program was:" >&5
25466 sed 's/^/| /' conftest.$ac_ext >&5
25467
25468         ac_header_compiler=no
25469 fi
25470
25471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25473 echo "${ECHO_T}$ac_header_compiler" >&6; }
25474
25475 # Is the header present?
25476 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25477 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25478 cat >conftest.$ac_ext <<_ACEOF
25479 /* confdefs.h.  */
25480 _ACEOF
25481 cat confdefs.h >>conftest.$ac_ext
25482 cat >>conftest.$ac_ext <<_ACEOF
25483 /* end confdefs.h.  */
25484 #include <${TOP_DIR}/depkgs/readline/readline.h>
25485 _ACEOF
25486 if { (ac_try="$ac_cpp conftest.$ac_ext"
25487 case "(($ac_try" in
25488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25489   *) ac_try_echo=$ac_try;;
25490 esac
25491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25492   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25493   ac_status=$?
25494   grep -v '^ *+' conftest.er1 >conftest.err
25495   rm -f conftest.er1
25496   cat conftest.err >&5
25497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498   (exit $ac_status); } >/dev/null && {
25499          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25500          test ! -s conftest.err
25501        }; then
25502   ac_header_preproc=yes
25503 else
25504   echo "$as_me: failed program was:" >&5
25505 sed 's/^/| /' conftest.$ac_ext >&5
25506
25507   ac_header_preproc=no
25508 fi
25509
25510 rm -f conftest.err conftest.$ac_ext
25511 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25512 echo "${ECHO_T}$ac_header_preproc" >&6; }
25513
25514 # So?  What about this header?
25515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25516   yes:no: )
25517     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25518 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25519     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25520 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25521     ac_header_preproc=yes
25522     ;;
25523   no:yes:* )
25524     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25525 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25526     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25527 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25528     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25529 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25530     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25531 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25532     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25533 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25534     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25535 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25536
25537     ;;
25538 esac
25539 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25540 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25542   echo $ECHO_N "(cached) $ECHO_C" >&6
25543 else
25544   eval "$as_ac_Header=\$ac_header_preproc"
25545 fi
25546 ac_res=`eval echo '${'$as_ac_Header'}'`
25547                { echo "$as_me:$LINENO: result: $ac_res" >&5
25548 echo "${ECHO_T}$ac_res" >&6; }
25549
25550 fi
25551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25552
25553
25554 cat >>confdefs.h <<\_ACEOF
25555 #define HAVE_READLINE 1
25556 _ACEOF
25557
25558                         got_readline="yes"
25559                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25560                         CONS_LIBS="-lreadline -lhistory -ltermcap"
25561                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25562                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25563
25564 else
25565
25566                         echo " "
25567                         echo "readline.h not found. readline turned off ..."
25568                         echo " "
25569
25570
25571 fi
25572
25573
25574
25575
25576 fi
25577
25578
25579
25580
25581 fi
25582
25583 fi
25584
25585
25586
25587
25588
25589
25590
25591
25592 MAKE_SHELL=/bin/sh
25593
25594 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25595 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25596 if test "${ac_cv_header_stat_broken+set}" = set; then
25597   echo $ECHO_N "(cached) $ECHO_C" >&6
25598 else
25599   cat >conftest.$ac_ext <<_ACEOF
25600 /* confdefs.h.  */
25601 _ACEOF
25602 cat confdefs.h >>conftest.$ac_ext
25603 cat >>conftest.$ac_ext <<_ACEOF
25604 /* end confdefs.h.  */
25605 #include <sys/types.h>
25606 #include <sys/stat.h>
25607
25608 #if defined S_ISBLK && defined S_IFDIR
25609 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25610 #endif
25611
25612 #if defined S_ISBLK && defined S_IFCHR
25613 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25614 #endif
25615
25616 #if defined S_ISLNK && defined S_IFREG
25617 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25618 #endif
25619
25620 #if defined S_ISSOCK && defined S_IFREG
25621 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25622 #endif
25623
25624 _ACEOF
25625 rm -f conftest.$ac_objext
25626 if { (ac_try="$ac_compile"
25627 case "(($ac_try" in
25628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25629   *) ac_try_echo=$ac_try;;
25630 esac
25631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25632   (eval "$ac_compile") 2>conftest.er1
25633   ac_status=$?
25634   grep -v '^ *+' conftest.er1 >conftest.err
25635   rm -f conftest.er1
25636   cat conftest.err >&5
25637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638   (exit $ac_status); } && {
25639          test -z "$ac_c_werror_flag" ||
25640          test ! -s conftest.err
25641        } && test -s conftest.$ac_objext; then
25642   ac_cv_header_stat_broken=no
25643 else
25644   echo "$as_me: failed program was:" >&5
25645 sed 's/^/| /' conftest.$ac_ext >&5
25646
25647         ac_cv_header_stat_broken=yes
25648 fi
25649
25650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25651 fi
25652 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25653 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25654 if test $ac_cv_header_stat_broken = yes; then
25655
25656 cat >>confdefs.h <<\_ACEOF
25657 #define STAT_MACROS_BROKEN 1
25658 _ACEOF
25659
25660 fi
25661
25662
25663
25664
25665
25666
25667 ac_header_dirent=no
25668 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25669   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25670 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25671 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25673   echo $ECHO_N "(cached) $ECHO_C" >&6
25674 else
25675   cat >conftest.$ac_ext <<_ACEOF
25676 /* confdefs.h.  */
25677 _ACEOF
25678 cat confdefs.h >>conftest.$ac_ext
25679 cat >>conftest.$ac_ext <<_ACEOF
25680 /* end confdefs.h.  */
25681 #include <sys/types.h>
25682 #include <$ac_hdr>
25683
25684 int
25685 main ()
25686 {
25687 if ((DIR *) 0)
25688 return 0;
25689   ;
25690   return 0;
25691 }
25692 _ACEOF
25693 rm -f conftest.$ac_objext
25694 if { (ac_try="$ac_compile"
25695 case "(($ac_try" in
25696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25697   *) ac_try_echo=$ac_try;;
25698 esac
25699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25700   (eval "$ac_compile") 2>conftest.er1
25701   ac_status=$?
25702   grep -v '^ *+' conftest.er1 >conftest.err
25703   rm -f conftest.er1
25704   cat conftest.err >&5
25705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706   (exit $ac_status); } && {
25707          test -z "$ac_c_werror_flag" ||
25708          test ! -s conftest.err
25709        } && test -s conftest.$ac_objext; then
25710   eval "$as_ac_Header=yes"
25711 else
25712   echo "$as_me: failed program was:" >&5
25713 sed 's/^/| /' conftest.$ac_ext >&5
25714
25715         eval "$as_ac_Header=no"
25716 fi
25717
25718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25719 fi
25720 ac_res=`eval echo '${'$as_ac_Header'}'`
25721                { echo "$as_me:$LINENO: result: $ac_res" >&5
25722 echo "${ECHO_T}$ac_res" >&6; }
25723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25724   cat >>confdefs.h <<_ACEOF
25725 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25726 _ACEOF
25727
25728 ac_header_dirent=$ac_hdr; break
25729 fi
25730
25731 done
25732 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25733 if test $ac_header_dirent = dirent.h; then
25734   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25735 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25736 if test "${ac_cv_search_opendir+set}" = set; then
25737   echo $ECHO_N "(cached) $ECHO_C" >&6
25738 else
25739   ac_func_search_save_LIBS=$LIBS
25740 cat >conftest.$ac_ext <<_ACEOF
25741 /* confdefs.h.  */
25742 _ACEOF
25743 cat confdefs.h >>conftest.$ac_ext
25744 cat >>conftest.$ac_ext <<_ACEOF
25745 /* end confdefs.h.  */
25746
25747 /* Override any GCC internal prototype to avoid an error.
25748    Use char because int might match the return type of a GCC
25749    builtin and then its argument prototype would still apply.  */
25750 #ifdef __cplusplus
25751 extern "C"
25752 #endif
25753 char opendir ();
25754 int
25755 main ()
25756 {
25757 return opendir ();
25758   ;
25759   return 0;
25760 }
25761 _ACEOF
25762 for ac_lib in '' dir; do
25763   if test -z "$ac_lib"; then
25764     ac_res="none required"
25765   else
25766     ac_res=-l$ac_lib
25767     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25768   fi
25769   rm -f conftest.$ac_objext conftest$ac_exeext
25770 if { (ac_try="$ac_link"
25771 case "(($ac_try" in
25772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25773   *) ac_try_echo=$ac_try;;
25774 esac
25775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25776   (eval "$ac_link") 2>conftest.er1
25777   ac_status=$?
25778   grep -v '^ *+' conftest.er1 >conftest.err
25779   rm -f conftest.er1
25780   cat conftest.err >&5
25781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782   (exit $ac_status); } && {
25783          test -z "$ac_c_werror_flag" ||
25784          test ! -s conftest.err
25785        } && test -s conftest$ac_exeext &&
25786        $as_test_x conftest$ac_exeext; then
25787   ac_cv_search_opendir=$ac_res
25788 else
25789   echo "$as_me: failed program was:" >&5
25790 sed 's/^/| /' conftest.$ac_ext >&5
25791
25792
25793 fi
25794
25795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25796       conftest$ac_exeext
25797   if test "${ac_cv_search_opendir+set}" = set; then
25798   break
25799 fi
25800 done
25801 if test "${ac_cv_search_opendir+set}" = set; then
25802   :
25803 else
25804   ac_cv_search_opendir=no
25805 fi
25806 rm conftest.$ac_ext
25807 LIBS=$ac_func_search_save_LIBS
25808 fi
25809 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25810 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25811 ac_res=$ac_cv_search_opendir
25812 if test "$ac_res" != no; then
25813   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25814
25815 fi
25816
25817 else
25818   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25819 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25820 if test "${ac_cv_search_opendir+set}" = set; then
25821   echo $ECHO_N "(cached) $ECHO_C" >&6
25822 else
25823   ac_func_search_save_LIBS=$LIBS
25824 cat >conftest.$ac_ext <<_ACEOF
25825 /* confdefs.h.  */
25826 _ACEOF
25827 cat confdefs.h >>conftest.$ac_ext
25828 cat >>conftest.$ac_ext <<_ACEOF
25829 /* end confdefs.h.  */
25830
25831 /* Override any GCC internal prototype to avoid an error.
25832    Use char because int might match the return type of a GCC
25833    builtin and then its argument prototype would still apply.  */
25834 #ifdef __cplusplus
25835 extern "C"
25836 #endif
25837 char opendir ();
25838 int
25839 main ()
25840 {
25841 return opendir ();
25842   ;
25843   return 0;
25844 }
25845 _ACEOF
25846 for ac_lib in '' x; do
25847   if test -z "$ac_lib"; then
25848     ac_res="none required"
25849   else
25850     ac_res=-l$ac_lib
25851     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25852   fi
25853   rm -f conftest.$ac_objext conftest$ac_exeext
25854 if { (ac_try="$ac_link"
25855 case "(($ac_try" in
25856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25857   *) ac_try_echo=$ac_try;;
25858 esac
25859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25860   (eval "$ac_link") 2>conftest.er1
25861   ac_status=$?
25862   grep -v '^ *+' conftest.er1 >conftest.err
25863   rm -f conftest.er1
25864   cat conftest.err >&5
25865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866   (exit $ac_status); } && {
25867          test -z "$ac_c_werror_flag" ||
25868          test ! -s conftest.err
25869        } && test -s conftest$ac_exeext &&
25870        $as_test_x conftest$ac_exeext; then
25871   ac_cv_search_opendir=$ac_res
25872 else
25873   echo "$as_me: failed program was:" >&5
25874 sed 's/^/| /' conftest.$ac_ext >&5
25875
25876
25877 fi
25878
25879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25880       conftest$ac_exeext
25881   if test "${ac_cv_search_opendir+set}" = set; then
25882   break
25883 fi
25884 done
25885 if test "${ac_cv_search_opendir+set}" = set; then
25886   :
25887 else
25888   ac_cv_search_opendir=no
25889 fi
25890 rm conftest.$ac_ext
25891 LIBS=$ac_func_search_save_LIBS
25892 fi
25893 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25894 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25895 ac_res=$ac_cv_search_opendir
25896 if test "$ac_res" != no; then
25897   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25898
25899 fi
25900
25901 fi
25902
25903
25904
25905
25906
25907
25908
25909
25910 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25911 do
25912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25913 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25916   echo $ECHO_N "(cached) $ECHO_C" >&6
25917 else
25918   cat >conftest.$ac_ext <<_ACEOF
25919 /* confdefs.h.  */
25920 _ACEOF
25921 cat confdefs.h >>conftest.$ac_ext
25922 cat >>conftest.$ac_ext <<_ACEOF
25923 /* end confdefs.h.  */
25924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25925    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25926 #define $ac_func innocuous_$ac_func
25927
25928 /* System header to define __stub macros and hopefully few prototypes,
25929     which can conflict with char $ac_func (); below.
25930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25931     <limits.h> exists even on freestanding compilers.  */
25932
25933 #ifdef __STDC__
25934 # include <limits.h>
25935 #else
25936 # include <assert.h>
25937 #endif
25938
25939 #undef $ac_func
25940
25941 /* Override any GCC internal prototype to avoid an error.
25942    Use char because int might match the return type of a GCC
25943    builtin and then its argument prototype would still apply.  */
25944 #ifdef __cplusplus
25945 extern "C"
25946 #endif
25947 char $ac_func ();
25948 /* The GNU C library defines this for functions which it implements
25949     to always fail with ENOSYS.  Some functions are actually named
25950     something starting with __ and the normal name is an alias.  */
25951 #if defined __stub_$ac_func || defined __stub___$ac_func
25952 choke me
25953 #endif
25954
25955 int
25956 main ()
25957 {
25958 return $ac_func ();
25959   ;
25960   return 0;
25961 }
25962 _ACEOF
25963 rm -f conftest.$ac_objext conftest$ac_exeext
25964 if { (ac_try="$ac_link"
25965 case "(($ac_try" in
25966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25967   *) ac_try_echo=$ac_try;;
25968 esac
25969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25970   (eval "$ac_link") 2>conftest.er1
25971   ac_status=$?
25972   grep -v '^ *+' conftest.er1 >conftest.err
25973   rm -f conftest.er1
25974   cat conftest.err >&5
25975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976   (exit $ac_status); } && {
25977          test -z "$ac_c_werror_flag" ||
25978          test ! -s conftest.err
25979        } && test -s conftest$ac_exeext &&
25980        $as_test_x conftest$ac_exeext; then
25981   eval "$as_ac_var=yes"
25982 else
25983   echo "$as_me: failed program was:" >&5
25984 sed 's/^/| /' conftest.$ac_ext >&5
25985
25986         eval "$as_ac_var=no"
25987 fi
25988
25989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25990       conftest$ac_exeext conftest.$ac_ext
25991 fi
25992 ac_res=`eval echo '${'$as_ac_var'}'`
25993                { echo "$as_me:$LINENO: result: $ac_res" >&5
25994 echo "${ECHO_T}$ac_res" >&6; }
25995 if test `eval echo '${'$as_ac_var'}'` = yes; then
25996   cat >>confdefs.h <<_ACEOF
25997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25998 _ACEOF
25999
26000 fi
26001 done
26002
26003
26004
26005 for ac_func in nanosleep nl_langinfo
26006 do
26007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26008 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26010 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26011   echo $ECHO_N "(cached) $ECHO_C" >&6
26012 else
26013   cat >conftest.$ac_ext <<_ACEOF
26014 /* confdefs.h.  */
26015 _ACEOF
26016 cat confdefs.h >>conftest.$ac_ext
26017 cat >>conftest.$ac_ext <<_ACEOF
26018 /* end confdefs.h.  */
26019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26020    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26021 #define $ac_func innocuous_$ac_func
26022
26023 /* System header to define __stub macros and hopefully few prototypes,
26024     which can conflict with char $ac_func (); below.
26025     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26026     <limits.h> exists even on freestanding compilers.  */
26027
26028 #ifdef __STDC__
26029 # include <limits.h>
26030 #else
26031 # include <assert.h>
26032 #endif
26033
26034 #undef $ac_func
26035
26036 /* Override any GCC internal prototype to avoid an error.
26037    Use char because int might match the return type of a GCC
26038    builtin and then its argument prototype would still apply.  */
26039 #ifdef __cplusplus
26040 extern "C"
26041 #endif
26042 char $ac_func ();
26043 /* The GNU C library defines this for functions which it implements
26044     to always fail with ENOSYS.  Some functions are actually named
26045     something starting with __ and the normal name is an alias.  */
26046 #if defined __stub_$ac_func || defined __stub___$ac_func
26047 choke me
26048 #endif
26049
26050 int
26051 main ()
26052 {
26053 return $ac_func ();
26054   ;
26055   return 0;
26056 }
26057 _ACEOF
26058 rm -f conftest.$ac_objext conftest$ac_exeext
26059 if { (ac_try="$ac_link"
26060 case "(($ac_try" in
26061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26062   *) ac_try_echo=$ac_try;;
26063 esac
26064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26065   (eval "$ac_link") 2>conftest.er1
26066   ac_status=$?
26067   grep -v '^ *+' conftest.er1 >conftest.err
26068   rm -f conftest.er1
26069   cat conftest.err >&5
26070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26071   (exit $ac_status); } && {
26072          test -z "$ac_c_werror_flag" ||
26073          test ! -s conftest.err
26074        } && test -s conftest$ac_exeext &&
26075        $as_test_x conftest$ac_exeext; then
26076   eval "$as_ac_var=yes"
26077 else
26078   echo "$as_me: failed program was:" >&5
26079 sed 's/^/| /' conftest.$ac_ext >&5
26080
26081         eval "$as_ac_var=no"
26082 fi
26083
26084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26085       conftest$ac_exeext conftest.$ac_ext
26086 fi
26087 ac_res=`eval echo '${'$as_ac_var'}'`
26088                { echo "$as_me:$LINENO: result: $ac_res" >&5
26089 echo "${ECHO_T}$ac_res" >&6; }
26090 if test `eval echo '${'$as_ac_var'}'` = yes; then
26091   cat >>confdefs.h <<_ACEOF
26092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26093 _ACEOF
26094
26095 fi
26096 done
26097
26098
26099 for ac_header in varargs.h
26100 do
26101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26103   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26106   echo $ECHO_N "(cached) $ECHO_C" >&6
26107 fi
26108 ac_res=`eval echo '${'$as_ac_Header'}'`
26109                { echo "$as_me:$LINENO: result: $ac_res" >&5
26110 echo "${ECHO_T}$ac_res" >&6; }
26111 else
26112   # Is the header compilable?
26113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26115 cat >conftest.$ac_ext <<_ACEOF
26116 /* confdefs.h.  */
26117 _ACEOF
26118 cat confdefs.h >>conftest.$ac_ext
26119 cat >>conftest.$ac_ext <<_ACEOF
26120 /* end confdefs.h.  */
26121 $ac_includes_default
26122 #include <$ac_header>
26123 _ACEOF
26124 rm -f conftest.$ac_objext
26125 if { (ac_try="$ac_compile"
26126 case "(($ac_try" in
26127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26128   *) ac_try_echo=$ac_try;;
26129 esac
26130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26131   (eval "$ac_compile") 2>conftest.er1
26132   ac_status=$?
26133   grep -v '^ *+' conftest.er1 >conftest.err
26134   rm -f conftest.er1
26135   cat conftest.err >&5
26136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26137   (exit $ac_status); } && {
26138          test -z "$ac_c_werror_flag" ||
26139          test ! -s conftest.err
26140        } && test -s conftest.$ac_objext; then
26141   ac_header_compiler=yes
26142 else
26143   echo "$as_me: failed program was:" >&5
26144 sed 's/^/| /' conftest.$ac_ext >&5
26145
26146         ac_header_compiler=no
26147 fi
26148
26149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26151 echo "${ECHO_T}$ac_header_compiler" >&6; }
26152
26153 # Is the header present?
26154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26156 cat >conftest.$ac_ext <<_ACEOF
26157 /* confdefs.h.  */
26158 _ACEOF
26159 cat confdefs.h >>conftest.$ac_ext
26160 cat >>conftest.$ac_ext <<_ACEOF
26161 /* end confdefs.h.  */
26162 #include <$ac_header>
26163 _ACEOF
26164 if { (ac_try="$ac_cpp conftest.$ac_ext"
26165 case "(($ac_try" in
26166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26167   *) ac_try_echo=$ac_try;;
26168 esac
26169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26170   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26171   ac_status=$?
26172   grep -v '^ *+' conftest.er1 >conftest.err
26173   rm -f conftest.er1
26174   cat conftest.err >&5
26175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176   (exit $ac_status); } >/dev/null && {
26177          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26178          test ! -s conftest.err
26179        }; then
26180   ac_header_preproc=yes
26181 else
26182   echo "$as_me: failed program was:" >&5
26183 sed 's/^/| /' conftest.$ac_ext >&5
26184
26185   ac_header_preproc=no
26186 fi
26187
26188 rm -f conftest.err conftest.$ac_ext
26189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26190 echo "${ECHO_T}$ac_header_preproc" >&6; }
26191
26192 # So?  What about this header?
26193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26194   yes:no: )
26195     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26197     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26199     ac_header_preproc=yes
26200     ;;
26201   no:yes:* )
26202     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26204     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26205 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26206     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26208     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26209 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26210     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26212     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26214
26215     ;;
26216 esac
26217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26220   echo $ECHO_N "(cached) $ECHO_C" >&6
26221 else
26222   eval "$as_ac_Header=\$ac_header_preproc"
26223 fi
26224 ac_res=`eval echo '${'$as_ac_Header'}'`
26225                { echo "$as_me:$LINENO: result: $ac_res" >&5
26226 echo "${ECHO_T}$ac_res" >&6; }
26227
26228 fi
26229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26230   cat >>confdefs.h <<_ACEOF
26231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26232 _ACEOF
26233
26234 fi
26235
26236 done
26237
26238
26239
26240 { echo "$as_me:$LINENO: checking for Python support" >&5
26241 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26242
26243 # Check whether --with-python was given.
26244 if test "${with_python+set}" = set; then
26245   withval=$with_python;
26246        PYTHON_INCDIR=
26247        PYTHON_LIBS=
26248        if test "$withval" != "no"; then
26249           if test "$withval" = "yes"; then
26250              if test -e /usr/bin/python-config ; then
26251                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26252                 PYTHON_LIBS=`/usr/bin/python-config --libs`
26253              else
26254                 for python_root in /usr /usr/local /usr/sfw; do
26255                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26256                       if test -f $python_root/include/${ver}/Python.h; then
26257                          PYTHON_INCDIR=-I$python_root/include/${ver}
26258                          if test -d $python_root/lib64/${ver}/config; then
26259                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26260                          else
26261                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26262                          fi
26263                          break
26264                       fi
26265                    done
26266                 done
26267
26268                 if test x$PYTHON_INCDIR = x; then
26269                    if test -f $prefix/include/Python.h; then
26270                       PYTHON_INCDIR=-I$prefix/include
26271                       if test -d $prefix/lib64/config; then
26272                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26273                       else
26274                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
26275                       fi
26276                    else
26277                       { echo "$as_me:$LINENO: result: no" >&5
26278 echo "${ECHO_T}no" >&6; }
26279                       { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26280 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26281    { (exit 1); exit 1; }; }
26282                    fi
26283                 fi
26284              fi
26285           else
26286              if test -e $withval/bin/python-config ; then
26287                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26288                 PYTHON_LIBS=`$withval/bin/python-config --libs`
26289              elif test -f $withval/Python.h; then
26290                 PYTHON_INCDIR=-I$withval
26291                 PYTHON_LIBS="-L$withval/config -lpython"
26292              elif test -f $withval/include/Python.h; then
26293                 PYTHON_INCDIR=-I$withval/include
26294                 if test -d $withval/lib64/config; then
26295                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26296                 else
26297                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26298                 fi
26299              elif test -f $withval/include/python/Python.h; then
26300                 PYTHON_INCDIR=-I$withval/include/python
26301                 if test -d $withval/lib64/python/config; then
26302                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26303                 else
26304                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26305                 fi
26306              else
26307                 { echo "$as_me:$LINENO: result: no" >&5
26308 echo "${ECHO_T}no" >&6; }
26309                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26310 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26311    { (exit 1); exit 1; }; }
26312              fi
26313           fi
26314
26315           cat >>confdefs.h <<\_ACEOF
26316 #define HAVE_PYTHON 1
26317 _ACEOF
26318
26319           { echo "$as_me:$LINENO: result: yes" >&5
26320 echo "${ECHO_T}yes" >&6; }
26321           support_python=yes
26322           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26323 echo "$as_me: checking for more Python libs" >&6;}
26324           saved_LIBS="$LIBS"; LIBS=
26325           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26326 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26327 if test "${ac_cv_search_shm_open+set}" = set; then
26328   echo $ECHO_N "(cached) $ECHO_C" >&6
26329 else
26330   ac_func_search_save_LIBS=$LIBS
26331 cat >conftest.$ac_ext <<_ACEOF
26332 /* confdefs.h.  */
26333 _ACEOF
26334 cat confdefs.h >>conftest.$ac_ext
26335 cat >>conftest.$ac_ext <<_ACEOF
26336 /* end confdefs.h.  */
26337
26338 /* Override any GCC internal prototype to avoid an error.
26339    Use char because int might match the return type of a GCC
26340    builtin and then its argument prototype would still apply.  */
26341 #ifdef __cplusplus
26342 extern "C"
26343 #endif
26344 char shm_open ();
26345 int
26346 main ()
26347 {
26348 return shm_open ();
26349   ;
26350   return 0;
26351 }
26352 _ACEOF
26353 for ac_lib in '' rt; do
26354   if test -z "$ac_lib"; then
26355     ac_res="none required"
26356   else
26357     ac_res=-l$ac_lib
26358     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26359   fi
26360   rm -f conftest.$ac_objext conftest$ac_exeext
26361 if { (ac_try="$ac_link"
26362 case "(($ac_try" in
26363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26364   *) ac_try_echo=$ac_try;;
26365 esac
26366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26367   (eval "$ac_link") 2>conftest.er1
26368   ac_status=$?
26369   grep -v '^ *+' conftest.er1 >conftest.err
26370   rm -f conftest.er1
26371   cat conftest.err >&5
26372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26373   (exit $ac_status); } && {
26374          test -z "$ac_c_werror_flag" ||
26375          test ! -s conftest.err
26376        } && test -s conftest$ac_exeext &&
26377        $as_test_x conftest$ac_exeext; then
26378   ac_cv_search_shm_open=$ac_res
26379 else
26380   echo "$as_me: failed program was:" >&5
26381 sed 's/^/| /' conftest.$ac_ext >&5
26382
26383
26384 fi
26385
26386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26387       conftest$ac_exeext
26388   if test "${ac_cv_search_shm_open+set}" = set; then
26389   break
26390 fi
26391 done
26392 if test "${ac_cv_search_shm_open+set}" = set; then
26393   :
26394 else
26395   ac_cv_search_shm_open=no
26396 fi
26397 rm conftest.$ac_ext
26398 LIBS=$ac_func_search_save_LIBS
26399 fi
26400 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26401 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26402 ac_res=$ac_cv_search_shm_open
26403 if test "$ac_res" != no; then
26404   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26405
26406 fi
26407
26408
26409 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26410 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26411 if test "${ac_cv_lib_util_openpty+set}" = set; then
26412   echo $ECHO_N "(cached) $ECHO_C" >&6
26413 else
26414   ac_check_lib_save_LIBS=$LIBS
26415 LIBS="-lutil  $LIBS"
26416 cat >conftest.$ac_ext <<_ACEOF
26417 /* confdefs.h.  */
26418 _ACEOF
26419 cat confdefs.h >>conftest.$ac_ext
26420 cat >>conftest.$ac_ext <<_ACEOF
26421 /* end confdefs.h.  */
26422
26423 /* Override any GCC internal prototype to avoid an error.
26424    Use char because int might match the return type of a GCC
26425    builtin and then its argument prototype would still apply.  */
26426 #ifdef __cplusplus
26427 extern "C"
26428 #endif
26429 char openpty ();
26430 int
26431 main ()
26432 {
26433 return openpty ();
26434   ;
26435   return 0;
26436 }
26437 _ACEOF
26438 rm -f conftest.$ac_objext conftest$ac_exeext
26439 if { (ac_try="$ac_link"
26440 case "(($ac_try" in
26441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26442   *) ac_try_echo=$ac_try;;
26443 esac
26444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26445   (eval "$ac_link") 2>conftest.er1
26446   ac_status=$?
26447   grep -v '^ *+' conftest.er1 >conftest.err
26448   rm -f conftest.er1
26449   cat conftest.err >&5
26450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26451   (exit $ac_status); } && {
26452          test -z "$ac_c_werror_flag" ||
26453          test ! -s conftest.err
26454        } && test -s conftest$ac_exeext &&
26455        $as_test_x conftest$ac_exeext; then
26456   ac_cv_lib_util_openpty=yes
26457 else
26458   echo "$as_me: failed program was:" >&5
26459 sed 's/^/| /' conftest.$ac_ext >&5
26460
26461         ac_cv_lib_util_openpty=no
26462 fi
26463
26464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26465       conftest$ac_exeext conftest.$ac_ext
26466 LIBS=$ac_check_lib_save_LIBS
26467 fi
26468 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26469 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26470 if test $ac_cv_lib_util_openpty = yes; then
26471   cat >>confdefs.h <<_ACEOF
26472 #define HAVE_LIBUTIL 1
26473 _ACEOF
26474
26475   LIBS="-lutil $LIBS"
26476
26477 fi
26478
26479           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26480           LIBS="$saved_LIBS"
26481        else
26482           { echo "$as_me:$LINENO: result: no" >&5
26483 echo "${ECHO_T}no" >&6; }
26484        fi
26485
26486 else
26487
26488        { echo "$as_me:$LINENO: result: no" >&5
26489 echo "${ECHO_T}no" >&6; }
26490
26491
26492 fi
26493
26494
26495
26496
26497 { echo "$as_me:$LINENO: checking for socket" >&5
26498 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26499 if test "${ac_cv_func_socket+set}" = set; then
26500   echo $ECHO_N "(cached) $ECHO_C" >&6
26501 else
26502   cat >conftest.$ac_ext <<_ACEOF
26503 /* confdefs.h.  */
26504 _ACEOF
26505 cat confdefs.h >>conftest.$ac_ext
26506 cat >>conftest.$ac_ext <<_ACEOF
26507 /* end confdefs.h.  */
26508 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26509    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26510 #define socket innocuous_socket
26511
26512 /* System header to define __stub macros and hopefully few prototypes,
26513     which can conflict with char socket (); below.
26514     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26515     <limits.h> exists even on freestanding compilers.  */
26516
26517 #ifdef __STDC__
26518 # include <limits.h>
26519 #else
26520 # include <assert.h>
26521 #endif
26522
26523 #undef socket
26524
26525 /* Override any GCC internal prototype to avoid an error.
26526    Use char because int might match the return type of a GCC
26527    builtin and then its argument prototype would still apply.  */
26528 #ifdef __cplusplus
26529 extern "C"
26530 #endif
26531 char socket ();
26532 /* The GNU C library defines this for functions which it implements
26533     to always fail with ENOSYS.  Some functions are actually named
26534     something starting with __ and the normal name is an alias.  */
26535 #if defined __stub_socket || defined __stub___socket
26536 choke me
26537 #endif
26538
26539 int
26540 main ()
26541 {
26542 return socket ();
26543   ;
26544   return 0;
26545 }
26546 _ACEOF
26547 rm -f conftest.$ac_objext conftest$ac_exeext
26548 if { (ac_try="$ac_link"
26549 case "(($ac_try" in
26550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26551   *) ac_try_echo=$ac_try;;
26552 esac
26553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26554   (eval "$ac_link") 2>conftest.er1
26555   ac_status=$?
26556   grep -v '^ *+' conftest.er1 >conftest.err
26557   rm -f conftest.er1
26558   cat conftest.err >&5
26559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26560   (exit $ac_status); } && {
26561          test -z "$ac_c_werror_flag" ||
26562          test ! -s conftest.err
26563        } && test -s conftest$ac_exeext &&
26564        $as_test_x conftest$ac_exeext; then
26565   ac_cv_func_socket=yes
26566 else
26567   echo "$as_me: failed program was:" >&5
26568 sed 's/^/| /' conftest.$ac_ext >&5
26569
26570         ac_cv_func_socket=no
26571 fi
26572
26573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26574       conftest$ac_exeext conftest.$ac_ext
26575 fi
26576 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26577 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26578 if test $ac_cv_func_socket = yes; then
26579   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26580 echo "${ECHO_T}using libc's socket" >&6; }
26581 else
26582
26583 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26584 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26585 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26586   echo $ECHO_N "(cached) $ECHO_C" >&6
26587 else
26588   ac_check_lib_save_LIBS=$LIBS
26589 LIBS="-lxnet  $LIBS"
26590 cat >conftest.$ac_ext <<_ACEOF
26591 /* confdefs.h.  */
26592 _ACEOF
26593 cat confdefs.h >>conftest.$ac_ext
26594 cat >>conftest.$ac_ext <<_ACEOF
26595 /* end confdefs.h.  */
26596
26597 /* Override any GCC internal prototype to avoid an error.
26598    Use char because int might match the return type of a GCC
26599    builtin and then its argument prototype would still apply.  */
26600 #ifdef __cplusplus
26601 extern "C"
26602 #endif
26603 char socket ();
26604 int
26605 main ()
26606 {
26607 return socket ();
26608   ;
26609   return 0;
26610 }
26611 _ACEOF
26612 rm -f conftest.$ac_objext conftest$ac_exeext
26613 if { (ac_try="$ac_link"
26614 case "(($ac_try" in
26615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26616   *) ac_try_echo=$ac_try;;
26617 esac
26618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26619   (eval "$ac_link") 2>conftest.er1
26620   ac_status=$?
26621   grep -v '^ *+' conftest.er1 >conftest.err
26622   rm -f conftest.er1
26623   cat conftest.err >&5
26624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625   (exit $ac_status); } && {
26626          test -z "$ac_c_werror_flag" ||
26627          test ! -s conftest.err
26628        } && test -s conftest$ac_exeext &&
26629        $as_test_x conftest$ac_exeext; then
26630   ac_cv_lib_xnet_socket=yes
26631 else
26632   echo "$as_me: failed program was:" >&5
26633 sed 's/^/| /' conftest.$ac_ext >&5
26634
26635         ac_cv_lib_xnet_socket=no
26636 fi
26637
26638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26639       conftest$ac_exeext conftest.$ac_ext
26640 LIBS=$ac_check_lib_save_LIBS
26641 fi
26642 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26643 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26644 if test $ac_cv_lib_xnet_socket = yes; then
26645   cat >>confdefs.h <<_ACEOF
26646 #define HAVE_LIBXNET 1
26647 _ACEOF
26648
26649   LIBS="-lxnet $LIBS"
26650
26651 fi
26652
26653
26654 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26655 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26656 if test "${ac_cv_lib_socket_socket+set}" = set; then
26657   echo $ECHO_N "(cached) $ECHO_C" >&6
26658 else
26659   ac_check_lib_save_LIBS=$LIBS
26660 LIBS="-lsocket  $LIBS"
26661 cat >conftest.$ac_ext <<_ACEOF
26662 /* confdefs.h.  */
26663 _ACEOF
26664 cat confdefs.h >>conftest.$ac_ext
26665 cat >>conftest.$ac_ext <<_ACEOF
26666 /* end confdefs.h.  */
26667
26668 /* Override any GCC internal prototype to avoid an error.
26669    Use char because int might match the return type of a GCC
26670    builtin and then its argument prototype would still apply.  */
26671 #ifdef __cplusplus
26672 extern "C"
26673 #endif
26674 char socket ();
26675 int
26676 main ()
26677 {
26678 return socket ();
26679   ;
26680   return 0;
26681 }
26682 _ACEOF
26683 rm -f conftest.$ac_objext conftest$ac_exeext
26684 if { (ac_try="$ac_link"
26685 case "(($ac_try" in
26686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26687   *) ac_try_echo=$ac_try;;
26688 esac
26689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26690   (eval "$ac_link") 2>conftest.er1
26691   ac_status=$?
26692   grep -v '^ *+' conftest.er1 >conftest.err
26693   rm -f conftest.er1
26694   cat conftest.err >&5
26695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26696   (exit $ac_status); } && {
26697          test -z "$ac_c_werror_flag" ||
26698          test ! -s conftest.err
26699        } && test -s conftest$ac_exeext &&
26700        $as_test_x conftest$ac_exeext; then
26701   ac_cv_lib_socket_socket=yes
26702 else
26703   echo "$as_me: failed program was:" >&5
26704 sed 's/^/| /' conftest.$ac_ext >&5
26705
26706         ac_cv_lib_socket_socket=no
26707 fi
26708
26709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26710       conftest$ac_exeext conftest.$ac_ext
26711 LIBS=$ac_check_lib_save_LIBS
26712 fi
26713 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26714 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26715 if test $ac_cv_lib_socket_socket = yes; then
26716   cat >>confdefs.h <<_ACEOF
26717 #define HAVE_LIBSOCKET 1
26718 _ACEOF
26719
26720   LIBS="-lsocket $LIBS"
26721
26722 fi
26723
26724
26725 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26726 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26727 if test "${ac_cv_lib_inet_socket+set}" = set; then
26728   echo $ECHO_N "(cached) $ECHO_C" >&6
26729 else
26730   ac_check_lib_save_LIBS=$LIBS
26731 LIBS="-linet  $LIBS"
26732 cat >conftest.$ac_ext <<_ACEOF
26733 /* confdefs.h.  */
26734 _ACEOF
26735 cat confdefs.h >>conftest.$ac_ext
26736 cat >>conftest.$ac_ext <<_ACEOF
26737 /* end confdefs.h.  */
26738
26739 /* Override any GCC internal prototype to avoid an error.
26740    Use char because int might match the return type of a GCC
26741    builtin and then its argument prototype would still apply.  */
26742 #ifdef __cplusplus
26743 extern "C"
26744 #endif
26745 char socket ();
26746 int
26747 main ()
26748 {
26749 return socket ();
26750   ;
26751   return 0;
26752 }
26753 _ACEOF
26754 rm -f conftest.$ac_objext conftest$ac_exeext
26755 if { (ac_try="$ac_link"
26756 case "(($ac_try" in
26757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26758   *) ac_try_echo=$ac_try;;
26759 esac
26760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26761   (eval "$ac_link") 2>conftest.er1
26762   ac_status=$?
26763   grep -v '^ *+' conftest.er1 >conftest.err
26764   rm -f conftest.er1
26765   cat conftest.err >&5
26766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767   (exit $ac_status); } && {
26768          test -z "$ac_c_werror_flag" ||
26769          test ! -s conftest.err
26770        } && test -s conftest$ac_exeext &&
26771        $as_test_x conftest$ac_exeext; then
26772   ac_cv_lib_inet_socket=yes
26773 else
26774   echo "$as_me: failed program was:" >&5
26775 sed 's/^/| /' conftest.$ac_ext >&5
26776
26777         ac_cv_lib_inet_socket=no
26778 fi
26779
26780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26781       conftest$ac_exeext conftest.$ac_ext
26782 LIBS=$ac_check_lib_save_LIBS
26783 fi
26784 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26785 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26786 if test $ac_cv_lib_inet_socket = yes; then
26787   cat >>confdefs.h <<_ACEOF
26788 #define HAVE_LIBINET 1
26789 _ACEOF
26790
26791   LIBS="-linet $LIBS"
26792
26793 fi
26794
26795 fi
26796
26797
26798 TCPW_MSG="no"
26799 WRAPLIBS=""
26800
26801 # Check whether --with-tcp-wrappers was given.
26802 if test "${with_tcp_wrappers+set}" = set; then
26803   withval=$with_tcp_wrappers;
26804        if test "x$withval" != "xno" ; then
26805           saved_LIBS="$LIBS"
26806           LIBS="$saved_LIBS -lwrap"
26807           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26808 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26809 if test "${ac_cv_search_nanosleep+set}" = set; then
26810   echo $ECHO_N "(cached) $ECHO_C" >&6
26811 else
26812   ac_func_search_save_LIBS=$LIBS
26813 cat >conftest.$ac_ext <<_ACEOF
26814 /* confdefs.h.  */
26815 _ACEOF
26816 cat confdefs.h >>conftest.$ac_ext
26817 cat >>conftest.$ac_ext <<_ACEOF
26818 /* end confdefs.h.  */
26819
26820 /* Override any GCC internal prototype to avoid an error.
26821    Use char because int might match the return type of a GCC
26822    builtin and then its argument prototype would still apply.  */
26823 #ifdef __cplusplus
26824 extern "C"
26825 #endif
26826 char nanosleep ();
26827 int
26828 main ()
26829 {
26830 return nanosleep ();
26831   ;
26832   return 0;
26833 }
26834 _ACEOF
26835 for ac_lib in '' rt; do
26836   if test -z "$ac_lib"; then
26837     ac_res="none required"
26838   else
26839     ac_res=-l$ac_lib
26840     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26841   fi
26842   rm -f conftest.$ac_objext conftest$ac_exeext
26843 if { (ac_try="$ac_link"
26844 case "(($ac_try" in
26845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26846   *) ac_try_echo=$ac_try;;
26847 esac
26848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26849   (eval "$ac_link") 2>conftest.er1
26850   ac_status=$?
26851   grep -v '^ *+' conftest.er1 >conftest.err
26852   rm -f conftest.er1
26853   cat conftest.err >&5
26854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855   (exit $ac_status); } && {
26856          test -z "$ac_c_werror_flag" ||
26857          test ! -s conftest.err
26858        } && test -s conftest$ac_exeext &&
26859        $as_test_x conftest$ac_exeext; then
26860   ac_cv_search_nanosleep=$ac_res
26861 else
26862   echo "$as_me: failed program was:" >&5
26863 sed 's/^/| /' conftest.$ac_ext >&5
26864
26865
26866 fi
26867
26868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26869       conftest$ac_exeext
26870   if test "${ac_cv_search_nanosleep+set}" = set; then
26871   break
26872 fi
26873 done
26874 if test "${ac_cv_search_nanosleep+set}" = set; then
26875   :
26876 else
26877   ac_cv_search_nanosleep=no
26878 fi
26879 rm conftest.$ac_ext
26880 LIBS=$ac_func_search_save_LIBS
26881 fi
26882 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26883 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26884 ac_res=$ac_cv_search_nanosleep
26885 if test "$ac_res" != no; then
26886   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26887
26888 fi
26889
26890           { echo "$as_me:$LINENO: checking for libwrap" >&5
26891 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26892           cat >conftest.$ac_ext <<_ACEOF
26893 /* confdefs.h.  */
26894 _ACEOF
26895 cat confdefs.h >>conftest.$ac_ext
26896 cat >>conftest.$ac_ext <<_ACEOF
26897 /* end confdefs.h.  */
26898
26899                #include <sys/types.h>
26900                #include <tcpd.h>
26901                int deny_severity = 0;
26902                int allow_severity = 0;
26903                struct request_info *req;
26904
26905 int
26906 main ()
26907 {
26908
26909                 hosts_access(req);
26910
26911   ;
26912   return 0;
26913 }
26914 _ACEOF
26915 rm -f conftest.$ac_objext conftest$ac_exeext
26916 if { (ac_try="$ac_link"
26917 case "(($ac_try" in
26918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26919   *) ac_try_echo=$ac_try;;
26920 esac
26921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26922   (eval "$ac_link") 2>conftest.er1
26923   ac_status=$?
26924   grep -v '^ *+' conftest.er1 >conftest.err
26925   rm -f conftest.er1
26926   cat conftest.err >&5
26927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26928   (exit $ac_status); } && {
26929          test -z "$ac_c_werror_flag" ||
26930          test ! -s conftest.err
26931        } && test -s conftest$ac_exeext &&
26932        $as_test_x conftest$ac_exeext; then
26933
26934                  { echo "$as_me:$LINENO: result: yes" >&5
26935 echo "${ECHO_T}yes" >&6; }
26936
26937 cat >>confdefs.h <<\_ACEOF
26938 #define HAVE_LIBWRAP 1
26939 _ACEOF
26940
26941                  TCPW_MSG="yes"
26942                  LIBS="$saved_LIBS"
26943                  WRAPLIBS="-lwrap"
26944
26945 else
26946   echo "$as_me: failed program was:" >&5
26947 sed 's/^/| /' conftest.$ac_ext >&5
26948
26949
26950                  LIBS="$saved_LIBS -lwrap -lnsl"
26951                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26952                  cat >conftest.$ac_ext <<_ACEOF
26953 /* confdefs.h.  */
26954 _ACEOF
26955 cat confdefs.h >>conftest.$ac_ext
26956 cat >>conftest.$ac_ext <<_ACEOF
26957 /* end confdefs.h.  */
26958
26959                        #include <sys/types.h>
26960                        #include <tcpd.h>
26961                        int deny_severity = 0;
26962                        int allow_severity = 0;
26963                        struct request_info *req;
26964
26965 int
26966 main ()
26967 {
26968
26969                        hosts_access(req);
26970
26971   ;
26972   return 0;
26973 }
26974 _ACEOF
26975 rm -f conftest.$ac_objext conftest$ac_exeext
26976 if { (ac_try="$ac_link"
26977 case "(($ac_try" in
26978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26979   *) ac_try_echo=$ac_try;;
26980 esac
26981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26982   (eval "$ac_link") 2>conftest.er1
26983   ac_status=$?
26984   grep -v '^ *+' conftest.er1 >conftest.err
26985   rm -f conftest.er1
26986   cat conftest.err >&5
26987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26988   (exit $ac_status); } && {
26989          test -z "$ac_c_werror_flag" ||
26990          test ! -s conftest.err
26991        } && test -s conftest$ac_exeext &&
26992        $as_test_x conftest$ac_exeext; then
26993
26994                       { echo "$as_me:$LINENO: result: yes" >&5
26995 echo "${ECHO_T}yes" >&6; }
26996
26997 cat >>confdefs.h <<\_ACEOF
26998 #define HAVE_LIBWRAP 1
26999 _ACEOF
27000
27001                       TCPW_MSG="yes"
27002                       LIBS="$saved_LIBS"
27003                       WRAPLIBS="-lwrap"
27004
27005 else
27006   echo "$as_me: failed program was:" >&5
27007 sed 's/^/| /' conftest.$ac_ext >&5
27008
27009
27010                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
27011 echo "$as_me: error: *** libwrap missing" >&2;}
27012    { (exit 1); exit 1; }; }
27013
27014
27015 fi
27016
27017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27018       conftest$ac_exeext conftest.$ac_ext
27019
27020
27021 fi
27022
27023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27024       conftest$ac_exeext conftest.$ac_ext
27025        fi
27026
27027
27028 fi
27029
27030
27031 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
27032 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
27033
27034 # Check whether --with-openssl was given.
27035 if test "${with_openssl+set}" = set; then
27036   withval=$with_openssl;
27037         with_openssl_directory=${withval}
27038
27039
27040 fi
27041
27042
27043 if test "x$with_openssl_directory" != "xno"; then
27044    OPENSSL_LIBS="-lssl -lcrypto"
27045    OPENSSL_INC=""
27046
27047    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27048       #
27049       # Make sure the $with_openssl_directory also makes sense
27050       #
27051       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27052          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27053          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27054       fi
27055    fi
27056
27057    saved_LIBS="${LIBS}"
27058    saved_CFLAGS="${CFLAGS}"
27059    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27060    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27061
27062    cat >conftest.$ac_ext <<_ACEOF
27063 /* confdefs.h.  */
27064 _ACEOF
27065 cat confdefs.h >>conftest.$ac_ext
27066 cat >>conftest.$ac_ext <<_ACEOF
27067 /* end confdefs.h.  */
27068
27069           #include <openssl/ssl.h>
27070
27071 int
27072 main ()
27073 {
27074
27075            CRYPTO_set_id_callback(NULL);
27076
27077   ;
27078   return 0;
27079 }
27080 _ACEOF
27081 rm -f conftest.$ac_objext conftest$ac_exeext
27082 if { (ac_try="$ac_link"
27083 case "(($ac_try" in
27084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27085   *) ac_try_echo=$ac_try;;
27086 esac
27087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27088   (eval "$ac_link") 2>conftest.er1
27089   ac_status=$?
27090   grep -v '^ *+' conftest.er1 >conftest.err
27091   rm -f conftest.er1
27092   cat conftest.err >&5
27093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27094   (exit $ac_status); } && {
27095          test -z "$ac_c_werror_flag" ||
27096          test ! -s conftest.err
27097        } && test -s conftest$ac_exeext &&
27098        $as_test_x conftest$ac_exeext; then
27099
27100           support_tls="yes"
27101           support_crypto="yes"
27102
27103 else
27104   echo "$as_me: failed program was:" >&5
27105 sed 's/^/| /' conftest.$ac_ext >&5
27106
27107
27108           support_tls="no"
27109
27110
27111 fi
27112
27113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27114       conftest$ac_exeext conftest.$ac_ext
27115
27116    cat >conftest.$ac_ext <<_ACEOF
27117 /* confdefs.h.  */
27118 _ACEOF
27119 cat confdefs.h >>conftest.$ac_ext
27120 cat >>conftest.$ac_ext <<_ACEOF
27121 /* end confdefs.h.  */
27122
27123           #include <openssl/evp.h>
27124
27125 int
27126 main ()
27127 {
27128
27129           EVP_sha512();
27130
27131   ;
27132   return 0;
27133 }
27134 _ACEOF
27135 rm -f conftest.$ac_objext conftest$ac_exeext
27136 if { (ac_try="$ac_link"
27137 case "(($ac_try" in
27138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27139   *) ac_try_echo=$ac_try;;
27140 esac
27141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27142   (eval "$ac_link") 2>conftest.er1
27143   ac_status=$?
27144   grep -v '^ *+' conftest.er1 >conftest.err
27145   rm -f conftest.er1
27146   cat conftest.err >&5
27147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27148   (exit $ac_status); } && {
27149          test -z "$ac_c_werror_flag" ||
27150          test ! -s conftest.err
27151        } && test -s conftest$ac_exeext &&
27152        $as_test_x conftest$ac_exeext; then
27153
27154           ac_cv_openssl_sha2="yes"
27155
27156 else
27157   echo "$as_me: failed program was:" >&5
27158 sed 's/^/| /' conftest.$ac_ext >&5
27159
27160
27161           ac_cv_openssl_sha2="no"
27162
27163
27164 fi
27165
27166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27167       conftest$ac_exeext conftest.$ac_ext
27168
27169                cat >conftest.$ac_ext <<_ACEOF
27170 /* confdefs.h.  */
27171 _ACEOF
27172 cat confdefs.h >>conftest.$ac_ext
27173 cat >>conftest.$ac_ext <<_ACEOF
27174 /* end confdefs.h.  */
27175
27176           #include <openssl/evp.h>
27177
27178 int
27179 main ()
27180 {
27181
27182           EVP_aes_192_cbc();
27183
27184   ;
27185   return 0;
27186 }
27187 _ACEOF
27188 rm -f conftest.$ac_objext conftest$ac_exeext
27189 if { (ac_try="$ac_link"
27190 case "(($ac_try" in
27191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27192   *) ac_try_echo=$ac_try;;
27193 esac
27194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27195   (eval "$ac_link") 2>conftest.er1
27196   ac_status=$?
27197   grep -v '^ *+' conftest.er1 >conftest.err
27198   rm -f conftest.er1
27199   cat conftest.err >&5
27200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201   (exit $ac_status); } && {
27202          test -z "$ac_c_werror_flag" ||
27203          test ! -s conftest.err
27204        } && test -s conftest$ac_exeext &&
27205        $as_test_x conftest$ac_exeext; then
27206
27207           ac_cv_openssl_export="no"
27208
27209 else
27210   echo "$as_me: failed program was:" >&5
27211 sed 's/^/| /' conftest.$ac_ext >&5
27212
27213
27214           ac_cv_openssl_export="yes"
27215
27216
27217 fi
27218
27219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27220       conftest$ac_exeext conftest.$ac_ext
27221
27222    LIBS="${saved_LIBS}"
27223    CFLAGS="${saved_CFLAGS}"
27224
27225    if test "$support_tls" = "yes"; then
27226
27227 cat >>confdefs.h <<\_ACEOF
27228 #define HAVE_OPENSSL 1
27229 _ACEOF
27230
27231
27232 cat >>confdefs.h <<\_ACEOF
27233 #define HAVE_TLS 1
27234 _ACEOF
27235
27236
27237 cat >>confdefs.h <<\_ACEOF
27238 #define HAVE_CRYPTO 1
27239 _ACEOF
27240
27241    fi
27242
27243    if test "$ac_cv_openssl_sha2" = "yes"; then
27244
27245 cat >>confdefs.h <<\_ACEOF
27246 #define HAVE_SHA2 1
27247 _ACEOF
27248
27249    fi
27250
27251    if test "$ac_cv_openssl_export" = "yes"; then
27252
27253 cat >>confdefs.h <<\_ACEOF
27254 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27255 _ACEOF
27256
27257    fi
27258 else
27259    support_tls="no"
27260    support_crypto="no"
27261    OPENSSL_LIBS=""
27262    OPENSSL_INC=""
27263 fi
27264
27265 if test "$support_tls" = "no"; then
27266    OPENSSL_LIBS=""
27267    OPENSSL_INC=""
27268 fi
27269
27270 { echo "$as_me:$LINENO: result: $support_tls" >&5
27271 echo "${ECHO_T}$support_tls" >&6; }
27272
27273
27274
27275 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27276 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27277 if test "${ac_cv_search_dlopen+set}" = set; then
27278   echo $ECHO_N "(cached) $ECHO_C" >&6
27279 else
27280   ac_func_search_save_LIBS=$LIBS
27281 cat >conftest.$ac_ext <<_ACEOF
27282 /* confdefs.h.  */
27283 _ACEOF
27284 cat confdefs.h >>conftest.$ac_ext
27285 cat >>conftest.$ac_ext <<_ACEOF
27286 /* end confdefs.h.  */
27287
27288 /* Override any GCC internal prototype to avoid an error.
27289    Use char because int might match the return type of a GCC
27290    builtin and then its argument prototype would still apply.  */
27291 #ifdef __cplusplus
27292 extern "C"
27293 #endif
27294 char dlopen ();
27295 int
27296 main ()
27297 {
27298 return dlopen ();
27299   ;
27300   return 0;
27301 }
27302 _ACEOF
27303 for ac_lib in '' dl; do
27304   if test -z "$ac_lib"; then
27305     ac_res="none required"
27306   else
27307     ac_res=-l$ac_lib
27308     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27309   fi
27310   rm -f conftest.$ac_objext conftest$ac_exeext
27311 if { (ac_try="$ac_link"
27312 case "(($ac_try" in
27313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27314   *) ac_try_echo=$ac_try;;
27315 esac
27316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27317   (eval "$ac_link") 2>conftest.er1
27318   ac_status=$?
27319   grep -v '^ *+' conftest.er1 >conftest.err
27320   rm -f conftest.er1
27321   cat conftest.err >&5
27322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323   (exit $ac_status); } && {
27324          test -z "$ac_c_werror_flag" ||
27325          test ! -s conftest.err
27326        } && test -s conftest$ac_exeext &&
27327        $as_test_x conftest$ac_exeext; then
27328   ac_cv_search_dlopen=$ac_res
27329 else
27330   echo "$as_me: failed program was:" >&5
27331 sed 's/^/| /' conftest.$ac_ext >&5
27332
27333
27334 fi
27335
27336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27337       conftest$ac_exeext
27338   if test "${ac_cv_search_dlopen+set}" = set; then
27339   break
27340 fi
27341 done
27342 if test "${ac_cv_search_dlopen+set}" = set; then
27343   :
27344 else
27345   ac_cv_search_dlopen=no
27346 fi
27347 rm conftest.$ac_ext
27348 LIBS=$ac_func_search_save_LIBS
27349 fi
27350 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27351 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27352 ac_res=$ac_cv_search_dlopen
27353 if test "$ac_res" != no; then
27354   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27355
27356 fi
27357
27358
27359 working_dir=`eval echo ${prefix}/var/bacula/working`
27360
27361 # Check whether --with-working-dir was given.
27362 if test "${with_working_dir+set}" = set; then
27363   withval=$with_working_dir;
27364        if test "x$withval" != "xno" ; then
27365          working_dir=$withval
27366        fi
27367
27368
27369 fi
27370
27371
27372
27373
27374 archivedir=/tmp
27375
27376 # Check whether --with-archivedir was given.
27377 if test "${with_archivedir+set}" = set; then
27378   withval=$with_archivedir;
27379        if test "x$withval" != "xno" ; then
27380           archivedir=$withval
27381        fi
27382
27383
27384 fi
27385
27386
27387
27388
27389 basename=`hostname`
27390
27391 # Check whether --with-basename was given.
27392 if test "${with_basename+set}" = set; then
27393   withval=$with_basename;
27394        if test "x$withval" != "xno" ; then
27395           basename=$withval
27396        fi
27397
27398
27399 fi
27400
27401
27402
27403
27404 hostname=`uname -n | cut -d '.' -f 1`
27405 if test x${hostname} = x ; then
27406   hostname="localhost"
27407 fi
27408
27409 # Check whether --with-hostname was given.
27410 if test "${with_hostname+set}" = set; then
27411   withval=$with_hostname;
27412        if test "x$withval" != "xno" ; then
27413          hostname=$withval
27414        fi
27415
27416
27417 fi
27418
27419
27420
27421
27422
27423 scriptdir=`eval echo ${sysconfdir}`
27424
27425 # Check whether --with-scriptdir was given.
27426 if test "${with_scriptdir+set}" = set; then
27427   withval=$with_scriptdir;
27428        if test "x$withval" != "xno" ; then
27429           scriptdir=$withval
27430        fi
27431
27432
27433 fi
27434
27435
27436
27437
27438
27439 bsrdir=/tmp
27440
27441 # Check whether --with-bsrdir was given.
27442 if test "${with_bsrdir+set}" = set; then
27443   withval=$with_bsrdir;
27444        if test "x$withval" != "xno" ; then
27445           bsrdir=$withval
27446        fi
27447
27448
27449 fi
27450
27451
27452
27453
27454 logdir=/tmp
27455
27456 # Check whether --with-logdir was given.
27457 if test "${with_logdir+set}" = set; then
27458   withval=$with_logdir;
27459        if test "x$withval" != "xno" ; then
27460           logdir=$withval
27461        fi
27462
27463
27464 fi
27465
27466
27467
27468
27469
27470 # ------------------------------------------
27471 # Where to place plugindir (plugin files)
27472 # ------------------------------------------
27473 plugindir=`eval echo ${libdir}`
27474
27475 # Check whether --with-plugindir was given.
27476 if test "${with_plugindir+set}" = set; then
27477   withval=$with_plugindir;
27478        if test "x$withval" != "xno" ; then
27479           plugindir=$withval
27480        fi
27481
27482
27483 fi
27484
27485
27486
27487
27488 dump_email=root@localhost
27489
27490 # Check whether --with-dump-email was given.
27491 if test "${with_dump_email+set}" = set; then
27492   withval=$with_dump_email;
27493        if test "x$withval" != "xno" ; then
27494           dump_email=$withval
27495        fi
27496
27497
27498 fi
27499
27500
27501
27502
27503 job_email=root@localhost
27504
27505 # Check whether --with-job-email was given.
27506 if test "${with_job_email+set}" = set; then
27507   withval=$with_job_email;
27508        if test "x$withval" != "xno" ; then
27509           job_email=$withval
27510        fi
27511
27512
27513 fi
27514
27515
27516
27517
27518 smtp_host=localhost
27519
27520 # Check whether --with-smtp_host was given.
27521 if test "${with_smtp_host+set}" = set; then
27522   withval=$with_smtp_host;
27523        if test "x$withval" != "xno" ; then
27524           smtp_host=$withval
27525        fi
27526
27527
27528 fi
27529
27530
27531
27532
27533 piddir=/var/run
27534
27535 # Check whether --with-pid-dir was given.
27536 if test "${with_pid_dir+set}" = set; then
27537   withval=$with_pid_dir;
27538        if test "x$withval" != "xno" ; then
27539           piddir=$withval
27540        fi
27541
27542
27543 fi
27544
27545
27546 cat >>confdefs.h <<_ACEOF
27547 #define _PATH_BACULA_PIDDIR "$piddir"
27548 _ACEOF
27549
27550
27551
27552 subsysdir=/var/run/subsys
27553 if test -d /var/run/subsys; then
27554    subsysdir=/var/run/subsys
27555 elif test -d /var/lock/subsys; then
27556    subsysdir=/var/lock/subsys
27557 else
27558    subsysdir=/var/run/subsys
27559 fi
27560
27561 # Check whether --with-subsys-dir was given.
27562 if test "${with_subsys_dir+set}" = set; then
27563   withval=$with_subsys_dir;
27564        if test "x$withval" != "xno" ; then
27565           subsysdir=$withval
27566        fi
27567
27568
27569 fi
27570
27571
27572
27573
27574 baseport=9101
27575
27576 # Check whether --with-baseport was given.
27577 if test "${with_baseport+set}" = set; then
27578   withval=$with_baseport;
27579        if test "x$withval" != "xno" ; then
27580           baseport=$withval
27581        fi
27582
27583
27584 fi
27585
27586
27587
27588 dir_port=`expr $baseport`
27589 fd_port=`expr $baseport + 1`
27590 sd_port=`expr $fd_port + 1`
27591
27592
27593
27594
27595
27596 dir_password=
27597
27598 # Check whether --with-dir-password was given.
27599 if test "${with_dir_password+set}" = set; then
27600   withval=$with_dir_password;
27601        if test "x$withval" != "xno" ; then
27602           dir_password=$withval
27603        fi
27604
27605
27606 fi
27607
27608
27609 if test "x$dir_password" = "x" ; then
27610    if test "x$OPENSSL" = "xnone" ; then
27611       key=`autoconf/randpass 33`
27612    else
27613       key=`openssl rand -base64 33`
27614    fi
27615    dir_password=$key
27616 fi
27617
27618 fd_password=
27619
27620 # Check whether --with-fd-password was given.
27621 if test "${with_fd_password+set}" = set; then
27622   withval=$with_fd_password;
27623        if test "x$withval" != "xno" ; then
27624           fd_password=$withval
27625        fi
27626
27627
27628 fi
27629
27630
27631 if test "x$fd_password" = "x" ; then
27632    if test "x$OPENSSL" = "xnone" ; then
27633       key=`autoconf/randpass 37`
27634    else
27635       key=`openssl rand -base64 33`
27636    fi
27637    fd_password=$key
27638 fi
27639
27640 sd_password=
27641
27642 # Check whether --with-sd-password was given.
27643 if test "${with_sd_password+set}" = set; then
27644   withval=$with_sd_password;
27645        if test "x$withval" != "xno" ; then
27646           sd_password=$withval
27647        fi
27648
27649
27650 fi
27651
27652
27653 if test "x$sd_password" = "x" ; then
27654    if test "x$OPENSSL" = "xnone" ; then
27655       key=`autoconf/randpass 41`
27656    else
27657       key=`openssl rand -base64 33`
27658    fi
27659    sd_password=$key
27660 fi
27661
27662 mon_dir_password=
27663
27664 # Check whether --with-mon-dir-password was given.
27665 if test "${with_mon_dir_password+set}" = set; then
27666   withval=$with_mon_dir_password;
27667        if test "x$withval" != "xno" ; then
27668           mon_dir_password=$withval
27669        fi
27670
27671
27672 fi
27673
27674
27675 if test "x$mon_dir_password" = "x" ; then
27676    if test "x$OPENSSL" = "xnone" ; then
27677       key=`autoconf/randpass 33`
27678    else
27679       key=`openssl rand -base64 33`
27680    fi
27681    mon_dir_password=$key
27682 fi
27683
27684 mon_fd_password=
27685
27686 # Check whether --with-mon-fd-password was given.
27687 if test "${with_mon_fd_password+set}" = set; then
27688   withval=$with_mon_fd_password;
27689        if test "x$withval" != "xno" ; then
27690           mon_fd_password=$withval
27691        fi
27692
27693
27694 fi
27695
27696
27697 if test "x$mon_fd_password" = "x" ; then
27698    if test "x$OPENSSL" = "xnone" ; then
27699       key=`autoconf/randpass 37`
27700    else
27701       key=`openssl rand -base64 33`
27702    fi
27703    mon_fd_password=$key
27704 fi
27705
27706 mon_sd_password=
27707
27708 # Check whether --with-mon-sd-password was given.
27709 if test "${with_mon_sd_password+set}" = set; then
27710   withval=$with_mon_sd_password;
27711        if test "x$withval" != "xno" ; then
27712           mon_sd_password=$withval
27713        fi
27714
27715
27716 fi
27717
27718
27719 if test "x$mon_sd_password" = "x" ; then
27720    if test "x$OPENSSL" = "xnone" ; then
27721       key=`autoconf/randpass 41`
27722    else
27723       key=`openssl rand -base64 33`
27724    fi
27725    mon_sd_password=$key
27726 fi
27727
27728
27729
27730
27731
27732
27733
27734
27735 db_name=bacula
27736
27737 # Check whether --with-db_name was given.
27738 if test "${with_db_name+set}" = set; then
27739   withval=$with_db_name;
27740        if test "x$withval" != "x" ; then
27741           db_name=$withval
27742        fi
27743
27744
27745 fi
27746
27747
27748
27749 db_user=bacula
27750
27751 # Check whether --with-db_user was given.
27752 if test "${with_db_user+set}" = set; then
27753   withval=$with_db_user;
27754        if test "x$withval" != "x" ; then
27755           db_user=$withval
27756        fi
27757
27758
27759 fi
27760
27761
27762
27763 db_password=
27764
27765 # Check whether --with-db_password was given.
27766 if test "${with_db_password+set}" = set; then
27767   withval=$with_db_password;
27768        if test "x$withval" != "x" ; then
27769           db_password=$withval
27770        fi
27771
27772
27773 fi
27774
27775
27776
27777 db_port=" "
27778
27779 # Check whether --with-db_port was given.
27780 if test "${with_db_port+set}" = set; then
27781   withval=$with_db_port;
27782        if test "x$withval" != "x" ; then
27783           db_port=$withval
27784        fi
27785
27786
27787 fi
27788
27789
27790
27791 #
27792 # Handle users and groups for each daemon
27793 #
27794 dir_user=
27795
27796 # Check whether --with-dir_user was given.
27797 if test "${with_dir_user+set}" = set; then
27798   withval=$with_dir_user;
27799        if test "x$withval" != "x" ; then
27800            dir_user=$withval
27801        fi
27802
27803
27804 fi
27805
27806
27807 dir_group=
27808
27809 # Check whether --with-dir_group was given.
27810 if test "${with_dir_group+set}" = set; then
27811   withval=$with_dir_group;
27812        if test "x$withval" != "x" ; then
27813           dir_group=$withval
27814        fi
27815
27816
27817 fi
27818
27819
27820 sd_user=
27821
27822 # Check whether --with-sd_user was given.
27823 if test "${with_sd_user+set}" = set; then
27824   withval=$with_sd_user;
27825        if test "x$withval" != "x" ; then
27826           sd_user=$withval
27827        fi
27828
27829
27830 fi
27831
27832
27833 sd_group=
27834
27835 # Check whether --with-sd_group was given.
27836 if test "${with_sd_group+set}" = set; then
27837   withval=$with_sd_group;
27838        if test "x$withval" != "x" ; then
27839           sd_group=$withval
27840        fi
27841
27842
27843 fi
27844
27845
27846 fd_user=
27847
27848 # Check whether --with-fd_user was given.
27849 if test "${with_fd_user+set}" = set; then
27850   withval=$with_fd_user;
27851        if test "x$withval" != "x" ; then
27852           fd_user=$withval
27853        fi
27854
27855
27856 fi
27857
27858
27859 fd_group=
27860
27861 # Check whether --with-fd_group was given.
27862 if test "${with_fd_group+set}" = set; then
27863   withval=$with_fd_group;
27864        if test "x$withval" != "x" ; then
27865           fd_group=$withval
27866        fi
27867
27868
27869 fi
27870
27871
27872
27873
27874
27875
27876
27877
27878
27879 SBINPERM=0754
27880
27881 # Check whether --with-sbin-perm was given.
27882 if test "${with_sbin_perm+set}" = set; then
27883   withval=$with_sbin_perm;
27884        if test "x$withval" != "x" ; then
27885           SBINPERM=$withval
27886        fi
27887
27888
27889 fi
27890
27891
27892
27893
27894 SQL_LIB=
27895
27896 db_found=no
27897 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27898 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27899
27900 # Check whether --with-postgresql was given.
27901 if test "${with_postgresql+set}" = set; then
27902   withval=$with_postgresql;
27903   if test "$withval" != "no"; then
27904       if test "$db_found" = "yes"; then
27905           { echo "$as_me:$LINENO: result: error" >&5
27906 echo "${ECHO_T}error" >&6; }
27907           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27908 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27909    { (exit 1); exit 1; }; };
27910       fi
27911       if test "$withval" = "yes"; then
27912           PG_CONFIG=`which pg_config`
27913           if test -n "$PG_CONFIG";then
27914               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27915               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27916               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27917           elif test -f /usr/local/include/libpq-fe.h; then
27918               POSTGRESQL_INCDIR=/usr/local/include
27919               if test -d /usr/local/lib64; then
27920                  POSTGRESQL_LIBDIR=/usr/local/lib64
27921               else
27922                  POSTGRESQL_LIBDIR=/usr/local/lib
27923               fi
27924               POSTGRESQL_BINDIR=/usr/local/bin
27925           elif test -f /usr/include/libpq-fe.h; then
27926               POSTGRESQL_INCDIR=/usr/include
27927               if test -d /usr/lib64; then
27928                  POSTGRESQL_LIBDIR=/usr/lib64
27929               else
27930                  POSTGRESQL_LIBDIR=/usr/lib
27931               fi
27932               POSTGRESQL_BINDIR=/usr/bin
27933           elif test -f /usr/include/pgsql/libpq-fe.h; then
27934               POSTGRESQL_INCDIR=/usr/include/pgsql
27935               if test -d /usr/lib64/pgsql; then
27936                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27937               else
27938                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
27939               fi
27940               POSTGRESQL_BINDIR=/usr/bin
27941           elif test -f /usr/include/postgresql/libpq-fe.h; then
27942               POSTGRESQL_INCDIR=/usr/include/postgresql
27943               if test -d /usr/lib64/postgresql; then
27944                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27945               else
27946                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
27947               fi
27948               POSTGRESQL_BINDIR=/usr/bin
27949           else
27950               { echo "$as_me:$LINENO: result: no" >&5
27951 echo "${ECHO_T}no" >&6; }
27952               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27953 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27954    { (exit 1); exit 1; }; }
27955           fi
27956       elif test -f $withval/include/libpq-fe.h; then
27957           POSTGRESQL_INCDIR=$withval/include
27958           POSTGRESQL_LIBDIR=$withval/lib
27959           POSTGRESQL_BINDIR=$withval/bin
27960       elif test -f $withval/include/postgresql/libpq-fe.h; then
27961           POSTGRESQL_INCDIR=$withval/include/postgresql
27962      if test -d $withval/lib64; then
27963          POSTGRESQL_LIBDIR=$withval/lib64
27964      else
27965          POSTGRESQL_LIBDIR=$withval/lib
27966      fi
27967           POSTGRESQL_BINDIR=$withval/bin
27968       else
27969           { echo "$as_me:$LINENO: result: no" >&5
27970 echo "${ECHO_T}no" >&6; }
27971           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27972 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27973    { (exit 1); exit 1; }; }
27974       fi
27975       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27976       { echo "$as_me:$LINENO: checking for crypt" >&5
27977 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27978 if test "${ac_cv_func_crypt+set}" = set; then
27979   echo $ECHO_N "(cached) $ECHO_C" >&6
27980 else
27981   cat >conftest.$ac_ext <<_ACEOF
27982 /* confdefs.h.  */
27983 _ACEOF
27984 cat confdefs.h >>conftest.$ac_ext
27985 cat >>conftest.$ac_ext <<_ACEOF
27986 /* end confdefs.h.  */
27987 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27988    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27989 #define crypt innocuous_crypt
27990
27991 /* System header to define __stub macros and hopefully few prototypes,
27992     which can conflict with char crypt (); below.
27993     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27994     <limits.h> exists even on freestanding compilers.  */
27995
27996 #ifdef __STDC__
27997 # include <limits.h>
27998 #else
27999 # include <assert.h>
28000 #endif
28001
28002 #undef crypt
28003
28004 /* Override any GCC internal prototype to avoid an error.
28005    Use char because int might match the return type of a GCC
28006    builtin and then its argument prototype would still apply.  */
28007 #ifdef __cplusplus
28008 extern "C"
28009 #endif
28010 char crypt ();
28011 /* The GNU C library defines this for functions which it implements
28012     to always fail with ENOSYS.  Some functions are actually named
28013     something starting with __ and the normal name is an alias.  */
28014 #if defined __stub_crypt || defined __stub___crypt
28015 choke me
28016 #endif
28017
28018 int
28019 main ()
28020 {
28021 return crypt ();
28022   ;
28023   return 0;
28024 }
28025 _ACEOF
28026 rm -f conftest.$ac_objext conftest$ac_exeext
28027 if { (ac_try="$ac_link"
28028 case "(($ac_try" in
28029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28030   *) ac_try_echo=$ac_try;;
28031 esac
28032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28033   (eval "$ac_link") 2>conftest.er1
28034   ac_status=$?
28035   grep -v '^ *+' conftest.er1 >conftest.err
28036   rm -f conftest.er1
28037   cat conftest.err >&5
28038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28039   (exit $ac_status); } && {
28040          test -z "$ac_c_werror_flag" ||
28041          test ! -s conftest.err
28042        } && test -s conftest$ac_exeext &&
28043        $as_test_x conftest$ac_exeext; then
28044   ac_cv_func_crypt=yes
28045 else
28046   echo "$as_me: failed program was:" >&5
28047 sed 's/^/| /' conftest.$ac_ext >&5
28048
28049         ac_cv_func_crypt=no
28050 fi
28051
28052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28053       conftest$ac_exeext conftest.$ac_ext
28054 fi
28055 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28056 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28057 if test $ac_cv_func_crypt = yes; then
28058   :
28059 else
28060   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28061 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28062 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28063   echo $ECHO_N "(cached) $ECHO_C" >&6
28064 else
28065   ac_check_lib_save_LIBS=$LIBS
28066 LIBS="-lcrypt  $LIBS"
28067 cat >conftest.$ac_ext <<_ACEOF
28068 /* confdefs.h.  */
28069 _ACEOF
28070 cat confdefs.h >>conftest.$ac_ext
28071 cat >>conftest.$ac_ext <<_ACEOF
28072 /* end confdefs.h.  */
28073
28074 /* Override any GCC internal prototype to avoid an error.
28075    Use char because int might match the return type of a GCC
28076    builtin and then its argument prototype would still apply.  */
28077 #ifdef __cplusplus
28078 extern "C"
28079 #endif
28080 char crypt ();
28081 int
28082 main ()
28083 {
28084 return crypt ();
28085   ;
28086   return 0;
28087 }
28088 _ACEOF
28089 rm -f conftest.$ac_objext conftest$ac_exeext
28090 if { (ac_try="$ac_link"
28091 case "(($ac_try" in
28092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28093   *) ac_try_echo=$ac_try;;
28094 esac
28095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28096   (eval "$ac_link") 2>conftest.er1
28097   ac_status=$?
28098   grep -v '^ *+' conftest.er1 >conftest.err
28099   rm -f conftest.er1
28100   cat conftest.err >&5
28101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28102   (exit $ac_status); } && {
28103          test -z "$ac_c_werror_flag" ||
28104          test ! -s conftest.err
28105        } && test -s conftest$ac_exeext &&
28106        $as_test_x conftest$ac_exeext; then
28107   ac_cv_lib_crypt_crypt=yes
28108 else
28109   echo "$as_me: failed program was:" >&5
28110 sed 's/^/| /' conftest.$ac_ext >&5
28111
28112         ac_cv_lib_crypt_crypt=no
28113 fi
28114
28115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28116       conftest$ac_exeext conftest.$ac_ext
28117 LIBS=$ac_check_lib_save_LIBS
28118 fi
28119 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28120 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28121 if test $ac_cv_lib_crypt_crypt = yes; then
28122   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28123 fi
28124
28125 fi
28126
28127       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28128       SQL_LFLAGS=$POSTGRESQL_LFLAGS
28129       SQL_BINDIR=$POSTGRESQL_BINDIR
28130       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28131
28132       cat >>confdefs.h <<\_ACEOF
28133 #define HAVE_POSTGRESQL 1
28134 _ACEOF
28135
28136       { echo "$as_me:$LINENO: result: yes" >&5
28137 echo "${ECHO_T}yes" >&6; }
28138       db_found=yes
28139       support_postgresql=yes
28140       db_type=PostgreSQL
28141       DB_TYPE=postgresql
28142   else
28143       { echo "$as_me:$LINENO: result: no" >&5
28144 echo "${ECHO_T}no" >&6; }
28145   fi
28146
28147 else
28148
28149   { echo "$as_me:$LINENO: result: no" >&5
28150 echo "${ECHO_T}no" >&6; }
28151
28152 fi
28153
28154
28155
28156
28157
28158
28159
28160
28161 db_found=no
28162 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28163 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28164
28165 # Check whether --with-mysql was given.
28166 if test "${with_mysql+set}" = set; then
28167   withval=$with_mysql;
28168   if test "$withval" != "no"; then
28169         if test "$withval" = "yes"; then
28170            if test -f /usr/local/mysql/include/mysql/mysql.h; then
28171                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
28172                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28173                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28174                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28175                    else
28176                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28177                    fi
28178                    MYSQL_BINDIR=/usr/local/mysql/bin
28179            elif test -f /usr/include/mysql/mysql.h; then
28180                    MYSQL_INCDIR=/usr/include/mysql
28181                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28182                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28183                            MYSQL_LIBDIR=/usr/lib64/mysql
28184                    elif test -f /usr/lib64/libmysqlclient_r.a \
28185                         -o -f /usr/lib64/libmysqlclient_r.so; then
28186                            MYSQL_LIBDIR=/usr/lib64
28187                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28188                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28189                            MYSQL_LIBDIR=/usr/lib/mysql
28190                    else
28191                            MYSQL_LIBDIR=/usr/lib
28192                    fi
28193                    MYSQL_BINDIR=/usr/bin
28194            elif test -f /usr/include/mysql.h; then
28195                    MYSQL_INCDIR=/usr/include
28196                    if test -f /usr/lib64/libmysqlclient_r.a \
28197                         -o -f /usr/lib64/libmysqlclient_r.so; then
28198                            MYSQL_LIBDIR=/usr/lib64
28199                    else
28200                            MYSQL_LIBDIR=/usr/lib
28201                    fi
28202                    MYSQL_BINDIR=/usr/bin
28203            elif test -f /usr/local/include/mysql/mysql.h; then
28204                    MYSQL_INCDIR=/usr/local/include/mysql
28205                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28206                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28207                            MYSQL_LIBDIR=/usr/local/lib64/mysql
28208                    else
28209                            MYSQL_LIBDIR=/usr/local/lib/mysql
28210                    fi
28211                    MYSQL_BINDIR=/usr/local/bin
28212            elif test -f /usr/local/include/mysql.h; then
28213                    MYSQL_INCDIR=/usr/local/include
28214                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28215                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28216                            MYSQL_LIBDIR=/usr/local/lib64
28217                    else
28218                            MYSQL_LIBDIR=/usr/local/lib
28219                    fi
28220                    MYSQL_BINDIR=/usr/local/bin
28221            else
28222               { echo "$as_me:$LINENO: result: no" >&5
28223 echo "${ECHO_T}no" >&6; }
28224               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28225 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28226    { (exit 1); exit 1; }; }
28227            fi
28228         else
28229            if test -f $withval/include/mysql/mysql.h; then
28230               MYSQL_INCDIR=$withval/include/mysql
28231               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28232                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28233                  MYSQL_LIBDIR=$withval/lib64/mysql
28234               elif test -f $withval/lib64/libmysqlclient_r.a \
28235                    -o -f $withval/lib64/libmysqlclient_r.so; then
28236                  MYSQL_LIBDIR=$withval/lib64
28237               elif test -f $withval/lib/libmysqlclient_r.a \
28238                    -o -f $withval/lib/libmysqlclient_r.so; then
28239                  MYSQL_LIBDIR=$withval/lib
28240               else
28241                  MYSQL_LIBDIR=$withval/lib/mysql
28242               fi
28243               MYSQL_BINDIR=$withval/bin
28244            elif test -f $withval/include/mysql.h; then
28245               MYSQL_INCDIR=$withval/include
28246               if test -f $withval/lib64/libmysqlclient_r.a \
28247                    -o -f $withval/lib64/libmysqlclient_r.so; then
28248                  MYSQL_LIBDIR=$withval/lib64
28249               else
28250                  MYSQL_LIBDIR=$withval/lib
28251               fi
28252               MYSQL_BINDIR=$withval/bin
28253            else
28254               { echo "$as_me:$LINENO: result: no" >&5
28255 echo "${ECHO_T}no" >&6; }
28256               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28257 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28258    { (exit 1); exit 1; }; }
28259            fi
28260         fi
28261     SQL_INCLUDE=-I$MYSQL_INCDIR
28262     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28263          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28264        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28265        cat >>confdefs.h <<\_ACEOF
28266 #define HAVE_THREAD_SAFE_MYSQL 1
28267 _ACEOF
28268
28269     fi
28270     SQL_BINDIR=$MYSQL_BINDIR
28271     if test -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28272        SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.so
28273     else
28274        SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28275     fi
28276
28277     cat >>confdefs.h <<\_ACEOF
28278 #define HAVE_MYSQL 1
28279 _ACEOF
28280
28281     { echo "$as_me:$LINENO: result: yes" >&5
28282 echo "${ECHO_T}yes" >&6; }
28283     db_found=yes
28284     support_mysql=yes
28285     db_type=MySQL
28286     DB_TYPE=mysql
28287
28288   else
28289         { echo "$as_me:$LINENO: result: no" >&5
28290 echo "${ECHO_T}no" >&6; }
28291   fi
28292
28293
28294 fi
28295
28296
28297
28298 # Check whether --with-embedded-mysql was given.
28299 if test "${with_embedded_mysql+set}" = set; then
28300   withval=$with_embedded_mysql;
28301   if test "$withval" != "no"; then
28302         if test "$withval" = "yes"; then
28303                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28304                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28305                         if test -d /usr/local/mysql/lib64/mysql; then
28306                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28307                         else
28308                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28309                         fi
28310                         MYSQL_BINDIR=/usr/local/mysql/bin
28311                 elif test -f /usr/include/mysql/mysql.h; then
28312                         MYSQL_INCDIR=/usr/include/mysql
28313                         if test -d /usr/lib64/mysql; then
28314                                 MYSQL_LIBDIR=/usr/lib64/mysql
28315                         else
28316                                 MYSQL_LIBDIR=/usr/lib/mysql
28317                         fi
28318                         MYSQL_BINDIR=/usr/bin
28319                 elif test -f /usr/include/mysql.h; then
28320                         MYSQL_INCDIR=/usr/include
28321                         if test -d /usr/lib64; then
28322                                 MYSQL_LIBDIR=/usr/lib64
28323                         else
28324                                 MYSQL_LIBDIR=/usr/lib
28325                         fi
28326                         MYSQL_BINDIR=/usr/bin
28327                 elif test -f /usr/local/include/mysql/mysql.h; then
28328                         MYSQL_INCDIR=/usr/local/include/mysql
28329                         if test -d /usr/local/lib64/mysql; then
28330                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28331                         else
28332                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28333                         fi
28334                         MYSQL_BINDIR=/usr/local/bin
28335                 elif test -f /usr/local/include/mysql.h; then
28336                         MYSQL_INCDIR=/usr/local/include
28337                         if test -d /usr/local/lib64; then
28338                                 MYSQL_LIBDIR=/usr/local/lib64
28339                         else
28340                                 MYSQL_LIBDIR=/usr/local/lib
28341                         fi
28342                         MYSQL_BINDIR=/usr/local/bin
28343                 else
28344                    { echo "$as_me:$LINENO: result: no" >&5
28345 echo "${ECHO_T}no" >&6; }
28346                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28347 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28348    { (exit 1); exit 1; }; }
28349                 fi
28350         else
28351                 if test -f $withval/include/mysql/mysql.h; then
28352                         MYSQL_INCDIR=$withval/include/mysql
28353                         if test -d $withval/lib64/mysql; then
28354                                 MYSQL_LIBDIR=$withval/lib64/mysql
28355                         else
28356                                 MYSQL_LIBDIR=$withval/lib/mysql
28357                         fi
28358                         MYSQL_BINDIR=$withval/bin
28359                 elif test -f $withval/include/mysql.h; then
28360                         MYSQL_INCDIR=$withval/include
28361                         if test -d $withval/lib64; then
28362                                 MYSQL_LIBDIR=$withval/lib64
28363                         else
28364                                 MYSQL_LIBDIR=$withval/lib
28365                         fi
28366                         MYSQL_BINDIR=$withval/bin
28367                 else
28368                    { echo "$as_me:$LINENO: result: no" >&5
28369 echo "${ECHO_T}no" >&6; }
28370                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28371 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28372    { (exit 1); exit 1; }; }
28373                 fi
28374         fi
28375     SQL_INCLUDE=-I$MYSQL_INCDIR
28376     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28377     SQL_BINDIR=$MYSQL_BINDIR
28378     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28379
28380     cat >>confdefs.h <<\_ACEOF
28381 #define HAVE_MYSQL 1
28382 _ACEOF
28383
28384     cat >>confdefs.h <<\_ACEOF
28385 #define HAVE_EMBEDDED_MYSQL 1
28386 _ACEOF
28387
28388     { echo "$as_me:$LINENO: result: yes" >&5
28389 echo "${ECHO_T}yes" >&6; }
28390     db_found=yes
28391     support_mysql=yes
28392     db_type=MySQL
28393     DB_TYPE=mysql
28394
28395   else
28396         { echo "$as_me:$LINENO: result: no" >&5
28397 echo "${ECHO_T}no" >&6; }
28398   fi
28399
28400
28401 fi
28402
28403
28404
28405
28406
28407
28408
28409
28410
28411
28412 db_found=no
28413 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28414 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28415
28416 # Check whether --with-sqlite3 was given.
28417 if test "${with_sqlite3+set}" = set; then
28418   withval=$with_sqlite3;
28419   if test "$withval" != "no"; then
28420      if test "$withval" = "yes"; then
28421         if test -f /usr/local/include/sqlite3.h; then
28422            SQLITE_INCDIR=/usr/local/include
28423            if test -d /usr/local/lib64; then
28424               SQLITE_LIBDIR=/usr/local/lib64
28425            else
28426               SQLITE_LIBDIR=/usr/local/lib
28427            fi
28428            SQLITE_BINDIR=/usr/local/bin
28429         elif test -f /usr/include/sqlite3.h; then
28430            SQLITE_INCDIR=/usr/include
28431            if test -d /usr/lib64; then
28432               SQLITE_LIBDIR=/usr/lib64
28433            else
28434               SQLITE_LIBDIR=/usr/lib
28435            fi
28436            SQLITE_BINDIR=/usr/bin
28437         elif test -f $prefix/include/sqlite3.h; then
28438            SQLITE_INCDIR=$prefix/include
28439            if test -d $prefix/lib64; then
28440               SQLITE_LIBDIR=$prefix/lib64
28441            else
28442               SQLITE_LIBDIR=$prefix/lib
28443            fi
28444            SQLITE_BINDIR=$prefix/bin
28445         else
28446            { echo "$as_me:$LINENO: result: no" >&5
28447 echo "${ECHO_T}no" >&6; }
28448            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28449 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28450    { (exit 1); exit 1; }; }
28451         fi
28452      else
28453         if test -f $withval/sqlite3.h; then
28454            SQLITE_INCDIR=$withval
28455            SQLITE_LIBDIR=$withval
28456            SQLITE_BINDIR=$withval
28457         elif test -f $withval/include/sqlite3.h; then
28458            SQLITE_INCDIR=$withval/include
28459            if test -d $withval/lib64; then
28460               SQLITE_LIBDIR=$withval/lib64
28461            else
28462               SQLITE_LIBDIR=$withval/lib
28463            fi
28464            SQLITE_BINDIR=$withval/bin
28465         else
28466            { echo "$as_me:$LINENO: result: no" >&5
28467 echo "${ECHO_T}no" >&6; }
28468            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28469 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28470    { (exit 1); exit 1; }; }
28471         fi
28472      fi
28473      SQL_INCLUDE=-I$SQLITE_INCDIR
28474      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28475      SQL_BINDIR=$SQLITE_BINDIR
28476      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28477
28478      cat >>confdefs.h <<\_ACEOF
28479 #define HAVE_SQLITE3 1
28480 _ACEOF
28481
28482      { echo "$as_me:$LINENO: result: yes" >&5
28483 echo "${ECHO_T}yes" >&6; }
28484      db_found=yes
28485      support_sqlite3=yes
28486      db_type=SQLite3
28487      DB_TYPE=sqlite3
28488
28489   else
28490      { echo "$as_me:$LINENO: result: no" >&5
28491 echo "${ECHO_T}no" >&6; }
28492   fi
28493
28494 else
28495
28496   { echo "$as_me:$LINENO: result: no" >&5
28497 echo "${ECHO_T}no" >&6; }
28498
28499 fi
28500
28501
28502
28503
28504
28505
28506
28507
28508 db_found=no
28509 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28510 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28511
28512 # Check whether --with-sqlite was given.
28513 if test "${with_sqlite+set}" = set; then
28514   withval=$with_sqlite;
28515   if test "$withval" != "no"; then
28516      if test "$withval" = "yes"; then
28517         if test -f /usr/local/include/sqlite.h; then
28518            SQLITE_INCDIR=/usr/local/include
28519            if test -d /usr/local/lib64; then
28520               SQLITE_LIBDIR=/usr/local/lib64
28521            else
28522               SQLITE_LIBDIR=/usr/local/lib
28523            fi
28524            SQLITE_BINDIR=/usr/local/bin
28525         elif test -f /usr/include/sqlite.h; then
28526            SQLITE_INCDIR=/usr/include
28527            if test -d /usr/lib64; then
28528               SQLITE_LIBDIR=/usr/lib64
28529            else
28530               SQLITE_LIBDIR=/usr/lib
28531            fi
28532            SQLITE_BINDIR=/usr/bin
28533         elif test -f $prefix/include/sqlite.h; then
28534            SQLITE_INCDIR=$prefix/include
28535            if test -d $prefix/lib64; then
28536               SQLITE_LIBDIR=$prefix/lib64
28537            else
28538               SQLITE_LIBDIR=$prefix/lib
28539            fi
28540            SQLITE_BINDIR=$prefix/bin
28541         else
28542            { echo "$as_me:$LINENO: result: no" >&5
28543 echo "${ECHO_T}no" >&6; }
28544            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28545 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28546    { (exit 1); exit 1; }; }
28547         fi
28548      else
28549         if test -f $withval/sqlite.h; then
28550            SQLITE_INCDIR=$withval
28551            SQLITE_LIBDIR=$withval
28552            SQLITE_BINDIR=$withval
28553         elif test -f $withval/include/sqlite.h; then
28554            SQLITE_INCDIR=$withval/include
28555            if test -d $withval/lib64; then
28556               SQLITE_LIBDIR=$withval/lib64
28557            else
28558               SQLITE_LIBDIR=$withval/lib
28559            fi
28560            SQLITE_BINDIR=$withval/bin
28561         else
28562            { echo "$as_me:$LINENO: result: no" >&5
28563 echo "${ECHO_T}no" >&6; }
28564            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28565 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28566    { (exit 1); exit 1; }; }
28567         fi
28568      fi
28569      SQL_INCLUDE=-I$SQLITE_INCDIR
28570      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28571      SQL_BINDIR=$SQLITE_BINDIR
28572      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28573
28574      cat >>confdefs.h <<\_ACEOF
28575 #define HAVE_SQLITE 1
28576 _ACEOF
28577
28578      { echo "$as_me:$LINENO: result: yes" >&5
28579 echo "${ECHO_T}yes" >&6; }
28580      db_found=yes
28581      support_sqlite=yes
28582      db_type=SQLite
28583      DB_TYPE=sqlite
28584
28585   else
28586      { echo "$as_me:$LINENO: result: no" >&5
28587 echo "${ECHO_T}no" >&6; }
28588   fi
28589
28590 else
28591
28592   { echo "$as_me:$LINENO: result: no" >&5
28593 echo "${ECHO_T}no" >&6; }
28594
28595 fi
28596
28597
28598
28599
28600
28601
28602
28603
28604 db_found=no
28605 { echo "$as_me:$LINENO: checking for DBI support" >&5
28606 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28607
28608 # Check whether --with-dbi was given.
28609 if test "${with_dbi+set}" = set; then
28610   withval=$with_dbi;
28611   if test "$withval" != "no"; then
28612      if test "$withval" = "yes"; then
28613         if test -f /usr/local/include/dbi/dbi.h; then
28614            DBI_INCDIR=/usr/local/dbi/include
28615            if test -d /usr/local/lib64; then
28616               DBI_LIBDIR=/usr/local/lib64
28617            else
28618               DBI_LIBDIR=/usr/local/lib
28619            fi
28620            DBI_BINDIR=/usr/local/bin
28621         elif test -f /usr/include/dbi/dbi.h; then
28622            DBI_INCDIR=/usr/include
28623            if test -d /usr/lib64; then
28624               DBI_LIBDIR=/usr/lib64
28625            else
28626               DBI_LIBDIR=/usr/lib
28627            fi
28628            DBI_BINDIR=/usr/bin
28629         elif test -f $prefix/include/dbi/dbi.h; then
28630            DBI_INCDIR=$prefix/include
28631            if test -d $prefix/lib64; then
28632               DBI_LIBDIR=$prefix/lib64
28633            else
28634               DBI_LIBDIR=$prefix/lib
28635            fi
28636            DBI_BINDIR=$prefix/bin
28637         else
28638            { echo "$as_me:$LINENO: result: no" >&5
28639 echo "${ECHO_T}no" >&6; }
28640            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28641 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28642    { (exit 1); exit 1; }; }
28643         fi
28644         if test -d /usr/local/lib/dbd; then
28645            DRIVERDIR=/usr/local/lib/dbd
28646            if test -d /usr/local/lib64/dbd; then
28647               DRIVERDIR=/usr/local/lib64/dbd
28648            else
28649               DRIVERDIR=/usr/local/lib/dbd
28650            fi
28651         elif test -d /usr/lib/dbd; then
28652            DRIVERDIR=/usr/lib/dbd
28653            if test -d /usr/lib64/dbd; then
28654               DRIVERDIR=/usr/lib64/dbd
28655            else
28656               DRIVERDIR=/usr/lib/dbd
28657            fi
28658         elif test -d $prefix/lib/dbd; then
28659            if test -d $prefix/lib64/dbd; then
28660               DRIVERDIR=$prefix/lib64/dbd
28661            else
28662               DRIVERDIR=$prefix/lib/dbd
28663            fi
28664         elif test -d /usr/local/lib64/dbd; then
28665            DRIVERDIR=/usr/local/lib64/dbd
28666         elif test -d /usr/lib64/dbd; then
28667            DRIVERDIR=/usr/lib64/dbd
28668         elif test -d $prefix/lib64/dbd; then
28669            DRIVERDIR=$prefix/lib64/dbd
28670         else
28671            { echo "$as_me:$LINENO: result: no" >&5
28672 echo "${ECHO_T}no" >&6; }
28673            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28674 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28675    { (exit 1); exit 1; }; }
28676         fi
28677      else
28678         if test -f $withval/dbi.h; then
28679            DBI_INCDIR=$withval
28680            DBI_LIBDIR=$withval
28681            DBI_BINDIR=$withval
28682         elif test -f $withval/include/dbi/dbi.h; then
28683            DBI_INCDIR=$withval/include
28684            if test -d $withval/lib64; then
28685               DBI_LIBDIR=$withval/lib64
28686            else
28687               DBI_LIBDIR=$withval/lib
28688            fi
28689            DBI_BINDIR=$withval/bin
28690         else
28691            { echo "$as_me:$LINENO: result: no" >&5
28692 echo "${ECHO_T}no" >&6; }
28693            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28694 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28695    { (exit 1); exit 1; }; }
28696         fi
28697         if test -d $withval/dbd; then
28698            DRIVERDIR=$withval/dbd
28699         elif test -d $withval/lib/; then
28700            if test -d $withval/lib64/dbd; then
28701               DRIVERDIR=$withval/lib64/dbd
28702            else
28703               DRIVERDIR=$withval/lib/dbd
28704            fi
28705         elif test -d $withval/lib64/dbd; then
28706            DRIVERDIR=$withval/lib64/dbd
28707         else
28708            { echo "$as_me:$LINENO: result: no" >&5
28709 echo "${ECHO_T}no" >&6; }
28710            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28711 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28712    { (exit 1); exit 1; }; }
28713         fi
28714      fi
28715      SQL_INCLUDE=-I$DBI_INCDIR
28716      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28717      SQL_BINDIR=$DBI_BINDIR
28718      SQL_LIB=$DBI_LIBDIR/libdbi.a
28719      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28720
28721
28722 cat >>confdefs.h <<\_ACEOF
28723 #define HAVE_DBI 1
28724 _ACEOF
28725
28726      { echo "$as_me:$LINENO: result: yes" >&5
28727 echo "${ECHO_T}yes" >&6; }
28728      db_found=yes
28729      support_dbi=yes
28730      db_type=DBI
28731      DB_TYPE=dbi
28732      uncomment_dbi=" "
28733
28734   else
28735      { echo "$as_me:$LINENO: result: no" >&5
28736 echo "${ECHO_T}no" >&6; }
28737   fi
28738
28739 else
28740
28741   { echo "$as_me:$LINENO: result: no" >&5
28742 echo "${ECHO_T}no" >&6; }
28743
28744 fi
28745
28746
28747
28748
28749
28750
28751
28752
28753
28754
28755 db_found=no
28756 db_prog=no
28757 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28758 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28759
28760 # Check whether --with-dbi-driver was given.
28761 if test "${with_dbi_driver+set}" = set; then
28762   withval=$with_dbi_driver;
28763   if test "$withval" != "no"; then
28764      case $withval in
28765         "mysql")
28766            db_prog="mysql"
28767            if test -f /usr/local/mysql/bin/mysql; then
28768               SQL_BINDIR=/usr/local/mysql/bin
28769               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28770                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28771                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28772               else
28773                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28774               fi
28775            elif test -f /usr/bin/mysql; then
28776               SQL_BINDIR=/usr/bin
28777               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28778                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28779                   SQL_LIBDIR=/usr/lib64/mysql
28780               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28781                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28782                   SQL_LIBDIR=/usr/lib/mysql
28783               else
28784                   SQL_LIBDIR=/usr/lib
28785               fi
28786            elif test -f /usr/local/bin/mysql; then
28787               SQL_BINDIR=/usr/local/bin
28788               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28789                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28790                   SQL_LIBDIR=/usr/local/lib64/mysql
28791               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28792                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28793                   SQL_LIBDIR=/usr/local/lib/mysql
28794               else
28795                   SQL_LIBDIR=/usr/local/lib
28796               fi
28797            elif test -f $withval/bin/mysql; then
28798               SQL_BINDIR=$withval/bin
28799               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28800                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28801                   SQL_LIBDIR=$withval/lib64/mysql
28802               elif test -f $withval/lib64/libmysqlclient_r.a \
28803                   -o -f $withval/lib64/libmysqlclient_r.so; then
28804                   SQL_LIBDIR=$withval/lib64
28805               elif test -f $withval/lib/libmysqlclient_r.a \
28806                   -o -f $withval/lib/libmysqlclient_r.so; then
28807                   SQL_LIBDIR=$withval/lib/
28808               else
28809                   SQL_LIBDIR=$withval/lib/mysql
28810               fi
28811            else
28812               { echo "$as_me:$LINENO: result: no" >&5
28813 echo "${ECHO_T}no" >&6; }
28814               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28815 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28816    { (exit 1); exit 1; }; }
28817            fi
28818            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28819               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28820            else
28821               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28822            fi
28823         ;;
28824         "postgresql")
28825            db_prog="postgresql"
28826            PG_CONFIG=`which pg_config`
28827            if test -n "$PG_CONFIG"; then
28828               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28829               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28830            elif test -f /usr/local/bin/psql; then
28831               SQL_BINDIR=/usr/local/bin
28832               if test -d /usr/local/lib64; then
28833                  SQL_LIBDIR=/usr/local/lib64
28834               else
28835                  SQL_LIBDIR=/usr/local/lib
28836               fi
28837            elif test -f /usr/bin/psql; then
28838               SQL_BINDIR=/usr/local/bin
28839               if test -d /usr/lib64/postgresql; then
28840                  SQL_LIBDIR=/usr/lib64/postgresql
28841               elif test -d /usr/lib/postgresql; then
28842                  SQL_LIBDIR=/usr/lib/postgresql
28843               elif test -d /usr/lib64; then
28844                  SQL_LIBDIR=/usr/lib64
28845               else
28846                  SQL_LIBDIR=/usr/lib
28847               fi
28848            elif test -f $withval/bin/psql; then
28849               SQL_BINDIR=$withval/bin
28850               if test -d $withval/lib64; then
28851                  SQL_LIBDIR=$withval/lib64
28852               else
28853                  SQL_LIBDIR=$withval/lib
28854               fi
28855            else
28856               { echo "$as_me:$LINENO: result: no" >&5
28857 echo "${ECHO_T}no" >&6; }
28858               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28859 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28860    { (exit 1); exit 1; }; }
28861            fi
28862            if test -f $SQL_LIBDIR/libpq.so; then
28863               DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28864            else
28865               DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28866            fi
28867         ;;
28868         "sqlite")
28869            db_prog="sqlite"
28870            if test -f /usr/local/bin/sqlite; then
28871               SQL_BINDIR=/usr/local/bin
28872               if test -d /usr/local/lib64; then
28873                  SQL_LIBDIR=/usr/local/lib64
28874               else
28875                  SQL_LIBDIR=/usr/local/lib
28876               fi
28877            elif test -f /usr/bin/sqlite; then
28878               SQL_BINDIR=/usr/bin
28879               if test -d /usr/lib64; then
28880                  SQL_LIBDIR=/usr/lib64
28881               else
28882                  SQL_LIBDIR=/usr/lib
28883               fi
28884            elif test -f $withval/bin/sqlite; then
28885               SQL_BINDIR=$withval/bin
28886               if test -d $withval/lib64; then
28887                  SQL_LIBDIR=$withval/lib64
28888               else
28889                  SQL_LIBDIR=$withval/lib
28890               fi
28891            else
28892               { echo "$as_me:$LINENO: result: no" >&5
28893 echo "${ECHO_T}no" >&6; }
28894               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28895 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28896    { (exit 1); exit 1; }; }
28897            fi
28898            if test -f $SQL_LIBDIR/libsqlite.so; then
28899               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28900            else
28901               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28902            fi
28903         ;;
28904         "sqlite3")
28905            db_prog="sqlite3"
28906            if test -f /usr/local/bin/sqlite3; then
28907               SQL_BINDIR=/usr/local/bin
28908               if test -d /usr/local/lib64; then
28909                  SQL_LIBDIR=/usr/local/lib64
28910               else
28911                  SQL_LIBDIR=/usr/local/lib
28912               fi
28913            elif test -f /usr/bin/sqlite3; then
28914               SQL_BINDIR=/usr/bin
28915               if test -d /usr/lib64; then
28916                  SQL_LIBDIR=/usr/lib64
28917               else
28918                  SQL_LIBDIR=/usr/lib
28919               fi
28920            elif test -f $withval/bin/sqlite3; then
28921               SQL_BINDIR=$withval/bin
28922               if test -d $withval/lib64; then
28923                  SQL_LIBDIR=$withval/lib64
28924               else
28925                  SQL_LIBDIR=$withval/lib
28926               fi
28927            else
28928               { echo "$as_me:$LINENO: result: no" >&5
28929 echo "${ECHO_T}no" >&6; }
28930               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28931 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28932    { (exit 1); exit 1; }; }
28933            fi
28934            if test -f $SQL_LIBDIR/libsqlite3.so; then
28935               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28936            else
28937               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28938            fi
28939         ;;
28940         *)
28941            { echo "$as_me:$LINENO: result: no" >&5
28942 echo "${ECHO_T}no" >&6; }
28943            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28944 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28945    { (exit 1); exit 1; }; }
28946         ;;
28947      esac
28948
28949      { echo "$as_me:$LINENO: result: yes" >&5
28950 echo "${ECHO_T}yes" >&6; }
28951      DB_PROG=$db_prog
28952   else
28953      { echo "$as_me:$LINENO: result: no" >&5
28954 echo "${ECHO_T}no" >&6; }
28955   fi
28956
28957 else
28958
28959   { echo "$as_me:$LINENO: result: no" >&5
28960 echo "${ECHO_T}no" >&6; }
28961
28962 fi
28963
28964
28965
28966
28967
28968
28969
28970
28971
28972
28973 support_batch_insert=no
28974 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28975 pkg=$?
28976 if test $pkg = 0; then
28977    support_batch_insert=yes
28978    # Check whether --enable-batch-insert was given.
28979 if test "${enable_batch_insert+set}" = set; then
28980   enableval=$enable_batch_insert;
28981           if test x$enableval = xno; then
28982              support_batch_insert=no
28983           else
28984              support_batch_insert=yes
28985           fi
28986
28987
28988 fi
28989
28990 fi
28991
28992 if test x$DB_TYPE = xpostgresql; then
28993    A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28994    pkg=$?
28995    if test $pkg != 0; then
28996       support_batch_insert=no
28997    fi
28998 fi
28999
29000 if test x$DB_TYPE = xdbi; then
29001    DB_TYPE=$DB_PROG
29002    db_type=$DB_PROG
29003    pkg=1
29004       if test $DB_PROG = postgresql; then
29005       A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
29006       pkg=$?
29007    fi
29008
29009    if test $DB_PROG = mysql; then
29010       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29011       pkg=$?
29012    fi
29013
29014    if test $DB_PROG = sqlite3; then
29015       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29016       pkg=$?
29017    fi
29018
29019    if test $pkg = 0; then
29020       # Check whether --enable-batch-insert was given.
29021 if test "${enable_batch_insert+set}" = set; then
29022   enableval=$enable_batch_insert;
29023              if test x$enableval = xno; then
29024                 support_batch_insert=no
29025              else
29026                 support_batch_insert=yes
29027              fi
29028
29029
29030 fi
29031
29032    fi
29033 else
29034       uncomment_dbi="#"
29035 fi
29036
29037
29038
29039 if test $support_batch_insert = yes ; then
29040
29041 cat >>confdefs.h <<\_ACEOF
29042 #define HAVE_BATCH_FILE_INSERT 1
29043 _ACEOF
29044
29045 fi
29046
29047 cat >>confdefs.h <<\_ACEOF
29048 #define PROTOTYPES 1
29049 _ACEOF
29050
29051
29052 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
29053    if test -z "$CCOPTS"; then
29054       CCOPTS='-g -O2 -Wall'
29055    fi
29056    CFLAGS="$CCOPTS"
29057 fi
29058
29059
29060
29061 largefile_support="no"
29062
29063    # Check whether --enable-largefile was given.
29064 if test "${enable_largefile+set}" = set; then
29065   enableval=$enable_largefile;
29066 fi
29067
29068    if test "$enable_largefile" != no; then
29069      if test -n "$ac_tool_prefix"; then
29070   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29071 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29074 if test "${ac_cv_prog_GETCONF+set}" = set; then
29075   echo $ECHO_N "(cached) $ECHO_C" >&6
29076 else
29077   if test -n "$GETCONF"; then
29078   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29079 else
29080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29081 for as_dir in $PATH
29082 do
29083   IFS=$as_save_IFS
29084   test -z "$as_dir" && as_dir=.
29085   for ac_exec_ext in '' $ac_executable_extensions; do
29086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29087     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29088     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29089     break 2
29090   fi
29091 done
29092 done
29093 IFS=$as_save_IFS
29094
29095 fi
29096 fi
29097 GETCONF=$ac_cv_prog_GETCONF
29098 if test -n "$GETCONF"; then
29099   { echo "$as_me:$LINENO: result: $GETCONF" >&5
29100 echo "${ECHO_T}$GETCONF" >&6; }
29101 else
29102   { echo "$as_me:$LINENO: result: no" >&5
29103 echo "${ECHO_T}no" >&6; }
29104 fi
29105
29106
29107 fi
29108 if test -z "$ac_cv_prog_GETCONF"; then
29109   ac_ct_GETCONF=$GETCONF
29110   # Extract the first word of "getconf", so it can be a program name with args.
29111 set dummy getconf; ac_word=$2
29112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29114 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29115   echo $ECHO_N "(cached) $ECHO_C" >&6
29116 else
29117   if test -n "$ac_ct_GETCONF"; then
29118   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29119 else
29120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29121 for as_dir in $PATH
29122 do
29123   IFS=$as_save_IFS
29124   test -z "$as_dir" && as_dir=.
29125   for ac_exec_ext in '' $ac_executable_extensions; do
29126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29127     ac_cv_prog_ac_ct_GETCONF="getconf"
29128     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29129     break 2
29130   fi
29131 done
29132 done
29133 IFS=$as_save_IFS
29134
29135 fi
29136 fi
29137 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29138 if test -n "$ac_ct_GETCONF"; then
29139   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29140 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29141 else
29142   { echo "$as_me:$LINENO: result: no" >&5
29143 echo "${ECHO_T}no" >&6; }
29144 fi
29145
29146   if test "x$ac_ct_GETCONF" = x; then
29147     GETCONF=""
29148   else
29149     case $cross_compiling:$ac_tool_warned in
29150 yes:)
29151 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29152 whose name does not start with the host triplet.  If you think this
29153 configuration is useful to you, please write to autoconf@gnu.org." >&5
29154 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29155 whose name does not start with the host triplet.  If you think this
29156 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29157 ac_tool_warned=yes ;;
29158 esac
29159     GETCONF=$ac_ct_GETCONF
29160   fi
29161 else
29162   GETCONF="$ac_cv_prog_GETCONF"
29163 fi
29164
29165      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29166 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29167 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29168   echo $ECHO_N "(cached) $ECHO_C" >&6
29169 else
29170   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29171         ac_cv_sys_largefile_CFLAGS=no
29172         case "$host_os" in
29173            # IRIX 6.2 and later require cc -n32.
29174            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29175              if test "$GCC" != yes; then
29176                ac_cv_sys_largefile_CFLAGS=-n32
29177              fi
29178              ac_save_CC="$CC"
29179              CC="$CC $ac_cv_sys_largefile_CFLAGS"
29180              cat >conftest.$ac_ext <<_ACEOF
29181 /* confdefs.h.  */
29182 _ACEOF
29183 cat confdefs.h >>conftest.$ac_ext
29184 cat >>conftest.$ac_ext <<_ACEOF
29185 /* end confdefs.h.  */
29186
29187 int
29188 main ()
29189 {
29190
29191   ;
29192   return 0;
29193 }
29194 _ACEOF
29195 rm -f conftest.$ac_objext conftest$ac_exeext
29196 if { (ac_try="$ac_link"
29197 case "(($ac_try" in
29198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29199   *) ac_try_echo=$ac_try;;
29200 esac
29201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29202   (eval "$ac_link") 2>conftest.er1
29203   ac_status=$?
29204   grep -v '^ *+' conftest.er1 >conftest.err
29205   rm -f conftest.er1
29206   cat conftest.err >&5
29207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29208   (exit $ac_status); } && {
29209          test -z "$ac_c_werror_flag" ||
29210          test ! -s conftest.err
29211        } && test -s conftest$ac_exeext &&
29212        $as_test_x conftest$ac_exeext; then
29213   :
29214 else
29215   echo "$as_me: failed program was:" >&5
29216 sed 's/^/| /' conftest.$ac_ext >&5
29217
29218         ac_cv_sys_largefile_CFLAGS=no
29219 fi
29220
29221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29222       conftest$ac_exeext conftest.$ac_ext
29223              CC="$ac_save_CC"
29224            esac
29225       }
29226 fi
29227 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29228 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29229      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29230 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29231 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29232   echo $ECHO_N "(cached) $ECHO_C" >&6
29233 else
29234   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29235         ac_cv_sys_largefile_LDFLAGS=no
29236
29237       }
29238 fi
29239 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29240 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29241      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29242 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29243 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29244   echo $ECHO_N "(cached) $ECHO_C" >&6
29245 else
29246   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29247         ac_cv_sys_largefile_LIBS=no
29248
29249       }
29250 fi
29251 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29252 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29253
29254      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29255        case "$ac_flag" in
29256        no) ;;
29257        -D_FILE_OFFSET_BITS=*) ;;
29258        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29259        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29260        -D?* | -I?*)
29261          case "$ac_flag" in
29262    no) ;;
29263    ?*)
29264      case "$CPPFLAGS" in
29265      '') CPPFLAGS="$ac_flag" ;;
29266      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29267      esac ;;
29268    esac ;;
29269        *)
29270          case "$ac_flag" in
29271    no) ;;
29272    ?*)
29273      case "$CFLAGS" in
29274      '') CFLAGS="$ac_flag" ;;
29275      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29276      esac ;;
29277    esac ;;
29278        esac
29279      done
29280      case "$ac_cv_sys_largefile_LDFLAGS" in
29281    no) ;;
29282    ?*)
29283      case "$LDFLAGS" in
29284      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29285      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29286      esac ;;
29287    esac
29288      case "$ac_cv_sys_largefile_LIBS" in
29289    no) ;;
29290    ?*)
29291      case "$LIBS" in
29292      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29293      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29294      esac ;;
29295    esac
29296      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29297 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29298 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29299   echo $ECHO_N "(cached) $ECHO_C" >&6
29300 else
29301   ac_cv_sys_file_offset_bits=no
29302       ac_cv_sys_file_offset_bits=64
29303       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29304         case "$ac_flag" in
29305         -D_FILE_OFFSET_BITS)
29306           ac_cv_sys_file_offset_bits=1 ;;
29307         -D_FILE_OFFSET_BITS=*)
29308           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29309         esac
29310       done
29311
29312 fi
29313 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29314 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29315    if test "$ac_cv_sys_file_offset_bits" != no; then
29316
29317 cat >>confdefs.h <<_ACEOF
29318 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29319 _ACEOF
29320
29321    fi
29322      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29323 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29324 if test "${ac_cv_sys_largefile_source+set}" = set; then
29325   echo $ECHO_N "(cached) $ECHO_C" >&6
29326 else
29327   ac_cv_sys_largefile_source=no
29328       ac_cv_sys_largefile_source=1
29329       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29330         case "$ac_flag" in
29331         -D_LARGEFILE_SOURCE)
29332           ac_cv_sys_largefile_source=1 ;;
29333         -D_LARGEFILE_SOURCE=*)
29334           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29335         esac
29336       done
29337
29338 fi
29339 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29340 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29341    if test "$ac_cv_sys_largefile_source" != no; then
29342
29343 cat >>confdefs.h <<_ACEOF
29344 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29345 _ACEOF
29346
29347    fi
29348      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29349 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29350 if test "${ac_cv_sys_large_files+set}" = set; then
29351   echo $ECHO_N "(cached) $ECHO_C" >&6
29352 else
29353   ac_cv_sys_large_files=no
29354       ac_cv_sys_large_files=1
29355       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29356         case "$ac_flag" in
29357         -D_LARGE_FILES)
29358           ac_cv_sys_large_files=1 ;;
29359         -D_LARGE_FILES=*)
29360           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29361         esac
29362       done
29363
29364 fi
29365 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29366 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29367    if test "$ac_cv_sys_large_files" != no; then
29368
29369 cat >>confdefs.h <<_ACEOF
29370 #define _LARGE_FILES $ac_cv_sys_large_files
29371 _ACEOF
29372
29373    fi
29374    fi
29375
29376
29377 { echo "$as_me:$LINENO: checking for X" >&5
29378 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29379
29380
29381 # Check whether --with-x was given.
29382 if test "${with_x+set}" = set; then
29383   withval=$with_x;
29384 fi
29385
29386 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29387 if test "x$with_x" = xno; then
29388   # The user explicitly disabled X.
29389   have_x=disabled
29390 else
29391   case $x_includes,$x_libraries in #(
29392     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29393 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29394    { (exit 1); exit 1; }; };; #(
29395     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29396   echo $ECHO_N "(cached) $ECHO_C" >&6
29397 else
29398   # One or both of the vars are not set, and there is no cached value.
29399 ac_x_includes=no ac_x_libraries=no
29400 rm -f -r conftest.dir
29401 if mkdir conftest.dir; then
29402   cd conftest.dir
29403   cat >Imakefile <<'_ACEOF'
29404 incroot:
29405         @echo incroot='${INCROOT}'
29406 usrlibdir:
29407         @echo usrlibdir='${USRLIBDIR}'
29408 libdir:
29409         @echo libdir='${LIBDIR}'
29410 _ACEOF
29411   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29412     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29413     for ac_var in incroot usrlibdir libdir; do
29414       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29415     done
29416     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29417     for ac_extension in a so sl; do
29418       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29419          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29420         ac_im_usrlibdir=$ac_im_libdir; break
29421       fi
29422     done
29423     # Screen out bogus values from the imake configuration.  They are
29424     # bogus both because they are the default anyway, and because
29425     # using them would break gcc on systems where it needs fixed includes.
29426     case $ac_im_incroot in
29427         /usr/include) ac_x_includes= ;;
29428         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29429     esac
29430     case $ac_im_usrlibdir in
29431         /usr/lib | /lib) ;;
29432         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29433     esac
29434   fi
29435   cd ..
29436   rm -f -r conftest.dir
29437 fi
29438
29439 # Standard set of common directories for X headers.
29440 # Check X11 before X11Rn because it is often a symlink to the current release.
29441 ac_x_header_dirs='
29442 /usr/X11/include
29443 /usr/X11R6/include
29444 /usr/X11R5/include
29445 /usr/X11R4/include
29446
29447 /usr/include/X11
29448 /usr/include/X11R6
29449 /usr/include/X11R5
29450 /usr/include/X11R4
29451
29452 /usr/local/X11/include
29453 /usr/local/X11R6/include
29454 /usr/local/X11R5/include
29455 /usr/local/X11R4/include
29456
29457 /usr/local/include/X11
29458 /usr/local/include/X11R6
29459 /usr/local/include/X11R5
29460 /usr/local/include/X11R4
29461
29462 /usr/X386/include
29463 /usr/x386/include
29464 /usr/XFree86/include/X11
29465
29466 /usr/include
29467 /usr/local/include
29468 /usr/unsupported/include
29469 /usr/athena/include
29470 /usr/local/x11r5/include
29471 /usr/lpp/Xamples/include
29472
29473 /usr/openwin/include
29474 /usr/openwin/share/include'
29475
29476 if test "$ac_x_includes" = no; then
29477   # Guess where to find include files, by looking for Xlib.h.
29478   # First, try using that file with no special directory specified.
29479   cat >conftest.$ac_ext <<_ACEOF
29480 /* confdefs.h.  */
29481 _ACEOF
29482 cat confdefs.h >>conftest.$ac_ext
29483 cat >>conftest.$ac_ext <<_ACEOF
29484 /* end confdefs.h.  */
29485 #include <X11/Xlib.h>
29486 _ACEOF
29487 if { (ac_try="$ac_cpp conftest.$ac_ext"
29488 case "(($ac_try" in
29489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29490   *) ac_try_echo=$ac_try;;
29491 esac
29492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29493   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29494   ac_status=$?
29495   grep -v '^ *+' conftest.er1 >conftest.err
29496   rm -f conftest.er1
29497   cat conftest.err >&5
29498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499   (exit $ac_status); } >/dev/null && {
29500          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29501          test ! -s conftest.err
29502        }; then
29503   # We can compile using X headers with no special include directory.
29504 ac_x_includes=
29505 else
29506   echo "$as_me: failed program was:" >&5
29507 sed 's/^/| /' conftest.$ac_ext >&5
29508
29509   for ac_dir in $ac_x_header_dirs; do
29510   if test -r "$ac_dir/X11/Xlib.h"; then
29511     ac_x_includes=$ac_dir
29512     break
29513   fi
29514 done
29515 fi
29516
29517 rm -f conftest.err conftest.$ac_ext
29518 fi # $ac_x_includes = no
29519
29520 if test "$ac_x_libraries" = no; then
29521   # Check for the libraries.
29522   # See if we find them without any special options.
29523   # Don't add to $LIBS permanently.
29524   ac_save_LIBS=$LIBS
29525   LIBS="-lX11 $LIBS"
29526   cat >conftest.$ac_ext <<_ACEOF
29527 /* confdefs.h.  */
29528 _ACEOF
29529 cat confdefs.h >>conftest.$ac_ext
29530 cat >>conftest.$ac_ext <<_ACEOF
29531 /* end confdefs.h.  */
29532 #include <X11/Xlib.h>
29533 int
29534 main ()
29535 {
29536 XrmInitialize ()
29537   ;
29538   return 0;
29539 }
29540 _ACEOF
29541 rm -f conftest.$ac_objext conftest$ac_exeext
29542 if { (ac_try="$ac_link"
29543 case "(($ac_try" in
29544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29545   *) ac_try_echo=$ac_try;;
29546 esac
29547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29548   (eval "$ac_link") 2>conftest.er1
29549   ac_status=$?
29550   grep -v '^ *+' conftest.er1 >conftest.err
29551   rm -f conftest.er1
29552   cat conftest.err >&5
29553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29554   (exit $ac_status); } && {
29555          test -z "$ac_c_werror_flag" ||
29556          test ! -s conftest.err
29557        } && test -s conftest$ac_exeext &&
29558        $as_test_x conftest$ac_exeext; then
29559   LIBS=$ac_save_LIBS
29560 # We can link X programs with no special library path.
29561 ac_x_libraries=
29562 else
29563   echo "$as_me: failed program was:" >&5
29564 sed 's/^/| /' conftest.$ac_ext >&5
29565
29566         LIBS=$ac_save_LIBS
29567 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29568 do
29569   # Don't even attempt the hair of trying to link an X program!
29570   for ac_extension in a so sl; do
29571     if test -r "$ac_dir/libX11.$ac_extension"; then
29572       ac_x_libraries=$ac_dir
29573       break 2
29574     fi
29575   done
29576 done
29577 fi
29578
29579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29580       conftest$ac_exeext conftest.$ac_ext
29581 fi # $ac_x_libraries = no
29582
29583 case $ac_x_includes,$ac_x_libraries in #(
29584   no,* | *,no | *\'*)
29585     # Didn't find X, or a directory has "'" in its name.
29586     ac_cv_have_x="have_x=no";; #(
29587   *)
29588     # Record where we found X for the cache.
29589     ac_cv_have_x="have_x=yes\
29590         ac_x_includes='$ac_x_includes'\
29591         ac_x_libraries='$ac_x_libraries'"
29592 esac
29593 fi
29594 ;; #(
29595     *) have_x=yes;;
29596   esac
29597   eval "$ac_cv_have_x"
29598 fi # $with_x != no
29599
29600 if test "$have_x" != yes; then
29601   { echo "$as_me:$LINENO: result: $have_x" >&5
29602 echo "${ECHO_T}$have_x" >&6; }
29603   no_x=yes
29604 else
29605   # If each of the values was on the command line, it overrides each guess.
29606   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29607   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29608   # Update the cache value to reflect the command line values.
29609   ac_cv_have_x="have_x=yes\
29610         ac_x_includes='$x_includes'\
29611         ac_x_libraries='$x_libraries'"
29612   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29613 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29614 fi
29615
29616 if test "$no_x" = yes; then
29617   # Not all programs may use this symbol, but it does not hurt to define it.
29618
29619 cat >>confdefs.h <<\_ACEOF
29620 #define X_DISPLAY_MISSING 1
29621 _ACEOF
29622
29623   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29624 else
29625   if test -n "$x_includes"; then
29626     X_CFLAGS="$X_CFLAGS -I$x_includes"
29627   fi
29628
29629   # It would also be nice to do this for all -L options, not just this one.
29630   if test -n "$x_libraries"; then
29631     X_LIBS="$X_LIBS -L$x_libraries"
29632     # For Solaris; some versions of Sun CC require a space after -R and
29633     # others require no space.  Words are not sufficient . . . .
29634     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29635 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29636     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29637     ac_xsave_c_werror_flag=$ac_c_werror_flag
29638     ac_c_werror_flag=yes
29639     cat >conftest.$ac_ext <<_ACEOF
29640 /* confdefs.h.  */
29641 _ACEOF
29642 cat confdefs.h >>conftest.$ac_ext
29643 cat >>conftest.$ac_ext <<_ACEOF
29644 /* end confdefs.h.  */
29645
29646 int
29647 main ()
29648 {
29649
29650   ;
29651   return 0;
29652 }
29653 _ACEOF
29654 rm -f conftest.$ac_objext conftest$ac_exeext
29655 if { (ac_try="$ac_link"
29656 case "(($ac_try" in
29657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29658   *) ac_try_echo=$ac_try;;
29659 esac
29660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29661   (eval "$ac_link") 2>conftest.er1
29662   ac_status=$?
29663   grep -v '^ *+' conftest.er1 >conftest.err
29664   rm -f conftest.er1
29665   cat conftest.err >&5
29666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29667   (exit $ac_status); } && {
29668          test -z "$ac_c_werror_flag" ||
29669          test ! -s conftest.err
29670        } && test -s conftest$ac_exeext &&
29671        $as_test_x conftest$ac_exeext; then
29672   { echo "$as_me:$LINENO: result: no" >&5
29673 echo "${ECHO_T}no" >&6; }
29674        X_LIBS="$X_LIBS -R$x_libraries"
29675 else
29676   echo "$as_me: failed program was:" >&5
29677 sed 's/^/| /' conftest.$ac_ext >&5
29678
29679         LIBS="$ac_xsave_LIBS -R $x_libraries"
29680        cat >conftest.$ac_ext <<_ACEOF
29681 /* confdefs.h.  */
29682 _ACEOF
29683 cat confdefs.h >>conftest.$ac_ext
29684 cat >>conftest.$ac_ext <<_ACEOF
29685 /* end confdefs.h.  */
29686
29687 int
29688 main ()
29689 {
29690
29691   ;
29692   return 0;
29693 }
29694 _ACEOF
29695 rm -f conftest.$ac_objext conftest$ac_exeext
29696 if { (ac_try="$ac_link"
29697 case "(($ac_try" in
29698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29699   *) ac_try_echo=$ac_try;;
29700 esac
29701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29702   (eval "$ac_link") 2>conftest.er1
29703   ac_status=$?
29704   grep -v '^ *+' conftest.er1 >conftest.err
29705   rm -f conftest.er1
29706   cat conftest.err >&5
29707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29708   (exit $ac_status); } && {
29709          test -z "$ac_c_werror_flag" ||
29710          test ! -s conftest.err
29711        } && test -s conftest$ac_exeext &&
29712        $as_test_x conftest$ac_exeext; then
29713   { echo "$as_me:$LINENO: result: yes" >&5
29714 echo "${ECHO_T}yes" >&6; }
29715           X_LIBS="$X_LIBS -R $x_libraries"
29716 else
29717   echo "$as_me: failed program was:" >&5
29718 sed 's/^/| /' conftest.$ac_ext >&5
29719
29720         { echo "$as_me:$LINENO: result: neither works" >&5
29721 echo "${ECHO_T}neither works" >&6; }
29722 fi
29723
29724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29725       conftest$ac_exeext conftest.$ac_ext
29726 fi
29727
29728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29729       conftest$ac_exeext conftest.$ac_ext
29730     ac_c_werror_flag=$ac_xsave_c_werror_flag
29731     LIBS=$ac_xsave_LIBS
29732   fi
29733
29734   # Check for system-dependent libraries X programs must link with.
29735   # Do this before checking for the system-independent R6 libraries
29736   # (-lICE), since we may need -lsocket or whatever for X linking.
29737
29738   if test "$ISC" = yes; then
29739     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29740   else
29741     # Martyn Johnson says this is needed for Ultrix, if the X
29742     # libraries were built with DECnet support.  And Karl Berry says
29743     # the Alpha needs dnet_stub (dnet does not exist).
29744     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29745     cat >conftest.$ac_ext <<_ACEOF
29746 /* confdefs.h.  */
29747 _ACEOF
29748 cat confdefs.h >>conftest.$ac_ext
29749 cat >>conftest.$ac_ext <<_ACEOF
29750 /* end confdefs.h.  */
29751
29752 /* Override any GCC internal prototype to avoid an error.
29753    Use char because int might match the return type of a GCC
29754    builtin and then its argument prototype would still apply.  */
29755 #ifdef __cplusplus
29756 extern "C"
29757 #endif
29758 char XOpenDisplay ();
29759 int
29760 main ()
29761 {
29762 return XOpenDisplay ();
29763   ;
29764   return 0;
29765 }
29766 _ACEOF
29767 rm -f conftest.$ac_objext conftest$ac_exeext
29768 if { (ac_try="$ac_link"
29769 case "(($ac_try" in
29770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29771   *) ac_try_echo=$ac_try;;
29772 esac
29773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29774   (eval "$ac_link") 2>conftest.er1
29775   ac_status=$?
29776   grep -v '^ *+' conftest.er1 >conftest.err
29777   rm -f conftest.er1
29778   cat conftest.err >&5
29779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29780   (exit $ac_status); } && {
29781          test -z "$ac_c_werror_flag" ||
29782          test ! -s conftest.err
29783        } && test -s conftest$ac_exeext &&
29784        $as_test_x conftest$ac_exeext; then
29785   :
29786 else
29787   echo "$as_me: failed program was:" >&5
29788 sed 's/^/| /' conftest.$ac_ext >&5
29789
29790         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29791 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29792 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29793   echo $ECHO_N "(cached) $ECHO_C" >&6
29794 else
29795   ac_check_lib_save_LIBS=$LIBS
29796 LIBS="-ldnet  $LIBS"
29797 cat >conftest.$ac_ext <<_ACEOF
29798 /* confdefs.h.  */
29799 _ACEOF
29800 cat confdefs.h >>conftest.$ac_ext
29801 cat >>conftest.$ac_ext <<_ACEOF
29802 /* end confdefs.h.  */
29803
29804 /* Override any GCC internal prototype to avoid an error.
29805    Use char because int might match the return type of a GCC
29806    builtin and then its argument prototype would still apply.  */
29807 #ifdef __cplusplus
29808 extern "C"
29809 #endif
29810 char dnet_ntoa ();
29811 int
29812 main ()
29813 {
29814 return dnet_ntoa ();
29815   ;
29816   return 0;
29817 }
29818 _ACEOF
29819 rm -f conftest.$ac_objext conftest$ac_exeext
29820 if { (ac_try="$ac_link"
29821 case "(($ac_try" in
29822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29823   *) ac_try_echo=$ac_try;;
29824 esac
29825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29826   (eval "$ac_link") 2>conftest.er1
29827   ac_status=$?
29828   grep -v '^ *+' conftest.er1 >conftest.err
29829   rm -f conftest.er1
29830   cat conftest.err >&5
29831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29832   (exit $ac_status); } && {
29833          test -z "$ac_c_werror_flag" ||
29834          test ! -s conftest.err
29835        } && test -s conftest$ac_exeext &&
29836        $as_test_x conftest$ac_exeext; then
29837   ac_cv_lib_dnet_dnet_ntoa=yes
29838 else
29839   echo "$as_me: failed program was:" >&5
29840 sed 's/^/| /' conftest.$ac_ext >&5
29841
29842         ac_cv_lib_dnet_dnet_ntoa=no
29843 fi
29844
29845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29846       conftest$ac_exeext conftest.$ac_ext
29847 LIBS=$ac_check_lib_save_LIBS
29848 fi
29849 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29850 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29851 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29852   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29853 fi
29854
29855     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29856       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29857 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29858 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29859   echo $ECHO_N "(cached) $ECHO_C" >&6
29860 else
29861   ac_check_lib_save_LIBS=$LIBS
29862 LIBS="-ldnet_stub  $LIBS"
29863 cat >conftest.$ac_ext <<_ACEOF
29864 /* confdefs.h.  */
29865 _ACEOF
29866 cat confdefs.h >>conftest.$ac_ext
29867 cat >>conftest.$ac_ext <<_ACEOF
29868 /* end confdefs.h.  */
29869
29870 /* Override any GCC internal prototype to avoid an error.
29871    Use char because int might match the return type of a GCC
29872    builtin and then its argument prototype would still apply.  */
29873 #ifdef __cplusplus
29874 extern "C"
29875 #endif
29876 char dnet_ntoa ();
29877 int
29878 main ()
29879 {
29880 return dnet_ntoa ();
29881   ;
29882   return 0;
29883 }
29884 _ACEOF
29885 rm -f conftest.$ac_objext conftest$ac_exeext
29886 if { (ac_try="$ac_link"
29887 case "(($ac_try" in
29888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29889   *) ac_try_echo=$ac_try;;
29890 esac
29891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29892   (eval "$ac_link") 2>conftest.er1
29893   ac_status=$?
29894   grep -v '^ *+' conftest.er1 >conftest.err
29895   rm -f conftest.er1
29896   cat conftest.err >&5
29897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898   (exit $ac_status); } && {
29899          test -z "$ac_c_werror_flag" ||
29900          test ! -s conftest.err
29901        } && test -s conftest$ac_exeext &&
29902        $as_test_x conftest$ac_exeext; then
29903   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29904 else
29905   echo "$as_me: failed program was:" >&5
29906 sed 's/^/| /' conftest.$ac_ext >&5
29907
29908         ac_cv_lib_dnet_stub_dnet_ntoa=no
29909 fi
29910
29911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29912       conftest$ac_exeext conftest.$ac_ext
29913 LIBS=$ac_check_lib_save_LIBS
29914 fi
29915 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29916 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29917 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29918   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29919 fi
29920
29921     fi
29922 fi
29923
29924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29925       conftest$ac_exeext conftest.$ac_ext
29926     LIBS="$ac_xsave_LIBS"
29927
29928     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29929     # to get the SysV transport functions.
29930     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29931     # needs -lnsl.
29932     # The nsl library prevents programs from opening the X display
29933     # on Irix 5.2, according to T.E. Dickey.
29934     # The functions gethostbyname, getservbyname, and inet_addr are
29935     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29936     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29937 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29938 if test "${ac_cv_func_gethostbyname+set}" = set; then
29939   echo $ECHO_N "(cached) $ECHO_C" >&6
29940 else
29941   cat >conftest.$ac_ext <<_ACEOF
29942 /* confdefs.h.  */
29943 _ACEOF
29944 cat confdefs.h >>conftest.$ac_ext
29945 cat >>conftest.$ac_ext <<_ACEOF
29946 /* end confdefs.h.  */
29947 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29948    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29949 #define gethostbyname innocuous_gethostbyname
29950
29951 /* System header to define __stub macros and hopefully few prototypes,
29952     which can conflict with char gethostbyname (); below.
29953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29954     <limits.h> exists even on freestanding compilers.  */
29955
29956 #ifdef __STDC__
29957 # include <limits.h>
29958 #else
29959 # include <assert.h>
29960 #endif
29961
29962 #undef gethostbyname
29963
29964 /* Override any GCC internal prototype to avoid an error.
29965    Use char because int might match the return type of a GCC
29966    builtin and then its argument prototype would still apply.  */
29967 #ifdef __cplusplus
29968 extern "C"
29969 #endif
29970 char gethostbyname ();
29971 /* The GNU C library defines this for functions which it implements
29972     to always fail with ENOSYS.  Some functions are actually named
29973     something starting with __ and the normal name is an alias.  */
29974 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29975 choke me
29976 #endif
29977
29978 int
29979 main ()
29980 {
29981 return gethostbyname ();
29982   ;
29983   return 0;
29984 }
29985 _ACEOF
29986 rm -f conftest.$ac_objext conftest$ac_exeext
29987 if { (ac_try="$ac_link"
29988 case "(($ac_try" in
29989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29990   *) ac_try_echo=$ac_try;;
29991 esac
29992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29993   (eval "$ac_link") 2>conftest.er1
29994   ac_status=$?
29995   grep -v '^ *+' conftest.er1 >conftest.err
29996   rm -f conftest.er1
29997   cat conftest.err >&5
29998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29999   (exit $ac_status); } && {
30000          test -z "$ac_c_werror_flag" ||
30001          test ! -s conftest.err
30002        } && test -s conftest$ac_exeext &&
30003        $as_test_x conftest$ac_exeext; then
30004   ac_cv_func_gethostbyname=yes
30005 else
30006   echo "$as_me: failed program was:" >&5
30007 sed 's/^/| /' conftest.$ac_ext >&5
30008
30009         ac_cv_func_gethostbyname=no
30010 fi
30011
30012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30013       conftest$ac_exeext conftest.$ac_ext
30014 fi
30015 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30016 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30017
30018     if test $ac_cv_func_gethostbyname = no; then
30019       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30020 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30021 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30022   echo $ECHO_N "(cached) $ECHO_C" >&6
30023 else
30024   ac_check_lib_save_LIBS=$LIBS
30025 LIBS="-lnsl  $LIBS"
30026 cat >conftest.$ac_ext <<_ACEOF
30027 /* confdefs.h.  */
30028 _ACEOF
30029 cat confdefs.h >>conftest.$ac_ext
30030 cat >>conftest.$ac_ext <<_ACEOF
30031 /* end confdefs.h.  */
30032
30033 /* Override any GCC internal prototype to avoid an error.
30034    Use char because int might match the return type of a GCC
30035    builtin and then its argument prototype would still apply.  */
30036 #ifdef __cplusplus
30037 extern "C"
30038 #endif
30039 char gethostbyname ();
30040 int
30041 main ()
30042 {
30043 return gethostbyname ();
30044   ;
30045   return 0;
30046 }
30047 _ACEOF
30048 rm -f conftest.$ac_objext conftest$ac_exeext
30049 if { (ac_try="$ac_link"
30050 case "(($ac_try" in
30051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30052   *) ac_try_echo=$ac_try;;
30053 esac
30054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30055   (eval "$ac_link") 2>conftest.er1
30056   ac_status=$?
30057   grep -v '^ *+' conftest.er1 >conftest.err
30058   rm -f conftest.er1
30059   cat conftest.err >&5
30060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30061   (exit $ac_status); } && {
30062          test -z "$ac_c_werror_flag" ||
30063          test ! -s conftest.err
30064        } && test -s conftest$ac_exeext &&
30065        $as_test_x conftest$ac_exeext; then
30066   ac_cv_lib_nsl_gethostbyname=yes
30067 else
30068   echo "$as_me: failed program was:" >&5
30069 sed 's/^/| /' conftest.$ac_ext >&5
30070
30071         ac_cv_lib_nsl_gethostbyname=no
30072 fi
30073
30074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30075       conftest$ac_exeext conftest.$ac_ext
30076 LIBS=$ac_check_lib_save_LIBS
30077 fi
30078 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30079 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30080 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30081   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30082 fi
30083
30084       if test $ac_cv_lib_nsl_gethostbyname = no; then
30085         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30086 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30087 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30088   echo $ECHO_N "(cached) $ECHO_C" >&6
30089 else
30090   ac_check_lib_save_LIBS=$LIBS
30091 LIBS="-lbsd  $LIBS"
30092 cat >conftest.$ac_ext <<_ACEOF
30093 /* confdefs.h.  */
30094 _ACEOF
30095 cat confdefs.h >>conftest.$ac_ext
30096 cat >>conftest.$ac_ext <<_ACEOF
30097 /* end confdefs.h.  */
30098
30099 /* Override any GCC internal prototype to avoid an error.
30100    Use char because int might match the return type of a GCC
30101    builtin and then its argument prototype would still apply.  */
30102 #ifdef __cplusplus
30103 extern "C"
30104 #endif
30105 char gethostbyname ();
30106 int
30107 main ()
30108 {
30109 return gethostbyname ();
30110   ;
30111   return 0;
30112 }
30113 _ACEOF
30114 rm -f conftest.$ac_objext conftest$ac_exeext
30115 if { (ac_try="$ac_link"
30116 case "(($ac_try" in
30117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30118   *) ac_try_echo=$ac_try;;
30119 esac
30120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30121   (eval "$ac_link") 2>conftest.er1
30122   ac_status=$?
30123   grep -v '^ *+' conftest.er1 >conftest.err
30124   rm -f conftest.er1
30125   cat conftest.err >&5
30126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30127   (exit $ac_status); } && {
30128          test -z "$ac_c_werror_flag" ||
30129          test ! -s conftest.err
30130        } && test -s conftest$ac_exeext &&
30131        $as_test_x conftest$ac_exeext; then
30132   ac_cv_lib_bsd_gethostbyname=yes
30133 else
30134   echo "$as_me: failed program was:" >&5
30135 sed 's/^/| /' conftest.$ac_ext >&5
30136
30137         ac_cv_lib_bsd_gethostbyname=no
30138 fi
30139
30140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30141       conftest$ac_exeext conftest.$ac_ext
30142 LIBS=$ac_check_lib_save_LIBS
30143 fi
30144 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30145 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30146 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30147   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30148 fi
30149
30150       fi
30151     fi
30152
30153     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30154     # socket/setsockopt and other routines are undefined under SCO ODT
30155     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30156     # on later versions), says Simon Leinen: it contains gethostby*
30157     # variants that don't use the name server (or something).  -lsocket
30158     # must be given before -lnsl if both are needed.  We assume that
30159     # if connect needs -lnsl, so does gethostbyname.
30160     { echo "$as_me:$LINENO: checking for connect" >&5
30161 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30162 if test "${ac_cv_func_connect+set}" = set; then
30163   echo $ECHO_N "(cached) $ECHO_C" >&6
30164 else
30165   cat >conftest.$ac_ext <<_ACEOF
30166 /* confdefs.h.  */
30167 _ACEOF
30168 cat confdefs.h >>conftest.$ac_ext
30169 cat >>conftest.$ac_ext <<_ACEOF
30170 /* end confdefs.h.  */
30171 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30172    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30173 #define connect innocuous_connect
30174
30175 /* System header to define __stub macros and hopefully few prototypes,
30176     which can conflict with char connect (); below.
30177     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30178     <limits.h> exists even on freestanding compilers.  */
30179
30180 #ifdef __STDC__
30181 # include <limits.h>
30182 #else
30183 # include <assert.h>
30184 #endif
30185
30186 #undef connect
30187
30188 /* Override any GCC internal prototype to avoid an error.
30189    Use char because int might match the return type of a GCC
30190    builtin and then its argument prototype would still apply.  */
30191 #ifdef __cplusplus
30192 extern "C"
30193 #endif
30194 char connect ();
30195 /* The GNU C library defines this for functions which it implements
30196     to always fail with ENOSYS.  Some functions are actually named
30197     something starting with __ and the normal name is an alias.  */
30198 #if defined __stub_connect || defined __stub___connect
30199 choke me
30200 #endif
30201
30202 int
30203 main ()
30204 {
30205 return connect ();
30206   ;
30207   return 0;
30208 }
30209 _ACEOF
30210 rm -f conftest.$ac_objext conftest$ac_exeext
30211 if { (ac_try="$ac_link"
30212 case "(($ac_try" in
30213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30214   *) ac_try_echo=$ac_try;;
30215 esac
30216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30217   (eval "$ac_link") 2>conftest.er1
30218   ac_status=$?
30219   grep -v '^ *+' conftest.er1 >conftest.err
30220   rm -f conftest.er1
30221   cat conftest.err >&5
30222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30223   (exit $ac_status); } && {
30224          test -z "$ac_c_werror_flag" ||
30225          test ! -s conftest.err
30226        } && test -s conftest$ac_exeext &&
30227        $as_test_x conftest$ac_exeext; then
30228   ac_cv_func_connect=yes
30229 else
30230   echo "$as_me: failed program was:" >&5
30231 sed 's/^/| /' conftest.$ac_ext >&5
30232
30233         ac_cv_func_connect=no
30234 fi
30235
30236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30237       conftest$ac_exeext conftest.$ac_ext
30238 fi
30239 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30240 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30241
30242     if test $ac_cv_func_connect = no; then
30243       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30244 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30245 if test "${ac_cv_lib_socket_connect+set}" = set; then
30246   echo $ECHO_N "(cached) $ECHO_C" >&6
30247 else
30248   ac_check_lib_save_LIBS=$LIBS
30249 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30250 cat >conftest.$ac_ext <<_ACEOF
30251 /* confdefs.h.  */
30252 _ACEOF
30253 cat confdefs.h >>conftest.$ac_ext
30254 cat >>conftest.$ac_ext <<_ACEOF
30255 /* end confdefs.h.  */
30256
30257 /* Override any GCC internal prototype to avoid an error.
30258    Use char because int might match the return type of a GCC
30259    builtin and then its argument prototype would still apply.  */
30260 #ifdef __cplusplus
30261 extern "C"
30262 #endif
30263 char connect ();
30264 int
30265 main ()
30266 {
30267 return connect ();
30268   ;
30269   return 0;
30270 }
30271 _ACEOF
30272 rm -f conftest.$ac_objext conftest$ac_exeext
30273 if { (ac_try="$ac_link"
30274 case "(($ac_try" in
30275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30276   *) ac_try_echo=$ac_try;;
30277 esac
30278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30279   (eval "$ac_link") 2>conftest.er1
30280   ac_status=$?
30281   grep -v '^ *+' conftest.er1 >conftest.err
30282   rm -f conftest.er1
30283   cat conftest.err >&5
30284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30285   (exit $ac_status); } && {
30286          test -z "$ac_c_werror_flag" ||
30287          test ! -s conftest.err
30288        } && test -s conftest$ac_exeext &&
30289        $as_test_x conftest$ac_exeext; then
30290   ac_cv_lib_socket_connect=yes
30291 else
30292   echo "$as_me: failed program was:" >&5
30293 sed 's/^/| /' conftest.$ac_ext >&5
30294
30295         ac_cv_lib_socket_connect=no
30296 fi
30297
30298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30299       conftest$ac_exeext conftest.$ac_ext
30300 LIBS=$ac_check_lib_save_LIBS
30301 fi
30302 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30303 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30304 if test $ac_cv_lib_socket_connect = yes; then
30305   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30306 fi
30307
30308     fi
30309
30310     # Guillermo Gomez says -lposix is necessary on A/UX.
30311     { echo "$as_me:$LINENO: checking for remove" >&5
30312 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30313 if test "${ac_cv_func_remove+set}" = set; then
30314   echo $ECHO_N "(cached) $ECHO_C" >&6
30315 else
30316   cat >conftest.$ac_ext <<_ACEOF
30317 /* confdefs.h.  */
30318 _ACEOF
30319 cat confdefs.h >>conftest.$ac_ext
30320 cat >>conftest.$ac_ext <<_ACEOF
30321 /* end confdefs.h.  */
30322 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30323    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30324 #define remove innocuous_remove
30325
30326 /* System header to define __stub macros and hopefully few prototypes,
30327     which can conflict with char remove (); below.
30328     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30329     <limits.h> exists even on freestanding compilers.  */
30330
30331 #ifdef __STDC__
30332 # include <limits.h>
30333 #else
30334 # include <assert.h>
30335 #endif
30336
30337 #undef remove
30338
30339 /* Override any GCC internal prototype to avoid an error.
30340    Use char because int might match the return type of a GCC
30341    builtin and then its argument prototype would still apply.  */
30342 #ifdef __cplusplus
30343 extern "C"
30344 #endif
30345 char remove ();
30346 /* The GNU C library defines this for functions which it implements
30347     to always fail with ENOSYS.  Some functions are actually named
30348     something starting with __ and the normal name is an alias.  */
30349 #if defined __stub_remove || defined __stub___remove
30350 choke me
30351 #endif
30352
30353 int
30354 main ()
30355 {
30356 return remove ();
30357   ;
30358   return 0;
30359 }
30360 _ACEOF
30361 rm -f conftest.$ac_objext conftest$ac_exeext
30362 if { (ac_try="$ac_link"
30363 case "(($ac_try" in
30364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30365   *) ac_try_echo=$ac_try;;
30366 esac
30367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30368   (eval "$ac_link") 2>conftest.er1
30369   ac_status=$?
30370   grep -v '^ *+' conftest.er1 >conftest.err
30371   rm -f conftest.er1
30372   cat conftest.err >&5
30373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30374   (exit $ac_status); } && {
30375          test -z "$ac_c_werror_flag" ||
30376          test ! -s conftest.err
30377        } && test -s conftest$ac_exeext &&
30378        $as_test_x conftest$ac_exeext; then
30379   ac_cv_func_remove=yes
30380 else
30381   echo "$as_me: failed program was:" >&5
30382 sed 's/^/| /' conftest.$ac_ext >&5
30383
30384         ac_cv_func_remove=no
30385 fi
30386
30387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30388       conftest$ac_exeext conftest.$ac_ext
30389 fi
30390 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30391 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30392
30393     if test $ac_cv_func_remove = no; then
30394       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30395 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30396 if test "${ac_cv_lib_posix_remove+set}" = set; then
30397   echo $ECHO_N "(cached) $ECHO_C" >&6
30398 else
30399   ac_check_lib_save_LIBS=$LIBS
30400 LIBS="-lposix  $LIBS"
30401 cat >conftest.$ac_ext <<_ACEOF
30402 /* confdefs.h.  */
30403 _ACEOF
30404 cat confdefs.h >>conftest.$ac_ext
30405 cat >>conftest.$ac_ext <<_ACEOF
30406 /* end confdefs.h.  */
30407
30408 /* Override any GCC internal prototype to avoid an error.
30409    Use char because int might match the return type of a GCC
30410    builtin and then its argument prototype would still apply.  */
30411 #ifdef __cplusplus
30412 extern "C"
30413 #endif
30414 char remove ();
30415 int
30416 main ()
30417 {
30418 return remove ();
30419   ;
30420   return 0;
30421 }
30422 _ACEOF
30423 rm -f conftest.$ac_objext conftest$ac_exeext
30424 if { (ac_try="$ac_link"
30425 case "(($ac_try" in
30426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30427   *) ac_try_echo=$ac_try;;
30428 esac
30429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30430   (eval "$ac_link") 2>conftest.er1
30431   ac_status=$?
30432   grep -v '^ *+' conftest.er1 >conftest.err
30433   rm -f conftest.er1
30434   cat conftest.err >&5
30435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30436   (exit $ac_status); } && {
30437          test -z "$ac_c_werror_flag" ||
30438          test ! -s conftest.err
30439        } && test -s conftest$ac_exeext &&
30440        $as_test_x conftest$ac_exeext; then
30441   ac_cv_lib_posix_remove=yes
30442 else
30443   echo "$as_me: failed program was:" >&5
30444 sed 's/^/| /' conftest.$ac_ext >&5
30445
30446         ac_cv_lib_posix_remove=no
30447 fi
30448
30449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30450       conftest$ac_exeext conftest.$ac_ext
30451 LIBS=$ac_check_lib_save_LIBS
30452 fi
30453 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30454 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30455 if test $ac_cv_lib_posix_remove = yes; then
30456   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30457 fi
30458
30459     fi
30460
30461     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30462     { echo "$as_me:$LINENO: checking for shmat" >&5
30463 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30464 if test "${ac_cv_func_shmat+set}" = set; then
30465   echo $ECHO_N "(cached) $ECHO_C" >&6
30466 else
30467   cat >conftest.$ac_ext <<_ACEOF
30468 /* confdefs.h.  */
30469 _ACEOF
30470 cat confdefs.h >>conftest.$ac_ext
30471 cat >>conftest.$ac_ext <<_ACEOF
30472 /* end confdefs.h.  */
30473 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30474    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30475 #define shmat innocuous_shmat
30476
30477 /* System header to define __stub macros and hopefully few prototypes,
30478     which can conflict with char shmat (); below.
30479     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30480     <limits.h> exists even on freestanding compilers.  */
30481
30482 #ifdef __STDC__
30483 # include <limits.h>
30484 #else
30485 # include <assert.h>
30486 #endif
30487
30488 #undef shmat
30489
30490 /* Override any GCC internal prototype to avoid an error.
30491    Use char because int might match the return type of a GCC
30492    builtin and then its argument prototype would still apply.  */
30493 #ifdef __cplusplus
30494 extern "C"
30495 #endif
30496 char shmat ();
30497 /* The GNU C library defines this for functions which it implements
30498     to always fail with ENOSYS.  Some functions are actually named
30499     something starting with __ and the normal name is an alias.  */
30500 #if defined __stub_shmat || defined __stub___shmat
30501 choke me
30502 #endif
30503
30504 int
30505 main ()
30506 {
30507 return shmat ();
30508   ;
30509   return 0;
30510 }
30511 _ACEOF
30512 rm -f conftest.$ac_objext conftest$ac_exeext
30513 if { (ac_try="$ac_link"
30514 case "(($ac_try" in
30515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30516   *) ac_try_echo=$ac_try;;
30517 esac
30518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30519   (eval "$ac_link") 2>conftest.er1
30520   ac_status=$?
30521   grep -v '^ *+' conftest.er1 >conftest.err
30522   rm -f conftest.er1
30523   cat conftest.err >&5
30524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30525   (exit $ac_status); } && {
30526          test -z "$ac_c_werror_flag" ||
30527          test ! -s conftest.err
30528        } && test -s conftest$ac_exeext &&
30529        $as_test_x conftest$ac_exeext; then
30530   ac_cv_func_shmat=yes
30531 else
30532   echo "$as_me: failed program was:" >&5
30533 sed 's/^/| /' conftest.$ac_ext >&5
30534
30535         ac_cv_func_shmat=no
30536 fi
30537
30538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30539       conftest$ac_exeext conftest.$ac_ext
30540 fi
30541 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30542 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30543
30544     if test $ac_cv_func_shmat = no; then
30545       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30546 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30547 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30548   echo $ECHO_N "(cached) $ECHO_C" >&6
30549 else
30550   ac_check_lib_save_LIBS=$LIBS
30551 LIBS="-lipc  $LIBS"
30552 cat >conftest.$ac_ext <<_ACEOF
30553 /* confdefs.h.  */
30554 _ACEOF
30555 cat confdefs.h >>conftest.$ac_ext
30556 cat >>conftest.$ac_ext <<_ACEOF
30557 /* end confdefs.h.  */
30558
30559 /* Override any GCC internal prototype to avoid an error.
30560    Use char because int might match the return type of a GCC
30561    builtin and then its argument prototype would still apply.  */
30562 #ifdef __cplusplus
30563 extern "C"
30564 #endif
30565 char shmat ();
30566 int
30567 main ()
30568 {
30569 return shmat ();
30570   ;
30571   return 0;
30572 }
30573 _ACEOF
30574 rm -f conftest.$ac_objext conftest$ac_exeext
30575 if { (ac_try="$ac_link"
30576 case "(($ac_try" in
30577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30578   *) ac_try_echo=$ac_try;;
30579 esac
30580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30581   (eval "$ac_link") 2>conftest.er1
30582   ac_status=$?
30583   grep -v '^ *+' conftest.er1 >conftest.err
30584   rm -f conftest.er1
30585   cat conftest.err >&5
30586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30587   (exit $ac_status); } && {
30588          test -z "$ac_c_werror_flag" ||
30589          test ! -s conftest.err
30590        } && test -s conftest$ac_exeext &&
30591        $as_test_x conftest$ac_exeext; then
30592   ac_cv_lib_ipc_shmat=yes
30593 else
30594   echo "$as_me: failed program was:" >&5
30595 sed 's/^/| /' conftest.$ac_ext >&5
30596
30597         ac_cv_lib_ipc_shmat=no
30598 fi
30599
30600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30601       conftest$ac_exeext conftest.$ac_ext
30602 LIBS=$ac_check_lib_save_LIBS
30603 fi
30604 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30605 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30606 if test $ac_cv_lib_ipc_shmat = yes; then
30607   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30608 fi
30609
30610     fi
30611   fi
30612
30613   # Check for libraries that X11R6 Xt/Xaw programs need.
30614   ac_save_LDFLAGS=$LDFLAGS
30615   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30616   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30617   # check for ICE first), but we must link in the order -lSM -lICE or
30618   # we get undefined symbols.  So assume we have SM if we have ICE.
30619   # These have to be linked with before -lX11, unlike the other
30620   # libraries we check for below, so use a different variable.
30621   # John Interrante, Karl Berry
30622   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30623 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30624 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30625   echo $ECHO_N "(cached) $ECHO_C" >&6
30626 else
30627   ac_check_lib_save_LIBS=$LIBS
30628 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30629 cat >conftest.$ac_ext <<_ACEOF
30630 /* confdefs.h.  */
30631 _ACEOF
30632 cat confdefs.h >>conftest.$ac_ext
30633 cat >>conftest.$ac_ext <<_ACEOF
30634 /* end confdefs.h.  */
30635
30636 /* Override any GCC internal prototype to avoid an error.
30637    Use char because int might match the return type of a GCC
30638    builtin and then its argument prototype would still apply.  */
30639 #ifdef __cplusplus
30640 extern "C"
30641 #endif
30642 char IceConnectionNumber ();
30643 int
30644 main ()
30645 {
30646 return IceConnectionNumber ();
30647   ;
30648   return 0;
30649 }
30650 _ACEOF
30651 rm -f conftest.$ac_objext conftest$ac_exeext
30652 if { (ac_try="$ac_link"
30653 case "(($ac_try" in
30654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30655   *) ac_try_echo=$ac_try;;
30656 esac
30657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30658   (eval "$ac_link") 2>conftest.er1
30659   ac_status=$?
30660   grep -v '^ *+' conftest.er1 >conftest.err
30661   rm -f conftest.er1
30662   cat conftest.err >&5
30663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30664   (exit $ac_status); } && {
30665          test -z "$ac_c_werror_flag" ||
30666          test ! -s conftest.err
30667        } && test -s conftest$ac_exeext &&
30668        $as_test_x conftest$ac_exeext; then
30669   ac_cv_lib_ICE_IceConnectionNumber=yes
30670 else
30671   echo "$as_me: failed program was:" >&5
30672 sed 's/^/| /' conftest.$ac_ext >&5
30673
30674         ac_cv_lib_ICE_IceConnectionNumber=no
30675 fi
30676
30677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30678       conftest$ac_exeext conftest.$ac_ext
30679 LIBS=$ac_check_lib_save_LIBS
30680 fi
30681 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30682 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30683 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30684   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30685 fi
30686
30687   LDFLAGS=$ac_save_LDFLAGS
30688
30689 fi
30690
30691
30692
30693
30694
30695
30696
30697
30698
30699
30700
30701
30702
30703
30704
30705
30706
30707
30708
30709
30710
30711
30712
30713
30714
30715
30716
30717
30718
30719
30720
30721 for ac_header in \
30722    assert.h \
30723    fcntl.h \
30724    grp.h \
30725    pwd.h \
30726    libc.h \
30727    limits.h \
30728    stdarg.h \
30729    stdlib.h \
30730    stdint.h \
30731    string.h \
30732    strings.h \
30733    termios.h \
30734    termcap.h \
30735    term.h \
30736    unistd.h \
30737    sys/bitypes.h \
30738    sys/byteorder.h \
30739    sys/ioctl.h \
30740    sys/select.h \
30741    sys/socket.h \
30742    sys/sockio.h \
30743    sys/stat.h \
30744    sys/time.h \
30745    sys/types.h \
30746    arpa/nameser.h \
30747    mtio.h \
30748    sys/mtio.h \
30749    sys/tape.h \
30750    regex.h \
30751
30752 do
30753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30755   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30758   echo $ECHO_N "(cached) $ECHO_C" >&6
30759 fi
30760 ac_res=`eval echo '${'$as_ac_Header'}'`
30761                { echo "$as_me:$LINENO: result: $ac_res" >&5
30762 echo "${ECHO_T}$ac_res" >&6; }
30763 else
30764   # Is the header compilable?
30765 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30766 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30767 cat >conftest.$ac_ext <<_ACEOF
30768 /* confdefs.h.  */
30769 _ACEOF
30770 cat confdefs.h >>conftest.$ac_ext
30771 cat >>conftest.$ac_ext <<_ACEOF
30772 /* end confdefs.h.  */
30773 $ac_includes_default
30774 #include <$ac_header>
30775 _ACEOF
30776 rm -f conftest.$ac_objext
30777 if { (ac_try="$ac_compile"
30778 case "(($ac_try" in
30779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30780   *) ac_try_echo=$ac_try;;
30781 esac
30782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30783   (eval "$ac_compile") 2>conftest.er1
30784   ac_status=$?
30785   grep -v '^ *+' conftest.er1 >conftest.err
30786   rm -f conftest.er1
30787   cat conftest.err >&5
30788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30789   (exit $ac_status); } && {
30790          test -z "$ac_c_werror_flag" ||
30791          test ! -s conftest.err
30792        } && test -s conftest.$ac_objext; then
30793   ac_header_compiler=yes
30794 else
30795   echo "$as_me: failed program was:" >&5
30796 sed 's/^/| /' conftest.$ac_ext >&5
30797
30798         ac_header_compiler=no
30799 fi
30800
30801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30802 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30803 echo "${ECHO_T}$ac_header_compiler" >&6; }
30804
30805 # Is the header present?
30806 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30808 cat >conftest.$ac_ext <<_ACEOF
30809 /* confdefs.h.  */
30810 _ACEOF
30811 cat confdefs.h >>conftest.$ac_ext
30812 cat >>conftest.$ac_ext <<_ACEOF
30813 /* end confdefs.h.  */
30814 #include <$ac_header>
30815 _ACEOF
30816 if { (ac_try="$ac_cpp conftest.$ac_ext"
30817 case "(($ac_try" in
30818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30819   *) ac_try_echo=$ac_try;;
30820 esac
30821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30822   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30823   ac_status=$?
30824   grep -v '^ *+' conftest.er1 >conftest.err
30825   rm -f conftest.er1
30826   cat conftest.err >&5
30827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30828   (exit $ac_status); } >/dev/null && {
30829          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30830          test ! -s conftest.err
30831        }; then
30832   ac_header_preproc=yes
30833 else
30834   echo "$as_me: failed program was:" >&5
30835 sed 's/^/| /' conftest.$ac_ext >&5
30836
30837   ac_header_preproc=no
30838 fi
30839
30840 rm -f conftest.err conftest.$ac_ext
30841 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30842 echo "${ECHO_T}$ac_header_preproc" >&6; }
30843
30844 # So?  What about this header?
30845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30846   yes:no: )
30847     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30848 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30849     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30850 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30851     ac_header_preproc=yes
30852     ;;
30853   no:yes:* )
30854     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30855 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30856     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30857 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30858     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30859 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30860     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30861 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30862     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30864     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30865 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30866
30867     ;;
30868 esac
30869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30872   echo $ECHO_N "(cached) $ECHO_C" >&6
30873 else
30874   eval "$as_ac_Header=\$ac_header_preproc"
30875 fi
30876 ac_res=`eval echo '${'$as_ac_Header'}'`
30877                { echo "$as_me:$LINENO: result: $ac_res" >&5
30878 echo "${ECHO_T}$ac_res" >&6; }
30879
30880 fi
30881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30882   cat >>confdefs.h <<_ACEOF
30883 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30884 _ACEOF
30885
30886 fi
30887
30888 done
30889
30890 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30891 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30892 if test "${ac_cv_header_stdc+set}" = set; then
30893   echo $ECHO_N "(cached) $ECHO_C" >&6
30894 else
30895   cat >conftest.$ac_ext <<_ACEOF
30896 /* confdefs.h.  */
30897 _ACEOF
30898 cat confdefs.h >>conftest.$ac_ext
30899 cat >>conftest.$ac_ext <<_ACEOF
30900 /* end confdefs.h.  */
30901 #include <stdlib.h>
30902 #include <stdarg.h>
30903 #include <string.h>
30904 #include <float.h>
30905
30906 int
30907 main ()
30908 {
30909
30910   ;
30911   return 0;
30912 }
30913 _ACEOF
30914 rm -f conftest.$ac_objext
30915 if { (ac_try="$ac_compile"
30916 case "(($ac_try" in
30917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30918   *) ac_try_echo=$ac_try;;
30919 esac
30920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30921   (eval "$ac_compile") 2>conftest.er1
30922   ac_status=$?
30923   grep -v '^ *+' conftest.er1 >conftest.err
30924   rm -f conftest.er1
30925   cat conftest.err >&5
30926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30927   (exit $ac_status); } && {
30928          test -z "$ac_c_werror_flag" ||
30929          test ! -s conftest.err
30930        } && test -s conftest.$ac_objext; then
30931   ac_cv_header_stdc=yes
30932 else
30933   echo "$as_me: failed program was:" >&5
30934 sed 's/^/| /' conftest.$ac_ext >&5
30935
30936         ac_cv_header_stdc=no
30937 fi
30938
30939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30940
30941 if test $ac_cv_header_stdc = yes; then
30942   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30943   cat >conftest.$ac_ext <<_ACEOF
30944 /* confdefs.h.  */
30945 _ACEOF
30946 cat confdefs.h >>conftest.$ac_ext
30947 cat >>conftest.$ac_ext <<_ACEOF
30948 /* end confdefs.h.  */
30949 #include <string.h>
30950
30951 _ACEOF
30952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30953   $EGREP "memchr" >/dev/null 2>&1; then
30954   :
30955 else
30956   ac_cv_header_stdc=no
30957 fi
30958 rm -f conftest*
30959
30960 fi
30961
30962 if test $ac_cv_header_stdc = yes; then
30963   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30964   cat >conftest.$ac_ext <<_ACEOF
30965 /* confdefs.h.  */
30966 _ACEOF
30967 cat confdefs.h >>conftest.$ac_ext
30968 cat >>conftest.$ac_ext <<_ACEOF
30969 /* end confdefs.h.  */
30970 #include <stdlib.h>
30971
30972 _ACEOF
30973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30974   $EGREP "free" >/dev/null 2>&1; then
30975   :
30976 else
30977   ac_cv_header_stdc=no
30978 fi
30979 rm -f conftest*
30980
30981 fi
30982
30983 if test $ac_cv_header_stdc = yes; then
30984   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30985   if test "$cross_compiling" = yes; then
30986   :
30987 else
30988   cat >conftest.$ac_ext <<_ACEOF
30989 /* confdefs.h.  */
30990 _ACEOF
30991 cat confdefs.h >>conftest.$ac_ext
30992 cat >>conftest.$ac_ext <<_ACEOF
30993 /* end confdefs.h.  */
30994 #include <ctype.h>
30995 #include <stdlib.h>
30996 #if ((' ' & 0x0FF) == 0x020)
30997 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30998 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30999 #else
31000 # define ISLOWER(c) \
31001                    (('a' <= (c) && (c) <= 'i') \
31002                      || ('j' <= (c) && (c) <= 'r') \
31003                      || ('s' <= (c) && (c) <= 'z'))
31004 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
31005 #endif
31006
31007 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
31008 int
31009 main ()
31010 {
31011   int i;
31012   for (i = 0; i < 256; i++)
31013     if (XOR (islower (i), ISLOWER (i))
31014         || toupper (i) != TOUPPER (i))
31015       return 2;
31016   return 0;
31017 }
31018 _ACEOF
31019 rm -f conftest$ac_exeext
31020 if { (ac_try="$ac_link"
31021 case "(($ac_try" in
31022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31023   *) ac_try_echo=$ac_try;;
31024 esac
31025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31026   (eval "$ac_link") 2>&5
31027   ac_status=$?
31028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31029   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31030   { (case "(($ac_try" in
31031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31032   *) ac_try_echo=$ac_try;;
31033 esac
31034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31035   (eval "$ac_try") 2>&5
31036   ac_status=$?
31037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31038   (exit $ac_status); }; }; then
31039   :
31040 else
31041   echo "$as_me: program exited with status $ac_status" >&5
31042 echo "$as_me: failed program was:" >&5
31043 sed 's/^/| /' conftest.$ac_ext >&5
31044
31045 ( exit $ac_status )
31046 ac_cv_header_stdc=no
31047 fi
31048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31049 fi
31050
31051
31052 fi
31053 fi
31054 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31055 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
31056 if test $ac_cv_header_stdc = yes; then
31057
31058 cat >>confdefs.h <<\_ACEOF
31059 #define STDC_HEADERS 1
31060 _ACEOF
31061
31062 fi
31063
31064 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31065 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31066 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31067   echo $ECHO_N "(cached) $ECHO_C" >&6
31068 else
31069   cat >conftest.$ac_ext <<_ACEOF
31070 /* confdefs.h.  */
31071 _ACEOF
31072 cat confdefs.h >>conftest.$ac_ext
31073 cat >>conftest.$ac_ext <<_ACEOF
31074 /* end confdefs.h.  */
31075 #include <sys/types.h>
31076 int
31077 main ()
31078 {
31079 return makedev(0, 0);
31080   ;
31081   return 0;
31082 }
31083 _ACEOF
31084 rm -f conftest.$ac_objext conftest$ac_exeext
31085 if { (ac_try="$ac_link"
31086 case "(($ac_try" in
31087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31088   *) ac_try_echo=$ac_try;;
31089 esac
31090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31091   (eval "$ac_link") 2>conftest.er1
31092   ac_status=$?
31093   grep -v '^ *+' conftest.er1 >conftest.err
31094   rm -f conftest.er1
31095   cat conftest.err >&5
31096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31097   (exit $ac_status); } && {
31098          test -z "$ac_c_werror_flag" ||
31099          test ! -s conftest.err
31100        } && test -s conftest$ac_exeext &&
31101        $as_test_x conftest$ac_exeext; then
31102   ac_cv_header_sys_types_h_makedev=yes
31103 else
31104   echo "$as_me: failed program was:" >&5
31105 sed 's/^/| /' conftest.$ac_ext >&5
31106
31107         ac_cv_header_sys_types_h_makedev=no
31108 fi
31109
31110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31111       conftest$ac_exeext conftest.$ac_ext
31112
31113 fi
31114 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31115 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31116
31117 if test $ac_cv_header_sys_types_h_makedev = no; then
31118 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31119   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31120 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31121 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31122   echo $ECHO_N "(cached) $ECHO_C" >&6
31123 fi
31124 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31125 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31126 else
31127   # Is the header compilable?
31128 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31129 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
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 $ac_includes_default
31137 #include <sys/mkdev.h>
31138 _ACEOF
31139 rm -f conftest.$ac_objext
31140 if { (ac_try="$ac_compile"
31141 case "(($ac_try" in
31142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31143   *) ac_try_echo=$ac_try;;
31144 esac
31145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31146   (eval "$ac_compile") 2>conftest.er1
31147   ac_status=$?
31148   grep -v '^ *+' conftest.er1 >conftest.err
31149   rm -f conftest.er1
31150   cat conftest.err >&5
31151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31152   (exit $ac_status); } && {
31153          test -z "$ac_c_werror_flag" ||
31154          test ! -s conftest.err
31155        } && test -s conftest.$ac_objext; then
31156   ac_header_compiler=yes
31157 else
31158   echo "$as_me: failed program was:" >&5
31159 sed 's/^/| /' conftest.$ac_ext >&5
31160
31161         ac_header_compiler=no
31162 fi
31163
31164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31165 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31166 echo "${ECHO_T}$ac_header_compiler" >&6; }
31167
31168 # Is the header present?
31169 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31170 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31171 cat >conftest.$ac_ext <<_ACEOF
31172 /* confdefs.h.  */
31173 _ACEOF
31174 cat confdefs.h >>conftest.$ac_ext
31175 cat >>conftest.$ac_ext <<_ACEOF
31176 /* end confdefs.h.  */
31177 #include <sys/mkdev.h>
31178 _ACEOF
31179 if { (ac_try="$ac_cpp conftest.$ac_ext"
31180 case "(($ac_try" in
31181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31182   *) ac_try_echo=$ac_try;;
31183 esac
31184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31185   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31186   ac_status=$?
31187   grep -v '^ *+' conftest.er1 >conftest.err
31188   rm -f conftest.er1
31189   cat conftest.err >&5
31190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31191   (exit $ac_status); } >/dev/null && {
31192          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31193          test ! -s conftest.err
31194        }; then
31195   ac_header_preproc=yes
31196 else
31197   echo "$as_me: failed program was:" >&5
31198 sed 's/^/| /' conftest.$ac_ext >&5
31199
31200   ac_header_preproc=no
31201 fi
31202
31203 rm -f conftest.err conftest.$ac_ext
31204 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31205 echo "${ECHO_T}$ac_header_preproc" >&6; }
31206
31207 # So?  What about this header?
31208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31209   yes:no: )
31210     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31211 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31212     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31213 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31214     ac_header_preproc=yes
31215     ;;
31216   no:yes:* )
31217     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31218 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31219     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
31220 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
31221     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31222 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31223     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
31224 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31225     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31226 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31227     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31228 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31229
31230     ;;
31231 esac
31232 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31233 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31234 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31235   echo $ECHO_N "(cached) $ECHO_C" >&6
31236 else
31237   ac_cv_header_sys_mkdev_h=$ac_header_preproc
31238 fi
31239 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31240 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31241
31242 fi
31243 if test $ac_cv_header_sys_mkdev_h = yes; then
31244
31245 cat >>confdefs.h <<\_ACEOF
31246 #define MAJOR_IN_MKDEV 1
31247 _ACEOF
31248
31249 fi
31250
31251
31252
31253   if test $ac_cv_header_sys_mkdev_h = no; then
31254     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31255   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31256 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31257 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31258   echo $ECHO_N "(cached) $ECHO_C" >&6
31259 fi
31260 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31261 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31262 else
31263   # Is the header compilable?
31264 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31265 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31266 cat >conftest.$ac_ext <<_ACEOF
31267 /* confdefs.h.  */
31268 _ACEOF
31269 cat confdefs.h >>conftest.$ac_ext
31270 cat >>conftest.$ac_ext <<_ACEOF
31271 /* end confdefs.h.  */
31272 $ac_includes_default
31273 #include <sys/sysmacros.h>
31274 _ACEOF
31275 rm -f conftest.$ac_objext
31276 if { (ac_try="$ac_compile"
31277 case "(($ac_try" in
31278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31279   *) ac_try_echo=$ac_try;;
31280 esac
31281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31282   (eval "$ac_compile") 2>conftest.er1
31283   ac_status=$?
31284   grep -v '^ *+' conftest.er1 >conftest.err
31285   rm -f conftest.er1
31286   cat conftest.err >&5
31287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31288   (exit $ac_status); } && {
31289          test -z "$ac_c_werror_flag" ||
31290          test ! -s conftest.err
31291        } && test -s conftest.$ac_objext; then
31292   ac_header_compiler=yes
31293 else
31294   echo "$as_me: failed program was:" >&5
31295 sed 's/^/| /' conftest.$ac_ext >&5
31296
31297         ac_header_compiler=no
31298 fi
31299
31300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31302 echo "${ECHO_T}$ac_header_compiler" >&6; }
31303
31304 # Is the header present?
31305 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31306 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31307 cat >conftest.$ac_ext <<_ACEOF
31308 /* confdefs.h.  */
31309 _ACEOF
31310 cat confdefs.h >>conftest.$ac_ext
31311 cat >>conftest.$ac_ext <<_ACEOF
31312 /* end confdefs.h.  */
31313 #include <sys/sysmacros.h>
31314 _ACEOF
31315 if { (ac_try="$ac_cpp conftest.$ac_ext"
31316 case "(($ac_try" in
31317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31318   *) ac_try_echo=$ac_try;;
31319 esac
31320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31321   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31322   ac_status=$?
31323   grep -v '^ *+' conftest.er1 >conftest.err
31324   rm -f conftest.er1
31325   cat conftest.err >&5
31326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31327   (exit $ac_status); } >/dev/null && {
31328          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31329          test ! -s conftest.err
31330        }; then
31331   ac_header_preproc=yes
31332 else
31333   echo "$as_me: failed program was:" >&5
31334 sed 's/^/| /' conftest.$ac_ext >&5
31335
31336   ac_header_preproc=no
31337 fi
31338
31339 rm -f conftest.err conftest.$ac_ext
31340 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31341 echo "${ECHO_T}$ac_header_preproc" >&6; }
31342
31343 # So?  What about this header?
31344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31345   yes:no: )
31346     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31347 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31348     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31349 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31350     ac_header_preproc=yes
31351     ;;
31352   no:yes:* )
31353     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31354 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31355     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31356 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31357     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31358 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31359     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31360 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31361     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31362 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31363     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31364 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31365
31366     ;;
31367 esac
31368 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31369 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31370 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31371   echo $ECHO_N "(cached) $ECHO_C" >&6
31372 else
31373   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31374 fi
31375 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31376 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31377
31378 fi
31379 if test $ac_cv_header_sys_sysmacros_h = yes; then
31380
31381 cat >>confdefs.h <<\_ACEOF
31382 #define MAJOR_IN_SYSMACROS 1
31383 _ACEOF
31384
31385 fi
31386
31387
31388   fi
31389 fi
31390
31391
31392
31393
31394
31395
31396 ac_header_dirent=no
31397 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31398   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31399 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31400 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31402   echo $ECHO_N "(cached) $ECHO_C" >&6
31403 else
31404   cat >conftest.$ac_ext <<_ACEOF
31405 /* confdefs.h.  */
31406 _ACEOF
31407 cat confdefs.h >>conftest.$ac_ext
31408 cat >>conftest.$ac_ext <<_ACEOF
31409 /* end confdefs.h.  */
31410 #include <sys/types.h>
31411 #include <$ac_hdr>
31412
31413 int
31414 main ()
31415 {
31416 if ((DIR *) 0)
31417 return 0;
31418   ;
31419   return 0;
31420 }
31421 _ACEOF
31422 rm -f conftest.$ac_objext
31423 if { (ac_try="$ac_compile"
31424 case "(($ac_try" in
31425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31426   *) ac_try_echo=$ac_try;;
31427 esac
31428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31429   (eval "$ac_compile") 2>conftest.er1
31430   ac_status=$?
31431   grep -v '^ *+' conftest.er1 >conftest.err
31432   rm -f conftest.er1
31433   cat conftest.err >&5
31434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435   (exit $ac_status); } && {
31436          test -z "$ac_c_werror_flag" ||
31437          test ! -s conftest.err
31438        } && test -s conftest.$ac_objext; then
31439   eval "$as_ac_Header=yes"
31440 else
31441   echo "$as_me: failed program was:" >&5
31442 sed 's/^/| /' conftest.$ac_ext >&5
31443
31444         eval "$as_ac_Header=no"
31445 fi
31446
31447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31448 fi
31449 ac_res=`eval echo '${'$as_ac_Header'}'`
31450                { echo "$as_me:$LINENO: result: $ac_res" >&5
31451 echo "${ECHO_T}$ac_res" >&6; }
31452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31453   cat >>confdefs.h <<_ACEOF
31454 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31455 _ACEOF
31456
31457 ac_header_dirent=$ac_hdr; break
31458 fi
31459
31460 done
31461 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31462 if test $ac_header_dirent = dirent.h; then
31463   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31464 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31465 if test "${ac_cv_search_opendir+set}" = set; then
31466   echo $ECHO_N "(cached) $ECHO_C" >&6
31467 else
31468   ac_func_search_save_LIBS=$LIBS
31469 cat >conftest.$ac_ext <<_ACEOF
31470 /* confdefs.h.  */
31471 _ACEOF
31472 cat confdefs.h >>conftest.$ac_ext
31473 cat >>conftest.$ac_ext <<_ACEOF
31474 /* end confdefs.h.  */
31475
31476 /* Override any GCC internal prototype to avoid an error.
31477    Use char because int might match the return type of a GCC
31478    builtin and then its argument prototype would still apply.  */
31479 #ifdef __cplusplus
31480 extern "C"
31481 #endif
31482 char opendir ();
31483 int
31484 main ()
31485 {
31486 return opendir ();
31487   ;
31488   return 0;
31489 }
31490 _ACEOF
31491 for ac_lib in '' dir; do
31492   if test -z "$ac_lib"; then
31493     ac_res="none required"
31494   else
31495     ac_res=-l$ac_lib
31496     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31497   fi
31498   rm -f conftest.$ac_objext conftest$ac_exeext
31499 if { (ac_try="$ac_link"
31500 case "(($ac_try" in
31501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31502   *) ac_try_echo=$ac_try;;
31503 esac
31504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31505   (eval "$ac_link") 2>conftest.er1
31506   ac_status=$?
31507   grep -v '^ *+' conftest.er1 >conftest.err
31508   rm -f conftest.er1
31509   cat conftest.err >&5
31510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31511   (exit $ac_status); } && {
31512          test -z "$ac_c_werror_flag" ||
31513          test ! -s conftest.err
31514        } && test -s conftest$ac_exeext &&
31515        $as_test_x conftest$ac_exeext; then
31516   ac_cv_search_opendir=$ac_res
31517 else
31518   echo "$as_me: failed program was:" >&5
31519 sed 's/^/| /' conftest.$ac_ext >&5
31520
31521
31522 fi
31523
31524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31525       conftest$ac_exeext
31526   if test "${ac_cv_search_opendir+set}" = set; then
31527   break
31528 fi
31529 done
31530 if test "${ac_cv_search_opendir+set}" = set; then
31531   :
31532 else
31533   ac_cv_search_opendir=no
31534 fi
31535 rm conftest.$ac_ext
31536 LIBS=$ac_func_search_save_LIBS
31537 fi
31538 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31539 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31540 ac_res=$ac_cv_search_opendir
31541 if test "$ac_res" != no; then
31542   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31543
31544 fi
31545
31546 else
31547   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31548 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31549 if test "${ac_cv_search_opendir+set}" = set; then
31550   echo $ECHO_N "(cached) $ECHO_C" >&6
31551 else
31552   ac_func_search_save_LIBS=$LIBS
31553 cat >conftest.$ac_ext <<_ACEOF
31554 /* confdefs.h.  */
31555 _ACEOF
31556 cat confdefs.h >>conftest.$ac_ext
31557 cat >>conftest.$ac_ext <<_ACEOF
31558 /* end confdefs.h.  */
31559
31560 /* Override any GCC internal prototype to avoid an error.
31561    Use char because int might match the return type of a GCC
31562    builtin and then its argument prototype would still apply.  */
31563 #ifdef __cplusplus
31564 extern "C"
31565 #endif
31566 char opendir ();
31567 int
31568 main ()
31569 {
31570 return opendir ();
31571   ;
31572   return 0;
31573 }
31574 _ACEOF
31575 for ac_lib in '' x; do
31576   if test -z "$ac_lib"; then
31577     ac_res="none required"
31578   else
31579     ac_res=-l$ac_lib
31580     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31581   fi
31582   rm -f conftest.$ac_objext conftest$ac_exeext
31583 if { (ac_try="$ac_link"
31584 case "(($ac_try" in
31585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31586   *) ac_try_echo=$ac_try;;
31587 esac
31588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31589   (eval "$ac_link") 2>conftest.er1
31590   ac_status=$?
31591   grep -v '^ *+' conftest.er1 >conftest.err
31592   rm -f conftest.er1
31593   cat conftest.err >&5
31594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31595   (exit $ac_status); } && {
31596          test -z "$ac_c_werror_flag" ||
31597          test ! -s conftest.err
31598        } && test -s conftest$ac_exeext &&
31599        $as_test_x conftest$ac_exeext; then
31600   ac_cv_search_opendir=$ac_res
31601 else
31602   echo "$as_me: failed program was:" >&5
31603 sed 's/^/| /' conftest.$ac_ext >&5
31604
31605
31606 fi
31607
31608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31609       conftest$ac_exeext
31610   if test "${ac_cv_search_opendir+set}" = set; then
31611   break
31612 fi
31613 done
31614 if test "${ac_cv_search_opendir+set}" = set; then
31615   :
31616 else
31617   ac_cv_search_opendir=no
31618 fi
31619 rm conftest.$ac_ext
31620 LIBS=$ac_func_search_save_LIBS
31621 fi
31622 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31623 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31624 ac_res=$ac_cv_search_opendir
31625 if test "$ac_res" != no; then
31626   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31627
31628 fi
31629
31630 fi
31631
31632 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31633 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31634 if test "${ac_cv_header_stat_broken+set}" = set; then
31635   echo $ECHO_N "(cached) $ECHO_C" >&6
31636 else
31637   cat >conftest.$ac_ext <<_ACEOF
31638 /* confdefs.h.  */
31639 _ACEOF
31640 cat confdefs.h >>conftest.$ac_ext
31641 cat >>conftest.$ac_ext <<_ACEOF
31642 /* end confdefs.h.  */
31643 #include <sys/types.h>
31644 #include <sys/stat.h>
31645
31646 #if defined S_ISBLK && defined S_IFDIR
31647 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31648 #endif
31649
31650 #if defined S_ISBLK && defined S_IFCHR
31651 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31652 #endif
31653
31654 #if defined S_ISLNK && defined S_IFREG
31655 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31656 #endif
31657
31658 #if defined S_ISSOCK && defined S_IFREG
31659 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31660 #endif
31661
31662 _ACEOF
31663 rm -f conftest.$ac_objext
31664 if { (ac_try="$ac_compile"
31665 case "(($ac_try" in
31666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31667   *) ac_try_echo=$ac_try;;
31668 esac
31669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31670   (eval "$ac_compile") 2>conftest.er1
31671   ac_status=$?
31672   grep -v '^ *+' conftest.er1 >conftest.err
31673   rm -f conftest.er1
31674   cat conftest.err >&5
31675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31676   (exit $ac_status); } && {
31677          test -z "$ac_c_werror_flag" ||
31678          test ! -s conftest.err
31679        } && test -s conftest.$ac_objext; then
31680   ac_cv_header_stat_broken=no
31681 else
31682   echo "$as_me: failed program was:" >&5
31683 sed 's/^/| /' conftest.$ac_ext >&5
31684
31685         ac_cv_header_stat_broken=yes
31686 fi
31687
31688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31689 fi
31690 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31691 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31692 if test $ac_cv_header_stat_broken = yes; then
31693
31694 cat >>confdefs.h <<\_ACEOF
31695 #define STAT_MACROS_BROKEN 1
31696 _ACEOF
31697
31698 fi
31699
31700 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31701 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31702 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31703   echo $ECHO_N "(cached) $ECHO_C" >&6
31704 else
31705   cat >conftest.$ac_ext <<_ACEOF
31706 /* confdefs.h.  */
31707 _ACEOF
31708 cat confdefs.h >>conftest.$ac_ext
31709 cat >>conftest.$ac_ext <<_ACEOF
31710 /* end confdefs.h.  */
31711 #include <sys/types.h>
31712 #include <sys/wait.h>
31713 #ifndef WEXITSTATUS
31714 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31715 #endif
31716 #ifndef WIFEXITED
31717 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31718 #endif
31719
31720 int
31721 main ()
31722 {
31723   int s;
31724   wait (&s);
31725   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31726   ;
31727   return 0;
31728 }
31729 _ACEOF
31730 rm -f conftest.$ac_objext
31731 if { (ac_try="$ac_compile"
31732 case "(($ac_try" in
31733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31734   *) ac_try_echo=$ac_try;;
31735 esac
31736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31737   (eval "$ac_compile") 2>conftest.er1
31738   ac_status=$?
31739   grep -v '^ *+' conftest.er1 >conftest.err
31740   rm -f conftest.er1
31741   cat conftest.err >&5
31742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31743   (exit $ac_status); } && {
31744          test -z "$ac_c_werror_flag" ||
31745          test ! -s conftest.err
31746        } && test -s conftest.$ac_objext; then
31747   ac_cv_header_sys_wait_h=yes
31748 else
31749   echo "$as_me: failed program was:" >&5
31750 sed 's/^/| /' conftest.$ac_ext >&5
31751
31752         ac_cv_header_sys_wait_h=no
31753 fi
31754
31755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31756 fi
31757 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31758 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31759 if test $ac_cv_header_sys_wait_h = yes; then
31760
31761 cat >>confdefs.h <<\_ACEOF
31762 #define HAVE_SYS_WAIT_H 1
31763 _ACEOF
31764
31765 fi
31766
31767 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31768 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31769 if test "${ac_cv_header_time+set}" = set; then
31770   echo $ECHO_N "(cached) $ECHO_C" >&6
31771 else
31772   cat >conftest.$ac_ext <<_ACEOF
31773 /* confdefs.h.  */
31774 _ACEOF
31775 cat confdefs.h >>conftest.$ac_ext
31776 cat >>conftest.$ac_ext <<_ACEOF
31777 /* end confdefs.h.  */
31778 #include <sys/types.h>
31779 #include <sys/time.h>
31780 #include <time.h>
31781
31782 int
31783 main ()
31784 {
31785 if ((struct tm *) 0)
31786 return 0;
31787   ;
31788   return 0;
31789 }
31790 _ACEOF
31791 rm -f conftest.$ac_objext
31792 if { (ac_try="$ac_compile"
31793 case "(($ac_try" in
31794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31795   *) ac_try_echo=$ac_try;;
31796 esac
31797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31798   (eval "$ac_compile") 2>conftest.er1
31799   ac_status=$?
31800   grep -v '^ *+' conftest.er1 >conftest.err
31801   rm -f conftest.er1
31802   cat conftest.err >&5
31803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31804   (exit $ac_status); } && {
31805          test -z "$ac_c_werror_flag" ||
31806          test ! -s conftest.err
31807        } && test -s conftest.$ac_objext; then
31808   ac_cv_header_time=yes
31809 else
31810   echo "$as_me: failed program was:" >&5
31811 sed 's/^/| /' conftest.$ac_ext >&5
31812
31813         ac_cv_header_time=no
31814 fi
31815
31816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31817 fi
31818 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31819 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31820 if test $ac_cv_header_time = yes; then
31821
31822 cat >>confdefs.h <<\_ACEOF
31823 #define TIME_WITH_SYS_TIME 1
31824 _ACEOF
31825
31826 fi
31827
31828 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31829 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31830 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31831   echo $ECHO_N "(cached) $ECHO_C" >&6
31832 else
31833   cat >conftest.$ac_ext <<_ACEOF
31834 /* confdefs.h.  */
31835 _ACEOF
31836 cat confdefs.h >>conftest.$ac_ext
31837 cat >>conftest.$ac_ext <<_ACEOF
31838 /* end confdefs.h.  */
31839 $ac_includes_default
31840 int
31841 main ()
31842 {
31843 static struct stat ac_aggr;
31844 if (ac_aggr.st_blksize)
31845 return 0;
31846   ;
31847   return 0;
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_c_werror_flag" ||
31865          test ! -s conftest.err
31866        } && test -s conftest.$ac_objext; then
31867   ac_cv_member_struct_stat_st_blksize=yes
31868 else
31869   echo "$as_me: failed program was:" >&5
31870 sed 's/^/| /' conftest.$ac_ext >&5
31871
31872         cat >conftest.$ac_ext <<_ACEOF
31873 /* confdefs.h.  */
31874 _ACEOF
31875 cat confdefs.h >>conftest.$ac_ext
31876 cat >>conftest.$ac_ext <<_ACEOF
31877 /* end confdefs.h.  */
31878 $ac_includes_default
31879 int
31880 main ()
31881 {
31882 static struct stat ac_aggr;
31883 if (sizeof ac_aggr.st_blksize)
31884 return 0;
31885   ;
31886   return 0;
31887 }
31888 _ACEOF
31889 rm -f conftest.$ac_objext
31890 if { (ac_try="$ac_compile"
31891 case "(($ac_try" in
31892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31893   *) ac_try_echo=$ac_try;;
31894 esac
31895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31896   (eval "$ac_compile") 2>conftest.er1
31897   ac_status=$?
31898   grep -v '^ *+' conftest.er1 >conftest.err
31899   rm -f conftest.er1
31900   cat conftest.err >&5
31901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31902   (exit $ac_status); } && {
31903          test -z "$ac_c_werror_flag" ||
31904          test ! -s conftest.err
31905        } && test -s conftest.$ac_objext; then
31906   ac_cv_member_struct_stat_st_blksize=yes
31907 else
31908   echo "$as_me: failed program was:" >&5
31909 sed 's/^/| /' conftest.$ac_ext >&5
31910
31911         ac_cv_member_struct_stat_st_blksize=no
31912 fi
31913
31914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31915 fi
31916
31917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31918 fi
31919 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31920 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31921 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31922
31923 cat >>confdefs.h <<_ACEOF
31924 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31925 _ACEOF
31926
31927
31928 cat >>confdefs.h <<\_ACEOF
31929 #define HAVE_ST_BLKSIZE 1
31930 _ACEOF
31931
31932 fi
31933
31934
31935 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31936 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31937 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31938   echo $ECHO_N "(cached) $ECHO_C" >&6
31939 else
31940   cat >conftest.$ac_ext <<_ACEOF
31941 /* confdefs.h.  */
31942 _ACEOF
31943 cat confdefs.h >>conftest.$ac_ext
31944 cat >>conftest.$ac_ext <<_ACEOF
31945 /* end confdefs.h.  */
31946 $ac_includes_default
31947 int
31948 main ()
31949 {
31950 static struct stat ac_aggr;
31951 if (ac_aggr.st_blocks)
31952 return 0;
31953   ;
31954   return 0;
31955 }
31956 _ACEOF
31957 rm -f conftest.$ac_objext
31958 if { (ac_try="$ac_compile"
31959 case "(($ac_try" in
31960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31961   *) ac_try_echo=$ac_try;;
31962 esac
31963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31964   (eval "$ac_compile") 2>conftest.er1
31965   ac_status=$?
31966   grep -v '^ *+' conftest.er1 >conftest.err
31967   rm -f conftest.er1
31968   cat conftest.err >&5
31969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31970   (exit $ac_status); } && {
31971          test -z "$ac_c_werror_flag" ||
31972          test ! -s conftest.err
31973        } && test -s conftest.$ac_objext; then
31974   ac_cv_member_struct_stat_st_blocks=yes
31975 else
31976   echo "$as_me: failed program was:" >&5
31977 sed 's/^/| /' conftest.$ac_ext >&5
31978
31979         cat >conftest.$ac_ext <<_ACEOF
31980 /* confdefs.h.  */
31981 _ACEOF
31982 cat confdefs.h >>conftest.$ac_ext
31983 cat >>conftest.$ac_ext <<_ACEOF
31984 /* end confdefs.h.  */
31985 $ac_includes_default
31986 int
31987 main ()
31988 {
31989 static struct stat ac_aggr;
31990 if (sizeof ac_aggr.st_blocks)
31991 return 0;
31992   ;
31993   return 0;
31994 }
31995 _ACEOF
31996 rm -f conftest.$ac_objext
31997 if { (ac_try="$ac_compile"
31998 case "(($ac_try" in
31999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32000   *) ac_try_echo=$ac_try;;
32001 esac
32002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32003   (eval "$ac_compile") 2>conftest.er1
32004   ac_status=$?
32005   grep -v '^ *+' conftest.er1 >conftest.err
32006   rm -f conftest.er1
32007   cat conftest.err >&5
32008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32009   (exit $ac_status); } && {
32010          test -z "$ac_c_werror_flag" ||
32011          test ! -s conftest.err
32012        } && test -s conftest.$ac_objext; then
32013   ac_cv_member_struct_stat_st_blocks=yes
32014 else
32015   echo "$as_me: failed program was:" >&5
32016 sed 's/^/| /' conftest.$ac_ext >&5
32017
32018         ac_cv_member_struct_stat_st_blocks=no
32019 fi
32020
32021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32022 fi
32023
32024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32025 fi
32026 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
32027 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
32028 if test $ac_cv_member_struct_stat_st_blocks = yes; then
32029
32030 cat >>confdefs.h <<_ACEOF
32031 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
32032 _ACEOF
32033
32034
32035 cat >>confdefs.h <<\_ACEOF
32036 #define HAVE_ST_BLOCKS 1
32037 _ACEOF
32038
32039 else
32040   case " $LIBOBJS " in
32041   *" fileblocks.$ac_objext "* ) ;;
32042   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
32043  ;;
32044 esac
32045
32046 fi
32047
32048
32049 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32050 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32051 if test "${ac_cv_struct_tm+set}" = set; then
32052   echo $ECHO_N "(cached) $ECHO_C" >&6
32053 else
32054   cat >conftest.$ac_ext <<_ACEOF
32055 /* confdefs.h.  */
32056 _ACEOF
32057 cat confdefs.h >>conftest.$ac_ext
32058 cat >>conftest.$ac_ext <<_ACEOF
32059 /* end confdefs.h.  */
32060 #include <sys/types.h>
32061 #include <time.h>
32062
32063 int
32064 main ()
32065 {
32066 struct tm tm;
32067                                      int *p = &tm.tm_sec;
32068                                      return !p;
32069   ;
32070   return 0;
32071 }
32072 _ACEOF
32073 rm -f conftest.$ac_objext
32074 if { (ac_try="$ac_compile"
32075 case "(($ac_try" in
32076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32077   *) ac_try_echo=$ac_try;;
32078 esac
32079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32080   (eval "$ac_compile") 2>conftest.er1
32081   ac_status=$?
32082   grep -v '^ *+' conftest.er1 >conftest.err
32083   rm -f conftest.er1
32084   cat conftest.err >&5
32085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32086   (exit $ac_status); } && {
32087          test -z "$ac_c_werror_flag" ||
32088          test ! -s conftest.err
32089        } && test -s conftest.$ac_objext; then
32090   ac_cv_struct_tm=time.h
32091 else
32092   echo "$as_me: failed program was:" >&5
32093 sed 's/^/| /' conftest.$ac_ext >&5
32094
32095         ac_cv_struct_tm=sys/time.h
32096 fi
32097
32098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32099 fi
32100 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32101 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32102 if test $ac_cv_struct_tm = sys/time.h; then
32103
32104 cat >>confdefs.h <<\_ACEOF
32105 #define TM_IN_SYS_TIME 1
32106 _ACEOF
32107
32108 fi
32109
32110 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32111 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32112 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32113   echo $ECHO_N "(cached) $ECHO_C" >&6
32114 else
32115   cat >conftest.$ac_ext <<_ACEOF
32116 /* confdefs.h.  */
32117 _ACEOF
32118 cat confdefs.h >>conftest.$ac_ext
32119 cat >>conftest.$ac_ext <<_ACEOF
32120 /* end confdefs.h.  */
32121 #include <sys/types.h>
32122 #include <$ac_cv_struct_tm>
32123
32124
32125 int
32126 main ()
32127 {
32128 static struct tm ac_aggr;
32129 if (ac_aggr.tm_zone)
32130 return 0;
32131   ;
32132   return 0;
32133 }
32134 _ACEOF
32135 rm -f conftest.$ac_objext
32136 if { (ac_try="$ac_compile"
32137 case "(($ac_try" in
32138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32139   *) ac_try_echo=$ac_try;;
32140 esac
32141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32142   (eval "$ac_compile") 2>conftest.er1
32143   ac_status=$?
32144   grep -v '^ *+' conftest.er1 >conftest.err
32145   rm -f conftest.er1
32146   cat conftest.err >&5
32147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32148   (exit $ac_status); } && {
32149          test -z "$ac_c_werror_flag" ||
32150          test ! -s conftest.err
32151        } && test -s conftest.$ac_objext; then
32152   ac_cv_member_struct_tm_tm_zone=yes
32153 else
32154   echo "$as_me: failed program was:" >&5
32155 sed 's/^/| /' conftest.$ac_ext >&5
32156
32157         cat >conftest.$ac_ext <<_ACEOF
32158 /* confdefs.h.  */
32159 _ACEOF
32160 cat confdefs.h >>conftest.$ac_ext
32161 cat >>conftest.$ac_ext <<_ACEOF
32162 /* end confdefs.h.  */
32163 #include <sys/types.h>
32164 #include <$ac_cv_struct_tm>
32165
32166
32167 int
32168 main ()
32169 {
32170 static struct tm ac_aggr;
32171 if (sizeof ac_aggr.tm_zone)
32172 return 0;
32173   ;
32174   return 0;
32175 }
32176 _ACEOF
32177 rm -f conftest.$ac_objext
32178 if { (ac_try="$ac_compile"
32179 case "(($ac_try" in
32180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32181   *) ac_try_echo=$ac_try;;
32182 esac
32183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32184   (eval "$ac_compile") 2>conftest.er1
32185   ac_status=$?
32186   grep -v '^ *+' conftest.er1 >conftest.err
32187   rm -f conftest.er1
32188   cat conftest.err >&5
32189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32190   (exit $ac_status); } && {
32191          test -z "$ac_c_werror_flag" ||
32192          test ! -s conftest.err
32193        } && test -s conftest.$ac_objext; then
32194   ac_cv_member_struct_tm_tm_zone=yes
32195 else
32196   echo "$as_me: failed program was:" >&5
32197 sed 's/^/| /' conftest.$ac_ext >&5
32198
32199         ac_cv_member_struct_tm_tm_zone=no
32200 fi
32201
32202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32203 fi
32204
32205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32206 fi
32207 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32208 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32209 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32210
32211 cat >>confdefs.h <<_ACEOF
32212 #define HAVE_STRUCT_TM_TM_ZONE 1
32213 _ACEOF
32214
32215
32216 fi
32217
32218 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32219
32220 cat >>confdefs.h <<\_ACEOF
32221 #define HAVE_TM_ZONE 1
32222 _ACEOF
32223
32224 else
32225   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32226 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32227 if test "${ac_cv_have_decl_tzname+set}" = set; then
32228   echo $ECHO_N "(cached) $ECHO_C" >&6
32229 else
32230   cat >conftest.$ac_ext <<_ACEOF
32231 /* confdefs.h.  */
32232 _ACEOF
32233 cat confdefs.h >>conftest.$ac_ext
32234 cat >>conftest.$ac_ext <<_ACEOF
32235 /* end confdefs.h.  */
32236 #include <time.h>
32237
32238 int
32239 main ()
32240 {
32241 #ifndef tzname
32242   (void) tzname;
32243 #endif
32244
32245   ;
32246   return 0;
32247 }
32248 _ACEOF
32249 rm -f conftest.$ac_objext
32250 if { (ac_try="$ac_compile"
32251 case "(($ac_try" in
32252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32253   *) ac_try_echo=$ac_try;;
32254 esac
32255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32256   (eval "$ac_compile") 2>conftest.er1
32257   ac_status=$?
32258   grep -v '^ *+' conftest.er1 >conftest.err
32259   rm -f conftest.er1
32260   cat conftest.err >&5
32261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32262   (exit $ac_status); } && {
32263          test -z "$ac_c_werror_flag" ||
32264          test ! -s conftest.err
32265        } && test -s conftest.$ac_objext; then
32266   ac_cv_have_decl_tzname=yes
32267 else
32268   echo "$as_me: failed program was:" >&5
32269 sed 's/^/| /' conftest.$ac_ext >&5
32270
32271         ac_cv_have_decl_tzname=no
32272 fi
32273
32274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32275 fi
32276 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32277 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32278 if test $ac_cv_have_decl_tzname = yes; then
32279
32280 cat >>confdefs.h <<_ACEOF
32281 #define HAVE_DECL_TZNAME 1
32282 _ACEOF
32283
32284
32285 else
32286   cat >>confdefs.h <<_ACEOF
32287 #define HAVE_DECL_TZNAME 0
32288 _ACEOF
32289
32290
32291 fi
32292
32293
32294   { echo "$as_me:$LINENO: checking for tzname" >&5
32295 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32296 if test "${ac_cv_var_tzname+set}" = set; then
32297   echo $ECHO_N "(cached) $ECHO_C" >&6
32298 else
32299   cat >conftest.$ac_ext <<_ACEOF
32300 /* confdefs.h.  */
32301 _ACEOF
32302 cat confdefs.h >>conftest.$ac_ext
32303 cat >>conftest.$ac_ext <<_ACEOF
32304 /* end confdefs.h.  */
32305 #include <time.h>
32306 #if !HAVE_DECL_TZNAME
32307 extern char *tzname[];
32308 #endif
32309
32310 int
32311 main ()
32312 {
32313 return tzname[0][0];
32314   ;
32315   return 0;
32316 }
32317 _ACEOF
32318 rm -f conftest.$ac_objext conftest$ac_exeext
32319 if { (ac_try="$ac_link"
32320 case "(($ac_try" in
32321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32322   *) ac_try_echo=$ac_try;;
32323 esac
32324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32325   (eval "$ac_link") 2>conftest.er1
32326   ac_status=$?
32327   grep -v '^ *+' conftest.er1 >conftest.err
32328   rm -f conftest.er1
32329   cat conftest.err >&5
32330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32331   (exit $ac_status); } && {
32332          test -z "$ac_c_werror_flag" ||
32333          test ! -s conftest.err
32334        } && test -s conftest$ac_exeext &&
32335        $as_test_x conftest$ac_exeext; then
32336   ac_cv_var_tzname=yes
32337 else
32338   echo "$as_me: failed program was:" >&5
32339 sed 's/^/| /' conftest.$ac_ext >&5
32340
32341         ac_cv_var_tzname=no
32342 fi
32343
32344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32345       conftest$ac_exeext conftest.$ac_ext
32346 fi
32347 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32348 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32349   if test $ac_cv_var_tzname = yes; then
32350
32351 cat >>confdefs.h <<\_ACEOF
32352 #define HAVE_TZNAME 1
32353 _ACEOF
32354
32355   fi
32356 fi
32357
32358
32359 { echo "$as_me:$LINENO: checking for utime.h" >&5
32360 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32361 if test "${ba_cv_header_utime_h+set}" = set; then
32362   echo $ECHO_N "(cached) $ECHO_C" >&6
32363 else
32364
32365        cat >conftest.$ac_ext <<_ACEOF
32366 /* confdefs.h.  */
32367 _ACEOF
32368 cat confdefs.h >>conftest.$ac_ext
32369 cat >>conftest.$ac_ext <<_ACEOF
32370 /* end confdefs.h.  */
32371
32372               #include <sys/types.h>
32373               #include <utime.h>
32374
32375 int
32376 main ()
32377 {
32378
32379               struct utimbuf foo
32380
32381   ;
32382   return 0;
32383 }
32384 _ACEOF
32385 rm -f conftest.$ac_objext
32386 if { (ac_try="$ac_compile"
32387 case "(($ac_try" in
32388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32389   *) ac_try_echo=$ac_try;;
32390 esac
32391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32392   (eval "$ac_compile") 2>conftest.er1
32393   ac_status=$?
32394   grep -v '^ *+' conftest.er1 >conftest.err
32395   rm -f conftest.er1
32396   cat conftest.err >&5
32397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32398   (exit $ac_status); } && {
32399          test -z "$ac_c_werror_flag" ||
32400          test ! -s conftest.err
32401        } && test -s conftest.$ac_objext; then
32402
32403               ba_cv_header_utime_h=yes
32404
32405 else
32406   echo "$as_me: failed program was:" >&5
32407 sed 's/^/| /' conftest.$ac_ext >&5
32408
32409
32410               ba_cv_header_utime_h=no
32411
32412
32413 fi
32414
32415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32416
32417
32418 fi
32419 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32420 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32421 test $ba_cv_header_utime_h = yes &&
32422 cat >>confdefs.h <<\_ACEOF
32423 #define HAVE_UTIME_H 1
32424 _ACEOF
32425
32426
32427 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32428 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32429 if test "${ba_cv_header_socklen_t+set}" = set; then
32430   echo $ECHO_N "(cached) $ECHO_C" >&6
32431 else
32432
32433        cat >conftest.$ac_ext <<_ACEOF
32434 /* confdefs.h.  */
32435 _ACEOF
32436 cat confdefs.h >>conftest.$ac_ext
32437 cat >>conftest.$ac_ext <<_ACEOF
32438 /* end confdefs.h.  */
32439
32440               #include <sys/types.h>
32441               #include <sys/socket.h>
32442
32443 int
32444 main ()
32445 {
32446
32447               socklen_t x
32448
32449   ;
32450   return 0;
32451 }
32452 _ACEOF
32453 rm -f conftest.$ac_objext
32454 if { (ac_try="$ac_compile"
32455 case "(($ac_try" in
32456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32457   *) ac_try_echo=$ac_try;;
32458 esac
32459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32460   (eval "$ac_compile") 2>conftest.er1
32461   ac_status=$?
32462   grep -v '^ *+' conftest.er1 >conftest.err
32463   rm -f conftest.er1
32464   cat conftest.err >&5
32465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32466   (exit $ac_status); } && {
32467          test -z "$ac_c_werror_flag" ||
32468          test ! -s conftest.err
32469        } && test -s conftest.$ac_objext; then
32470
32471              ba_cv_header_socklen_t=yes
32472
32473 else
32474   echo "$as_me: failed program was:" >&5
32475 sed 's/^/| /' conftest.$ac_ext >&5
32476
32477
32478              ba_cv_header_socklen_t=no
32479
32480
32481 fi
32482
32483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32484
32485
32486 fi
32487 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32488 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32489 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32490 #define HAVE_SOCKLEN_T 1
32491 _ACEOF
32492
32493
32494 ac_ext=cpp
32495 ac_cpp='$CXXCPP $CPPFLAGS'
32496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32499
32500 { echo "$as_me:$LINENO: checking for typeof" >&5
32501 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32502 if test "${ba_cv_have_typeof+set}" = set; then
32503   echo $ECHO_N "(cached) $ECHO_C" >&6
32504 else
32505
32506        if test "$cross_compiling" = yes; then
32507
32508               ba_cv_have_typeof=no
32509
32510
32511 else
32512   cat >conftest.$ac_ext <<_ACEOF
32513 /* confdefs.h.  */
32514 _ACEOF
32515 cat confdefs.h >>conftest.$ac_ext
32516 cat >>conftest.$ac_ext <<_ACEOF
32517 /* end confdefs.h.  */
32518
32519               main(){char *a = 0; a = (typeof a)a;}
32520
32521 _ACEOF
32522 rm -f conftest$ac_exeext
32523 if { (ac_try="$ac_link"
32524 case "(($ac_try" in
32525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32526   *) ac_try_echo=$ac_try;;
32527 esac
32528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32529   (eval "$ac_link") 2>&5
32530   ac_status=$?
32531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32532   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32533   { (case "(($ac_try" in
32534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32535   *) ac_try_echo=$ac_try;;
32536 esac
32537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32538   (eval "$ac_try") 2>&5
32539   ac_status=$?
32540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32541   (exit $ac_status); }; }; then
32542
32543               ba_cv_have_typeof=yes
32544
32545 else
32546   echo "$as_me: program exited with status $ac_status" >&5
32547 echo "$as_me: failed program was:" >&5
32548 sed 's/^/| /' conftest.$ac_ext >&5
32549
32550 ( exit $ac_status )
32551
32552               ba_cv_have_typeof=no
32553
32554 fi
32555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32556 fi
32557
32558
32559
32560
32561 fi
32562 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32563 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32564 test $ba_cv_have_typeof = yes &&
32565 cat >>confdefs.h <<\_ACEOF
32566 #define HAVE_TYPEOF 1
32567 _ACEOF
32568
32569 ac_ext=c
32570 ac_cpp='$CPP $CPPFLAGS'
32571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32574
32575
32576 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32577 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32578 if test "${ac_cv_c_const+set}" = set; then
32579   echo $ECHO_N "(cached) $ECHO_C" >&6
32580 else
32581   cat >conftest.$ac_ext <<_ACEOF
32582 /* confdefs.h.  */
32583 _ACEOF
32584 cat confdefs.h >>conftest.$ac_ext
32585 cat >>conftest.$ac_ext <<_ACEOF
32586 /* end confdefs.h.  */
32587
32588 int
32589 main ()
32590 {
32591 /* FIXME: Include the comments suggested by Paul. */
32592 #ifndef __cplusplus
32593   /* Ultrix mips cc rejects this.  */
32594   typedef int charset[2];
32595   const charset cs;
32596   /* SunOS 4.1.1 cc rejects this.  */
32597   char const *const *pcpcc;
32598   char **ppc;
32599   /* NEC SVR4.0.2 mips cc rejects this.  */
32600   struct point {int x, y;};
32601   static struct point const zero = {0,0};
32602   /* AIX XL C 1.02.0.0 rejects this.
32603      It does not let you subtract one const X* pointer from another in
32604      an arm of an if-expression whose if-part is not a constant
32605      expression */
32606   const char *g = "string";
32607   pcpcc = &g + (g ? g-g : 0);
32608   /* HPUX 7.0 cc rejects these. */
32609   ++pcpcc;
32610   ppc = (char**) pcpcc;
32611   pcpcc = (char const *const *) ppc;
32612   { /* SCO 3.2v4 cc rejects this.  */
32613     char *t;
32614     char const *s = 0 ? (char *) 0 : (char const *) 0;
32615
32616     *t++ = 0;
32617     if (s) return 0;
32618   }
32619   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32620     int x[] = {25, 17};
32621     const int *foo = &x[0];
32622     ++foo;
32623   }
32624   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32625     typedef const int *iptr;
32626     iptr p = 0;
32627     ++p;
32628   }
32629   { /* AIX XL C 1.02.0.0 rejects this saying
32630        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32631     struct s { int j; const int *ap[3]; };
32632     struct s *b; b->j = 5;
32633   }
32634   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32635     const int foo = 10;
32636     if (!foo) return 0;
32637   }
32638   return !cs[0] && !zero.x;
32639 #endif
32640
32641   ;
32642   return 0;
32643 }
32644 _ACEOF
32645 rm -f conftest.$ac_objext
32646 if { (ac_try="$ac_compile"
32647 case "(($ac_try" in
32648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32649   *) ac_try_echo=$ac_try;;
32650 esac
32651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32652   (eval "$ac_compile") 2>conftest.er1
32653   ac_status=$?
32654   grep -v '^ *+' conftest.er1 >conftest.err
32655   rm -f conftest.er1
32656   cat conftest.err >&5
32657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658   (exit $ac_status); } && {
32659          test -z "$ac_c_werror_flag" ||
32660          test ! -s conftest.err
32661        } && test -s conftest.$ac_objext; then
32662   ac_cv_c_const=yes
32663 else
32664   echo "$as_me: failed program was:" >&5
32665 sed 's/^/| /' conftest.$ac_ext >&5
32666
32667         ac_cv_c_const=no
32668 fi
32669
32670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32671 fi
32672 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32673 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32674 if test $ac_cv_c_const = no; then
32675
32676 cat >>confdefs.h <<\_ACEOF
32677 #define const
32678 _ACEOF
32679
32680 fi
32681
32682
32683 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32684 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32685 fstype=no
32686 # The order of these tests is important.
32687 cat >conftest.$ac_ext <<_ACEOF
32688 /* confdefs.h.  */
32689 _ACEOF
32690 cat confdefs.h >>conftest.$ac_ext
32691 cat >>conftest.$ac_ext <<_ACEOF
32692 /* end confdefs.h.  */
32693
32694        #include <sys/statvfs.h>
32695        #include <sys/fstyp.h>
32696
32697 _ACEOF
32698 if { (ac_try="$ac_cpp conftest.$ac_ext"
32699 case "(($ac_try" in
32700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32701   *) ac_try_echo=$ac_try;;
32702 esac
32703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32704   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32705   ac_status=$?
32706   grep -v '^ *+' conftest.er1 >conftest.err
32707   rm -f conftest.er1
32708   cat conftest.err >&5
32709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32710   (exit $ac_status); } >/dev/null && {
32711          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32712          test ! -s conftest.err
32713        }; then
32714   cat >>confdefs.h <<\_ACEOF
32715 #define FSTYPE_STATVFS 1
32716 _ACEOF
32717  fstype=SVR4
32718
32719 else
32720   echo "$as_me: failed program was:" >&5
32721 sed 's/^/| /' conftest.$ac_ext >&5
32722
32723
32724 fi
32725
32726 rm -f conftest.err conftest.$ac_ext
32727 if test $fstype = no; then
32728    cat >conftest.$ac_ext <<_ACEOF
32729 /* confdefs.h.  */
32730 _ACEOF
32731 cat confdefs.h >>conftest.$ac_ext
32732 cat >>conftest.$ac_ext <<_ACEOF
32733 /* end confdefs.h.  */
32734
32735           #include <sys/statfs.h>
32736           #include <sys/fstyp.h>
32737
32738 _ACEOF
32739 if { (ac_try="$ac_cpp conftest.$ac_ext"
32740 case "(($ac_try" in
32741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32742   *) ac_try_echo=$ac_try;;
32743 esac
32744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32745   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32746   ac_status=$?
32747   grep -v '^ *+' conftest.er1 >conftest.err
32748   rm -f conftest.er1
32749   cat conftest.err >&5
32750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32751   (exit $ac_status); } >/dev/null && {
32752          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32753          test ! -s conftest.err
32754        }; then
32755   cat >>confdefs.h <<\_ACEOF
32756 #define FSTYPE_USG_STATFS 1
32757 _ACEOF
32758  fstype=SVR3
32759
32760 else
32761   echo "$as_me: failed program was:" >&5
32762 sed 's/^/| /' conftest.$ac_ext >&5
32763
32764
32765 fi
32766
32767 rm -f conftest.err conftest.$ac_ext
32768 fi
32769 if test $fstype = no; then
32770    cat >conftest.$ac_ext <<_ACEOF
32771 /* confdefs.h.  */
32772 _ACEOF
32773 cat confdefs.h >>conftest.$ac_ext
32774 cat >>conftest.$ac_ext <<_ACEOF
32775 /* end confdefs.h.  */
32776
32777           #include <sys/statfs.h>
32778           #include <sys/vmount.h>
32779
32780 _ACEOF
32781 if { (ac_try="$ac_cpp conftest.$ac_ext"
32782 case "(($ac_try" in
32783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32784   *) ac_try_echo=$ac_try;;
32785 esac
32786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32787   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32788   ac_status=$?
32789   grep -v '^ *+' conftest.er1 >conftest.err
32790   rm -f conftest.er1
32791   cat conftest.err >&5
32792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32793   (exit $ac_status); } >/dev/null && {
32794          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32795          test ! -s conftest.err
32796        }; then
32797   cat >>confdefs.h <<\_ACEOF
32798 #define FSTYPE_AIX_STATFS 1
32799 _ACEOF
32800  fstype=AIX
32801
32802 else
32803   echo "$as_me: failed program was:" >&5
32804 sed 's/^/| /' conftest.$ac_ext >&5
32805
32806
32807 fi
32808
32809 rm -f conftest.err conftest.$ac_ext
32810 fi
32811 if test $fstype = no; then
32812    cat >conftest.$ac_ext <<_ACEOF
32813 /* confdefs.h.  */
32814 _ACEOF
32815 cat confdefs.h >>conftest.$ac_ext
32816 cat >>conftest.$ac_ext <<_ACEOF
32817 /* end confdefs.h.  */
32818
32819           #include <mntent.h>
32820
32821 _ACEOF
32822 if { (ac_try="$ac_cpp conftest.$ac_ext"
32823 case "(($ac_try" in
32824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32825   *) ac_try_echo=$ac_try;;
32826 esac
32827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32828   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32829   ac_status=$?
32830   grep -v '^ *+' conftest.er1 >conftest.err
32831   rm -f conftest.er1
32832   cat conftest.err >&5
32833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32834   (exit $ac_status); } >/dev/null && {
32835          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32836          test ! -s conftest.err
32837        }; then
32838   cat >>confdefs.h <<\_ACEOF
32839 #define FSTYPE_MNTENT 1
32840 _ACEOF
32841  fstype=4.3BSD
32842
32843 else
32844   echo "$as_me: failed program was:" >&5
32845 sed 's/^/| /' conftest.$ac_ext >&5
32846
32847
32848 fi
32849
32850 rm -f conftest.err conftest.$ac_ext
32851 fi
32852 if test $fstype = no; then
32853    cat >conftest.$ac_ext <<_ACEOF
32854 /* confdefs.h.  */
32855 _ACEOF
32856 cat confdefs.h >>conftest.$ac_ext
32857 cat >>conftest.$ac_ext <<_ACEOF
32858 /* end confdefs.h.  */
32859 #include <sys/mount.h>
32860
32861 _ACEOF
32862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32863   $EGREP "f_type;" >/dev/null 2>&1; then
32864   cat >>confdefs.h <<\_ACEOF
32865 #define FSTYPE_STATFS 1
32866 _ACEOF
32867  fstype=4.4BSD/OSF1
32868 fi
32869 rm -f conftest*
32870
32871 fi
32872 if test $fstype = no; then
32873    cat >conftest.$ac_ext <<_ACEOF
32874 /* confdefs.h.  */
32875 _ACEOF
32876 cat confdefs.h >>conftest.$ac_ext
32877 cat >>conftest.$ac_ext <<_ACEOF
32878 /* end confdefs.h.  */
32879
32880           #include <sys/mount.h>
32881           #include <sys/fs_types.h>
32882
32883 _ACEOF
32884 if { (ac_try="$ac_cpp conftest.$ac_ext"
32885 case "(($ac_try" in
32886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32887   *) ac_try_echo=$ac_try;;
32888 esac
32889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32890   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32891   ac_status=$?
32892   grep -v '^ *+' conftest.er1 >conftest.err
32893   rm -f conftest.er1
32894   cat conftest.err >&5
32895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32896   (exit $ac_status); } >/dev/null && {
32897          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32898          test ! -s conftest.err
32899        }; then
32900   cat >>confdefs.h <<\_ACEOF
32901 #define FSTYPE_GETMNT 1
32902 _ACEOF
32903  fstype=Ultrix
32904
32905 else
32906   echo "$as_me: failed program was:" >&5
32907 sed 's/^/| /' conftest.$ac_ext >&5
32908
32909
32910 fi
32911
32912 rm -f conftest.err conftest.$ac_ext
32913 fi
32914 { echo "$as_me:$LINENO: result: $fstype" >&5
32915 echo "${ECHO_T}$fstype" >&6; }
32916
32917 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32918   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32919 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32920 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32921   echo $ECHO_N "(cached) $ECHO_C" >&6
32922 fi
32923 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32924 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32925 else
32926   # Is the header compilable?
32927 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32928 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32929 cat >conftest.$ac_ext <<_ACEOF
32930 /* confdefs.h.  */
32931 _ACEOF
32932 cat confdefs.h >>conftest.$ac_ext
32933 cat >>conftest.$ac_ext <<_ACEOF
32934 /* end confdefs.h.  */
32935 $ac_includes_default
32936 #include <sys/statvfs.h>
32937 _ACEOF
32938 rm -f conftest.$ac_objext
32939 if { (ac_try="$ac_compile"
32940 case "(($ac_try" in
32941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32942   *) ac_try_echo=$ac_try;;
32943 esac
32944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32945   (eval "$ac_compile") 2>conftest.er1
32946   ac_status=$?
32947   grep -v '^ *+' conftest.er1 >conftest.err
32948   rm -f conftest.er1
32949   cat conftest.err >&5
32950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32951   (exit $ac_status); } && {
32952          test -z "$ac_c_werror_flag" ||
32953          test ! -s conftest.err
32954        } && test -s conftest.$ac_objext; then
32955   ac_header_compiler=yes
32956 else
32957   echo "$as_me: failed program was:" >&5
32958 sed 's/^/| /' conftest.$ac_ext >&5
32959
32960         ac_header_compiler=no
32961 fi
32962
32963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32965 echo "${ECHO_T}$ac_header_compiler" >&6; }
32966
32967 # Is the header present?
32968 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32969 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32970 cat >conftest.$ac_ext <<_ACEOF
32971 /* confdefs.h.  */
32972 _ACEOF
32973 cat confdefs.h >>conftest.$ac_ext
32974 cat >>conftest.$ac_ext <<_ACEOF
32975 /* end confdefs.h.  */
32976 #include <sys/statvfs.h>
32977 _ACEOF
32978 if { (ac_try="$ac_cpp conftest.$ac_ext"
32979 case "(($ac_try" in
32980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32981   *) ac_try_echo=$ac_try;;
32982 esac
32983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32984   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32985   ac_status=$?
32986   grep -v '^ *+' conftest.er1 >conftest.err
32987   rm -f conftest.er1
32988   cat conftest.err >&5
32989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32990   (exit $ac_status); } >/dev/null && {
32991          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32992          test ! -s conftest.err
32993        }; then
32994   ac_header_preproc=yes
32995 else
32996   echo "$as_me: failed program was:" >&5
32997 sed 's/^/| /' conftest.$ac_ext >&5
32998
32999   ac_header_preproc=no
33000 fi
33001
33002 rm -f conftest.err conftest.$ac_ext
33003 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33004 echo "${ECHO_T}$ac_header_preproc" >&6; }
33005
33006 # So?  What about this header?
33007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33008   yes:no: )
33009     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
33010 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33011     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33012 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33013     ac_header_preproc=yes
33014     ;;
33015   no:yes:* )
33016     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33017 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33018     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
33019 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
33020     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33021 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33022     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
33023 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33024     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33025 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33026     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33027 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33028
33029     ;;
33030 esac
33031 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33032 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33033 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33034   echo $ECHO_N "(cached) $ECHO_C" >&6
33035 else
33036   ac_cv_header_sys_statvfs_h=$ac_header_preproc
33037 fi
33038 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33039 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33040
33041 fi
33042 if test $ac_cv_header_sys_statvfs_h = yes; then
33043
33044 cat >>confdefs.h <<\_ACEOF
33045 #define HAVE_SYS_STATVFS_H 1
33046 _ACEOF
33047
33048 fi
33049
33050
33051
33052 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33053 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33054 if test "${ac_cv_type_signal+set}" = set; then
33055   echo $ECHO_N "(cached) $ECHO_C" >&6
33056 else
33057   cat >conftest.$ac_ext <<_ACEOF
33058 /* confdefs.h.  */
33059 _ACEOF
33060 cat confdefs.h >>conftest.$ac_ext
33061 cat >>conftest.$ac_ext <<_ACEOF
33062 /* end confdefs.h.  */
33063 #include <sys/types.h>
33064 #include <signal.h>
33065
33066 int
33067 main ()
33068 {
33069 return *(signal (0, 0)) (0) == 1;
33070   ;
33071   return 0;
33072 }
33073 _ACEOF
33074 rm -f conftest.$ac_objext
33075 if { (ac_try="$ac_compile"
33076 case "(($ac_try" in
33077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33078   *) ac_try_echo=$ac_try;;
33079 esac
33080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33081   (eval "$ac_compile") 2>conftest.er1
33082   ac_status=$?
33083   grep -v '^ *+' conftest.er1 >conftest.err
33084   rm -f conftest.er1
33085   cat conftest.err >&5
33086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33087   (exit $ac_status); } && {
33088          test -z "$ac_c_werror_flag" ||
33089          test ! -s conftest.err
33090        } && test -s conftest.$ac_objext; then
33091   ac_cv_type_signal=int
33092 else
33093   echo "$as_me: failed program was:" >&5
33094 sed 's/^/| /' conftest.$ac_ext >&5
33095
33096         ac_cv_type_signal=void
33097 fi
33098
33099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33100 fi
33101 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33102 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33103
33104 cat >>confdefs.h <<_ACEOF
33105 #define RETSIGTYPE $ac_cv_type_signal
33106 _ACEOF
33107
33108
33109
33110   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33111 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33112   if test "${bash_cv_signal_vintage+set}" = set; then
33113   echo $ECHO_N "(cached) $ECHO_C" >&6
33114 else
33115
33116     cat >conftest.$ac_ext <<_ACEOF
33117 /* confdefs.h.  */
33118 _ACEOF
33119 cat confdefs.h >>conftest.$ac_ext
33120 cat >>conftest.$ac_ext <<_ACEOF
33121 /* end confdefs.h.  */
33122 #include <signal.h>
33123 int
33124 main ()
33125 {
33126
33127       sigset_t ss;
33128       struct sigaction sa;
33129       sigemptyset(&ss); sigsuspend(&ss);
33130       sigaction(SIGINT, &sa, (struct sigaction *) 0);
33131       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33132
33133   ;
33134   return 0;
33135 }
33136 _ACEOF
33137 rm -f conftest.$ac_objext conftest$ac_exeext
33138 if { (ac_try="$ac_link"
33139 case "(($ac_try" in
33140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33141   *) ac_try_echo=$ac_try;;
33142 esac
33143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33144   (eval "$ac_link") 2>conftest.er1
33145   ac_status=$?
33146   grep -v '^ *+' conftest.er1 >conftest.err
33147   rm -f conftest.er1
33148   cat conftest.err >&5
33149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33150   (exit $ac_status); } && {
33151          test -z "$ac_c_werror_flag" ||
33152          test ! -s conftest.err
33153        } && test -s conftest$ac_exeext &&
33154        $as_test_x conftest$ac_exeext; then
33155   bash_cv_signal_vintage="posix"
33156 else
33157   echo "$as_me: failed program was:" >&5
33158 sed 's/^/| /' conftest.$ac_ext >&5
33159
33160
33161       cat >conftest.$ac_ext <<_ACEOF
33162 /* confdefs.h.  */
33163 _ACEOF
33164 cat confdefs.h >>conftest.$ac_ext
33165 cat >>conftest.$ac_ext <<_ACEOF
33166 /* end confdefs.h.  */
33167 #include <signal.h>
33168 int
33169 main ()
33170 {
33171
33172           int mask = sigmask(SIGINT);
33173           sigsetmask(mask); sigblock(mask); sigpause(mask);
33174
33175   ;
33176   return 0;
33177 }
33178 _ACEOF
33179 rm -f conftest.$ac_objext conftest$ac_exeext
33180 if { (ac_try="$ac_link"
33181 case "(($ac_try" in
33182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33183   *) ac_try_echo=$ac_try;;
33184 esac
33185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33186   (eval "$ac_link") 2>conftest.er1
33187   ac_status=$?
33188   grep -v '^ *+' conftest.er1 >conftest.err
33189   rm -f conftest.er1
33190   cat conftest.err >&5
33191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33192   (exit $ac_status); } && {
33193          test -z "$ac_c_werror_flag" ||
33194          test ! -s conftest.err
33195        } && test -s conftest$ac_exeext &&
33196        $as_test_x conftest$ac_exeext; then
33197   bash_cv_signal_vintage="4.2bsd"
33198 else
33199   echo "$as_me: failed program was:" >&5
33200 sed 's/^/| /' conftest.$ac_ext >&5
33201
33202
33203         cat >conftest.$ac_ext <<_ACEOF
33204 /* confdefs.h.  */
33205 _ACEOF
33206 cat confdefs.h >>conftest.$ac_ext
33207 cat >>conftest.$ac_ext <<_ACEOF
33208 /* end confdefs.h.  */
33209
33210           #include <signal.h>
33211           RETSIGTYPE foo() { }
33212 int
33213 main ()
33214 {
33215
33216                   int mask = sigmask(SIGINT);
33217                   sigset(SIGINT, foo); sigrelse(SIGINT);
33218                   sighold(SIGINT); sigpause(SIGINT);
33219
33220   ;
33221   return 0;
33222 }
33223 _ACEOF
33224 rm -f conftest.$ac_objext conftest$ac_exeext
33225 if { (ac_try="$ac_link"
33226 case "(($ac_try" in
33227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33228   *) ac_try_echo=$ac_try;;
33229 esac
33230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33231   (eval "$ac_link") 2>conftest.er1
33232   ac_status=$?
33233   grep -v '^ *+' conftest.er1 >conftest.err
33234   rm -f conftest.er1
33235   cat conftest.err >&5
33236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33237   (exit $ac_status); } && {
33238          test -z "$ac_c_werror_flag" ||
33239          test ! -s conftest.err
33240        } && test -s conftest$ac_exeext &&
33241        $as_test_x conftest$ac_exeext; then
33242   bash_cv_signal_vintage="svr3"
33243 else
33244   echo "$as_me: failed program was:" >&5
33245 sed 's/^/| /' conftest.$ac_ext >&5
33246
33247         bash_cv_signal_vintage="v7"
33248
33249 fi
33250
33251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33252       conftest$ac_exeext conftest.$ac_ext
33253
33254 fi
33255
33256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33257       conftest$ac_exeext conftest.$ac_ext
33258
33259 fi
33260
33261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33262       conftest$ac_exeext conftest.$ac_ext
33263
33264 fi
33265
33266   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33267 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33268   if test "$bash_cv_signal_vintage" = "posix"; then
33269     cat >>confdefs.h <<\_ACEOF
33270 #define HAVE_POSIX_SIGNALS 1
33271 _ACEOF
33272
33273   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33274     cat >>confdefs.h <<\_ACEOF
33275 #define HAVE_BSD_SIGNALS 1
33276 _ACEOF
33277
33278   elif test "$bash_cv_signal_vintage" = "svr3"; then
33279     cat >>confdefs.h <<\_ACEOF
33280 #define HAVE_USG_SIGHOLD 1
33281 _ACEOF
33282
33283   fi
33284
33285 { echo "$as_me:$LINENO: checking for mode_t" >&5
33286 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33287 if test "${ac_cv_type_mode_t+set}" = set; then
33288   echo $ECHO_N "(cached) $ECHO_C" >&6
33289 else
33290   cat >conftest.$ac_ext <<_ACEOF
33291 /* confdefs.h.  */
33292 _ACEOF
33293 cat confdefs.h >>conftest.$ac_ext
33294 cat >>conftest.$ac_ext <<_ACEOF
33295 /* end confdefs.h.  */
33296 $ac_includes_default
33297 typedef mode_t ac__type_new_;
33298 int
33299 main ()
33300 {
33301 if ((ac__type_new_ *) 0)
33302   return 0;
33303 if (sizeof (ac__type_new_))
33304   return 0;
33305   ;
33306   return 0;
33307 }
33308 _ACEOF
33309 rm -f conftest.$ac_objext
33310 if { (ac_try="$ac_compile"
33311 case "(($ac_try" in
33312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33313   *) ac_try_echo=$ac_try;;
33314 esac
33315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33316   (eval "$ac_compile") 2>conftest.er1
33317   ac_status=$?
33318   grep -v '^ *+' conftest.er1 >conftest.err
33319   rm -f conftest.er1
33320   cat conftest.err >&5
33321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33322   (exit $ac_status); } && {
33323          test -z "$ac_c_werror_flag" ||
33324          test ! -s conftest.err
33325        } && test -s conftest.$ac_objext; then
33326   ac_cv_type_mode_t=yes
33327 else
33328   echo "$as_me: failed program was:" >&5
33329 sed 's/^/| /' conftest.$ac_ext >&5
33330
33331         ac_cv_type_mode_t=no
33332 fi
33333
33334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33335 fi
33336 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33337 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33338 if test $ac_cv_type_mode_t = yes; then
33339   :
33340 else
33341
33342 cat >>confdefs.h <<_ACEOF
33343 #define mode_t int
33344 _ACEOF
33345
33346 fi
33347
33348 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33349 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33350 if test "${ac_cv_type_uid_t+set}" = set; then
33351   echo $ECHO_N "(cached) $ECHO_C" >&6
33352 else
33353   cat >conftest.$ac_ext <<_ACEOF
33354 /* confdefs.h.  */
33355 _ACEOF
33356 cat confdefs.h >>conftest.$ac_ext
33357 cat >>conftest.$ac_ext <<_ACEOF
33358 /* end confdefs.h.  */
33359 #include <sys/types.h>
33360
33361 _ACEOF
33362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33363   $EGREP "uid_t" >/dev/null 2>&1; then
33364   ac_cv_type_uid_t=yes
33365 else
33366   ac_cv_type_uid_t=no
33367 fi
33368 rm -f conftest*
33369
33370 fi
33371 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33372 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33373 if test $ac_cv_type_uid_t = no; then
33374
33375 cat >>confdefs.h <<\_ACEOF
33376 #define uid_t int
33377 _ACEOF
33378
33379
33380 cat >>confdefs.h <<\_ACEOF
33381 #define gid_t int
33382 _ACEOF
33383
33384 fi
33385
33386 { echo "$as_me:$LINENO: checking for size_t" >&5
33387 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33388 if test "${ac_cv_type_size_t+set}" = set; then
33389   echo $ECHO_N "(cached) $ECHO_C" >&6
33390 else
33391   cat >conftest.$ac_ext <<_ACEOF
33392 /* confdefs.h.  */
33393 _ACEOF
33394 cat confdefs.h >>conftest.$ac_ext
33395 cat >>conftest.$ac_ext <<_ACEOF
33396 /* end confdefs.h.  */
33397 $ac_includes_default
33398 typedef size_t ac__type_new_;
33399 int
33400 main ()
33401 {
33402 if ((ac__type_new_ *) 0)
33403   return 0;
33404 if (sizeof (ac__type_new_))
33405   return 0;
33406   ;
33407   return 0;
33408 }
33409 _ACEOF
33410 rm -f conftest.$ac_objext
33411 if { (ac_try="$ac_compile"
33412 case "(($ac_try" in
33413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33414   *) ac_try_echo=$ac_try;;
33415 esac
33416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33417   (eval "$ac_compile") 2>conftest.er1
33418   ac_status=$?
33419   grep -v '^ *+' conftest.er1 >conftest.err
33420   rm -f conftest.er1
33421   cat conftest.err >&5
33422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33423   (exit $ac_status); } && {
33424          test -z "$ac_c_werror_flag" ||
33425          test ! -s conftest.err
33426        } && test -s conftest.$ac_objext; then
33427   ac_cv_type_size_t=yes
33428 else
33429   echo "$as_me: failed program was:" >&5
33430 sed 's/^/| /' conftest.$ac_ext >&5
33431
33432         ac_cv_type_size_t=no
33433 fi
33434
33435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33436 fi
33437 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33438 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33439 if test $ac_cv_type_size_t = yes; then
33440   :
33441 else
33442
33443 cat >>confdefs.h <<_ACEOF
33444 #define size_t unsigned int
33445 _ACEOF
33446
33447 fi
33448
33449 { echo "$as_me:$LINENO: checking for pid_t" >&5
33450 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33451 if test "${ac_cv_type_pid_t+set}" = set; then
33452   echo $ECHO_N "(cached) $ECHO_C" >&6
33453 else
33454   cat >conftest.$ac_ext <<_ACEOF
33455 /* confdefs.h.  */
33456 _ACEOF
33457 cat confdefs.h >>conftest.$ac_ext
33458 cat >>conftest.$ac_ext <<_ACEOF
33459 /* end confdefs.h.  */
33460 $ac_includes_default
33461 typedef pid_t ac__type_new_;
33462 int
33463 main ()
33464 {
33465 if ((ac__type_new_ *) 0)
33466   return 0;
33467 if (sizeof (ac__type_new_))
33468   return 0;
33469   ;
33470   return 0;
33471 }
33472 _ACEOF
33473 rm -f conftest.$ac_objext
33474 if { (ac_try="$ac_compile"
33475 case "(($ac_try" in
33476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33477   *) ac_try_echo=$ac_try;;
33478 esac
33479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33480   (eval "$ac_compile") 2>conftest.er1
33481   ac_status=$?
33482   grep -v '^ *+' conftest.er1 >conftest.err
33483   rm -f conftest.er1
33484   cat conftest.err >&5
33485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33486   (exit $ac_status); } && {
33487          test -z "$ac_c_werror_flag" ||
33488          test ! -s conftest.err
33489        } && test -s conftest.$ac_objext; then
33490   ac_cv_type_pid_t=yes
33491 else
33492   echo "$as_me: failed program was:" >&5
33493 sed 's/^/| /' conftest.$ac_ext >&5
33494
33495         ac_cv_type_pid_t=no
33496 fi
33497
33498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33499 fi
33500 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33501 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33502 if test $ac_cv_type_pid_t = yes; then
33503   :
33504 else
33505
33506 cat >>confdefs.h <<_ACEOF
33507 #define pid_t int
33508 _ACEOF
33509
33510 fi
33511
33512 { echo "$as_me:$LINENO: checking for off_t" >&5
33513 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33514 if test "${ac_cv_type_off_t+set}" = set; then
33515   echo $ECHO_N "(cached) $ECHO_C" >&6
33516 else
33517   cat >conftest.$ac_ext <<_ACEOF
33518 /* confdefs.h.  */
33519 _ACEOF
33520 cat confdefs.h >>conftest.$ac_ext
33521 cat >>conftest.$ac_ext <<_ACEOF
33522 /* end confdefs.h.  */
33523 $ac_includes_default
33524 typedef off_t ac__type_new_;
33525 int
33526 main ()
33527 {
33528 if ((ac__type_new_ *) 0)
33529   return 0;
33530 if (sizeof (ac__type_new_))
33531   return 0;
33532   ;
33533   return 0;
33534 }
33535 _ACEOF
33536 rm -f conftest.$ac_objext
33537 if { (ac_try="$ac_compile"
33538 case "(($ac_try" in
33539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33540   *) ac_try_echo=$ac_try;;
33541 esac
33542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33543   (eval "$ac_compile") 2>conftest.er1
33544   ac_status=$?
33545   grep -v '^ *+' conftest.er1 >conftest.err
33546   rm -f conftest.er1
33547   cat conftest.err >&5
33548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33549   (exit $ac_status); } && {
33550          test -z "$ac_c_werror_flag" ||
33551          test ! -s conftest.err
33552        } && test -s conftest.$ac_objext; then
33553   ac_cv_type_off_t=yes
33554 else
33555   echo "$as_me: failed program was:" >&5
33556 sed 's/^/| /' conftest.$ac_ext >&5
33557
33558         ac_cv_type_off_t=no
33559 fi
33560
33561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33562 fi
33563 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33564 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33565 if test $ac_cv_type_off_t = yes; then
33566   :
33567 else
33568
33569 cat >>confdefs.h <<_ACEOF
33570 #define off_t long int
33571 _ACEOF
33572
33573 fi
33574
33575
33576   { echo "$as_me:$LINENO: checking for intptr_t" >&5
33577 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33578 if test "${ac_cv_type_intptr_t+set}" = set; then
33579   echo $ECHO_N "(cached) $ECHO_C" >&6
33580 else
33581   cat >conftest.$ac_ext <<_ACEOF
33582 /* confdefs.h.  */
33583 _ACEOF
33584 cat confdefs.h >>conftest.$ac_ext
33585 cat >>conftest.$ac_ext <<_ACEOF
33586 /* end confdefs.h.  */
33587 $ac_includes_default
33588 typedef intptr_t ac__type_new_;
33589 int
33590 main ()
33591 {
33592 if ((ac__type_new_ *) 0)
33593   return 0;
33594 if (sizeof (ac__type_new_))
33595   return 0;
33596   ;
33597   return 0;
33598 }
33599 _ACEOF
33600 rm -f conftest.$ac_objext
33601 if { (ac_try="$ac_compile"
33602 case "(($ac_try" in
33603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33604   *) ac_try_echo=$ac_try;;
33605 esac
33606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33607   (eval "$ac_compile") 2>conftest.er1
33608   ac_status=$?
33609   grep -v '^ *+' conftest.er1 >conftest.err
33610   rm -f conftest.er1
33611   cat conftest.err >&5
33612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33613   (exit $ac_status); } && {
33614          test -z "$ac_c_werror_flag" ||
33615          test ! -s conftest.err
33616        } && test -s conftest.$ac_objext; then
33617   ac_cv_type_intptr_t=yes
33618 else
33619   echo "$as_me: failed program was:" >&5
33620 sed 's/^/| /' conftest.$ac_ext >&5
33621
33622         ac_cv_type_intptr_t=no
33623 fi
33624
33625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33626 fi
33627 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33628 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33629 if test $ac_cv_type_intptr_t = yes; then
33630
33631 cat >>confdefs.h <<\_ACEOF
33632 #define HAVE_INTPTR_T 1
33633 _ACEOF
33634
33635 else
33636   for ac_type in 'int' 'long int' 'long long int'; do
33637        cat >conftest.$ac_ext <<_ACEOF
33638 /* confdefs.h.  */
33639 _ACEOF
33640 cat confdefs.h >>conftest.$ac_ext
33641 cat >>conftest.$ac_ext <<_ACEOF
33642 /* end confdefs.h.  */
33643 $ac_includes_default
33644 int
33645 main ()
33646 {
33647 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33648 test_array [0] = 0
33649
33650   ;
33651   return 0;
33652 }
33653 _ACEOF
33654 rm -f conftest.$ac_objext
33655 if { (ac_try="$ac_compile"
33656 case "(($ac_try" in
33657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33658   *) ac_try_echo=$ac_try;;
33659 esac
33660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33661   (eval "$ac_compile") 2>conftest.er1
33662   ac_status=$?
33663   grep -v '^ *+' conftest.er1 >conftest.err
33664   rm -f conftest.er1
33665   cat conftest.err >&5
33666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33667   (exit $ac_status); } && {
33668          test -z "$ac_c_werror_flag" ||
33669          test ! -s conftest.err
33670        } && test -s conftest.$ac_objext; then
33671
33672 cat >>confdefs.h <<_ACEOF
33673 #define intptr_t $ac_type
33674 _ACEOF
33675
33676           ac_type=
33677 else
33678   echo "$as_me: failed program was:" >&5
33679 sed 's/^/| /' conftest.$ac_ext >&5
33680
33681
33682 fi
33683
33684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33685        test -z "$ac_type" && break
33686      done
33687 fi
33688
33689
33690
33691   { echo "$as_me:$LINENO: checking for uintptr_t" >&5
33692 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
33693 if test "${ac_cv_type_uintptr_t+set}" = set; then
33694   echo $ECHO_N "(cached) $ECHO_C" >&6
33695 else
33696   cat >conftest.$ac_ext <<_ACEOF
33697 /* confdefs.h.  */
33698 _ACEOF
33699 cat confdefs.h >>conftest.$ac_ext
33700 cat >>conftest.$ac_ext <<_ACEOF
33701 /* end confdefs.h.  */
33702 $ac_includes_default
33703 typedef uintptr_t ac__type_new_;
33704 int
33705 main ()
33706 {
33707 if ((ac__type_new_ *) 0)
33708   return 0;
33709 if (sizeof (ac__type_new_))
33710   return 0;
33711   ;
33712   return 0;
33713 }
33714 _ACEOF
33715 rm -f conftest.$ac_objext
33716 if { (ac_try="$ac_compile"
33717 case "(($ac_try" in
33718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33719   *) ac_try_echo=$ac_try;;
33720 esac
33721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33722   (eval "$ac_compile") 2>conftest.er1
33723   ac_status=$?
33724   grep -v '^ *+' conftest.er1 >conftest.err
33725   rm -f conftest.er1
33726   cat conftest.err >&5
33727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33728   (exit $ac_status); } && {
33729          test -z "$ac_c_werror_flag" ||
33730          test ! -s conftest.err
33731        } && test -s conftest.$ac_objext; then
33732   ac_cv_type_uintptr_t=yes
33733 else
33734   echo "$as_me: failed program was:" >&5
33735 sed 's/^/| /' conftest.$ac_ext >&5
33736
33737         ac_cv_type_uintptr_t=no
33738 fi
33739
33740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33741 fi
33742 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
33743 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
33744 if test $ac_cv_type_uintptr_t = yes; then
33745
33746 cat >>confdefs.h <<\_ACEOF
33747 #define HAVE_UINTPTR_T 1
33748 _ACEOF
33749
33750 else
33751   for ac_type in 'unsigned int' 'unsigned long int' \
33752         'unsigned long long int'; do
33753        cat >conftest.$ac_ext <<_ACEOF
33754 /* confdefs.h.  */
33755 _ACEOF
33756 cat confdefs.h >>conftest.$ac_ext
33757 cat >>conftest.$ac_ext <<_ACEOF
33758 /* end confdefs.h.  */
33759 $ac_includes_default
33760 int
33761 main ()
33762 {
33763 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33764 test_array [0] = 0
33765
33766   ;
33767   return 0;
33768 }
33769 _ACEOF
33770 rm -f conftest.$ac_objext
33771 if { (ac_try="$ac_compile"
33772 case "(($ac_try" in
33773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33774   *) ac_try_echo=$ac_try;;
33775 esac
33776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33777   (eval "$ac_compile") 2>conftest.er1
33778   ac_status=$?
33779   grep -v '^ *+' conftest.er1 >conftest.err
33780   rm -f conftest.er1
33781   cat conftest.err >&5
33782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33783   (exit $ac_status); } && {
33784          test -z "$ac_c_werror_flag" ||
33785          test ! -s conftest.err
33786        } && test -s conftest.$ac_objext; then
33787
33788 cat >>confdefs.h <<_ACEOF
33789 #define uintptr_t $ac_type
33790 _ACEOF
33791
33792           ac_type=
33793 else
33794   echo "$as_me: failed program was:" >&5
33795 sed 's/^/| /' conftest.$ac_ext >&5
33796
33797
33798 fi
33799
33800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33801        test -z "$ac_type" && break
33802      done
33803 fi
33804
33805
33806 { echo "$as_me:$LINENO: checking for ino_t" >&5
33807 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33808 if test "${ac_cv_type_ino_t+set}" = set; then
33809   echo $ECHO_N "(cached) $ECHO_C" >&6
33810 else
33811   cat >conftest.$ac_ext <<_ACEOF
33812 /* confdefs.h.  */
33813 _ACEOF
33814 cat confdefs.h >>conftest.$ac_ext
33815 cat >>conftest.$ac_ext <<_ACEOF
33816 /* end confdefs.h.  */
33817 $ac_includes_default
33818 typedef ino_t ac__type_new_;
33819 int
33820 main ()
33821 {
33822 if ((ac__type_new_ *) 0)
33823   return 0;
33824 if (sizeof (ac__type_new_))
33825   return 0;
33826   ;
33827   return 0;
33828 }
33829 _ACEOF
33830 rm -f conftest.$ac_objext
33831 if { (ac_try="$ac_compile"
33832 case "(($ac_try" in
33833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33834   *) ac_try_echo=$ac_try;;
33835 esac
33836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33837   (eval "$ac_compile") 2>conftest.er1
33838   ac_status=$?
33839   grep -v '^ *+' conftest.er1 >conftest.err
33840   rm -f conftest.er1
33841   cat conftest.err >&5
33842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33843   (exit $ac_status); } && {
33844          test -z "$ac_c_werror_flag" ||
33845          test ! -s conftest.err
33846        } && test -s conftest.$ac_objext; then
33847   ac_cv_type_ino_t=yes
33848 else
33849   echo "$as_me: failed program was:" >&5
33850 sed 's/^/| /' conftest.$ac_ext >&5
33851
33852         ac_cv_type_ino_t=no
33853 fi
33854
33855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33856 fi
33857 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33858 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33859 if test $ac_cv_type_ino_t = yes; then
33860   :
33861 else
33862
33863 cat >>confdefs.h <<_ACEOF
33864 #define ino_t unsigned long
33865 _ACEOF
33866
33867 fi
33868
33869 { echo "$as_me:$LINENO: checking for dev_t" >&5
33870 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33871 if test "${ac_cv_type_dev_t+set}" = set; then
33872   echo $ECHO_N "(cached) $ECHO_C" >&6
33873 else
33874   cat >conftest.$ac_ext <<_ACEOF
33875 /* confdefs.h.  */
33876 _ACEOF
33877 cat confdefs.h >>conftest.$ac_ext
33878 cat >>conftest.$ac_ext <<_ACEOF
33879 /* end confdefs.h.  */
33880 $ac_includes_default
33881 typedef dev_t ac__type_new_;
33882 int
33883 main ()
33884 {
33885 if ((ac__type_new_ *) 0)
33886   return 0;
33887 if (sizeof (ac__type_new_))
33888   return 0;
33889   ;
33890   return 0;
33891 }
33892 _ACEOF
33893 rm -f conftest.$ac_objext
33894 if { (ac_try="$ac_compile"
33895 case "(($ac_try" in
33896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33897   *) ac_try_echo=$ac_try;;
33898 esac
33899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33900   (eval "$ac_compile") 2>conftest.er1
33901   ac_status=$?
33902   grep -v '^ *+' conftest.er1 >conftest.err
33903   rm -f conftest.er1
33904   cat conftest.err >&5
33905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33906   (exit $ac_status); } && {
33907          test -z "$ac_c_werror_flag" ||
33908          test ! -s conftest.err
33909        } && test -s conftest.$ac_objext; then
33910   ac_cv_type_dev_t=yes
33911 else
33912   echo "$as_me: failed program was:" >&5
33913 sed 's/^/| /' conftest.$ac_ext >&5
33914
33915         ac_cv_type_dev_t=no
33916 fi
33917
33918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33919 fi
33920 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33921 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33922 if test $ac_cv_type_dev_t = yes; then
33923   :
33924 else
33925
33926 cat >>confdefs.h <<_ACEOF
33927 #define dev_t unsigned long
33928 _ACEOF
33929
33930 fi
33931
33932 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33933 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33934 if test "${ac_cv_type_daddr_t+set}" = set; then
33935   echo $ECHO_N "(cached) $ECHO_C" >&6
33936 else
33937   cat >conftest.$ac_ext <<_ACEOF
33938 /* confdefs.h.  */
33939 _ACEOF
33940 cat confdefs.h >>conftest.$ac_ext
33941 cat >>conftest.$ac_ext <<_ACEOF
33942 /* end confdefs.h.  */
33943 $ac_includes_default
33944 typedef daddr_t ac__type_new_;
33945 int
33946 main ()
33947 {
33948 if ((ac__type_new_ *) 0)
33949   return 0;
33950 if (sizeof (ac__type_new_))
33951   return 0;
33952   ;
33953   return 0;
33954 }
33955 _ACEOF
33956 rm -f conftest.$ac_objext
33957 if { (ac_try="$ac_compile"
33958 case "(($ac_try" in
33959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33960   *) ac_try_echo=$ac_try;;
33961 esac
33962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33963   (eval "$ac_compile") 2>conftest.er1
33964   ac_status=$?
33965   grep -v '^ *+' conftest.er1 >conftest.err
33966   rm -f conftest.er1
33967   cat conftest.err >&5
33968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33969   (exit $ac_status); } && {
33970          test -z "$ac_c_werror_flag" ||
33971          test ! -s conftest.err
33972        } && test -s conftest.$ac_objext; then
33973   ac_cv_type_daddr_t=yes
33974 else
33975   echo "$as_me: failed program was:" >&5
33976 sed 's/^/| /' conftest.$ac_ext >&5
33977
33978         ac_cv_type_daddr_t=no
33979 fi
33980
33981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33982 fi
33983 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33984 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33985 if test $ac_cv_type_daddr_t = yes; then
33986   :
33987 else
33988
33989 cat >>confdefs.h <<_ACEOF
33990 #define daddr_t long
33991 _ACEOF
33992
33993 fi
33994
33995 { echo "$as_me:$LINENO: checking for major_t" >&5
33996 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33997 if test "${ac_cv_type_major_t+set}" = set; then
33998   echo $ECHO_N "(cached) $ECHO_C" >&6
33999 else
34000   cat >conftest.$ac_ext <<_ACEOF
34001 /* confdefs.h.  */
34002 _ACEOF
34003 cat confdefs.h >>conftest.$ac_ext
34004 cat >>conftest.$ac_ext <<_ACEOF
34005 /* end confdefs.h.  */
34006 $ac_includes_default
34007 typedef major_t ac__type_new_;
34008 int
34009 main ()
34010 {
34011 if ((ac__type_new_ *) 0)
34012   return 0;
34013 if (sizeof (ac__type_new_))
34014   return 0;
34015   ;
34016   return 0;
34017 }
34018 _ACEOF
34019 rm -f conftest.$ac_objext
34020 if { (ac_try="$ac_compile"
34021 case "(($ac_try" in
34022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34023   *) ac_try_echo=$ac_try;;
34024 esac
34025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34026   (eval "$ac_compile") 2>conftest.er1
34027   ac_status=$?
34028   grep -v '^ *+' conftest.er1 >conftest.err
34029   rm -f conftest.er1
34030   cat conftest.err >&5
34031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34032   (exit $ac_status); } && {
34033          test -z "$ac_c_werror_flag" ||
34034          test ! -s conftest.err
34035        } && test -s conftest.$ac_objext; then
34036   ac_cv_type_major_t=yes
34037 else
34038   echo "$as_me: failed program was:" >&5
34039 sed 's/^/| /' conftest.$ac_ext >&5
34040
34041         ac_cv_type_major_t=no
34042 fi
34043
34044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34045 fi
34046 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34047 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34048 if test $ac_cv_type_major_t = yes; then
34049   :
34050 else
34051
34052 cat >>confdefs.h <<_ACEOF
34053 #define major_t int
34054 _ACEOF
34055
34056 fi
34057
34058 { echo "$as_me:$LINENO: checking for minor_t" >&5
34059 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34060 if test "${ac_cv_type_minor_t+set}" = set; then
34061   echo $ECHO_N "(cached) $ECHO_C" >&6
34062 else
34063   cat >conftest.$ac_ext <<_ACEOF
34064 /* confdefs.h.  */
34065 _ACEOF
34066 cat confdefs.h >>conftest.$ac_ext
34067 cat >>conftest.$ac_ext <<_ACEOF
34068 /* end confdefs.h.  */
34069 $ac_includes_default
34070 typedef minor_t ac__type_new_;
34071 int
34072 main ()
34073 {
34074 if ((ac__type_new_ *) 0)
34075   return 0;
34076 if (sizeof (ac__type_new_))
34077   return 0;
34078   ;
34079   return 0;
34080 }
34081 _ACEOF
34082 rm -f conftest.$ac_objext
34083 if { (ac_try="$ac_compile"
34084 case "(($ac_try" in
34085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34086   *) ac_try_echo=$ac_try;;
34087 esac
34088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34089   (eval "$ac_compile") 2>conftest.er1
34090   ac_status=$?
34091   grep -v '^ *+' conftest.er1 >conftest.err
34092   rm -f conftest.er1
34093   cat conftest.err >&5
34094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34095   (exit $ac_status); } && {
34096          test -z "$ac_c_werror_flag" ||
34097          test ! -s conftest.err
34098        } && test -s conftest.$ac_objext; then
34099   ac_cv_type_minor_t=yes
34100 else
34101   echo "$as_me: failed program was:" >&5
34102 sed 's/^/| /' conftest.$ac_ext >&5
34103
34104         ac_cv_type_minor_t=no
34105 fi
34106
34107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34108 fi
34109 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34110 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34111 if test $ac_cv_type_minor_t = yes; then
34112   :
34113 else
34114
34115 cat >>confdefs.h <<_ACEOF
34116 #define minor_t int
34117 _ACEOF
34118
34119 fi
34120
34121 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34122 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34123 if test "${ac_cv_type_ssize_t+set}" = set; then
34124   echo $ECHO_N "(cached) $ECHO_C" >&6
34125 else
34126   cat >conftest.$ac_ext <<_ACEOF
34127 /* confdefs.h.  */
34128 _ACEOF
34129 cat confdefs.h >>conftest.$ac_ext
34130 cat >>conftest.$ac_ext <<_ACEOF
34131 /* end confdefs.h.  */
34132 $ac_includes_default
34133 typedef ssize_t ac__type_new_;
34134 int
34135 main ()
34136 {
34137 if ((ac__type_new_ *) 0)
34138   return 0;
34139 if (sizeof (ac__type_new_))
34140   return 0;
34141   ;
34142   return 0;
34143 }
34144 _ACEOF
34145 rm -f conftest.$ac_objext
34146 if { (ac_try="$ac_compile"
34147 case "(($ac_try" in
34148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34149   *) ac_try_echo=$ac_try;;
34150 esac
34151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34152   (eval "$ac_compile") 2>conftest.er1
34153   ac_status=$?
34154   grep -v '^ *+' conftest.er1 >conftest.err
34155   rm -f conftest.er1
34156   cat conftest.err >&5
34157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34158   (exit $ac_status); } && {
34159          test -z "$ac_c_werror_flag" ||
34160          test ! -s conftest.err
34161        } && test -s conftest.$ac_objext; then
34162   ac_cv_type_ssize_t=yes
34163 else
34164   echo "$as_me: failed program was:" >&5
34165 sed 's/^/| /' conftest.$ac_ext >&5
34166
34167         ac_cv_type_ssize_t=no
34168 fi
34169
34170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34171 fi
34172 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34173 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34174 if test $ac_cv_type_ssize_t = yes; then
34175   :
34176 else
34177
34178 cat >>confdefs.h <<_ACEOF
34179 #define ssize_t int
34180 _ACEOF
34181
34182 fi
34183
34184 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34185 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34186 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34187   echo $ECHO_N "(cached) $ECHO_C" >&6
34188 else
34189   cat >conftest.$ac_ext <<_ACEOF
34190 /* confdefs.h.  */
34191 _ACEOF
34192 cat confdefs.h >>conftest.$ac_ext
34193 cat >>conftest.$ac_ext <<_ACEOF
34194 /* end confdefs.h.  */
34195 $ac_includes_default
34196 int
34197 main ()
34198 {
34199 static struct stat ac_aggr;
34200 if (ac_aggr.st_blocks)
34201 return 0;
34202   ;
34203   return 0;
34204 }
34205 _ACEOF
34206 rm -f conftest.$ac_objext
34207 if { (ac_try="$ac_compile"
34208 case "(($ac_try" in
34209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34210   *) ac_try_echo=$ac_try;;
34211 esac
34212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34213   (eval "$ac_compile") 2>conftest.er1
34214   ac_status=$?
34215   grep -v '^ *+' conftest.er1 >conftest.err
34216   rm -f conftest.er1
34217   cat conftest.err >&5
34218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34219   (exit $ac_status); } && {
34220          test -z "$ac_c_werror_flag" ||
34221          test ! -s conftest.err
34222        } && test -s conftest.$ac_objext; then
34223   ac_cv_member_struct_stat_st_blocks=yes
34224 else
34225   echo "$as_me: failed program was:" >&5
34226 sed 's/^/| /' conftest.$ac_ext >&5
34227
34228         cat >conftest.$ac_ext <<_ACEOF
34229 /* confdefs.h.  */
34230 _ACEOF
34231 cat confdefs.h >>conftest.$ac_ext
34232 cat >>conftest.$ac_ext <<_ACEOF
34233 /* end confdefs.h.  */
34234 $ac_includes_default
34235 int
34236 main ()
34237 {
34238 static struct stat ac_aggr;
34239 if (sizeof ac_aggr.st_blocks)
34240 return 0;
34241   ;
34242   return 0;
34243 }
34244 _ACEOF
34245 rm -f conftest.$ac_objext
34246 if { (ac_try="$ac_compile"
34247 case "(($ac_try" in
34248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34249   *) ac_try_echo=$ac_try;;
34250 esac
34251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34252   (eval "$ac_compile") 2>conftest.er1
34253   ac_status=$?
34254   grep -v '^ *+' conftest.er1 >conftest.err
34255   rm -f conftest.er1
34256   cat conftest.err >&5
34257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34258   (exit $ac_status); } && {
34259          test -z "$ac_c_werror_flag" ||
34260          test ! -s conftest.err
34261        } && test -s conftest.$ac_objext; then
34262   ac_cv_member_struct_stat_st_blocks=yes
34263 else
34264   echo "$as_me: failed program was:" >&5
34265 sed 's/^/| /' conftest.$ac_ext >&5
34266
34267         ac_cv_member_struct_stat_st_blocks=no
34268 fi
34269
34270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34271 fi
34272
34273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34274 fi
34275 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34276 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34277 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34278
34279 cat >>confdefs.h <<_ACEOF
34280 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34281 _ACEOF
34282
34283
34284 cat >>confdefs.h <<\_ACEOF
34285 #define HAVE_ST_BLOCKS 1
34286 _ACEOF
34287
34288 else
34289   case " $LIBOBJS " in
34290   *" fileblocks.$ac_objext "* ) ;;
34291   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34292  ;;
34293 esac
34294
34295 fi
34296
34297
34298 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34299 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34300 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34301   echo $ECHO_N "(cached) $ECHO_C" >&6
34302 else
34303   cat >conftest.$ac_ext <<_ACEOF
34304 /* confdefs.h.  */
34305 _ACEOF
34306 cat confdefs.h >>conftest.$ac_ext
34307 cat >>conftest.$ac_ext <<_ACEOF
34308 /* end confdefs.h.  */
34309 $ac_includes_default
34310 int
34311 main ()
34312 {
34313 static struct stat ac_aggr;
34314 if (ac_aggr.st_rdev)
34315 return 0;
34316   ;
34317   return 0;
34318 }
34319 _ACEOF
34320 rm -f conftest.$ac_objext
34321 if { (ac_try="$ac_compile"
34322 case "(($ac_try" in
34323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34324   *) ac_try_echo=$ac_try;;
34325 esac
34326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34327   (eval "$ac_compile") 2>conftest.er1
34328   ac_status=$?
34329   grep -v '^ *+' conftest.er1 >conftest.err
34330   rm -f conftest.er1
34331   cat conftest.err >&5
34332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34333   (exit $ac_status); } && {
34334          test -z "$ac_c_werror_flag" ||
34335          test ! -s conftest.err
34336        } && test -s conftest.$ac_objext; then
34337   ac_cv_member_struct_stat_st_rdev=yes
34338 else
34339   echo "$as_me: failed program was:" >&5
34340 sed 's/^/| /' conftest.$ac_ext >&5
34341
34342         cat >conftest.$ac_ext <<_ACEOF
34343 /* confdefs.h.  */
34344 _ACEOF
34345 cat confdefs.h >>conftest.$ac_ext
34346 cat >>conftest.$ac_ext <<_ACEOF
34347 /* end confdefs.h.  */
34348 $ac_includes_default
34349 int
34350 main ()
34351 {
34352 static struct stat ac_aggr;
34353 if (sizeof ac_aggr.st_rdev)
34354 return 0;
34355   ;
34356   return 0;
34357 }
34358 _ACEOF
34359 rm -f conftest.$ac_objext
34360 if { (ac_try="$ac_compile"
34361 case "(($ac_try" in
34362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34363   *) ac_try_echo=$ac_try;;
34364 esac
34365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34366   (eval "$ac_compile") 2>conftest.er1
34367   ac_status=$?
34368   grep -v '^ *+' conftest.er1 >conftest.err
34369   rm -f conftest.er1
34370   cat conftest.err >&5
34371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34372   (exit $ac_status); } && {
34373          test -z "$ac_c_werror_flag" ||
34374          test ! -s conftest.err
34375        } && test -s conftest.$ac_objext; then
34376   ac_cv_member_struct_stat_st_rdev=yes
34377 else
34378   echo "$as_me: failed program was:" >&5
34379 sed 's/^/| /' conftest.$ac_ext >&5
34380
34381         ac_cv_member_struct_stat_st_rdev=no
34382 fi
34383
34384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34385 fi
34386
34387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34388 fi
34389 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34390 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34391 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34392
34393 cat >>confdefs.h <<_ACEOF
34394 #define HAVE_STRUCT_STAT_ST_RDEV 1
34395 _ACEOF
34396
34397
34398 cat >>confdefs.h <<\_ACEOF
34399 #define HAVE_ST_RDEV 1
34400 _ACEOF
34401
34402 fi
34403
34404
34405 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34406 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34407 if test "${ac_cv_struct_tm+set}" = set; then
34408   echo $ECHO_N "(cached) $ECHO_C" >&6
34409 else
34410   cat >conftest.$ac_ext <<_ACEOF
34411 /* confdefs.h.  */
34412 _ACEOF
34413 cat confdefs.h >>conftest.$ac_ext
34414 cat >>conftest.$ac_ext <<_ACEOF
34415 /* end confdefs.h.  */
34416 #include <sys/types.h>
34417 #include <time.h>
34418
34419 int
34420 main ()
34421 {
34422 struct tm tm;
34423                                      int *p = &tm.tm_sec;
34424                                      return !p;
34425   ;
34426   return 0;
34427 }
34428 _ACEOF
34429 rm -f conftest.$ac_objext
34430 if { (ac_try="$ac_compile"
34431 case "(($ac_try" in
34432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34433   *) ac_try_echo=$ac_try;;
34434 esac
34435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34436   (eval "$ac_compile") 2>conftest.er1
34437   ac_status=$?
34438   grep -v '^ *+' conftest.er1 >conftest.err
34439   rm -f conftest.er1
34440   cat conftest.err >&5
34441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34442   (exit $ac_status); } && {
34443          test -z "$ac_c_werror_flag" ||
34444          test ! -s conftest.err
34445        } && test -s conftest.$ac_objext; then
34446   ac_cv_struct_tm=time.h
34447 else
34448   echo "$as_me: failed program was:" >&5
34449 sed 's/^/| /' conftest.$ac_ext >&5
34450
34451         ac_cv_struct_tm=sys/time.h
34452 fi
34453
34454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34455 fi
34456 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34457 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34458 if test $ac_cv_struct_tm = sys/time.h; then
34459
34460 cat >>confdefs.h <<\_ACEOF
34461 #define TM_IN_SYS_TIME 1
34462 _ACEOF
34463
34464 fi
34465
34466 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34467 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34468 if test "${ac_cv_c_const+set}" = set; then
34469   echo $ECHO_N "(cached) $ECHO_C" >&6
34470 else
34471   cat >conftest.$ac_ext <<_ACEOF
34472 /* confdefs.h.  */
34473 _ACEOF
34474 cat confdefs.h >>conftest.$ac_ext
34475 cat >>conftest.$ac_ext <<_ACEOF
34476 /* end confdefs.h.  */
34477
34478 int
34479 main ()
34480 {
34481 /* FIXME: Include the comments suggested by Paul. */
34482 #ifndef __cplusplus
34483   /* Ultrix mips cc rejects this.  */
34484   typedef int charset[2];
34485   const charset cs;
34486   /* SunOS 4.1.1 cc rejects this.  */
34487   char const *const *pcpcc;
34488   char **ppc;
34489   /* NEC SVR4.0.2 mips cc rejects this.  */
34490   struct point {int x, y;};
34491   static struct point const zero = {0,0};
34492   /* AIX XL C 1.02.0.0 rejects this.
34493      It does not let you subtract one const X* pointer from another in
34494      an arm of an if-expression whose if-part is not a constant
34495      expression */
34496   const char *g = "string";
34497   pcpcc = &g + (g ? g-g : 0);
34498   /* HPUX 7.0 cc rejects these. */
34499   ++pcpcc;
34500   ppc = (char**) pcpcc;
34501   pcpcc = (char const *const *) ppc;
34502   { /* SCO 3.2v4 cc rejects this.  */
34503     char *t;
34504     char const *s = 0 ? (char *) 0 : (char const *) 0;
34505
34506     *t++ = 0;
34507     if (s) return 0;
34508   }
34509   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34510     int x[] = {25, 17};
34511     const int *foo = &x[0];
34512     ++foo;
34513   }
34514   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34515     typedef const int *iptr;
34516     iptr p = 0;
34517     ++p;
34518   }
34519   { /* AIX XL C 1.02.0.0 rejects this saying
34520        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34521     struct s { int j; const int *ap[3]; };
34522     struct s *b; b->j = 5;
34523   }
34524   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34525     const int foo = 10;
34526     if (!foo) return 0;
34527   }
34528   return !cs[0] && !zero.x;
34529 #endif
34530
34531   ;
34532   return 0;
34533 }
34534 _ACEOF
34535 rm -f conftest.$ac_objext
34536 if { (ac_try="$ac_compile"
34537 case "(($ac_try" in
34538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34539   *) ac_try_echo=$ac_try;;
34540 esac
34541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34542   (eval "$ac_compile") 2>conftest.er1
34543   ac_status=$?
34544   grep -v '^ *+' conftest.er1 >conftest.err
34545   rm -f conftest.er1
34546   cat conftest.err >&5
34547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34548   (exit $ac_status); } && {
34549          test -z "$ac_c_werror_flag" ||
34550          test ! -s conftest.err
34551        } && test -s conftest.$ac_objext; then
34552   ac_cv_c_const=yes
34553 else
34554   echo "$as_me: failed program was:" >&5
34555 sed 's/^/| /' conftest.$ac_ext >&5
34556
34557         ac_cv_c_const=no
34558 fi
34559
34560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34561 fi
34562 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34563 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34564 if test $ac_cv_c_const = no; then
34565
34566 cat >>confdefs.h <<\_ACEOF
34567 #define const
34568 _ACEOF
34569
34570 fi
34571
34572
34573 { echo "$as_me:$LINENO: checking for char" >&5
34574 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34575 if test "${ac_cv_type_char+set}" = set; then
34576   echo $ECHO_N "(cached) $ECHO_C" >&6
34577 else
34578   cat >conftest.$ac_ext <<_ACEOF
34579 /* confdefs.h.  */
34580 _ACEOF
34581 cat confdefs.h >>conftest.$ac_ext
34582 cat >>conftest.$ac_ext <<_ACEOF
34583 /* end confdefs.h.  */
34584 $ac_includes_default
34585 typedef char ac__type_new_;
34586 int
34587 main ()
34588 {
34589 if ((ac__type_new_ *) 0)
34590   return 0;
34591 if (sizeof (ac__type_new_))
34592   return 0;
34593   ;
34594   return 0;
34595 }
34596 _ACEOF
34597 rm -f conftest.$ac_objext
34598 if { (ac_try="$ac_compile"
34599 case "(($ac_try" in
34600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34601   *) ac_try_echo=$ac_try;;
34602 esac
34603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34604   (eval "$ac_compile") 2>conftest.er1
34605   ac_status=$?
34606   grep -v '^ *+' conftest.er1 >conftest.err
34607   rm -f conftest.er1
34608   cat conftest.err >&5
34609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34610   (exit $ac_status); } && {
34611          test -z "$ac_c_werror_flag" ||
34612          test ! -s conftest.err
34613        } && test -s conftest.$ac_objext; then
34614   ac_cv_type_char=yes
34615 else
34616   echo "$as_me: failed program was:" >&5
34617 sed 's/^/| /' conftest.$ac_ext >&5
34618
34619         ac_cv_type_char=no
34620 fi
34621
34622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34623 fi
34624 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34625 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34626
34627 # The cast to long int works around a bug in the HP C Compiler
34628 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34629 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34630 # This bug is HP SR number 8606223364.
34631 { echo "$as_me:$LINENO: checking size of char" >&5
34632 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34633 if test "${ac_cv_sizeof_char+set}" = set; then
34634   echo $ECHO_N "(cached) $ECHO_C" >&6
34635 else
34636   if test "$cross_compiling" = yes; then
34637   # Depending upon the size, compute the lo and hi bounds.
34638 cat >conftest.$ac_ext <<_ACEOF
34639 /* confdefs.h.  */
34640 _ACEOF
34641 cat confdefs.h >>conftest.$ac_ext
34642 cat >>conftest.$ac_ext <<_ACEOF
34643 /* end confdefs.h.  */
34644 $ac_includes_default
34645    typedef char ac__type_sizeof_;
34646 int
34647 main ()
34648 {
34649 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34650 test_array [0] = 0
34651
34652   ;
34653   return 0;
34654 }
34655 _ACEOF
34656 rm -f conftest.$ac_objext
34657 if { (ac_try="$ac_compile"
34658 case "(($ac_try" in
34659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34660   *) ac_try_echo=$ac_try;;
34661 esac
34662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34663   (eval "$ac_compile") 2>conftest.er1
34664   ac_status=$?
34665   grep -v '^ *+' conftest.er1 >conftest.err
34666   rm -f conftest.er1
34667   cat conftest.err >&5
34668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34669   (exit $ac_status); } && {
34670          test -z "$ac_c_werror_flag" ||
34671          test ! -s conftest.err
34672        } && test -s conftest.$ac_objext; then
34673   ac_lo=0 ac_mid=0
34674   while :; do
34675     cat >conftest.$ac_ext <<_ACEOF
34676 /* confdefs.h.  */
34677 _ACEOF
34678 cat confdefs.h >>conftest.$ac_ext
34679 cat >>conftest.$ac_ext <<_ACEOF
34680 /* end confdefs.h.  */
34681 $ac_includes_default
34682    typedef char ac__type_sizeof_;
34683 int
34684 main ()
34685 {
34686 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34687 test_array [0] = 0
34688
34689   ;
34690   return 0;
34691 }
34692 _ACEOF
34693 rm -f conftest.$ac_objext
34694 if { (ac_try="$ac_compile"
34695 case "(($ac_try" in
34696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34697   *) ac_try_echo=$ac_try;;
34698 esac
34699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34700   (eval "$ac_compile") 2>conftest.er1
34701   ac_status=$?
34702   grep -v '^ *+' conftest.er1 >conftest.err
34703   rm -f conftest.er1
34704   cat conftest.err >&5
34705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34706   (exit $ac_status); } && {
34707          test -z "$ac_c_werror_flag" ||
34708          test ! -s conftest.err
34709        } && test -s conftest.$ac_objext; then
34710   ac_hi=$ac_mid; break
34711 else
34712   echo "$as_me: failed program was:" >&5
34713 sed 's/^/| /' conftest.$ac_ext >&5
34714
34715         ac_lo=`expr $ac_mid + 1`
34716                         if test $ac_lo -le $ac_mid; then
34717                           ac_lo= ac_hi=
34718                           break
34719                         fi
34720                         ac_mid=`expr 2 '*' $ac_mid + 1`
34721 fi
34722
34723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34724   done
34725 else
34726   echo "$as_me: failed program was:" >&5
34727 sed 's/^/| /' conftest.$ac_ext >&5
34728
34729         cat >conftest.$ac_ext <<_ACEOF
34730 /* confdefs.h.  */
34731 _ACEOF
34732 cat confdefs.h >>conftest.$ac_ext
34733 cat >>conftest.$ac_ext <<_ACEOF
34734 /* end confdefs.h.  */
34735 $ac_includes_default
34736    typedef char ac__type_sizeof_;
34737 int
34738 main ()
34739 {
34740 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34741 test_array [0] = 0
34742
34743   ;
34744   return 0;
34745 }
34746 _ACEOF
34747 rm -f conftest.$ac_objext
34748 if { (ac_try="$ac_compile"
34749 case "(($ac_try" in
34750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34751   *) ac_try_echo=$ac_try;;
34752 esac
34753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34754   (eval "$ac_compile") 2>conftest.er1
34755   ac_status=$?
34756   grep -v '^ *+' conftest.er1 >conftest.err
34757   rm -f conftest.er1
34758   cat conftest.err >&5
34759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34760   (exit $ac_status); } && {
34761          test -z "$ac_c_werror_flag" ||
34762          test ! -s conftest.err
34763        } && test -s conftest.$ac_objext; then
34764   ac_hi=-1 ac_mid=-1
34765   while :; do
34766     cat >conftest.$ac_ext <<_ACEOF
34767 /* confdefs.h.  */
34768 _ACEOF
34769 cat confdefs.h >>conftest.$ac_ext
34770 cat >>conftest.$ac_ext <<_ACEOF
34771 /* end confdefs.h.  */
34772 $ac_includes_default
34773    typedef char ac__type_sizeof_;
34774 int
34775 main ()
34776 {
34777 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34778 test_array [0] = 0
34779
34780   ;
34781   return 0;
34782 }
34783 _ACEOF
34784 rm -f conftest.$ac_objext
34785 if { (ac_try="$ac_compile"
34786 case "(($ac_try" in
34787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34788   *) ac_try_echo=$ac_try;;
34789 esac
34790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34791   (eval "$ac_compile") 2>conftest.er1
34792   ac_status=$?
34793   grep -v '^ *+' conftest.er1 >conftest.err
34794   rm -f conftest.er1
34795   cat conftest.err >&5
34796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34797   (exit $ac_status); } && {
34798          test -z "$ac_c_werror_flag" ||
34799          test ! -s conftest.err
34800        } && test -s conftest.$ac_objext; then
34801   ac_lo=$ac_mid; break
34802 else
34803   echo "$as_me: failed program was:" >&5
34804 sed 's/^/| /' conftest.$ac_ext >&5
34805
34806         ac_hi=`expr '(' $ac_mid ')' - 1`
34807                         if test $ac_mid -le $ac_hi; then
34808                           ac_lo= ac_hi=
34809                           break
34810                         fi
34811                         ac_mid=`expr 2 '*' $ac_mid`
34812 fi
34813
34814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34815   done
34816 else
34817   echo "$as_me: failed program was:" >&5
34818 sed 's/^/| /' conftest.$ac_ext >&5
34819
34820         ac_lo= ac_hi=
34821 fi
34822
34823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34824 fi
34825
34826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34827 # Binary search between lo and hi bounds.
34828 while test "x$ac_lo" != "x$ac_hi"; do
34829   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34830   cat >conftest.$ac_ext <<_ACEOF
34831 /* confdefs.h.  */
34832 _ACEOF
34833 cat confdefs.h >>conftest.$ac_ext
34834 cat >>conftest.$ac_ext <<_ACEOF
34835 /* end confdefs.h.  */
34836 $ac_includes_default
34837    typedef char ac__type_sizeof_;
34838 int
34839 main ()
34840 {
34841 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34842 test_array [0] = 0
34843
34844   ;
34845   return 0;
34846 }
34847 _ACEOF
34848 rm -f conftest.$ac_objext
34849 if { (ac_try="$ac_compile"
34850 case "(($ac_try" in
34851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34852   *) ac_try_echo=$ac_try;;
34853 esac
34854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34855   (eval "$ac_compile") 2>conftest.er1
34856   ac_status=$?
34857   grep -v '^ *+' conftest.er1 >conftest.err
34858   rm -f conftest.er1
34859   cat conftest.err >&5
34860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34861   (exit $ac_status); } && {
34862          test -z "$ac_c_werror_flag" ||
34863          test ! -s conftest.err
34864        } && test -s conftest.$ac_objext; then
34865   ac_hi=$ac_mid
34866 else
34867   echo "$as_me: failed program was:" >&5
34868 sed 's/^/| /' conftest.$ac_ext >&5
34869
34870         ac_lo=`expr '(' $ac_mid ')' + 1`
34871 fi
34872
34873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34874 done
34875 case $ac_lo in
34876 ?*) ac_cv_sizeof_char=$ac_lo;;
34877 '') if test "$ac_cv_type_char" = yes; then
34878      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34879 See \`config.log' for more details." >&5
34880 echo "$as_me: error: cannot compute sizeof (char)
34881 See \`config.log' for more details." >&2;}
34882    { (exit 77); exit 77; }; }
34883    else
34884      ac_cv_sizeof_char=0
34885    fi ;;
34886 esac
34887 else
34888   cat >conftest.$ac_ext <<_ACEOF
34889 /* confdefs.h.  */
34890 _ACEOF
34891 cat confdefs.h >>conftest.$ac_ext
34892 cat >>conftest.$ac_ext <<_ACEOF
34893 /* end confdefs.h.  */
34894 $ac_includes_default
34895    typedef char ac__type_sizeof_;
34896 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34897 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34898 #include <stdio.h>
34899 #include <stdlib.h>
34900 int
34901 main ()
34902 {
34903
34904   FILE *f = fopen ("conftest.val", "w");
34905   if (! f)
34906     return 1;
34907   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34908     {
34909       long int i = longval ();
34910       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34911         return 1;
34912       fprintf (f, "%ld\n", i);
34913     }
34914   else
34915     {
34916       unsigned long int i = ulongval ();
34917       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34918         return 1;
34919       fprintf (f, "%lu\n", i);
34920     }
34921   return ferror (f) || fclose (f) != 0;
34922
34923   ;
34924   return 0;
34925 }
34926 _ACEOF
34927 rm -f conftest$ac_exeext
34928 if { (ac_try="$ac_link"
34929 case "(($ac_try" in
34930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34931   *) ac_try_echo=$ac_try;;
34932 esac
34933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34934   (eval "$ac_link") 2>&5
34935   ac_status=$?
34936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34937   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34938   { (case "(($ac_try" in
34939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34940   *) ac_try_echo=$ac_try;;
34941 esac
34942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34943   (eval "$ac_try") 2>&5
34944   ac_status=$?
34945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34946   (exit $ac_status); }; }; then
34947   ac_cv_sizeof_char=`cat conftest.val`
34948 else
34949   echo "$as_me: program exited with status $ac_status" >&5
34950 echo "$as_me: failed program was:" >&5
34951 sed 's/^/| /' conftest.$ac_ext >&5
34952
34953 ( exit $ac_status )
34954 if test "$ac_cv_type_char" = yes; then
34955      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34956 See \`config.log' for more details." >&5
34957 echo "$as_me: error: cannot compute sizeof (char)
34958 See \`config.log' for more details." >&2;}
34959    { (exit 77); exit 77; }; }
34960    else
34961      ac_cv_sizeof_char=0
34962    fi
34963 fi
34964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34965 fi
34966 rm -f conftest.val
34967 fi
34968 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34969 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34970
34971
34972
34973 cat >>confdefs.h <<_ACEOF
34974 #define SIZEOF_CHAR $ac_cv_sizeof_char
34975 _ACEOF
34976
34977
34978 { echo "$as_me:$LINENO: checking for short int" >&5
34979 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34980 if test "${ac_cv_type_short_int+set}" = set; then
34981   echo $ECHO_N "(cached) $ECHO_C" >&6
34982 else
34983   cat >conftest.$ac_ext <<_ACEOF
34984 /* confdefs.h.  */
34985 _ACEOF
34986 cat confdefs.h >>conftest.$ac_ext
34987 cat >>conftest.$ac_ext <<_ACEOF
34988 /* end confdefs.h.  */
34989 $ac_includes_default
34990 typedef short int ac__type_new_;
34991 int
34992 main ()
34993 {
34994 if ((ac__type_new_ *) 0)
34995   return 0;
34996 if (sizeof (ac__type_new_))
34997   return 0;
34998   ;
34999   return 0;
35000 }
35001 _ACEOF
35002 rm -f conftest.$ac_objext
35003 if { (ac_try="$ac_compile"
35004 case "(($ac_try" in
35005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35006   *) ac_try_echo=$ac_try;;
35007 esac
35008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35009   (eval "$ac_compile") 2>conftest.er1
35010   ac_status=$?
35011   grep -v '^ *+' conftest.er1 >conftest.err
35012   rm -f conftest.er1
35013   cat conftest.err >&5
35014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35015   (exit $ac_status); } && {
35016          test -z "$ac_c_werror_flag" ||
35017          test ! -s conftest.err
35018        } && test -s conftest.$ac_objext; then
35019   ac_cv_type_short_int=yes
35020 else
35021   echo "$as_me: failed program was:" >&5
35022 sed 's/^/| /' conftest.$ac_ext >&5
35023
35024         ac_cv_type_short_int=no
35025 fi
35026
35027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35028 fi
35029 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35030 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35031
35032 # The cast to long int works around a bug in the HP C Compiler
35033 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35034 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35035 # This bug is HP SR number 8606223364.
35036 { echo "$as_me:$LINENO: checking size of short int" >&5
35037 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35038 if test "${ac_cv_sizeof_short_int+set}" = set; then
35039   echo $ECHO_N "(cached) $ECHO_C" >&6
35040 else
35041   if test "$cross_compiling" = yes; then
35042   # Depending upon the size, compute the lo and hi bounds.
35043 cat >conftest.$ac_ext <<_ACEOF
35044 /* confdefs.h.  */
35045 _ACEOF
35046 cat confdefs.h >>conftest.$ac_ext
35047 cat >>conftest.$ac_ext <<_ACEOF
35048 /* end confdefs.h.  */
35049 $ac_includes_default
35050    typedef short int ac__type_sizeof_;
35051 int
35052 main ()
35053 {
35054 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35055 test_array [0] = 0
35056
35057   ;
35058   return 0;
35059 }
35060 _ACEOF
35061 rm -f conftest.$ac_objext
35062 if { (ac_try="$ac_compile"
35063 case "(($ac_try" in
35064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35065   *) ac_try_echo=$ac_try;;
35066 esac
35067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35068   (eval "$ac_compile") 2>conftest.er1
35069   ac_status=$?
35070   grep -v '^ *+' conftest.er1 >conftest.err
35071   rm -f conftest.er1
35072   cat conftest.err >&5
35073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35074   (exit $ac_status); } && {
35075          test -z "$ac_c_werror_flag" ||
35076          test ! -s conftest.err
35077        } && test -s conftest.$ac_objext; then
35078   ac_lo=0 ac_mid=0
35079   while :; do
35080     cat >conftest.$ac_ext <<_ACEOF
35081 /* confdefs.h.  */
35082 _ACEOF
35083 cat confdefs.h >>conftest.$ac_ext
35084 cat >>conftest.$ac_ext <<_ACEOF
35085 /* end confdefs.h.  */
35086 $ac_includes_default
35087    typedef short int ac__type_sizeof_;
35088 int
35089 main ()
35090 {
35091 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35092 test_array [0] = 0
35093
35094   ;
35095   return 0;
35096 }
35097 _ACEOF
35098 rm -f conftest.$ac_objext
35099 if { (ac_try="$ac_compile"
35100 case "(($ac_try" in
35101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35102   *) ac_try_echo=$ac_try;;
35103 esac
35104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35105   (eval "$ac_compile") 2>conftest.er1
35106   ac_status=$?
35107   grep -v '^ *+' conftest.er1 >conftest.err
35108   rm -f conftest.er1
35109   cat conftest.err >&5
35110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35111   (exit $ac_status); } && {
35112          test -z "$ac_c_werror_flag" ||
35113          test ! -s conftest.err
35114        } && test -s conftest.$ac_objext; then
35115   ac_hi=$ac_mid; break
35116 else
35117   echo "$as_me: failed program was:" >&5
35118 sed 's/^/| /' conftest.$ac_ext >&5
35119
35120         ac_lo=`expr $ac_mid + 1`
35121                         if test $ac_lo -le $ac_mid; then
35122                           ac_lo= ac_hi=
35123                           break
35124                         fi
35125                         ac_mid=`expr 2 '*' $ac_mid + 1`
35126 fi
35127
35128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35129   done
35130 else
35131   echo "$as_me: failed program was:" >&5
35132 sed 's/^/| /' conftest.$ac_ext >&5
35133
35134         cat >conftest.$ac_ext <<_ACEOF
35135 /* confdefs.h.  */
35136 _ACEOF
35137 cat confdefs.h >>conftest.$ac_ext
35138 cat >>conftest.$ac_ext <<_ACEOF
35139 /* end confdefs.h.  */
35140 $ac_includes_default
35141    typedef short int ac__type_sizeof_;
35142 int
35143 main ()
35144 {
35145 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35146 test_array [0] = 0
35147
35148   ;
35149   return 0;
35150 }
35151 _ACEOF
35152 rm -f conftest.$ac_objext
35153 if { (ac_try="$ac_compile"
35154 case "(($ac_try" in
35155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35156   *) ac_try_echo=$ac_try;;
35157 esac
35158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35159   (eval "$ac_compile") 2>conftest.er1
35160   ac_status=$?
35161   grep -v '^ *+' conftest.er1 >conftest.err
35162   rm -f conftest.er1
35163   cat conftest.err >&5
35164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35165   (exit $ac_status); } && {
35166          test -z "$ac_c_werror_flag" ||
35167          test ! -s conftest.err
35168        } && test -s conftest.$ac_objext; then
35169   ac_hi=-1 ac_mid=-1
35170   while :; do
35171     cat >conftest.$ac_ext <<_ACEOF
35172 /* confdefs.h.  */
35173 _ACEOF
35174 cat confdefs.h >>conftest.$ac_ext
35175 cat >>conftest.$ac_ext <<_ACEOF
35176 /* end confdefs.h.  */
35177 $ac_includes_default
35178    typedef short int ac__type_sizeof_;
35179 int
35180 main ()
35181 {
35182 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35183 test_array [0] = 0
35184
35185   ;
35186   return 0;
35187 }
35188 _ACEOF
35189 rm -f conftest.$ac_objext
35190 if { (ac_try="$ac_compile"
35191 case "(($ac_try" in
35192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35193   *) ac_try_echo=$ac_try;;
35194 esac
35195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35196   (eval "$ac_compile") 2>conftest.er1
35197   ac_status=$?
35198   grep -v '^ *+' conftest.er1 >conftest.err
35199   rm -f conftest.er1
35200   cat conftest.err >&5
35201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35202   (exit $ac_status); } && {
35203          test -z "$ac_c_werror_flag" ||
35204          test ! -s conftest.err
35205        } && test -s conftest.$ac_objext; then
35206   ac_lo=$ac_mid; break
35207 else
35208   echo "$as_me: failed program was:" >&5
35209 sed 's/^/| /' conftest.$ac_ext >&5
35210
35211         ac_hi=`expr '(' $ac_mid ')' - 1`
35212                         if test $ac_mid -le $ac_hi; then
35213                           ac_lo= ac_hi=
35214                           break
35215                         fi
35216                         ac_mid=`expr 2 '*' $ac_mid`
35217 fi
35218
35219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35220   done
35221 else
35222   echo "$as_me: failed program was:" >&5
35223 sed 's/^/| /' conftest.$ac_ext >&5
35224
35225         ac_lo= ac_hi=
35226 fi
35227
35228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35229 fi
35230
35231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35232 # Binary search between lo and hi bounds.
35233 while test "x$ac_lo" != "x$ac_hi"; do
35234   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35235   cat >conftest.$ac_ext <<_ACEOF
35236 /* confdefs.h.  */
35237 _ACEOF
35238 cat confdefs.h >>conftest.$ac_ext
35239 cat >>conftest.$ac_ext <<_ACEOF
35240 /* end confdefs.h.  */
35241 $ac_includes_default
35242    typedef short int ac__type_sizeof_;
35243 int
35244 main ()
35245 {
35246 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35247 test_array [0] = 0
35248
35249   ;
35250   return 0;
35251 }
35252 _ACEOF
35253 rm -f conftest.$ac_objext
35254 if { (ac_try="$ac_compile"
35255 case "(($ac_try" in
35256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35257   *) ac_try_echo=$ac_try;;
35258 esac
35259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35260   (eval "$ac_compile") 2>conftest.er1
35261   ac_status=$?
35262   grep -v '^ *+' conftest.er1 >conftest.err
35263   rm -f conftest.er1
35264   cat conftest.err >&5
35265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35266   (exit $ac_status); } && {
35267          test -z "$ac_c_werror_flag" ||
35268          test ! -s conftest.err
35269        } && test -s conftest.$ac_objext; then
35270   ac_hi=$ac_mid
35271 else
35272   echo "$as_me: failed program was:" >&5
35273 sed 's/^/| /' conftest.$ac_ext >&5
35274
35275         ac_lo=`expr '(' $ac_mid ')' + 1`
35276 fi
35277
35278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35279 done
35280 case $ac_lo in
35281 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35282 '') if test "$ac_cv_type_short_int" = yes; then
35283      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35284 See \`config.log' for more details." >&5
35285 echo "$as_me: error: cannot compute sizeof (short int)
35286 See \`config.log' for more details." >&2;}
35287    { (exit 77); exit 77; }; }
35288    else
35289      ac_cv_sizeof_short_int=0
35290    fi ;;
35291 esac
35292 else
35293   cat >conftest.$ac_ext <<_ACEOF
35294 /* confdefs.h.  */
35295 _ACEOF
35296 cat confdefs.h >>conftest.$ac_ext
35297 cat >>conftest.$ac_ext <<_ACEOF
35298 /* end confdefs.h.  */
35299 $ac_includes_default
35300    typedef short int ac__type_sizeof_;
35301 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35302 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35303 #include <stdio.h>
35304 #include <stdlib.h>
35305 int
35306 main ()
35307 {
35308
35309   FILE *f = fopen ("conftest.val", "w");
35310   if (! f)
35311     return 1;
35312   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35313     {
35314       long int i = longval ();
35315       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35316         return 1;
35317       fprintf (f, "%ld\n", i);
35318     }
35319   else
35320     {
35321       unsigned long int i = ulongval ();
35322       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35323         return 1;
35324       fprintf (f, "%lu\n", i);
35325     }
35326   return ferror (f) || fclose (f) != 0;
35327
35328   ;
35329   return 0;
35330 }
35331 _ACEOF
35332 rm -f conftest$ac_exeext
35333 if { (ac_try="$ac_link"
35334 case "(($ac_try" in
35335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35336   *) ac_try_echo=$ac_try;;
35337 esac
35338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35339   (eval "$ac_link") 2>&5
35340   ac_status=$?
35341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35342   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35343   { (case "(($ac_try" in
35344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35345   *) ac_try_echo=$ac_try;;
35346 esac
35347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35348   (eval "$ac_try") 2>&5
35349   ac_status=$?
35350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35351   (exit $ac_status); }; }; then
35352   ac_cv_sizeof_short_int=`cat conftest.val`
35353 else
35354   echo "$as_me: program exited with status $ac_status" >&5
35355 echo "$as_me: failed program was:" >&5
35356 sed 's/^/| /' conftest.$ac_ext >&5
35357
35358 ( exit $ac_status )
35359 if test "$ac_cv_type_short_int" = yes; then
35360      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35361 See \`config.log' for more details." >&5
35362 echo "$as_me: error: cannot compute sizeof (short int)
35363 See \`config.log' for more details." >&2;}
35364    { (exit 77); exit 77; }; }
35365    else
35366      ac_cv_sizeof_short_int=0
35367    fi
35368 fi
35369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35370 fi
35371 rm -f conftest.val
35372 fi
35373 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35374 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35375
35376
35377
35378 cat >>confdefs.h <<_ACEOF
35379 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35380 _ACEOF
35381
35382
35383 { echo "$as_me:$LINENO: checking for int" >&5
35384 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35385 if test "${ac_cv_type_int+set}" = set; then
35386   echo $ECHO_N "(cached) $ECHO_C" >&6
35387 else
35388   cat >conftest.$ac_ext <<_ACEOF
35389 /* confdefs.h.  */
35390 _ACEOF
35391 cat confdefs.h >>conftest.$ac_ext
35392 cat >>conftest.$ac_ext <<_ACEOF
35393 /* end confdefs.h.  */
35394 $ac_includes_default
35395 typedef int ac__type_new_;
35396 int
35397 main ()
35398 {
35399 if ((ac__type_new_ *) 0)
35400   return 0;
35401 if (sizeof (ac__type_new_))
35402   return 0;
35403   ;
35404   return 0;
35405 }
35406 _ACEOF
35407 rm -f conftest.$ac_objext
35408 if { (ac_try="$ac_compile"
35409 case "(($ac_try" in
35410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35411   *) ac_try_echo=$ac_try;;
35412 esac
35413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35414   (eval "$ac_compile") 2>conftest.er1
35415   ac_status=$?
35416   grep -v '^ *+' conftest.er1 >conftest.err
35417   rm -f conftest.er1
35418   cat conftest.err >&5
35419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35420   (exit $ac_status); } && {
35421          test -z "$ac_c_werror_flag" ||
35422          test ! -s conftest.err
35423        } && test -s conftest.$ac_objext; then
35424   ac_cv_type_int=yes
35425 else
35426   echo "$as_me: failed program was:" >&5
35427 sed 's/^/| /' conftest.$ac_ext >&5
35428
35429         ac_cv_type_int=no
35430 fi
35431
35432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35433 fi
35434 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35435 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35436
35437 # The cast to long int works around a bug in the HP C Compiler
35438 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35439 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35440 # This bug is HP SR number 8606223364.
35441 { echo "$as_me:$LINENO: checking size of int" >&5
35442 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35443 if test "${ac_cv_sizeof_int+set}" = set; then
35444   echo $ECHO_N "(cached) $ECHO_C" >&6
35445 else
35446   if test "$cross_compiling" = yes; then
35447   # Depending upon the size, compute the lo and hi bounds.
35448 cat >conftest.$ac_ext <<_ACEOF
35449 /* confdefs.h.  */
35450 _ACEOF
35451 cat confdefs.h >>conftest.$ac_ext
35452 cat >>conftest.$ac_ext <<_ACEOF
35453 /* end confdefs.h.  */
35454 $ac_includes_default
35455    typedef int ac__type_sizeof_;
35456 int
35457 main ()
35458 {
35459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35460 test_array [0] = 0
35461
35462   ;
35463   return 0;
35464 }
35465 _ACEOF
35466 rm -f conftest.$ac_objext
35467 if { (ac_try="$ac_compile"
35468 case "(($ac_try" in
35469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35470   *) ac_try_echo=$ac_try;;
35471 esac
35472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35473   (eval "$ac_compile") 2>conftest.er1
35474   ac_status=$?
35475   grep -v '^ *+' conftest.er1 >conftest.err
35476   rm -f conftest.er1
35477   cat conftest.err >&5
35478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35479   (exit $ac_status); } && {
35480          test -z "$ac_c_werror_flag" ||
35481          test ! -s conftest.err
35482        } && test -s conftest.$ac_objext; then
35483   ac_lo=0 ac_mid=0
35484   while :; do
35485     cat >conftest.$ac_ext <<_ACEOF
35486 /* confdefs.h.  */
35487 _ACEOF
35488 cat confdefs.h >>conftest.$ac_ext
35489 cat >>conftest.$ac_ext <<_ACEOF
35490 /* end confdefs.h.  */
35491 $ac_includes_default
35492    typedef int ac__type_sizeof_;
35493 int
35494 main ()
35495 {
35496 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35497 test_array [0] = 0
35498
35499   ;
35500   return 0;
35501 }
35502 _ACEOF
35503 rm -f conftest.$ac_objext
35504 if { (ac_try="$ac_compile"
35505 case "(($ac_try" in
35506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35507   *) ac_try_echo=$ac_try;;
35508 esac
35509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35510   (eval "$ac_compile") 2>conftest.er1
35511   ac_status=$?
35512   grep -v '^ *+' conftest.er1 >conftest.err
35513   rm -f conftest.er1
35514   cat conftest.err >&5
35515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35516   (exit $ac_status); } && {
35517          test -z "$ac_c_werror_flag" ||
35518          test ! -s conftest.err
35519        } && test -s conftest.$ac_objext; then
35520   ac_hi=$ac_mid; break
35521 else
35522   echo "$as_me: failed program was:" >&5
35523 sed 's/^/| /' conftest.$ac_ext >&5
35524
35525         ac_lo=`expr $ac_mid + 1`
35526                         if test $ac_lo -le $ac_mid; then
35527                           ac_lo= ac_hi=
35528                           break
35529                         fi
35530                         ac_mid=`expr 2 '*' $ac_mid + 1`
35531 fi
35532
35533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35534   done
35535 else
35536   echo "$as_me: failed program was:" >&5
35537 sed 's/^/| /' conftest.$ac_ext >&5
35538
35539         cat >conftest.$ac_ext <<_ACEOF
35540 /* confdefs.h.  */
35541 _ACEOF
35542 cat confdefs.h >>conftest.$ac_ext
35543 cat >>conftest.$ac_ext <<_ACEOF
35544 /* end confdefs.h.  */
35545 $ac_includes_default
35546    typedef int ac__type_sizeof_;
35547 int
35548 main ()
35549 {
35550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35551 test_array [0] = 0
35552
35553   ;
35554   return 0;
35555 }
35556 _ACEOF
35557 rm -f conftest.$ac_objext
35558 if { (ac_try="$ac_compile"
35559 case "(($ac_try" in
35560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35561   *) ac_try_echo=$ac_try;;
35562 esac
35563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35564   (eval "$ac_compile") 2>conftest.er1
35565   ac_status=$?
35566   grep -v '^ *+' conftest.er1 >conftest.err
35567   rm -f conftest.er1
35568   cat conftest.err >&5
35569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35570   (exit $ac_status); } && {
35571          test -z "$ac_c_werror_flag" ||
35572          test ! -s conftest.err
35573        } && test -s conftest.$ac_objext; then
35574   ac_hi=-1 ac_mid=-1
35575   while :; do
35576     cat >conftest.$ac_ext <<_ACEOF
35577 /* confdefs.h.  */
35578 _ACEOF
35579 cat confdefs.h >>conftest.$ac_ext
35580 cat >>conftest.$ac_ext <<_ACEOF
35581 /* end confdefs.h.  */
35582 $ac_includes_default
35583    typedef int ac__type_sizeof_;
35584 int
35585 main ()
35586 {
35587 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35588 test_array [0] = 0
35589
35590   ;
35591   return 0;
35592 }
35593 _ACEOF
35594 rm -f conftest.$ac_objext
35595 if { (ac_try="$ac_compile"
35596 case "(($ac_try" in
35597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35598   *) ac_try_echo=$ac_try;;
35599 esac
35600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35601   (eval "$ac_compile") 2>conftest.er1
35602   ac_status=$?
35603   grep -v '^ *+' conftest.er1 >conftest.err
35604   rm -f conftest.er1
35605   cat conftest.err >&5
35606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35607   (exit $ac_status); } && {
35608          test -z "$ac_c_werror_flag" ||
35609          test ! -s conftest.err
35610        } && test -s conftest.$ac_objext; then
35611   ac_lo=$ac_mid; break
35612 else
35613   echo "$as_me: failed program was:" >&5
35614 sed 's/^/| /' conftest.$ac_ext >&5
35615
35616         ac_hi=`expr '(' $ac_mid ')' - 1`
35617                         if test $ac_mid -le $ac_hi; then
35618                           ac_lo= ac_hi=
35619                           break
35620                         fi
35621                         ac_mid=`expr 2 '*' $ac_mid`
35622 fi
35623
35624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35625   done
35626 else
35627   echo "$as_me: failed program was:" >&5
35628 sed 's/^/| /' conftest.$ac_ext >&5
35629
35630         ac_lo= ac_hi=
35631 fi
35632
35633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35634 fi
35635
35636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35637 # Binary search between lo and hi bounds.
35638 while test "x$ac_lo" != "x$ac_hi"; do
35639   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35640   cat >conftest.$ac_ext <<_ACEOF
35641 /* confdefs.h.  */
35642 _ACEOF
35643 cat confdefs.h >>conftest.$ac_ext
35644 cat >>conftest.$ac_ext <<_ACEOF
35645 /* end confdefs.h.  */
35646 $ac_includes_default
35647    typedef int ac__type_sizeof_;
35648 int
35649 main ()
35650 {
35651 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35652 test_array [0] = 0
35653
35654   ;
35655   return 0;
35656 }
35657 _ACEOF
35658 rm -f conftest.$ac_objext
35659 if { (ac_try="$ac_compile"
35660 case "(($ac_try" in
35661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35662   *) ac_try_echo=$ac_try;;
35663 esac
35664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35665   (eval "$ac_compile") 2>conftest.er1
35666   ac_status=$?
35667   grep -v '^ *+' conftest.er1 >conftest.err
35668   rm -f conftest.er1
35669   cat conftest.err >&5
35670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35671   (exit $ac_status); } && {
35672          test -z "$ac_c_werror_flag" ||
35673          test ! -s conftest.err
35674        } && test -s conftest.$ac_objext; then
35675   ac_hi=$ac_mid
35676 else
35677   echo "$as_me: failed program was:" >&5
35678 sed 's/^/| /' conftest.$ac_ext >&5
35679
35680         ac_lo=`expr '(' $ac_mid ')' + 1`
35681 fi
35682
35683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35684 done
35685 case $ac_lo in
35686 ?*) ac_cv_sizeof_int=$ac_lo;;
35687 '') if test "$ac_cv_type_int" = yes; then
35688      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35689 See \`config.log' for more details." >&5
35690 echo "$as_me: error: cannot compute sizeof (int)
35691 See \`config.log' for more details." >&2;}
35692    { (exit 77); exit 77; }; }
35693    else
35694      ac_cv_sizeof_int=0
35695    fi ;;
35696 esac
35697 else
35698   cat >conftest.$ac_ext <<_ACEOF
35699 /* confdefs.h.  */
35700 _ACEOF
35701 cat confdefs.h >>conftest.$ac_ext
35702 cat >>conftest.$ac_ext <<_ACEOF
35703 /* end confdefs.h.  */
35704 $ac_includes_default
35705    typedef int ac__type_sizeof_;
35706 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35707 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35708 #include <stdio.h>
35709 #include <stdlib.h>
35710 int
35711 main ()
35712 {
35713
35714   FILE *f = fopen ("conftest.val", "w");
35715   if (! f)
35716     return 1;
35717   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35718     {
35719       long int i = longval ();
35720       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35721         return 1;
35722       fprintf (f, "%ld\n", i);
35723     }
35724   else
35725     {
35726       unsigned long int i = ulongval ();
35727       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35728         return 1;
35729       fprintf (f, "%lu\n", i);
35730     }
35731   return ferror (f) || fclose (f) != 0;
35732
35733   ;
35734   return 0;
35735 }
35736 _ACEOF
35737 rm -f conftest$ac_exeext
35738 if { (ac_try="$ac_link"
35739 case "(($ac_try" in
35740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35741   *) ac_try_echo=$ac_try;;
35742 esac
35743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35744   (eval "$ac_link") 2>&5
35745   ac_status=$?
35746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35747   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35748   { (case "(($ac_try" in
35749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35750   *) ac_try_echo=$ac_try;;
35751 esac
35752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35753   (eval "$ac_try") 2>&5
35754   ac_status=$?
35755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35756   (exit $ac_status); }; }; then
35757   ac_cv_sizeof_int=`cat conftest.val`
35758 else
35759   echo "$as_me: program exited with status $ac_status" >&5
35760 echo "$as_me: failed program was:" >&5
35761 sed 's/^/| /' conftest.$ac_ext >&5
35762
35763 ( exit $ac_status )
35764 if test "$ac_cv_type_int" = yes; then
35765      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35766 See \`config.log' for more details." >&5
35767 echo "$as_me: error: cannot compute sizeof (int)
35768 See \`config.log' for more details." >&2;}
35769    { (exit 77); exit 77; }; }
35770    else
35771      ac_cv_sizeof_int=0
35772    fi
35773 fi
35774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35775 fi
35776 rm -f conftest.val
35777 fi
35778 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35779 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35780
35781
35782
35783 cat >>confdefs.h <<_ACEOF
35784 #define SIZEOF_INT $ac_cv_sizeof_int
35785 _ACEOF
35786
35787
35788 { echo "$as_me:$LINENO: checking for long int" >&5
35789 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35790 if test "${ac_cv_type_long_int+set}" = set; then
35791   echo $ECHO_N "(cached) $ECHO_C" >&6
35792 else
35793   cat >conftest.$ac_ext <<_ACEOF
35794 /* confdefs.h.  */
35795 _ACEOF
35796 cat confdefs.h >>conftest.$ac_ext
35797 cat >>conftest.$ac_ext <<_ACEOF
35798 /* end confdefs.h.  */
35799 $ac_includes_default
35800 typedef long int ac__type_new_;
35801 int
35802 main ()
35803 {
35804 if ((ac__type_new_ *) 0)
35805   return 0;
35806 if (sizeof (ac__type_new_))
35807   return 0;
35808   ;
35809   return 0;
35810 }
35811 _ACEOF
35812 rm -f conftest.$ac_objext
35813 if { (ac_try="$ac_compile"
35814 case "(($ac_try" in
35815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35816   *) ac_try_echo=$ac_try;;
35817 esac
35818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35819   (eval "$ac_compile") 2>conftest.er1
35820   ac_status=$?
35821   grep -v '^ *+' conftest.er1 >conftest.err
35822   rm -f conftest.er1
35823   cat conftest.err >&5
35824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35825   (exit $ac_status); } && {
35826          test -z "$ac_c_werror_flag" ||
35827          test ! -s conftest.err
35828        } && test -s conftest.$ac_objext; then
35829   ac_cv_type_long_int=yes
35830 else
35831   echo "$as_me: failed program was:" >&5
35832 sed 's/^/| /' conftest.$ac_ext >&5
35833
35834         ac_cv_type_long_int=no
35835 fi
35836
35837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35838 fi
35839 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35840 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35841
35842 # The cast to long int works around a bug in the HP C Compiler
35843 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35844 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35845 # This bug is HP SR number 8606223364.
35846 { echo "$as_me:$LINENO: checking size of long int" >&5
35847 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35848 if test "${ac_cv_sizeof_long_int+set}" = set; then
35849   echo $ECHO_N "(cached) $ECHO_C" >&6
35850 else
35851   if test "$cross_compiling" = yes; then
35852   # Depending upon the size, compute the lo and hi bounds.
35853 cat >conftest.$ac_ext <<_ACEOF
35854 /* confdefs.h.  */
35855 _ACEOF
35856 cat confdefs.h >>conftest.$ac_ext
35857 cat >>conftest.$ac_ext <<_ACEOF
35858 /* end confdefs.h.  */
35859 $ac_includes_default
35860    typedef long int ac__type_sizeof_;
35861 int
35862 main ()
35863 {
35864 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35865 test_array [0] = 0
35866
35867   ;
35868   return 0;
35869 }
35870 _ACEOF
35871 rm -f conftest.$ac_objext
35872 if { (ac_try="$ac_compile"
35873 case "(($ac_try" in
35874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35875   *) ac_try_echo=$ac_try;;
35876 esac
35877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35878   (eval "$ac_compile") 2>conftest.er1
35879   ac_status=$?
35880   grep -v '^ *+' conftest.er1 >conftest.err
35881   rm -f conftest.er1
35882   cat conftest.err >&5
35883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35884   (exit $ac_status); } && {
35885          test -z "$ac_c_werror_flag" ||
35886          test ! -s conftest.err
35887        } && test -s conftest.$ac_objext; then
35888   ac_lo=0 ac_mid=0
35889   while :; do
35890     cat >conftest.$ac_ext <<_ACEOF
35891 /* confdefs.h.  */
35892 _ACEOF
35893 cat confdefs.h >>conftest.$ac_ext
35894 cat >>conftest.$ac_ext <<_ACEOF
35895 /* end confdefs.h.  */
35896 $ac_includes_default
35897    typedef long int ac__type_sizeof_;
35898 int
35899 main ()
35900 {
35901 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35902 test_array [0] = 0
35903
35904   ;
35905   return 0;
35906 }
35907 _ACEOF
35908 rm -f conftest.$ac_objext
35909 if { (ac_try="$ac_compile"
35910 case "(($ac_try" in
35911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35912   *) ac_try_echo=$ac_try;;
35913 esac
35914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35915   (eval "$ac_compile") 2>conftest.er1
35916   ac_status=$?
35917   grep -v '^ *+' conftest.er1 >conftest.err
35918   rm -f conftest.er1
35919   cat conftest.err >&5
35920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35921   (exit $ac_status); } && {
35922          test -z "$ac_c_werror_flag" ||
35923          test ! -s conftest.err
35924        } && test -s conftest.$ac_objext; then
35925   ac_hi=$ac_mid; break
35926 else
35927   echo "$as_me: failed program was:" >&5
35928 sed 's/^/| /' conftest.$ac_ext >&5
35929
35930         ac_lo=`expr $ac_mid + 1`
35931                         if test $ac_lo -le $ac_mid; then
35932                           ac_lo= ac_hi=
35933                           break
35934                         fi
35935                         ac_mid=`expr 2 '*' $ac_mid + 1`
35936 fi
35937
35938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35939   done
35940 else
35941   echo "$as_me: failed program was:" >&5
35942 sed 's/^/| /' conftest.$ac_ext >&5
35943
35944         cat >conftest.$ac_ext <<_ACEOF
35945 /* confdefs.h.  */
35946 _ACEOF
35947 cat confdefs.h >>conftest.$ac_ext
35948 cat >>conftest.$ac_ext <<_ACEOF
35949 /* end confdefs.h.  */
35950 $ac_includes_default
35951    typedef long int ac__type_sizeof_;
35952 int
35953 main ()
35954 {
35955 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35956 test_array [0] = 0
35957
35958   ;
35959   return 0;
35960 }
35961 _ACEOF
35962 rm -f conftest.$ac_objext
35963 if { (ac_try="$ac_compile"
35964 case "(($ac_try" in
35965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35966   *) ac_try_echo=$ac_try;;
35967 esac
35968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35969   (eval "$ac_compile") 2>conftest.er1
35970   ac_status=$?
35971   grep -v '^ *+' conftest.er1 >conftest.err
35972   rm -f conftest.er1
35973   cat conftest.err >&5
35974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35975   (exit $ac_status); } && {
35976          test -z "$ac_c_werror_flag" ||
35977          test ! -s conftest.err
35978        } && test -s conftest.$ac_objext; then
35979   ac_hi=-1 ac_mid=-1
35980   while :; do
35981     cat >conftest.$ac_ext <<_ACEOF
35982 /* confdefs.h.  */
35983 _ACEOF
35984 cat confdefs.h >>conftest.$ac_ext
35985 cat >>conftest.$ac_ext <<_ACEOF
35986 /* end confdefs.h.  */
35987 $ac_includes_default
35988    typedef long int ac__type_sizeof_;
35989 int
35990 main ()
35991 {
35992 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35993 test_array [0] = 0
35994
35995   ;
35996   return 0;
35997 }
35998 _ACEOF
35999 rm -f conftest.$ac_objext
36000 if { (ac_try="$ac_compile"
36001 case "(($ac_try" in
36002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36003   *) ac_try_echo=$ac_try;;
36004 esac
36005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36006   (eval "$ac_compile") 2>conftest.er1
36007   ac_status=$?
36008   grep -v '^ *+' conftest.er1 >conftest.err
36009   rm -f conftest.er1
36010   cat conftest.err >&5
36011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36012   (exit $ac_status); } && {
36013          test -z "$ac_c_werror_flag" ||
36014          test ! -s conftest.err
36015        } && test -s conftest.$ac_objext; then
36016   ac_lo=$ac_mid; break
36017 else
36018   echo "$as_me: failed program was:" >&5
36019 sed 's/^/| /' conftest.$ac_ext >&5
36020
36021         ac_hi=`expr '(' $ac_mid ')' - 1`
36022                         if test $ac_mid -le $ac_hi; then
36023                           ac_lo= ac_hi=
36024                           break
36025                         fi
36026                         ac_mid=`expr 2 '*' $ac_mid`
36027 fi
36028
36029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36030   done
36031 else
36032   echo "$as_me: failed program was:" >&5
36033 sed 's/^/| /' conftest.$ac_ext >&5
36034
36035         ac_lo= ac_hi=
36036 fi
36037
36038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36039 fi
36040
36041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36042 # Binary search between lo and hi bounds.
36043 while test "x$ac_lo" != "x$ac_hi"; do
36044   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36045   cat >conftest.$ac_ext <<_ACEOF
36046 /* confdefs.h.  */
36047 _ACEOF
36048 cat confdefs.h >>conftest.$ac_ext
36049 cat >>conftest.$ac_ext <<_ACEOF
36050 /* end confdefs.h.  */
36051 $ac_includes_default
36052    typedef long int ac__type_sizeof_;
36053 int
36054 main ()
36055 {
36056 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36057 test_array [0] = 0
36058
36059   ;
36060   return 0;
36061 }
36062 _ACEOF
36063 rm -f conftest.$ac_objext
36064 if { (ac_try="$ac_compile"
36065 case "(($ac_try" in
36066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36067   *) ac_try_echo=$ac_try;;
36068 esac
36069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36070   (eval "$ac_compile") 2>conftest.er1
36071   ac_status=$?
36072   grep -v '^ *+' conftest.er1 >conftest.err
36073   rm -f conftest.er1
36074   cat conftest.err >&5
36075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36076   (exit $ac_status); } && {
36077          test -z "$ac_c_werror_flag" ||
36078          test ! -s conftest.err
36079        } && test -s conftest.$ac_objext; then
36080   ac_hi=$ac_mid
36081 else
36082   echo "$as_me: failed program was:" >&5
36083 sed 's/^/| /' conftest.$ac_ext >&5
36084
36085         ac_lo=`expr '(' $ac_mid ')' + 1`
36086 fi
36087
36088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36089 done
36090 case $ac_lo in
36091 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36092 '') if test "$ac_cv_type_long_int" = yes; then
36093      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36094 See \`config.log' for more details." >&5
36095 echo "$as_me: error: cannot compute sizeof (long int)
36096 See \`config.log' for more details." >&2;}
36097    { (exit 77); exit 77; }; }
36098    else
36099      ac_cv_sizeof_long_int=0
36100    fi ;;
36101 esac
36102 else
36103   cat >conftest.$ac_ext <<_ACEOF
36104 /* confdefs.h.  */
36105 _ACEOF
36106 cat confdefs.h >>conftest.$ac_ext
36107 cat >>conftest.$ac_ext <<_ACEOF
36108 /* end confdefs.h.  */
36109 $ac_includes_default
36110    typedef long int ac__type_sizeof_;
36111 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36112 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36113 #include <stdio.h>
36114 #include <stdlib.h>
36115 int
36116 main ()
36117 {
36118
36119   FILE *f = fopen ("conftest.val", "w");
36120   if (! f)
36121     return 1;
36122   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36123     {
36124       long int i = longval ();
36125       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36126         return 1;
36127       fprintf (f, "%ld\n", i);
36128     }
36129   else
36130     {
36131       unsigned long int i = ulongval ();
36132       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36133         return 1;
36134       fprintf (f, "%lu\n", i);
36135     }
36136   return ferror (f) || fclose (f) != 0;
36137
36138   ;
36139   return 0;
36140 }
36141 _ACEOF
36142 rm -f conftest$ac_exeext
36143 if { (ac_try="$ac_link"
36144 case "(($ac_try" in
36145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36146   *) ac_try_echo=$ac_try;;
36147 esac
36148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36149   (eval "$ac_link") 2>&5
36150   ac_status=$?
36151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36152   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36153   { (case "(($ac_try" in
36154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36155   *) ac_try_echo=$ac_try;;
36156 esac
36157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36158   (eval "$ac_try") 2>&5
36159   ac_status=$?
36160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36161   (exit $ac_status); }; }; then
36162   ac_cv_sizeof_long_int=`cat conftest.val`
36163 else
36164   echo "$as_me: program exited with status $ac_status" >&5
36165 echo "$as_me: failed program was:" >&5
36166 sed 's/^/| /' conftest.$ac_ext >&5
36167
36168 ( exit $ac_status )
36169 if test "$ac_cv_type_long_int" = yes; then
36170      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36171 See \`config.log' for more details." >&5
36172 echo "$as_me: error: cannot compute sizeof (long int)
36173 See \`config.log' for more details." >&2;}
36174    { (exit 77); exit 77; }; }
36175    else
36176      ac_cv_sizeof_long_int=0
36177    fi
36178 fi
36179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36180 fi
36181 rm -f conftest.val
36182 fi
36183 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36184 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36185
36186
36187
36188 cat >>confdefs.h <<_ACEOF
36189 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36190 _ACEOF
36191
36192
36193 { echo "$as_me:$LINENO: checking for long long int" >&5
36194 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36195 if test "${ac_cv_type_long_long_int+set}" = set; then
36196   echo $ECHO_N "(cached) $ECHO_C" >&6
36197 else
36198   cat >conftest.$ac_ext <<_ACEOF
36199 /* confdefs.h.  */
36200 _ACEOF
36201 cat confdefs.h >>conftest.$ac_ext
36202 cat >>conftest.$ac_ext <<_ACEOF
36203 /* end confdefs.h.  */
36204 $ac_includes_default
36205 typedef long long int ac__type_new_;
36206 int
36207 main ()
36208 {
36209 if ((ac__type_new_ *) 0)
36210   return 0;
36211 if (sizeof (ac__type_new_))
36212   return 0;
36213   ;
36214   return 0;
36215 }
36216 _ACEOF
36217 rm -f conftest.$ac_objext
36218 if { (ac_try="$ac_compile"
36219 case "(($ac_try" in
36220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36221   *) ac_try_echo=$ac_try;;
36222 esac
36223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36224   (eval "$ac_compile") 2>conftest.er1
36225   ac_status=$?
36226   grep -v '^ *+' conftest.er1 >conftest.err
36227   rm -f conftest.er1
36228   cat conftest.err >&5
36229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36230   (exit $ac_status); } && {
36231          test -z "$ac_c_werror_flag" ||
36232          test ! -s conftest.err
36233        } && test -s conftest.$ac_objext; then
36234   ac_cv_type_long_long_int=yes
36235 else
36236   echo "$as_me: failed program was:" >&5
36237 sed 's/^/| /' conftest.$ac_ext >&5
36238
36239         ac_cv_type_long_long_int=no
36240 fi
36241
36242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36243 fi
36244 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36245 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36246
36247 # The cast to long int works around a bug in the HP C Compiler
36248 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36249 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36250 # This bug is HP SR number 8606223364.
36251 { echo "$as_me:$LINENO: checking size of long long int" >&5
36252 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36253 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36254   echo $ECHO_N "(cached) $ECHO_C" >&6
36255 else
36256   if test "$cross_compiling" = yes; then
36257   # Depending upon the size, compute the lo and hi bounds.
36258 cat >conftest.$ac_ext <<_ACEOF
36259 /* confdefs.h.  */
36260 _ACEOF
36261 cat confdefs.h >>conftest.$ac_ext
36262 cat >>conftest.$ac_ext <<_ACEOF
36263 /* end confdefs.h.  */
36264 $ac_includes_default
36265    typedef long long int ac__type_sizeof_;
36266 int
36267 main ()
36268 {
36269 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36270 test_array [0] = 0
36271
36272   ;
36273   return 0;
36274 }
36275 _ACEOF
36276 rm -f conftest.$ac_objext
36277 if { (ac_try="$ac_compile"
36278 case "(($ac_try" in
36279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36280   *) ac_try_echo=$ac_try;;
36281 esac
36282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36283   (eval "$ac_compile") 2>conftest.er1
36284   ac_status=$?
36285   grep -v '^ *+' conftest.er1 >conftest.err
36286   rm -f conftest.er1
36287   cat conftest.err >&5
36288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36289   (exit $ac_status); } && {
36290          test -z "$ac_c_werror_flag" ||
36291          test ! -s conftest.err
36292        } && test -s conftest.$ac_objext; then
36293   ac_lo=0 ac_mid=0
36294   while :; do
36295     cat >conftest.$ac_ext <<_ACEOF
36296 /* confdefs.h.  */
36297 _ACEOF
36298 cat confdefs.h >>conftest.$ac_ext
36299 cat >>conftest.$ac_ext <<_ACEOF
36300 /* end confdefs.h.  */
36301 $ac_includes_default
36302    typedef long long int ac__type_sizeof_;
36303 int
36304 main ()
36305 {
36306 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36307 test_array [0] = 0
36308
36309   ;
36310   return 0;
36311 }
36312 _ACEOF
36313 rm -f conftest.$ac_objext
36314 if { (ac_try="$ac_compile"
36315 case "(($ac_try" in
36316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36317   *) ac_try_echo=$ac_try;;
36318 esac
36319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36320   (eval "$ac_compile") 2>conftest.er1
36321   ac_status=$?
36322   grep -v '^ *+' conftest.er1 >conftest.err
36323   rm -f conftest.er1
36324   cat conftest.err >&5
36325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36326   (exit $ac_status); } && {
36327          test -z "$ac_c_werror_flag" ||
36328          test ! -s conftest.err
36329        } && test -s conftest.$ac_objext; then
36330   ac_hi=$ac_mid; break
36331 else
36332   echo "$as_me: failed program was:" >&5
36333 sed 's/^/| /' conftest.$ac_ext >&5
36334
36335         ac_lo=`expr $ac_mid + 1`
36336                         if test $ac_lo -le $ac_mid; then
36337                           ac_lo= ac_hi=
36338                           break
36339                         fi
36340                         ac_mid=`expr 2 '*' $ac_mid + 1`
36341 fi
36342
36343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36344   done
36345 else
36346   echo "$as_me: failed program was:" >&5
36347 sed 's/^/| /' conftest.$ac_ext >&5
36348
36349         cat >conftest.$ac_ext <<_ACEOF
36350 /* confdefs.h.  */
36351 _ACEOF
36352 cat confdefs.h >>conftest.$ac_ext
36353 cat >>conftest.$ac_ext <<_ACEOF
36354 /* end confdefs.h.  */
36355 $ac_includes_default
36356    typedef long long int ac__type_sizeof_;
36357 int
36358 main ()
36359 {
36360 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36361 test_array [0] = 0
36362
36363   ;
36364   return 0;
36365 }
36366 _ACEOF
36367 rm -f conftest.$ac_objext
36368 if { (ac_try="$ac_compile"
36369 case "(($ac_try" in
36370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36371   *) ac_try_echo=$ac_try;;
36372 esac
36373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36374   (eval "$ac_compile") 2>conftest.er1
36375   ac_status=$?
36376   grep -v '^ *+' conftest.er1 >conftest.err
36377   rm -f conftest.er1
36378   cat conftest.err >&5
36379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36380   (exit $ac_status); } && {
36381          test -z "$ac_c_werror_flag" ||
36382          test ! -s conftest.err
36383        } && test -s conftest.$ac_objext; then
36384   ac_hi=-1 ac_mid=-1
36385   while :; do
36386     cat >conftest.$ac_ext <<_ACEOF
36387 /* confdefs.h.  */
36388 _ACEOF
36389 cat confdefs.h >>conftest.$ac_ext
36390 cat >>conftest.$ac_ext <<_ACEOF
36391 /* end confdefs.h.  */
36392 $ac_includes_default
36393    typedef long long int ac__type_sizeof_;
36394 int
36395 main ()
36396 {
36397 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36398 test_array [0] = 0
36399
36400   ;
36401   return 0;
36402 }
36403 _ACEOF
36404 rm -f conftest.$ac_objext
36405 if { (ac_try="$ac_compile"
36406 case "(($ac_try" in
36407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36408   *) ac_try_echo=$ac_try;;
36409 esac
36410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36411   (eval "$ac_compile") 2>conftest.er1
36412   ac_status=$?
36413   grep -v '^ *+' conftest.er1 >conftest.err
36414   rm -f conftest.er1
36415   cat conftest.err >&5
36416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36417   (exit $ac_status); } && {
36418          test -z "$ac_c_werror_flag" ||
36419          test ! -s conftest.err
36420        } && test -s conftest.$ac_objext; then
36421   ac_lo=$ac_mid; break
36422 else
36423   echo "$as_me: failed program was:" >&5
36424 sed 's/^/| /' conftest.$ac_ext >&5
36425
36426         ac_hi=`expr '(' $ac_mid ')' - 1`
36427                         if test $ac_mid -le $ac_hi; then
36428                           ac_lo= ac_hi=
36429                           break
36430                         fi
36431                         ac_mid=`expr 2 '*' $ac_mid`
36432 fi
36433
36434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36435   done
36436 else
36437   echo "$as_me: failed program was:" >&5
36438 sed 's/^/| /' conftest.$ac_ext >&5
36439
36440         ac_lo= ac_hi=
36441 fi
36442
36443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36444 fi
36445
36446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36447 # Binary search between lo and hi bounds.
36448 while test "x$ac_lo" != "x$ac_hi"; do
36449   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36450   cat >conftest.$ac_ext <<_ACEOF
36451 /* confdefs.h.  */
36452 _ACEOF
36453 cat confdefs.h >>conftest.$ac_ext
36454 cat >>conftest.$ac_ext <<_ACEOF
36455 /* end confdefs.h.  */
36456 $ac_includes_default
36457    typedef long long int ac__type_sizeof_;
36458 int
36459 main ()
36460 {
36461 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36462 test_array [0] = 0
36463
36464   ;
36465   return 0;
36466 }
36467 _ACEOF
36468 rm -f conftest.$ac_objext
36469 if { (ac_try="$ac_compile"
36470 case "(($ac_try" in
36471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36472   *) ac_try_echo=$ac_try;;
36473 esac
36474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36475   (eval "$ac_compile") 2>conftest.er1
36476   ac_status=$?
36477   grep -v '^ *+' conftest.er1 >conftest.err
36478   rm -f conftest.er1
36479   cat conftest.err >&5
36480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36481   (exit $ac_status); } && {
36482          test -z "$ac_c_werror_flag" ||
36483          test ! -s conftest.err
36484        } && test -s conftest.$ac_objext; then
36485   ac_hi=$ac_mid
36486 else
36487   echo "$as_me: failed program was:" >&5
36488 sed 's/^/| /' conftest.$ac_ext >&5
36489
36490         ac_lo=`expr '(' $ac_mid ')' + 1`
36491 fi
36492
36493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36494 done
36495 case $ac_lo in
36496 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36497 '') if test "$ac_cv_type_long_long_int" = yes; then
36498      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36499 See \`config.log' for more details." >&5
36500 echo "$as_me: error: cannot compute sizeof (long long int)
36501 See \`config.log' for more details." >&2;}
36502    { (exit 77); exit 77; }; }
36503    else
36504      ac_cv_sizeof_long_long_int=0
36505    fi ;;
36506 esac
36507 else
36508   cat >conftest.$ac_ext <<_ACEOF
36509 /* confdefs.h.  */
36510 _ACEOF
36511 cat confdefs.h >>conftest.$ac_ext
36512 cat >>conftest.$ac_ext <<_ACEOF
36513 /* end confdefs.h.  */
36514 $ac_includes_default
36515    typedef long long int ac__type_sizeof_;
36516 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36517 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36518 #include <stdio.h>
36519 #include <stdlib.h>
36520 int
36521 main ()
36522 {
36523
36524   FILE *f = fopen ("conftest.val", "w");
36525   if (! f)
36526     return 1;
36527   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36528     {
36529       long int i = longval ();
36530       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36531         return 1;
36532       fprintf (f, "%ld\n", i);
36533     }
36534   else
36535     {
36536       unsigned long int i = ulongval ();
36537       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36538         return 1;
36539       fprintf (f, "%lu\n", i);
36540     }
36541   return ferror (f) || fclose (f) != 0;
36542
36543   ;
36544   return 0;
36545 }
36546 _ACEOF
36547 rm -f conftest$ac_exeext
36548 if { (ac_try="$ac_link"
36549 case "(($ac_try" in
36550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36551   *) ac_try_echo=$ac_try;;
36552 esac
36553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36554   (eval "$ac_link") 2>&5
36555   ac_status=$?
36556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36557   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36558   { (case "(($ac_try" in
36559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36560   *) ac_try_echo=$ac_try;;
36561 esac
36562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36563   (eval "$ac_try") 2>&5
36564   ac_status=$?
36565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36566   (exit $ac_status); }; }; then
36567   ac_cv_sizeof_long_long_int=`cat conftest.val`
36568 else
36569   echo "$as_me: program exited with status $ac_status" >&5
36570 echo "$as_me: failed program was:" >&5
36571 sed 's/^/| /' conftest.$ac_ext >&5
36572
36573 ( exit $ac_status )
36574 if test "$ac_cv_type_long_long_int" = yes; then
36575      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36576 See \`config.log' for more details." >&5
36577 echo "$as_me: error: cannot compute sizeof (long long int)
36578 See \`config.log' for more details." >&2;}
36579    { (exit 77); exit 77; }; }
36580    else
36581      ac_cv_sizeof_long_long_int=0
36582    fi
36583 fi
36584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36585 fi
36586 rm -f conftest.val
36587 fi
36588 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36589 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36590
36591
36592
36593 cat >>confdefs.h <<_ACEOF
36594 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36595 _ACEOF
36596
36597
36598 { echo "$as_me:$LINENO: checking for int *" >&5
36599 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36600 if test "${ac_cv_type_int_p+set}" = set; then
36601   echo $ECHO_N "(cached) $ECHO_C" >&6
36602 else
36603   cat >conftest.$ac_ext <<_ACEOF
36604 /* confdefs.h.  */
36605 _ACEOF
36606 cat confdefs.h >>conftest.$ac_ext
36607 cat >>conftest.$ac_ext <<_ACEOF
36608 /* end confdefs.h.  */
36609 $ac_includes_default
36610 typedef int * ac__type_new_;
36611 int
36612 main ()
36613 {
36614 if ((ac__type_new_ *) 0)
36615   return 0;
36616 if (sizeof (ac__type_new_))
36617   return 0;
36618   ;
36619   return 0;
36620 }
36621 _ACEOF
36622 rm -f conftest.$ac_objext
36623 if { (ac_try="$ac_compile"
36624 case "(($ac_try" in
36625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36626   *) ac_try_echo=$ac_try;;
36627 esac
36628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36629   (eval "$ac_compile") 2>conftest.er1
36630   ac_status=$?
36631   grep -v '^ *+' conftest.er1 >conftest.err
36632   rm -f conftest.er1
36633   cat conftest.err >&5
36634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36635   (exit $ac_status); } && {
36636          test -z "$ac_c_werror_flag" ||
36637          test ! -s conftest.err
36638        } && test -s conftest.$ac_objext; then
36639   ac_cv_type_int_p=yes
36640 else
36641   echo "$as_me: failed program was:" >&5
36642 sed 's/^/| /' conftest.$ac_ext >&5
36643
36644         ac_cv_type_int_p=no
36645 fi
36646
36647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36648 fi
36649 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36650 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36651
36652 # The cast to long int works around a bug in the HP C Compiler
36653 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36654 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36655 # This bug is HP SR number 8606223364.
36656 { echo "$as_me:$LINENO: checking size of int *" >&5
36657 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36658 if test "${ac_cv_sizeof_int_p+set}" = set; then
36659   echo $ECHO_N "(cached) $ECHO_C" >&6
36660 else
36661   if test "$cross_compiling" = yes; then
36662   # Depending upon the size, compute the lo and hi bounds.
36663 cat >conftest.$ac_ext <<_ACEOF
36664 /* confdefs.h.  */
36665 _ACEOF
36666 cat confdefs.h >>conftest.$ac_ext
36667 cat >>conftest.$ac_ext <<_ACEOF
36668 /* end confdefs.h.  */
36669 $ac_includes_default
36670    typedef int * ac__type_sizeof_;
36671 int
36672 main ()
36673 {
36674 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36675 test_array [0] = 0
36676
36677   ;
36678   return 0;
36679 }
36680 _ACEOF
36681 rm -f conftest.$ac_objext
36682 if { (ac_try="$ac_compile"
36683 case "(($ac_try" in
36684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36685   *) ac_try_echo=$ac_try;;
36686 esac
36687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36688   (eval "$ac_compile") 2>conftest.er1
36689   ac_status=$?
36690   grep -v '^ *+' conftest.er1 >conftest.err
36691   rm -f conftest.er1
36692   cat conftest.err >&5
36693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36694   (exit $ac_status); } && {
36695          test -z "$ac_c_werror_flag" ||
36696          test ! -s conftest.err
36697        } && test -s conftest.$ac_objext; then
36698   ac_lo=0 ac_mid=0
36699   while :; do
36700     cat >conftest.$ac_ext <<_ACEOF
36701 /* confdefs.h.  */
36702 _ACEOF
36703 cat confdefs.h >>conftest.$ac_ext
36704 cat >>conftest.$ac_ext <<_ACEOF
36705 /* end confdefs.h.  */
36706 $ac_includes_default
36707    typedef int * ac__type_sizeof_;
36708 int
36709 main ()
36710 {
36711 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36712 test_array [0] = 0
36713
36714   ;
36715   return 0;
36716 }
36717 _ACEOF
36718 rm -f conftest.$ac_objext
36719 if { (ac_try="$ac_compile"
36720 case "(($ac_try" in
36721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36722   *) ac_try_echo=$ac_try;;
36723 esac
36724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36725   (eval "$ac_compile") 2>conftest.er1
36726   ac_status=$?
36727   grep -v '^ *+' conftest.er1 >conftest.err
36728   rm -f conftest.er1
36729   cat conftest.err >&5
36730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36731   (exit $ac_status); } && {
36732          test -z "$ac_c_werror_flag" ||
36733          test ! -s conftest.err
36734        } && test -s conftest.$ac_objext; then
36735   ac_hi=$ac_mid; break
36736 else
36737   echo "$as_me: failed program was:" >&5
36738 sed 's/^/| /' conftest.$ac_ext >&5
36739
36740         ac_lo=`expr $ac_mid + 1`
36741                         if test $ac_lo -le $ac_mid; then
36742                           ac_lo= ac_hi=
36743                           break
36744                         fi
36745                         ac_mid=`expr 2 '*' $ac_mid + 1`
36746 fi
36747
36748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36749   done
36750 else
36751   echo "$as_me: failed program was:" >&5
36752 sed 's/^/| /' conftest.$ac_ext >&5
36753
36754         cat >conftest.$ac_ext <<_ACEOF
36755 /* confdefs.h.  */
36756 _ACEOF
36757 cat confdefs.h >>conftest.$ac_ext
36758 cat >>conftest.$ac_ext <<_ACEOF
36759 /* end confdefs.h.  */
36760 $ac_includes_default
36761    typedef int * ac__type_sizeof_;
36762 int
36763 main ()
36764 {
36765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36766 test_array [0] = 0
36767
36768   ;
36769   return 0;
36770 }
36771 _ACEOF
36772 rm -f conftest.$ac_objext
36773 if { (ac_try="$ac_compile"
36774 case "(($ac_try" in
36775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36776   *) ac_try_echo=$ac_try;;
36777 esac
36778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36779   (eval "$ac_compile") 2>conftest.er1
36780   ac_status=$?
36781   grep -v '^ *+' conftest.er1 >conftest.err
36782   rm -f conftest.er1
36783   cat conftest.err >&5
36784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36785   (exit $ac_status); } && {
36786          test -z "$ac_c_werror_flag" ||
36787          test ! -s conftest.err
36788        } && test -s conftest.$ac_objext; then
36789   ac_hi=-1 ac_mid=-1
36790   while :; do
36791     cat >conftest.$ac_ext <<_ACEOF
36792 /* confdefs.h.  */
36793 _ACEOF
36794 cat confdefs.h >>conftest.$ac_ext
36795 cat >>conftest.$ac_ext <<_ACEOF
36796 /* end confdefs.h.  */
36797 $ac_includes_default
36798    typedef int * ac__type_sizeof_;
36799 int
36800 main ()
36801 {
36802 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36803 test_array [0] = 0
36804
36805   ;
36806   return 0;
36807 }
36808 _ACEOF
36809 rm -f conftest.$ac_objext
36810 if { (ac_try="$ac_compile"
36811 case "(($ac_try" in
36812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36813   *) ac_try_echo=$ac_try;;
36814 esac
36815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36816   (eval "$ac_compile") 2>conftest.er1
36817   ac_status=$?
36818   grep -v '^ *+' conftest.er1 >conftest.err
36819   rm -f conftest.er1
36820   cat conftest.err >&5
36821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36822   (exit $ac_status); } && {
36823          test -z "$ac_c_werror_flag" ||
36824          test ! -s conftest.err
36825        } && test -s conftest.$ac_objext; then
36826   ac_lo=$ac_mid; break
36827 else
36828   echo "$as_me: failed program was:" >&5
36829 sed 's/^/| /' conftest.$ac_ext >&5
36830
36831         ac_hi=`expr '(' $ac_mid ')' - 1`
36832                         if test $ac_mid -le $ac_hi; then
36833                           ac_lo= ac_hi=
36834                           break
36835                         fi
36836                         ac_mid=`expr 2 '*' $ac_mid`
36837 fi
36838
36839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36840   done
36841 else
36842   echo "$as_me: failed program was:" >&5
36843 sed 's/^/| /' conftest.$ac_ext >&5
36844
36845         ac_lo= ac_hi=
36846 fi
36847
36848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36849 fi
36850
36851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36852 # Binary search between lo and hi bounds.
36853 while test "x$ac_lo" != "x$ac_hi"; do
36854   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36855   cat >conftest.$ac_ext <<_ACEOF
36856 /* confdefs.h.  */
36857 _ACEOF
36858 cat confdefs.h >>conftest.$ac_ext
36859 cat >>conftest.$ac_ext <<_ACEOF
36860 /* end confdefs.h.  */
36861 $ac_includes_default
36862    typedef int * ac__type_sizeof_;
36863 int
36864 main ()
36865 {
36866 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36867 test_array [0] = 0
36868
36869   ;
36870   return 0;
36871 }
36872 _ACEOF
36873 rm -f conftest.$ac_objext
36874 if { (ac_try="$ac_compile"
36875 case "(($ac_try" in
36876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36877   *) ac_try_echo=$ac_try;;
36878 esac
36879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36880   (eval "$ac_compile") 2>conftest.er1
36881   ac_status=$?
36882   grep -v '^ *+' conftest.er1 >conftest.err
36883   rm -f conftest.er1
36884   cat conftest.err >&5
36885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36886   (exit $ac_status); } && {
36887          test -z "$ac_c_werror_flag" ||
36888          test ! -s conftest.err
36889        } && test -s conftest.$ac_objext; then
36890   ac_hi=$ac_mid
36891 else
36892   echo "$as_me: failed program was:" >&5
36893 sed 's/^/| /' conftest.$ac_ext >&5
36894
36895         ac_lo=`expr '(' $ac_mid ')' + 1`
36896 fi
36897
36898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36899 done
36900 case $ac_lo in
36901 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36902 '') if test "$ac_cv_type_int_p" = yes; then
36903      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36904 See \`config.log' for more details." >&5
36905 echo "$as_me: error: cannot compute sizeof (int *)
36906 See \`config.log' for more details." >&2;}
36907    { (exit 77); exit 77; }; }
36908    else
36909      ac_cv_sizeof_int_p=0
36910    fi ;;
36911 esac
36912 else
36913   cat >conftest.$ac_ext <<_ACEOF
36914 /* confdefs.h.  */
36915 _ACEOF
36916 cat confdefs.h >>conftest.$ac_ext
36917 cat >>conftest.$ac_ext <<_ACEOF
36918 /* end confdefs.h.  */
36919 $ac_includes_default
36920    typedef int * ac__type_sizeof_;
36921 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36922 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36923 #include <stdio.h>
36924 #include <stdlib.h>
36925 int
36926 main ()
36927 {
36928
36929   FILE *f = fopen ("conftest.val", "w");
36930   if (! f)
36931     return 1;
36932   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36933     {
36934       long int i = longval ();
36935       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36936         return 1;
36937       fprintf (f, "%ld\n", i);
36938     }
36939   else
36940     {
36941       unsigned long int i = ulongval ();
36942       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36943         return 1;
36944       fprintf (f, "%lu\n", i);
36945     }
36946   return ferror (f) || fclose (f) != 0;
36947
36948   ;
36949   return 0;
36950 }
36951 _ACEOF
36952 rm -f conftest$ac_exeext
36953 if { (ac_try="$ac_link"
36954 case "(($ac_try" in
36955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36956   *) ac_try_echo=$ac_try;;
36957 esac
36958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36959   (eval "$ac_link") 2>&5
36960   ac_status=$?
36961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36962   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36963   { (case "(($ac_try" in
36964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36965   *) ac_try_echo=$ac_try;;
36966 esac
36967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36968   (eval "$ac_try") 2>&5
36969   ac_status=$?
36970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36971   (exit $ac_status); }; }; then
36972   ac_cv_sizeof_int_p=`cat conftest.val`
36973 else
36974   echo "$as_me: program exited with status $ac_status" >&5
36975 echo "$as_me: failed program was:" >&5
36976 sed 's/^/| /' conftest.$ac_ext >&5
36977
36978 ( exit $ac_status )
36979 if test "$ac_cv_type_int_p" = yes; then
36980      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36981 See \`config.log' for more details." >&5
36982 echo "$as_me: error: cannot compute sizeof (int *)
36983 See \`config.log' for more details." >&2;}
36984    { (exit 77); exit 77; }; }
36985    else
36986      ac_cv_sizeof_int_p=0
36987    fi
36988 fi
36989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36990 fi
36991 rm -f conftest.val
36992 fi
36993 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36994 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36995
36996
36997
36998 cat >>confdefs.h <<_ACEOF
36999 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
37000 _ACEOF
37001
37002
37003
37004 { echo "$as_me:$LINENO: checking for u_int type" >&5
37005 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
37006 if test "${ac_cv_have_u_int+set}" = set; then
37007   echo $ECHO_N "(cached) $ECHO_C" >&6
37008 else
37009
37010        cat >conftest.$ac_ext <<_ACEOF
37011 /* confdefs.h.  */
37012 _ACEOF
37013 cat confdefs.h >>conftest.$ac_ext
37014 cat >>conftest.$ac_ext <<_ACEOF
37015 /* end confdefs.h.  */
37016
37017               #include <sys/types.h>
37018
37019 int
37020 main ()
37021 {
37022
37023               u_int a; a = 1;
37024
37025   ;
37026   return 0;
37027 }
37028 _ACEOF
37029 rm -f conftest.$ac_objext
37030 if { (ac_try="$ac_compile"
37031 case "(($ac_try" in
37032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37033   *) ac_try_echo=$ac_try;;
37034 esac
37035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37036   (eval "$ac_compile") 2>conftest.er1
37037   ac_status=$?
37038   grep -v '^ *+' conftest.er1 >conftest.err
37039   rm -f conftest.er1
37040   cat conftest.err >&5
37041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37042   (exit $ac_status); } && {
37043          test -z "$ac_c_werror_flag" ||
37044          test ! -s conftest.err
37045        } && test -s conftest.$ac_objext; then
37046
37047               ac_cv_have_u_int="yes"
37048
37049 else
37050   echo "$as_me: failed program was:" >&5
37051 sed 's/^/| /' conftest.$ac_ext >&5
37052
37053
37054               ac_cv_have_u_int="no"
37055
37056
37057 fi
37058
37059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37060
37061
37062 fi
37063 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37064 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37065 if test "x$ac_cv_have_u_int" = "xyes" ; then
37066    cat >>confdefs.h <<\_ACEOF
37067 #define HAVE_U_INT 1
37068 _ACEOF
37069
37070    have_u_int=1
37071 fi
37072
37073 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37074 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37075 if test "${ac_cv_have_intmax_t+set}" = set; then
37076   echo $ECHO_N "(cached) $ECHO_C" >&6
37077 else
37078
37079        cat >conftest.$ac_ext <<_ACEOF
37080 /* confdefs.h.  */
37081 _ACEOF
37082 cat confdefs.h >>conftest.$ac_ext
37083 cat >>conftest.$ac_ext <<_ACEOF
37084 /* end confdefs.h.  */
37085
37086               #include <sys/types.h>
37087
37088 int
37089 main ()
37090 {
37091
37092               intmax_t a; a = 1;
37093
37094   ;
37095   return 0;
37096 }
37097 _ACEOF
37098 rm -f conftest.$ac_objext
37099 if { (ac_try="$ac_compile"
37100 case "(($ac_try" in
37101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37102   *) ac_try_echo=$ac_try;;
37103 esac
37104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37105   (eval "$ac_compile") 2>conftest.er1
37106   ac_status=$?
37107   grep -v '^ *+' conftest.er1 >conftest.err
37108   rm -f conftest.er1
37109   cat conftest.err >&5
37110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37111   (exit $ac_status); } && {
37112          test -z "$ac_c_werror_flag" ||
37113          test ! -s conftest.err
37114        } && test -s conftest.$ac_objext; then
37115
37116               ac_cv_have_intmax_t="yes"
37117
37118 else
37119   echo "$as_me: failed program was:" >&5
37120 sed 's/^/| /' conftest.$ac_ext >&5
37121
37122
37123               cat >conftest.$ac_ext <<_ACEOF
37124 /* confdefs.h.  */
37125 _ACEOF
37126 cat confdefs.h >>conftest.$ac_ext
37127 cat >>conftest.$ac_ext <<_ACEOF
37128 /* end confdefs.h.  */
37129
37130                      #include <stdint.h>
37131
37132 int
37133 main ()
37134 {
37135
37136                      intmax_t a; a = 1;
37137
37138   ;
37139   return 0;
37140 }
37141 _ACEOF
37142 rm -f conftest.$ac_objext
37143 if { (ac_try="$ac_compile"
37144 case "(($ac_try" in
37145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37146   *) ac_try_echo=$ac_try;;
37147 esac
37148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37149   (eval "$ac_compile") 2>conftest.er1
37150   ac_status=$?
37151   grep -v '^ *+' conftest.er1 >conftest.err
37152   rm -f conftest.er1
37153   cat conftest.err >&5
37154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37155   (exit $ac_status); } && {
37156          test -z "$ac_c_werror_flag" ||
37157          test ! -s conftest.err
37158        } && test -s conftest.$ac_objext; then
37159
37160                      ac_cv_have_intmax_t="yes"
37161
37162 else
37163   echo "$as_me: failed program was:" >&5
37164 sed 's/^/| /' conftest.$ac_ext >&5
37165
37166
37167                      ac_cv_have_intmax_t="no"
37168
37169
37170 fi
37171
37172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37173
37174
37175 fi
37176
37177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37178
37179
37180 fi
37181 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37182 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37183 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37184    cat >>confdefs.h <<\_ACEOF
37185 #define HAVE_INTMAX_T 1
37186 _ACEOF
37187
37188    have_intmax_t=1
37189 fi
37190
37191 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37192 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37193 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37194   echo $ECHO_N "(cached) $ECHO_C" >&6
37195 else
37196
37197        cat >conftest.$ac_ext <<_ACEOF
37198 /* confdefs.h.  */
37199 _ACEOF
37200 cat confdefs.h >>conftest.$ac_ext
37201 cat >>conftest.$ac_ext <<_ACEOF
37202 /* end confdefs.h.  */
37203
37204               #include <sys/types.h>
37205
37206 int
37207 main ()
37208 {
37209
37210               u_intmax_t a; a = 1;
37211
37212   ;
37213   return 0;
37214 }
37215 _ACEOF
37216 rm -f conftest.$ac_objext
37217 if { (ac_try="$ac_compile"
37218 case "(($ac_try" in
37219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37220   *) ac_try_echo=$ac_try;;
37221 esac
37222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37223   (eval "$ac_compile") 2>conftest.er1
37224   ac_status=$?
37225   grep -v '^ *+' conftest.er1 >conftest.err
37226   rm -f conftest.er1
37227   cat conftest.err >&5
37228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37229   (exit $ac_status); } && {
37230          test -z "$ac_c_werror_flag" ||
37231          test ! -s conftest.err
37232        } && test -s conftest.$ac_objext; then
37233
37234               ac_cv_have_u_intmax_t="yes"
37235
37236 else
37237   echo "$as_me: failed program was:" >&5
37238 sed 's/^/| /' conftest.$ac_ext >&5
37239
37240
37241               cat >conftest.$ac_ext <<_ACEOF
37242 /* confdefs.h.  */
37243 _ACEOF
37244 cat confdefs.h >>conftest.$ac_ext
37245 cat >>conftest.$ac_ext <<_ACEOF
37246 /* end confdefs.h.  */
37247
37248                      #include <stdint.h>
37249
37250 int
37251 main ()
37252 {
37253
37254                     u_intmax_t a; a = 1;
37255
37256   ;
37257   return 0;
37258 }
37259 _ACEOF
37260 rm -f conftest.$ac_objext
37261 if { (ac_try="$ac_compile"
37262 case "(($ac_try" in
37263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37264   *) ac_try_echo=$ac_try;;
37265 esac
37266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37267   (eval "$ac_compile") 2>conftest.er1
37268   ac_status=$?
37269   grep -v '^ *+' conftest.er1 >conftest.err
37270   rm -f conftest.er1
37271   cat conftest.err >&5
37272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37273   (exit $ac_status); } && {
37274          test -z "$ac_c_werror_flag" ||
37275          test ! -s conftest.err
37276        } && test -s conftest.$ac_objext; then
37277
37278                     ac_cv_have_u_intmax_t="yes"
37279
37280 else
37281   echo "$as_me: failed program was:" >&5
37282 sed 's/^/| /' conftest.$ac_ext >&5
37283
37284
37285                     ac_cv_have_u_intmax_t="no"
37286
37287
37288 fi
37289
37290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37291
37292
37293 fi
37294
37295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37296
37297
37298 fi
37299 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37300 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37301 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37302    cat >>confdefs.h <<\_ACEOF
37303 #define HAVE_U_INTMAX_T 1
37304 _ACEOF
37305
37306    have_u_intmax_t=1
37307 fi
37308
37309 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37310 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37311 if test "${ac_cv_have_intxx_t+set}" = set; then
37312   echo $ECHO_N "(cached) $ECHO_C" >&6
37313 else
37314
37315        cat >conftest.$ac_ext <<_ACEOF
37316 /* confdefs.h.  */
37317 _ACEOF
37318 cat confdefs.h >>conftest.$ac_ext
37319 cat >>conftest.$ac_ext <<_ACEOF
37320 /* end confdefs.h.  */
37321
37322               #include <sys/types.h>
37323
37324 int
37325 main ()
37326 {
37327
37328               int8_t a; int16_t b; int32_t c; a = b = c = 1;
37329
37330   ;
37331   return 0;
37332 }
37333 _ACEOF
37334 rm -f conftest.$ac_objext
37335 if { (ac_try="$ac_compile"
37336 case "(($ac_try" in
37337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37338   *) ac_try_echo=$ac_try;;
37339 esac
37340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37341   (eval "$ac_compile") 2>conftest.er1
37342   ac_status=$?
37343   grep -v '^ *+' conftest.er1 >conftest.err
37344   rm -f conftest.er1
37345   cat conftest.err >&5
37346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37347   (exit $ac_status); } && {
37348          test -z "$ac_c_werror_flag" ||
37349          test ! -s conftest.err
37350        } && test -s conftest.$ac_objext; then
37351
37352               ac_cv_have_intxx_t="yes"
37353
37354 else
37355   echo "$as_me: failed program was:" >&5
37356 sed 's/^/| /' conftest.$ac_ext >&5
37357
37358
37359               ac_cv_have_intxx_t="no"
37360
37361
37362 fi
37363
37364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37365
37366
37367 fi
37368 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37369 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37370 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37371    cat >>confdefs.h <<\_ACEOF
37372 #define HAVE_INTXX_T 1
37373 _ACEOF
37374
37375    have_intxx_t=1
37376 fi
37377
37378 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37379 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37380 if test "${ac_cv_have_int64_t+set}" = set; then
37381   echo $ECHO_N "(cached) $ECHO_C" >&6
37382 else
37383
37384        cat >conftest.$ac_ext <<_ACEOF
37385 /* confdefs.h.  */
37386 _ACEOF
37387 cat confdefs.h >>conftest.$ac_ext
37388 cat >>conftest.$ac_ext <<_ACEOF
37389 /* end confdefs.h.  */
37390
37391               #include <sys/types.h>
37392
37393 int
37394 main ()
37395 {
37396
37397               int64_t a; a = 1;
37398
37399   ;
37400   return 0;
37401 }
37402 _ACEOF
37403 rm -f conftest.$ac_objext
37404 if { (ac_try="$ac_compile"
37405 case "(($ac_try" in
37406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37407   *) ac_try_echo=$ac_try;;
37408 esac
37409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37410   (eval "$ac_compile") 2>conftest.er1
37411   ac_status=$?
37412   grep -v '^ *+' conftest.er1 >conftest.err
37413   rm -f conftest.er1
37414   cat conftest.err >&5
37415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37416   (exit $ac_status); } && {
37417          test -z "$ac_c_werror_flag" ||
37418          test ! -s conftest.err
37419        } && test -s conftest.$ac_objext; then
37420
37421               ac_cv_have_int64_t="yes"
37422
37423 else
37424   echo "$as_me: failed program was:" >&5
37425 sed 's/^/| /' conftest.$ac_ext >&5
37426
37427
37428               ac_cv_have_int64_t="no"
37429
37430
37431 fi
37432
37433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37434
37435
37436 fi
37437 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37438 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37439 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37440    cat >>confdefs.h <<\_ACEOF
37441 #define HAVE_INT64_T 1
37442 _ACEOF
37443
37444    have_int64_t=1
37445 fi
37446
37447 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37448 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37449 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37450   echo $ECHO_N "(cached) $ECHO_C" >&6
37451 else
37452
37453        cat >conftest.$ac_ext <<_ACEOF
37454 /* confdefs.h.  */
37455 _ACEOF
37456 cat confdefs.h >>conftest.$ac_ext
37457 cat >>conftest.$ac_ext <<_ACEOF
37458 /* end confdefs.h.  */
37459
37460               #include <sys/types.h>
37461
37462 int
37463 main ()
37464 {
37465
37466               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37467
37468   ;
37469   return 0;
37470 }
37471 _ACEOF
37472 rm -f conftest.$ac_objext
37473 if { (ac_try="$ac_compile"
37474 case "(($ac_try" in
37475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37476   *) ac_try_echo=$ac_try;;
37477 esac
37478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37479   (eval "$ac_compile") 2>conftest.er1
37480   ac_status=$?
37481   grep -v '^ *+' conftest.er1 >conftest.err
37482   rm -f conftest.er1
37483   cat conftest.err >&5
37484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37485   (exit $ac_status); } && {
37486          test -z "$ac_c_werror_flag" ||
37487          test ! -s conftest.err
37488        } && test -s conftest.$ac_objext; then
37489
37490              ac_cv_have_u_intxx_t="yes"
37491
37492 else
37493   echo "$as_me: failed program was:" >&5
37494 sed 's/^/| /' conftest.$ac_ext >&5
37495
37496
37497              ac_cv_have_u_intxx_t="no"
37498
37499
37500 fi
37501
37502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37503
37504
37505 fi
37506 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37507 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37508 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37509    cat >>confdefs.h <<\_ACEOF
37510 #define HAVE_U_INTXX_T 1
37511 _ACEOF
37512
37513    have_u_intxx_t=1
37514 fi
37515
37516 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37517 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37518 if test "${ac_cv_have_u_int64_t+set}" = set; then
37519   echo $ECHO_N "(cached) $ECHO_C" >&6
37520 else
37521
37522        cat >conftest.$ac_ext <<_ACEOF
37523 /* confdefs.h.  */
37524 _ACEOF
37525 cat confdefs.h >>conftest.$ac_ext
37526 cat >>conftest.$ac_ext <<_ACEOF
37527 /* end confdefs.h.  */
37528
37529               #include <sys/types.h>
37530
37531 int
37532 main ()
37533 {
37534
37535               u_int64_t a; a = 1;
37536
37537   ;
37538   return 0;
37539 }
37540 _ACEOF
37541 rm -f conftest.$ac_objext
37542 if { (ac_try="$ac_compile"
37543 case "(($ac_try" in
37544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37545   *) ac_try_echo=$ac_try;;
37546 esac
37547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37548   (eval "$ac_compile") 2>conftest.er1
37549   ac_status=$?
37550   grep -v '^ *+' conftest.er1 >conftest.err
37551   rm -f conftest.er1
37552   cat conftest.err >&5
37553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37554   (exit $ac_status); } && {
37555          test -z "$ac_c_werror_flag" ||
37556          test ! -s conftest.err
37557        } && test -s conftest.$ac_objext; then
37558
37559              ac_cv_have_u_int64_t="yes"
37560
37561 else
37562   echo "$as_me: failed program was:" >&5
37563 sed 's/^/| /' conftest.$ac_ext >&5
37564
37565
37566              ac_cv_have_u_int64_t="no"
37567
37568
37569 fi
37570
37571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37572
37573
37574 fi
37575 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37576 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37577 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37578    cat >>confdefs.h <<\_ACEOF
37579 #define HAVE_U_INT64_T 1
37580 _ACEOF
37581
37582    have_u_int64_t=1
37583 fi
37584
37585 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37586     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37587 then
37588    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37589 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37590    cat >conftest.$ac_ext <<_ACEOF
37591 /* confdefs.h.  */
37592 _ACEOF
37593 cat confdefs.h >>conftest.$ac_ext
37594 cat >>conftest.$ac_ext <<_ACEOF
37595 /* end confdefs.h.  */
37596
37597           #include <sys/bitypes.h>
37598
37599 int
37600 main ()
37601 {
37602
37603           int8_t a; int16_t b; int32_t c;
37604           u_int8_t e; u_int16_t f; u_int32_t g;
37605           a = b = c = e = f = g = 1;
37606
37607   ;
37608   return 0;
37609 }
37610 _ACEOF
37611 rm -f conftest.$ac_objext
37612 if { (ac_try="$ac_compile"
37613 case "(($ac_try" in
37614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37615   *) ac_try_echo=$ac_try;;
37616 esac
37617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37618   (eval "$ac_compile") 2>conftest.er1
37619   ac_status=$?
37620   grep -v '^ *+' conftest.er1 >conftest.err
37621   rm -f conftest.er1
37622   cat conftest.err >&5
37623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37624   (exit $ac_status); } && {
37625          test -z "$ac_c_werror_flag" ||
37626          test ! -s conftest.err
37627        } && test -s conftest.$ac_objext; then
37628
37629           cat >>confdefs.h <<\_ACEOF
37630 #define HAVE_U_INTXX_T 1
37631 _ACEOF
37632
37633           cat >>confdefs.h <<\_ACEOF
37634 #define HAVE_INTXX_T 1
37635 _ACEOF
37636
37637           cat >>confdefs.h <<\_ACEOF
37638 #define HAVE_SYS_BITYPES_H 1
37639 _ACEOF
37640
37641           { echo "$as_me:$LINENO: result: yes" >&5
37642 echo "${ECHO_T}yes" >&6; }
37643
37644 else
37645   echo "$as_me: failed program was:" >&5
37646 sed 's/^/| /' conftest.$ac_ext >&5
37647
37648
37649           { echo "$as_me:$LINENO: result: no" >&5
37650 echo "${ECHO_T}no" >&6; }
37651
37652
37653 fi
37654
37655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37656 fi
37657
37658 if test -z "$have_u_intxx_t" ; then
37659    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37660 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37661 if test "${ac_cv_have_uintxx_t+set}" = set; then
37662   echo $ECHO_N "(cached) $ECHO_C" >&6
37663 else
37664
37665           cat >conftest.$ac_ext <<_ACEOF
37666 /* confdefs.h.  */
37667 _ACEOF
37668 cat confdefs.h >>conftest.$ac_ext
37669 cat >>conftest.$ac_ext <<_ACEOF
37670 /* end confdefs.h.  */
37671
37672                  #include <sys/types.h>
37673
37674 int
37675 main ()
37676 {
37677
37678                  uint8_t a; uint16_t b;
37679                  uint32_t c; a = b = c = 1;
37680
37681   ;
37682   return 0;
37683 }
37684 _ACEOF
37685 rm -f conftest.$ac_objext
37686 if { (ac_try="$ac_compile"
37687 case "(($ac_try" in
37688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37689   *) ac_try_echo=$ac_try;;
37690 esac
37691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37692   (eval "$ac_compile") 2>conftest.er1
37693   ac_status=$?
37694   grep -v '^ *+' conftest.er1 >conftest.err
37695   rm -f conftest.er1
37696   cat conftest.err >&5
37697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37698   (exit $ac_status); } && {
37699          test -z "$ac_c_werror_flag" ||
37700          test ! -s conftest.err
37701        } && test -s conftest.$ac_objext; then
37702
37703                 ac_cv_have_uintxx_t="yes"
37704
37705 else
37706   echo "$as_me: failed program was:" >&5
37707 sed 's/^/| /' conftest.$ac_ext >&5
37708
37709
37710                 ac_cv_have_uintxx_t="no"
37711
37712
37713 fi
37714
37715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37716
37717
37718 fi
37719 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37720 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37721    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37722       cat >>confdefs.h <<\_ACEOF
37723 #define HAVE_UINTXX_T 1
37724 _ACEOF
37725
37726    fi
37727 fi
37728
37729 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37730     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37731 then
37732    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37733 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37734    cat >conftest.$ac_ext <<_ACEOF
37735 /* confdefs.h.  */
37736 _ACEOF
37737 cat confdefs.h >>conftest.$ac_ext
37738 cat >>conftest.$ac_ext <<_ACEOF
37739 /* end confdefs.h.  */
37740
37741           #include <sys/bitypes.h>
37742
37743 int
37744 main ()
37745 {
37746
37747           int64_t a; u_int64_t b;
37748           a = b = 1;
37749
37750   ;
37751   return 0;
37752 }
37753 _ACEOF
37754 rm -f conftest.$ac_objext
37755 if { (ac_try="$ac_compile"
37756 case "(($ac_try" in
37757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37758   *) ac_try_echo=$ac_try;;
37759 esac
37760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37761   (eval "$ac_compile") 2>conftest.er1
37762   ac_status=$?
37763   grep -v '^ *+' conftest.er1 >conftest.err
37764   rm -f conftest.er1
37765   cat conftest.err >&5
37766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37767   (exit $ac_status); } && {
37768          test -z "$ac_c_werror_flag" ||
37769          test ! -s conftest.err
37770        } && test -s conftest.$ac_objext; then
37771
37772           cat >>confdefs.h <<\_ACEOF
37773 #define HAVE_U_INT64_T 1
37774 _ACEOF
37775
37776           cat >>confdefs.h <<\_ACEOF
37777 #define HAVE_INT64_T 1
37778 _ACEOF
37779
37780           { echo "$as_me:$LINENO: result: yes" >&5
37781 echo "${ECHO_T}yes" >&6; }
37782
37783 else
37784   echo "$as_me: failed program was:" >&5
37785 sed 's/^/| /' conftest.$ac_ext >&5
37786
37787
37788           { echo "$as_me:$LINENO: result: no" >&5
37789 echo "${ECHO_T}no" >&6; }
37790
37791
37792 fi
37793
37794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37795 fi
37796
37797 if (test -z "$have_uintxx_t" && \
37798     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37799 then
37800    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37801 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37802    cat >conftest.$ac_ext <<_ACEOF
37803 /* confdefs.h.  */
37804 _ACEOF
37805 cat confdefs.h >>conftest.$ac_ext
37806 cat >>conftest.$ac_ext <<_ACEOF
37807 /* end confdefs.h.  */
37808
37809           #include <sys/bitypes.h>
37810
37811 int
37812 main ()
37813 {
37814
37815           uint8_t a; uint16_t b;
37816           uint32_t c; a = b = c = 1;
37817
37818   ;
37819   return 0;
37820 }
37821 _ACEOF
37822 rm -f conftest.$ac_objext
37823 if { (ac_try="$ac_compile"
37824 case "(($ac_try" in
37825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37826   *) ac_try_echo=$ac_try;;
37827 esac
37828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37829   (eval "$ac_compile") 2>conftest.er1
37830   ac_status=$?
37831   grep -v '^ *+' conftest.er1 >conftest.err
37832   rm -f conftest.er1
37833   cat conftest.err >&5
37834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37835   (exit $ac_status); } && {
37836          test -z "$ac_c_werror_flag" ||
37837          test ! -s conftest.err
37838        } && test -s conftest.$ac_objext; then
37839
37840           cat >>confdefs.h <<\_ACEOF
37841 #define HAVE_UINTXX_T 1
37842 _ACEOF
37843
37844           { echo "$as_me:$LINENO: result: yes" >&5
37845 echo "${ECHO_T}yes" >&6; }
37846
37847 else
37848   echo "$as_me: failed program was:" >&5
37849 sed 's/^/| /' conftest.$ac_ext >&5
37850
37851
37852           { echo "$as_me:$LINENO: result: no" >&5
37853 echo "${ECHO_T}no" >&6; }
37854
37855
37856 fi
37857
37858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37859 fi
37860
37861
37862
37863
37864
37865
37866
37867
37868
37869
37870
37871
37872
37873
37874 for ac_func in \
37875    fork \
37876    getcwd \
37877    gethostname \
37878    getpid \
37879    gettimeofday \
37880    setpgid \
37881    setpgrp \
37882    setsid \
37883    signal \
37884    strerror \
37885    strncmp \
37886    strncpy \
37887    vfprintf \
37888
37889 do
37890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37891 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37894   echo $ECHO_N "(cached) $ECHO_C" >&6
37895 else
37896   cat >conftest.$ac_ext <<_ACEOF
37897 /* confdefs.h.  */
37898 _ACEOF
37899 cat confdefs.h >>conftest.$ac_ext
37900 cat >>conftest.$ac_ext <<_ACEOF
37901 /* end confdefs.h.  */
37902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37903    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37904 #define $ac_func innocuous_$ac_func
37905
37906 /* System header to define __stub macros and hopefully few prototypes,
37907     which can conflict with char $ac_func (); below.
37908     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37909     <limits.h> exists even on freestanding compilers.  */
37910
37911 #ifdef __STDC__
37912 # include <limits.h>
37913 #else
37914 # include <assert.h>
37915 #endif
37916
37917 #undef $ac_func
37918
37919 /* Override any GCC internal prototype to avoid an error.
37920    Use char because int might match the return type of a GCC
37921    builtin and then its argument prototype would still apply.  */
37922 #ifdef __cplusplus
37923 extern "C"
37924 #endif
37925 char $ac_func ();
37926 /* The GNU C library defines this for functions which it implements
37927     to always fail with ENOSYS.  Some functions are actually named
37928     something starting with __ and the normal name is an alias.  */
37929 #if defined __stub_$ac_func || defined __stub___$ac_func
37930 choke me
37931 #endif
37932
37933 int
37934 main ()
37935 {
37936 return $ac_func ();
37937   ;
37938   return 0;
37939 }
37940 _ACEOF
37941 rm -f conftest.$ac_objext conftest$ac_exeext
37942 if { (ac_try="$ac_link"
37943 case "(($ac_try" in
37944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37945   *) ac_try_echo=$ac_try;;
37946 esac
37947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37948   (eval "$ac_link") 2>conftest.er1
37949   ac_status=$?
37950   grep -v '^ *+' conftest.er1 >conftest.err
37951   rm -f conftest.er1
37952   cat conftest.err >&5
37953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37954   (exit $ac_status); } && {
37955          test -z "$ac_c_werror_flag" ||
37956          test ! -s conftest.err
37957        } && test -s conftest$ac_exeext &&
37958        $as_test_x conftest$ac_exeext; then
37959   eval "$as_ac_var=yes"
37960 else
37961   echo "$as_me: failed program was:" >&5
37962 sed 's/^/| /' conftest.$ac_ext >&5
37963
37964         eval "$as_ac_var=no"
37965 fi
37966
37967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37968       conftest$ac_exeext conftest.$ac_ext
37969 fi
37970 ac_res=`eval echo '${'$as_ac_var'}'`
37971                { echo "$as_me:$LINENO: result: $ac_res" >&5
37972 echo "${ECHO_T}$ac_res" >&6; }
37973 if test `eval echo '${'$as_ac_var'}'` = yes; then
37974   cat >>confdefs.h <<_ACEOF
37975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37976 _ACEOF
37977
37978 else
37979   echo 'configure: cannot find needed function.'; exit 1
37980
37981 fi
37982 done
37983
37984
37985
37986 for ac_func in fchdir
37987 do
37988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37989 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37991 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37992   echo $ECHO_N "(cached) $ECHO_C" >&6
37993 else
37994   cat >conftest.$ac_ext <<_ACEOF
37995 /* confdefs.h.  */
37996 _ACEOF
37997 cat confdefs.h >>conftest.$ac_ext
37998 cat >>conftest.$ac_ext <<_ACEOF
37999 /* end confdefs.h.  */
38000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38001    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38002 #define $ac_func innocuous_$ac_func
38003
38004 /* System header to define __stub macros and hopefully few prototypes,
38005     which can conflict with char $ac_func (); below.
38006     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38007     <limits.h> exists even on freestanding compilers.  */
38008
38009 #ifdef __STDC__
38010 # include <limits.h>
38011 #else
38012 # include <assert.h>
38013 #endif
38014
38015 #undef $ac_func
38016
38017 /* Override any GCC internal prototype to avoid an error.
38018    Use char because int might match the return type of a GCC
38019    builtin and then its argument prototype would still apply.  */
38020 #ifdef __cplusplus
38021 extern "C"
38022 #endif
38023 char $ac_func ();
38024 /* The GNU C library defines this for functions which it implements
38025     to always fail with ENOSYS.  Some functions are actually named
38026     something starting with __ and the normal name is an alias.  */
38027 #if defined __stub_$ac_func || defined __stub___$ac_func
38028 choke me
38029 #endif
38030
38031 int
38032 main ()
38033 {
38034 return $ac_func ();
38035   ;
38036   return 0;
38037 }
38038 _ACEOF
38039 rm -f conftest.$ac_objext conftest$ac_exeext
38040 if { (ac_try="$ac_link"
38041 case "(($ac_try" in
38042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38043   *) ac_try_echo=$ac_try;;
38044 esac
38045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38046   (eval "$ac_link") 2>conftest.er1
38047   ac_status=$?
38048   grep -v '^ *+' conftest.er1 >conftest.err
38049   rm -f conftest.er1
38050   cat conftest.err >&5
38051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38052   (exit $ac_status); } && {
38053          test -z "$ac_c_werror_flag" ||
38054          test ! -s conftest.err
38055        } && test -s conftest$ac_exeext &&
38056        $as_test_x conftest$ac_exeext; then
38057   eval "$as_ac_var=yes"
38058 else
38059   echo "$as_me: failed program was:" >&5
38060 sed 's/^/| /' conftest.$ac_ext >&5
38061
38062         eval "$as_ac_var=no"
38063 fi
38064
38065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38066       conftest$ac_exeext conftest.$ac_ext
38067 fi
38068 ac_res=`eval echo '${'$as_ac_var'}'`
38069                { echo "$as_me:$LINENO: result: $ac_res" >&5
38070 echo "${ECHO_T}$ac_res" >&6; }
38071 if test `eval echo '${'$as_ac_var'}'` = yes; then
38072   cat >>confdefs.h <<_ACEOF
38073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38074 _ACEOF
38075  cat >>confdefs.h <<\_ACEOF
38076 #define HAVE_FCHDIR 1
38077 _ACEOF
38078
38079 fi
38080 done
38081
38082
38083 for ac_func in strtoll
38084 do
38085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38089   echo $ECHO_N "(cached) $ECHO_C" >&6
38090 else
38091   cat >conftest.$ac_ext <<_ACEOF
38092 /* confdefs.h.  */
38093 _ACEOF
38094 cat confdefs.h >>conftest.$ac_ext
38095 cat >>conftest.$ac_ext <<_ACEOF
38096 /* end confdefs.h.  */
38097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38099 #define $ac_func innocuous_$ac_func
38100
38101 /* System header to define __stub macros and hopefully few prototypes,
38102     which can conflict with char $ac_func (); below.
38103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38104     <limits.h> exists even on freestanding compilers.  */
38105
38106 #ifdef __STDC__
38107 # include <limits.h>
38108 #else
38109 # include <assert.h>
38110 #endif
38111
38112 #undef $ac_func
38113
38114 /* Override any GCC internal prototype to avoid an error.
38115    Use char because int might match the return type of a GCC
38116    builtin and then its argument prototype would still apply.  */
38117 #ifdef __cplusplus
38118 extern "C"
38119 #endif
38120 char $ac_func ();
38121 /* The GNU C library defines this for functions which it implements
38122     to always fail with ENOSYS.  Some functions are actually named
38123     something starting with __ and the normal name is an alias.  */
38124 #if defined __stub_$ac_func || defined __stub___$ac_func
38125 choke me
38126 #endif
38127
38128 int
38129 main ()
38130 {
38131 return $ac_func ();
38132   ;
38133   return 0;
38134 }
38135 _ACEOF
38136 rm -f conftest.$ac_objext conftest$ac_exeext
38137 if { (ac_try="$ac_link"
38138 case "(($ac_try" in
38139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38140   *) ac_try_echo=$ac_try;;
38141 esac
38142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38143   (eval "$ac_link") 2>conftest.er1
38144   ac_status=$?
38145   grep -v '^ *+' conftest.er1 >conftest.err
38146   rm -f conftest.er1
38147   cat conftest.err >&5
38148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38149   (exit $ac_status); } && {
38150          test -z "$ac_c_werror_flag" ||
38151          test ! -s conftest.err
38152        } && test -s conftest$ac_exeext &&
38153        $as_test_x conftest$ac_exeext; then
38154   eval "$as_ac_var=yes"
38155 else
38156   echo "$as_me: failed program was:" >&5
38157 sed 's/^/| /' conftest.$ac_ext >&5
38158
38159         eval "$as_ac_var=no"
38160 fi
38161
38162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38163       conftest$ac_exeext conftest.$ac_ext
38164 fi
38165 ac_res=`eval echo '${'$as_ac_var'}'`
38166                { echo "$as_me:$LINENO: result: $ac_res" >&5
38167 echo "${ECHO_T}$ac_res" >&6; }
38168 if test `eval echo '${'$as_ac_var'}'` = yes; then
38169   cat >>confdefs.h <<_ACEOF
38170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38171 _ACEOF
38172  cat >>confdefs.h <<\_ACEOF
38173 #define HAVE_STRTOLL 1
38174 _ACEOF
38175
38176 fi
38177 done
38178
38179
38180 for ac_func in posix_fadvise
38181 do
38182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38183 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38185 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38186   echo $ECHO_N "(cached) $ECHO_C" >&6
38187 else
38188   cat >conftest.$ac_ext <<_ACEOF
38189 /* confdefs.h.  */
38190 _ACEOF
38191 cat confdefs.h >>conftest.$ac_ext
38192 cat >>conftest.$ac_ext <<_ACEOF
38193 /* end confdefs.h.  */
38194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38195    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38196 #define $ac_func innocuous_$ac_func
38197
38198 /* System header to define __stub macros and hopefully few prototypes,
38199     which can conflict with char $ac_func (); below.
38200     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38201     <limits.h> exists even on freestanding compilers.  */
38202
38203 #ifdef __STDC__
38204 # include <limits.h>
38205 #else
38206 # include <assert.h>
38207 #endif
38208
38209 #undef $ac_func
38210
38211 /* Override any GCC internal prototype to avoid an error.
38212    Use char because int might match the return type of a GCC
38213    builtin and then its argument prototype would still apply.  */
38214 #ifdef __cplusplus
38215 extern "C"
38216 #endif
38217 char $ac_func ();
38218 /* The GNU C library defines this for functions which it implements
38219     to always fail with ENOSYS.  Some functions are actually named
38220     something starting with __ and the normal name is an alias.  */
38221 #if defined __stub_$ac_func || defined __stub___$ac_func
38222 choke me
38223 #endif
38224
38225 int
38226 main ()
38227 {
38228 return $ac_func ();
38229   ;
38230   return 0;
38231 }
38232 _ACEOF
38233 rm -f conftest.$ac_objext conftest$ac_exeext
38234 if { (ac_try="$ac_link"
38235 case "(($ac_try" in
38236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38237   *) ac_try_echo=$ac_try;;
38238 esac
38239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38240   (eval "$ac_link") 2>conftest.er1
38241   ac_status=$?
38242   grep -v '^ *+' conftest.er1 >conftest.err
38243   rm -f conftest.er1
38244   cat conftest.err >&5
38245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38246   (exit $ac_status); } && {
38247          test -z "$ac_c_werror_flag" ||
38248          test ! -s conftest.err
38249        } && test -s conftest$ac_exeext &&
38250        $as_test_x conftest$ac_exeext; then
38251   eval "$as_ac_var=yes"
38252 else
38253   echo "$as_me: failed program was:" >&5
38254 sed 's/^/| /' conftest.$ac_ext >&5
38255
38256         eval "$as_ac_var=no"
38257 fi
38258
38259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38260       conftest$ac_exeext conftest.$ac_ext
38261 fi
38262 ac_res=`eval echo '${'$as_ac_var'}'`
38263                { echo "$as_me:$LINENO: result: $ac_res" >&5
38264 echo "${ECHO_T}$ac_res" >&6; }
38265 if test `eval echo '${'$as_ac_var'}'` = yes; then
38266   cat >>confdefs.h <<_ACEOF
38267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38268 _ACEOF
38269
38270 fi
38271 done
38272
38273
38274 for ac_func in fdatasync
38275 do
38276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38277 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38279 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38280   echo $ECHO_N "(cached) $ECHO_C" >&6
38281 else
38282   cat >conftest.$ac_ext <<_ACEOF
38283 /* confdefs.h.  */
38284 _ACEOF
38285 cat confdefs.h >>conftest.$ac_ext
38286 cat >>conftest.$ac_ext <<_ACEOF
38287 /* end confdefs.h.  */
38288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38289    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38290 #define $ac_func innocuous_$ac_func
38291
38292 /* System header to define __stub macros and hopefully few prototypes,
38293     which can conflict with char $ac_func (); below.
38294     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38295     <limits.h> exists even on freestanding compilers.  */
38296
38297 #ifdef __STDC__
38298 # include <limits.h>
38299 #else
38300 # include <assert.h>
38301 #endif
38302
38303 #undef $ac_func
38304
38305 /* Override any GCC internal prototype to avoid an error.
38306    Use char because int might match the return type of a GCC
38307    builtin and then its argument prototype would still apply.  */
38308 #ifdef __cplusplus
38309 extern "C"
38310 #endif
38311 char $ac_func ();
38312 /* The GNU C library defines this for functions which it implements
38313     to always fail with ENOSYS.  Some functions are actually named
38314     something starting with __ and the normal name is an alias.  */
38315 #if defined __stub_$ac_func || defined __stub___$ac_func
38316 choke me
38317 #endif
38318
38319 int
38320 main ()
38321 {
38322 return $ac_func ();
38323   ;
38324   return 0;
38325 }
38326 _ACEOF
38327 rm -f conftest.$ac_objext conftest$ac_exeext
38328 if { (ac_try="$ac_link"
38329 case "(($ac_try" in
38330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38331   *) ac_try_echo=$ac_try;;
38332 esac
38333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38334   (eval "$ac_link") 2>conftest.er1
38335   ac_status=$?
38336   grep -v '^ *+' conftest.er1 >conftest.err
38337   rm -f conftest.er1
38338   cat conftest.err >&5
38339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38340   (exit $ac_status); } && {
38341          test -z "$ac_c_werror_flag" ||
38342          test ! -s conftest.err
38343        } && test -s conftest$ac_exeext &&
38344        $as_test_x conftest$ac_exeext; then
38345   eval "$as_ac_var=yes"
38346 else
38347   echo "$as_me: failed program was:" >&5
38348 sed 's/^/| /' conftest.$ac_ext >&5
38349
38350         eval "$as_ac_var=no"
38351 fi
38352
38353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38354       conftest$ac_exeext conftest.$ac_ext
38355 fi
38356 ac_res=`eval echo '${'$as_ac_var'}'`
38357                { echo "$as_me:$LINENO: result: $ac_res" >&5
38358 echo "${ECHO_T}$ac_res" >&6; }
38359 if test `eval echo '${'$as_ac_var'}'` = yes; then
38360   cat >>confdefs.h <<_ACEOF
38361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38362 _ACEOF
38363
38364 fi
38365 done
38366
38367
38368
38369 for ac_func in chflags
38370 do
38371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38375   echo $ECHO_N "(cached) $ECHO_C" >&6
38376 else
38377   cat >conftest.$ac_ext <<_ACEOF
38378 /* confdefs.h.  */
38379 _ACEOF
38380 cat confdefs.h >>conftest.$ac_ext
38381 cat >>conftest.$ac_ext <<_ACEOF
38382 /* end confdefs.h.  */
38383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38384    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38385 #define $ac_func innocuous_$ac_func
38386
38387 /* System header to define __stub macros and hopefully few prototypes,
38388     which can conflict with char $ac_func (); below.
38389     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38390     <limits.h> exists even on freestanding compilers.  */
38391
38392 #ifdef __STDC__
38393 # include <limits.h>
38394 #else
38395 # include <assert.h>
38396 #endif
38397
38398 #undef $ac_func
38399
38400 /* Override any GCC internal prototype to avoid an error.
38401    Use char because int might match the return type of a GCC
38402    builtin and then its argument prototype would still apply.  */
38403 #ifdef __cplusplus
38404 extern "C"
38405 #endif
38406 char $ac_func ();
38407 /* The GNU C library defines this for functions which it implements
38408     to always fail with ENOSYS.  Some functions are actually named
38409     something starting with __ and the normal name is an alias.  */
38410 #if defined __stub_$ac_func || defined __stub___$ac_func
38411 choke me
38412 #endif
38413
38414 int
38415 main ()
38416 {
38417 return $ac_func ();
38418   ;
38419   return 0;
38420 }
38421 _ACEOF
38422 rm -f conftest.$ac_objext conftest$ac_exeext
38423 if { (ac_try="$ac_link"
38424 case "(($ac_try" in
38425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38426   *) ac_try_echo=$ac_try;;
38427 esac
38428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38429   (eval "$ac_link") 2>conftest.er1
38430   ac_status=$?
38431   grep -v '^ *+' conftest.er1 >conftest.err
38432   rm -f conftest.er1
38433   cat conftest.err >&5
38434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38435   (exit $ac_status); } && {
38436          test -z "$ac_c_werror_flag" ||
38437          test ! -s conftest.err
38438        } && test -s conftest$ac_exeext &&
38439        $as_test_x conftest$ac_exeext; then
38440   eval "$as_ac_var=yes"
38441 else
38442   echo "$as_me: failed program was:" >&5
38443 sed 's/^/| /' conftest.$ac_ext >&5
38444
38445         eval "$as_ac_var=no"
38446 fi
38447
38448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38449       conftest$ac_exeext conftest.$ac_ext
38450 fi
38451 ac_res=`eval echo '${'$as_ac_var'}'`
38452                { echo "$as_me:$LINENO: result: $ac_res" >&5
38453 echo "${ECHO_T}$ac_res" >&6; }
38454 if test `eval echo '${'$as_ac_var'}'` = yes; then
38455   cat >>confdefs.h <<_ACEOF
38456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38457 _ACEOF
38458
38459 fi
38460 done
38461
38462
38463
38464
38465
38466
38467 for ac_func in snprintf vsnprintf gethostid fseeko
38468 do
38469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38470 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38472 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38473   echo $ECHO_N "(cached) $ECHO_C" >&6
38474 else
38475   cat >conftest.$ac_ext <<_ACEOF
38476 /* confdefs.h.  */
38477 _ACEOF
38478 cat confdefs.h >>conftest.$ac_ext
38479 cat >>conftest.$ac_ext <<_ACEOF
38480 /* end confdefs.h.  */
38481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38482    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38483 #define $ac_func innocuous_$ac_func
38484
38485 /* System header to define __stub macros and hopefully few prototypes,
38486     which can conflict with char $ac_func (); below.
38487     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38488     <limits.h> exists even on freestanding compilers.  */
38489
38490 #ifdef __STDC__
38491 # include <limits.h>
38492 #else
38493 # include <assert.h>
38494 #endif
38495
38496 #undef $ac_func
38497
38498 /* Override any GCC internal prototype to avoid an error.
38499    Use char because int might match the return type of a GCC
38500    builtin and then its argument prototype would still apply.  */
38501 #ifdef __cplusplus
38502 extern "C"
38503 #endif
38504 char $ac_func ();
38505 /* The GNU C library defines this for functions which it implements
38506     to always fail with ENOSYS.  Some functions are actually named
38507     something starting with __ and the normal name is an alias.  */
38508 #if defined __stub_$ac_func || defined __stub___$ac_func
38509 choke me
38510 #endif
38511
38512 int
38513 main ()
38514 {
38515 return $ac_func ();
38516   ;
38517   return 0;
38518 }
38519 _ACEOF
38520 rm -f conftest.$ac_objext conftest$ac_exeext
38521 if { (ac_try="$ac_link"
38522 case "(($ac_try" in
38523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38524   *) ac_try_echo=$ac_try;;
38525 esac
38526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38527   (eval "$ac_link") 2>conftest.er1
38528   ac_status=$?
38529   grep -v '^ *+' conftest.er1 >conftest.err
38530   rm -f conftest.er1
38531   cat conftest.err >&5
38532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38533   (exit $ac_status); } && {
38534          test -z "$ac_c_werror_flag" ||
38535          test ! -s conftest.err
38536        } && test -s conftest$ac_exeext &&
38537        $as_test_x conftest$ac_exeext; then
38538   eval "$as_ac_var=yes"
38539 else
38540   echo "$as_me: failed program was:" >&5
38541 sed 's/^/| /' conftest.$ac_ext >&5
38542
38543         eval "$as_ac_var=no"
38544 fi
38545
38546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38547       conftest$ac_exeext conftest.$ac_ext
38548 fi
38549 ac_res=`eval echo '${'$as_ac_var'}'`
38550                { echo "$as_me:$LINENO: result: $ac_res" >&5
38551 echo "${ECHO_T}$ac_res" >&6; }
38552 if test `eval echo '${'$as_ac_var'}'` = yes; then
38553   cat >>confdefs.h <<_ACEOF
38554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38555 _ACEOF
38556
38557 fi
38558 done
38559
38560
38561 { echo "$as_me:$LINENO: checking for va_copy" >&5
38562 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38563 if test "${ba_cv_va_copy+set}" = set; then
38564   echo $ECHO_N "(cached) $ECHO_C" >&6
38565 else
38566
38567        cat >conftest.$ac_ext <<_ACEOF
38568 /* confdefs.h.  */
38569 _ACEOF
38570 cat confdefs.h >>conftest.$ac_ext
38571 cat >>conftest.$ac_ext <<_ACEOF
38572 /* end confdefs.h.  */
38573
38574               #include <stdarg.h>
38575               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38576               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38577
38578 int
38579 main ()
38580 {
38581
38582               call_use_va_copy(1,2,3)
38583
38584   ;
38585   return 0;
38586 }
38587 _ACEOF
38588 rm -f conftest.$ac_objext conftest$ac_exeext
38589 if { (ac_try="$ac_link"
38590 case "(($ac_try" in
38591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38592   *) ac_try_echo=$ac_try;;
38593 esac
38594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38595   (eval "$ac_link") 2>conftest.er1
38596   ac_status=$?
38597   grep -v '^ *+' conftest.er1 >conftest.err
38598   rm -f conftest.er1
38599   cat conftest.err >&5
38600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38601   (exit $ac_status); } && {
38602          test -z "$ac_c_werror_flag" ||
38603          test ! -s conftest.err
38604        } && test -s conftest$ac_exeext &&
38605        $as_test_x conftest$ac_exeext; then
38606
38607               ba_cv_va_copy=yes,
38608
38609 else
38610   echo "$as_me: failed program was:" >&5
38611 sed 's/^/| /' conftest.$ac_ext >&5
38612
38613
38614               ba_cv_va_copy=no
38615
38616
38617 fi
38618
38619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38620       conftest$ac_exeext conftest.$ac_ext
38621
38622
38623 fi
38624 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38625 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38626 test $ba_cv_va_copy = yes &&
38627 cat >>confdefs.h <<\_ACEOF
38628 #define HAVE_VA_COPY 1
38629 _ACEOF
38630
38631
38632
38633
38634
38635
38636 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38637 do
38638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38639 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38641 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38642   echo $ECHO_N "(cached) $ECHO_C" >&6
38643 else
38644   cat >conftest.$ac_ext <<_ACEOF
38645 /* confdefs.h.  */
38646 _ACEOF
38647 cat confdefs.h >>conftest.$ac_ext
38648 cat >>conftest.$ac_ext <<_ACEOF
38649 /* end confdefs.h.  */
38650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38651    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38652 #define $ac_func innocuous_$ac_func
38653
38654 /* System header to define __stub macros and hopefully few prototypes,
38655     which can conflict with char $ac_func (); below.
38656     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38657     <limits.h> exists even on freestanding compilers.  */
38658
38659 #ifdef __STDC__
38660 # include <limits.h>
38661 #else
38662 # include <assert.h>
38663 #endif
38664
38665 #undef $ac_func
38666
38667 /* Override any GCC internal prototype to avoid an error.
38668    Use char because int might match the return type of a GCC
38669    builtin and then its argument prototype would still apply.  */
38670 #ifdef __cplusplus
38671 extern "C"
38672 #endif
38673 char $ac_func ();
38674 /* The GNU C library defines this for functions which it implements
38675     to always fail with ENOSYS.  Some functions are actually named
38676     something starting with __ and the normal name is an alias.  */
38677 #if defined __stub_$ac_func || defined __stub___$ac_func
38678 choke me
38679 #endif
38680
38681 int
38682 main ()
38683 {
38684 return $ac_func ();
38685   ;
38686   return 0;
38687 }
38688 _ACEOF
38689 rm -f conftest.$ac_objext conftest$ac_exeext
38690 if { (ac_try="$ac_link"
38691 case "(($ac_try" in
38692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38693   *) ac_try_echo=$ac_try;;
38694 esac
38695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38696   (eval "$ac_link") 2>conftest.er1
38697   ac_status=$?
38698   grep -v '^ *+' conftest.er1 >conftest.err
38699   rm -f conftest.er1
38700   cat conftest.err >&5
38701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38702   (exit $ac_status); } && {
38703          test -z "$ac_c_werror_flag" ||
38704          test ! -s conftest.err
38705        } && test -s conftest$ac_exeext &&
38706        $as_test_x conftest$ac_exeext; then
38707   eval "$as_ac_var=yes"
38708 else
38709   echo "$as_me: failed program was:" >&5
38710 sed 's/^/| /' conftest.$ac_ext >&5
38711
38712         eval "$as_ac_var=no"
38713 fi
38714
38715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38716       conftest$ac_exeext conftest.$ac_ext
38717 fi
38718 ac_res=`eval echo '${'$as_ac_var'}'`
38719                { echo "$as_me:$LINENO: result: $ac_res" >&5
38720 echo "${ECHO_T}$ac_res" >&6; }
38721 if test `eval echo '${'$as_ac_var'}'` = yes; then
38722   cat >>confdefs.h <<_ACEOF
38723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38724 _ACEOF
38725
38726 fi
38727 done
38728
38729
38730 # If resolver functions are not in libc check for -lnsl or -lresolv.
38731 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38732 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38733 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38734   echo $ECHO_N "(cached) $ECHO_C" >&6
38735 else
38736   cat >conftest.$ac_ext <<_ACEOF
38737 /* confdefs.h.  */
38738 _ACEOF
38739 cat confdefs.h >>conftest.$ac_ext
38740 cat >>conftest.$ac_ext <<_ACEOF
38741 /* end confdefs.h.  */
38742 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38743    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38744 #define gethostbyname_r innocuous_gethostbyname_r
38745
38746 /* System header to define __stub macros and hopefully few prototypes,
38747     which can conflict with char gethostbyname_r (); below.
38748     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38749     <limits.h> exists even on freestanding compilers.  */
38750
38751 #ifdef __STDC__
38752 # include <limits.h>
38753 #else
38754 # include <assert.h>
38755 #endif
38756
38757 #undef gethostbyname_r
38758
38759 /* Override any GCC internal prototype to avoid an error.
38760    Use char because int might match the return type of a GCC
38761    builtin and then its argument prototype would still apply.  */
38762 #ifdef __cplusplus
38763 extern "C"
38764 #endif
38765 char gethostbyname_r ();
38766 /* The GNU C library defines this for functions which it implements
38767     to always fail with ENOSYS.  Some functions are actually named
38768     something starting with __ and the normal name is an alias.  */
38769 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38770 choke me
38771 #endif
38772
38773 int
38774 main ()
38775 {
38776 return gethostbyname_r ();
38777   ;
38778   return 0;
38779 }
38780 _ACEOF
38781 rm -f conftest.$ac_objext conftest$ac_exeext
38782 if { (ac_try="$ac_link"
38783 case "(($ac_try" in
38784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38785   *) ac_try_echo=$ac_try;;
38786 esac
38787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38788   (eval "$ac_link") 2>conftest.er1
38789   ac_status=$?
38790   grep -v '^ *+' conftest.er1 >conftest.err
38791   rm -f conftest.er1
38792   cat conftest.err >&5
38793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38794   (exit $ac_status); } && {
38795          test -z "$ac_c_werror_flag" ||
38796          test ! -s conftest.err
38797        } && test -s conftest$ac_exeext &&
38798        $as_test_x conftest$ac_exeext; then
38799   ac_cv_func_gethostbyname_r=yes
38800 else
38801   echo "$as_me: failed program was:" >&5
38802 sed 's/^/| /' conftest.$ac_ext >&5
38803
38804         ac_cv_func_gethostbyname_r=no
38805 fi
38806
38807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38808       conftest$ac_exeext conftest.$ac_ext
38809 fi
38810 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38811 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38812 if test $ac_cv_func_gethostbyname_r = yes; then
38813   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38814 echo "${ECHO_T}using libc's resolver" >&6; }
38815 else
38816
38817 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38818 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38819 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38820   echo $ECHO_N "(cached) $ECHO_C" >&6
38821 else
38822   ac_check_lib_save_LIBS=$LIBS
38823 LIBS="-lnsl  $LIBS"
38824 cat >conftest.$ac_ext <<_ACEOF
38825 /* confdefs.h.  */
38826 _ACEOF
38827 cat confdefs.h >>conftest.$ac_ext
38828 cat >>conftest.$ac_ext <<_ACEOF
38829 /* end confdefs.h.  */
38830
38831 /* Override any GCC internal prototype to avoid an error.
38832    Use char because int might match the return type of a GCC
38833    builtin and then its argument prototype would still apply.  */
38834 #ifdef __cplusplus
38835 extern "C"
38836 #endif
38837 char gethostbyname_r ();
38838 int
38839 main ()
38840 {
38841 return gethostbyname_r ();
38842   ;
38843   return 0;
38844 }
38845 _ACEOF
38846 rm -f conftest.$ac_objext conftest$ac_exeext
38847 if { (ac_try="$ac_link"
38848 case "(($ac_try" in
38849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38850   *) ac_try_echo=$ac_try;;
38851 esac
38852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38853   (eval "$ac_link") 2>conftest.er1
38854   ac_status=$?
38855   grep -v '^ *+' conftest.er1 >conftest.err
38856   rm -f conftest.er1
38857   cat conftest.err >&5
38858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38859   (exit $ac_status); } && {
38860          test -z "$ac_c_werror_flag" ||
38861          test ! -s conftest.err
38862        } && test -s conftest$ac_exeext &&
38863        $as_test_x conftest$ac_exeext; then
38864   ac_cv_lib_nsl_gethostbyname_r=yes
38865 else
38866   echo "$as_me: failed program was:" >&5
38867 sed 's/^/| /' conftest.$ac_ext >&5
38868
38869         ac_cv_lib_nsl_gethostbyname_r=no
38870 fi
38871
38872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38873       conftest$ac_exeext conftest.$ac_ext
38874 LIBS=$ac_check_lib_save_LIBS
38875 fi
38876 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38877 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38878 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38879   cat >>confdefs.h <<_ACEOF
38880 #define HAVE_LIBNSL 1
38881 _ACEOF
38882
38883   LIBS="-lnsl $LIBS"
38884
38885 fi
38886
38887
38888 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38889 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38890 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38891   echo $ECHO_N "(cached) $ECHO_C" >&6
38892 else
38893   ac_check_lib_save_LIBS=$LIBS
38894 LIBS="-lresolv  $LIBS"
38895 cat >conftest.$ac_ext <<_ACEOF
38896 /* confdefs.h.  */
38897 _ACEOF
38898 cat confdefs.h >>conftest.$ac_ext
38899 cat >>conftest.$ac_ext <<_ACEOF
38900 /* end confdefs.h.  */
38901
38902 /* Override any GCC internal prototype to avoid an error.
38903    Use char because int might match the return type of a GCC
38904    builtin and then its argument prototype would still apply.  */
38905 #ifdef __cplusplus
38906 extern "C"
38907 #endif
38908 char gethostbyname_r ();
38909 int
38910 main ()
38911 {
38912 return gethostbyname_r ();
38913   ;
38914   return 0;
38915 }
38916 _ACEOF
38917 rm -f conftest.$ac_objext conftest$ac_exeext
38918 if { (ac_try="$ac_link"
38919 case "(($ac_try" in
38920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38921   *) ac_try_echo=$ac_try;;
38922 esac
38923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38924   (eval "$ac_link") 2>conftest.er1
38925   ac_status=$?
38926   grep -v '^ *+' conftest.er1 >conftest.err
38927   rm -f conftest.er1
38928   cat conftest.err >&5
38929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38930   (exit $ac_status); } && {
38931          test -z "$ac_c_werror_flag" ||
38932          test ! -s conftest.err
38933        } && test -s conftest$ac_exeext &&
38934        $as_test_x conftest$ac_exeext; then
38935   ac_cv_lib_resolv_gethostbyname_r=yes
38936 else
38937   echo "$as_me: failed program was:" >&5
38938 sed 's/^/| /' conftest.$ac_ext >&5
38939
38940         ac_cv_lib_resolv_gethostbyname_r=no
38941 fi
38942
38943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38944       conftest$ac_exeext conftest.$ac_ext
38945 LIBS=$ac_check_lib_save_LIBS
38946 fi
38947 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38948 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38949 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38950   cat >>confdefs.h <<_ACEOF
38951 #define HAVE_LIBRESOLV 1
38952 _ACEOF
38953
38954   LIBS="-lresolv $LIBS"
38955
38956 fi
38957
38958 fi
38959
38960
38961
38962 for ac_func in inet_pton
38963 do
38964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38965 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38967 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38968   echo $ECHO_N "(cached) $ECHO_C" >&6
38969 else
38970   cat >conftest.$ac_ext <<_ACEOF
38971 /* confdefs.h.  */
38972 _ACEOF
38973 cat confdefs.h >>conftest.$ac_ext
38974 cat >>conftest.$ac_ext <<_ACEOF
38975 /* end confdefs.h.  */
38976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38977    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38978 #define $ac_func innocuous_$ac_func
38979
38980 /* System header to define __stub macros and hopefully few prototypes,
38981     which can conflict with char $ac_func (); below.
38982     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38983     <limits.h> exists even on freestanding compilers.  */
38984
38985 #ifdef __STDC__
38986 # include <limits.h>
38987 #else
38988 # include <assert.h>
38989 #endif
38990
38991 #undef $ac_func
38992
38993 /* Override any GCC internal prototype to avoid an error.
38994    Use char because int might match the return type of a GCC
38995    builtin and then its argument prototype would still apply.  */
38996 #ifdef __cplusplus
38997 extern "C"
38998 #endif
38999 char $ac_func ();
39000 /* The GNU C library defines this for functions which it implements
39001     to always fail with ENOSYS.  Some functions are actually named
39002     something starting with __ and the normal name is an alias.  */
39003 #if defined __stub_$ac_func || defined __stub___$ac_func
39004 choke me
39005 #endif
39006
39007 int
39008 main ()
39009 {
39010 return $ac_func ();
39011   ;
39012   return 0;
39013 }
39014 _ACEOF
39015 rm -f conftest.$ac_objext conftest$ac_exeext
39016 if { (ac_try="$ac_link"
39017 case "(($ac_try" in
39018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39019   *) ac_try_echo=$ac_try;;
39020 esac
39021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39022   (eval "$ac_link") 2>conftest.er1
39023   ac_status=$?
39024   grep -v '^ *+' conftest.er1 >conftest.err
39025   rm -f conftest.er1
39026   cat conftest.err >&5
39027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39028   (exit $ac_status); } && {
39029          test -z "$ac_c_werror_flag" ||
39030          test ! -s conftest.err
39031        } && test -s conftest$ac_exeext &&
39032        $as_test_x conftest$ac_exeext; then
39033   eval "$as_ac_var=yes"
39034 else
39035   echo "$as_me: failed program was:" >&5
39036 sed 's/^/| /' conftest.$ac_ext >&5
39037
39038         eval "$as_ac_var=no"
39039 fi
39040
39041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39042       conftest$ac_exeext conftest.$ac_ext
39043 fi
39044 ac_res=`eval echo '${'$as_ac_var'}'`
39045                { echo "$as_me:$LINENO: result: $ac_res" >&5
39046 echo "${ECHO_T}$ac_res" >&6; }
39047 if test `eval echo '${'$as_ac_var'}'` = yes; then
39048   cat >>confdefs.h <<_ACEOF
39049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39050 _ACEOF
39051  cat >>confdefs.h <<\_ACEOF
39052 #define HAVE_INET_PTON 1
39053 _ACEOF
39054
39055 fi
39056 done
39057
39058
39059 for ac_func in inet_ntop
39060 do
39061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39062 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39064 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39065   echo $ECHO_N "(cached) $ECHO_C" >&6
39066 else
39067   cat >conftest.$ac_ext <<_ACEOF
39068 /* confdefs.h.  */
39069 _ACEOF
39070 cat confdefs.h >>conftest.$ac_ext
39071 cat >>conftest.$ac_ext <<_ACEOF
39072 /* end confdefs.h.  */
39073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39074    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39075 #define $ac_func innocuous_$ac_func
39076
39077 /* System header to define __stub macros and hopefully few prototypes,
39078     which can conflict with char $ac_func (); below.
39079     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39080     <limits.h> exists even on freestanding compilers.  */
39081
39082 #ifdef __STDC__
39083 # include <limits.h>
39084 #else
39085 # include <assert.h>
39086 #endif
39087
39088 #undef $ac_func
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 $ac_func ();
39097 /* The GNU C library defines this for functions which it implements
39098     to always fail with ENOSYS.  Some functions are actually named
39099     something starting with __ and the normal name is an alias.  */
39100 #if defined __stub_$ac_func || defined __stub___$ac_func
39101 choke me
39102 #endif
39103
39104 int
39105 main ()
39106 {
39107 return $ac_func ();
39108   ;
39109   return 0;
39110 }
39111 _ACEOF
39112 rm -f conftest.$ac_objext conftest$ac_exeext
39113 if { (ac_try="$ac_link"
39114 case "(($ac_try" in
39115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39116   *) ac_try_echo=$ac_try;;
39117 esac
39118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39119   (eval "$ac_link") 2>conftest.er1
39120   ac_status=$?
39121   grep -v '^ *+' conftest.er1 >conftest.err
39122   rm -f conftest.er1
39123   cat conftest.err >&5
39124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39125   (exit $ac_status); } && {
39126          test -z "$ac_c_werror_flag" ||
39127          test ! -s conftest.err
39128        } && test -s conftest$ac_exeext &&
39129        $as_test_x conftest$ac_exeext; then
39130   eval "$as_ac_var=yes"
39131 else
39132   echo "$as_me: failed program was:" >&5
39133 sed 's/^/| /' conftest.$ac_ext >&5
39134
39135         eval "$as_ac_var=no"
39136 fi
39137
39138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39139       conftest$ac_exeext conftest.$ac_ext
39140 fi
39141 ac_res=`eval echo '${'$as_ac_var'}'`
39142                { echo "$as_me:$LINENO: result: $ac_res" >&5
39143 echo "${ECHO_T}$ac_res" >&6; }
39144 if test `eval echo '${'$as_ac_var'}'` = yes; then
39145   cat >>confdefs.h <<_ACEOF
39146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39147 _ACEOF
39148  cat >>confdefs.h <<\_ACEOF
39149 #define HAVE_INET_NTOP 1
39150 _ACEOF
39151
39152 fi
39153 done
39154
39155
39156 for ac_func in gethostbyname2
39157 do
39158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39159 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39161 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39162   echo $ECHO_N "(cached) $ECHO_C" >&6
39163 else
39164   cat >conftest.$ac_ext <<_ACEOF
39165 /* confdefs.h.  */
39166 _ACEOF
39167 cat confdefs.h >>conftest.$ac_ext
39168 cat >>conftest.$ac_ext <<_ACEOF
39169 /* end confdefs.h.  */
39170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39171    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39172 #define $ac_func innocuous_$ac_func
39173
39174 /* System header to define __stub macros and hopefully few prototypes,
39175     which can conflict with char $ac_func (); below.
39176     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39177     <limits.h> exists even on freestanding compilers.  */
39178
39179 #ifdef __STDC__
39180 # include <limits.h>
39181 #else
39182 # include <assert.h>
39183 #endif
39184
39185 #undef $ac_func
39186
39187 /* Override any GCC internal prototype to avoid an error.
39188    Use char because int might match the return type of a GCC
39189    builtin and then its argument prototype would still apply.  */
39190 #ifdef __cplusplus
39191 extern "C"
39192 #endif
39193 char $ac_func ();
39194 /* The GNU C library defines this for functions which it implements
39195     to always fail with ENOSYS.  Some functions are actually named
39196     something starting with __ and the normal name is an alias.  */
39197 #if defined __stub_$ac_func || defined __stub___$ac_func
39198 choke me
39199 #endif
39200
39201 int
39202 main ()
39203 {
39204 return $ac_func ();
39205   ;
39206   return 0;
39207 }
39208 _ACEOF
39209 rm -f conftest.$ac_objext conftest$ac_exeext
39210 if { (ac_try="$ac_link"
39211 case "(($ac_try" in
39212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39213   *) ac_try_echo=$ac_try;;
39214 esac
39215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39216   (eval "$ac_link") 2>conftest.er1
39217   ac_status=$?
39218   grep -v '^ *+' conftest.er1 >conftest.err
39219   rm -f conftest.er1
39220   cat conftest.err >&5
39221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39222   (exit $ac_status); } && {
39223          test -z "$ac_c_werror_flag" ||
39224          test ! -s conftest.err
39225        } && test -s conftest$ac_exeext &&
39226        $as_test_x conftest$ac_exeext; then
39227   eval "$as_ac_var=yes"
39228 else
39229   echo "$as_me: failed program was:" >&5
39230 sed 's/^/| /' conftest.$ac_ext >&5
39231
39232         eval "$as_ac_var=no"
39233 fi
39234
39235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39236       conftest$ac_exeext conftest.$ac_ext
39237 fi
39238 ac_res=`eval echo '${'$as_ac_var'}'`
39239                { echo "$as_me:$LINENO: result: $ac_res" >&5
39240 echo "${ECHO_T}$ac_res" >&6; }
39241 if test `eval echo '${'$as_ac_var'}'` = yes; then
39242   cat >>confdefs.h <<_ACEOF
39243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39244 _ACEOF
39245  cat >>confdefs.h <<\_ACEOF
39246 #define HAVE_GETHOSTBYNAME2 1
39247 _ACEOF
39248
39249 fi
39250 done
39251
39252
39253 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39254 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39255 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39256   echo $ECHO_N "(cached) $ECHO_C" >&6
39257 else
39258
39259        cat >conftest.$ac_ext <<_ACEOF
39260 /* confdefs.h.  */
39261 _ACEOF
39262 cat confdefs.h >>conftest.$ac_ext
39263 cat >>conftest.$ac_ext <<_ACEOF
39264 /* end confdefs.h.  */
39265
39266               #include <sys/socket.h>
39267
39268 int
39269 main ()
39270 {
39271
39272               struct sockaddr s; s.sa_len;
39273
39274   ;
39275   return 0;
39276 }
39277 _ACEOF
39278 rm -f conftest.$ac_objext
39279 if { (ac_try="$ac_compile"
39280 case "(($ac_try" in
39281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39282   *) ac_try_echo=$ac_try;;
39283 esac
39284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39285   (eval "$ac_compile") 2>conftest.er1
39286   ac_status=$?
39287   grep -v '^ *+' conftest.er1 >conftest.err
39288   rm -f conftest.er1
39289   cat conftest.err >&5
39290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39291   (exit $ac_status); } && {
39292          test -z "$ac_c_werror_flag" ||
39293          test ! -s conftest.err
39294        } && test -s conftest.$ac_objext; then
39295
39296              ac_cv_struct_sockaddr_sa_len=yes
39297
39298 else
39299   echo "$as_me: failed program was:" >&5
39300 sed 's/^/| /' conftest.$ac_ext >&5
39301
39302         ac_cv_struct_sockaddr_sa_len=no
39303
39304
39305 fi
39306
39307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39308
39309
39310 fi
39311 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39312 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39313
39314 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39315
39316 cat >>confdefs.h <<\_ACEOF
39317 #define HAVE_SA_LEN 1
39318 _ACEOF
39319
39320 fi
39321
39322
39323 for ac_func in strftime
39324 do
39325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39326 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39328 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39329   echo $ECHO_N "(cached) $ECHO_C" >&6
39330 else
39331   cat >conftest.$ac_ext <<_ACEOF
39332 /* confdefs.h.  */
39333 _ACEOF
39334 cat confdefs.h >>conftest.$ac_ext
39335 cat >>conftest.$ac_ext <<_ACEOF
39336 /* end confdefs.h.  */
39337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39338    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39339 #define $ac_func innocuous_$ac_func
39340
39341 /* System header to define __stub macros and hopefully few prototypes,
39342     which can conflict with char $ac_func (); below.
39343     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39344     <limits.h> exists even on freestanding compilers.  */
39345
39346 #ifdef __STDC__
39347 # include <limits.h>
39348 #else
39349 # include <assert.h>
39350 #endif
39351
39352 #undef $ac_func
39353
39354 /* Override any GCC internal prototype to avoid an error.
39355    Use char because int might match the return type of a GCC
39356    builtin and then its argument prototype would still apply.  */
39357 #ifdef __cplusplus
39358 extern "C"
39359 #endif
39360 char $ac_func ();
39361 /* The GNU C library defines this for functions which it implements
39362     to always fail with ENOSYS.  Some functions are actually named
39363     something starting with __ and the normal name is an alias.  */
39364 #if defined __stub_$ac_func || defined __stub___$ac_func
39365 choke me
39366 #endif
39367
39368 int
39369 main ()
39370 {
39371 return $ac_func ();
39372   ;
39373   return 0;
39374 }
39375 _ACEOF
39376 rm -f conftest.$ac_objext conftest$ac_exeext
39377 if { (ac_try="$ac_link"
39378 case "(($ac_try" in
39379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39380   *) ac_try_echo=$ac_try;;
39381 esac
39382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39383   (eval "$ac_link") 2>conftest.er1
39384   ac_status=$?
39385   grep -v '^ *+' conftest.er1 >conftest.err
39386   rm -f conftest.er1
39387   cat conftest.err >&5
39388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39389   (exit $ac_status); } && {
39390          test -z "$ac_c_werror_flag" ||
39391          test ! -s conftest.err
39392        } && test -s conftest$ac_exeext &&
39393        $as_test_x conftest$ac_exeext; then
39394   eval "$as_ac_var=yes"
39395 else
39396   echo "$as_me: failed program was:" >&5
39397 sed 's/^/| /' conftest.$ac_ext >&5
39398
39399         eval "$as_ac_var=no"
39400 fi
39401
39402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39403       conftest$ac_exeext conftest.$ac_ext
39404 fi
39405 ac_res=`eval echo '${'$as_ac_var'}'`
39406                { echo "$as_me:$LINENO: result: $ac_res" >&5
39407 echo "${ECHO_T}$ac_res" >&6; }
39408 if test `eval echo '${'$as_ac_var'}'` = yes; then
39409   cat >>confdefs.h <<_ACEOF
39410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39411 _ACEOF
39412
39413 else
39414   # strftime is in -lintl on SCO UNIX.
39415 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39416 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39417 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39418   echo $ECHO_N "(cached) $ECHO_C" >&6
39419 else
39420   ac_check_lib_save_LIBS=$LIBS
39421 LIBS="-lintl  $LIBS"
39422 cat >conftest.$ac_ext <<_ACEOF
39423 /* confdefs.h.  */
39424 _ACEOF
39425 cat confdefs.h >>conftest.$ac_ext
39426 cat >>conftest.$ac_ext <<_ACEOF
39427 /* end confdefs.h.  */
39428
39429 /* Override any GCC internal prototype to avoid an error.
39430    Use char because int might match the return type of a GCC
39431    builtin and then its argument prototype would still apply.  */
39432 #ifdef __cplusplus
39433 extern "C"
39434 #endif
39435 char strftime ();
39436 int
39437 main ()
39438 {
39439 return strftime ();
39440   ;
39441   return 0;
39442 }
39443 _ACEOF
39444 rm -f conftest.$ac_objext conftest$ac_exeext
39445 if { (ac_try="$ac_link"
39446 case "(($ac_try" in
39447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39448   *) ac_try_echo=$ac_try;;
39449 esac
39450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39451   (eval "$ac_link") 2>conftest.er1
39452   ac_status=$?
39453   grep -v '^ *+' conftest.er1 >conftest.err
39454   rm -f conftest.er1
39455   cat conftest.err >&5
39456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39457   (exit $ac_status); } && {
39458          test -z "$ac_c_werror_flag" ||
39459          test ! -s conftest.err
39460        } && test -s conftest$ac_exeext &&
39461        $as_test_x conftest$ac_exeext; then
39462   ac_cv_lib_intl_strftime=yes
39463 else
39464   echo "$as_me: failed program was:" >&5
39465 sed 's/^/| /' conftest.$ac_ext >&5
39466
39467         ac_cv_lib_intl_strftime=no
39468 fi
39469
39470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39471       conftest$ac_exeext conftest.$ac_ext
39472 LIBS=$ac_check_lib_save_LIBS
39473 fi
39474 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39475 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39476 if test $ac_cv_lib_intl_strftime = yes; then
39477   cat >>confdefs.h <<\_ACEOF
39478 #define HAVE_STRFTIME 1
39479 _ACEOF
39480
39481 LIBS="-lintl $LIBS"
39482 fi
39483
39484 fi
39485 done
39486
39487
39488 for ac_func in vprintf
39489 do
39490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39491 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39494   echo $ECHO_N "(cached) $ECHO_C" >&6
39495 else
39496   cat >conftest.$ac_ext <<_ACEOF
39497 /* confdefs.h.  */
39498 _ACEOF
39499 cat confdefs.h >>conftest.$ac_ext
39500 cat >>conftest.$ac_ext <<_ACEOF
39501 /* end confdefs.h.  */
39502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39503    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39504 #define $ac_func innocuous_$ac_func
39505
39506 /* System header to define __stub macros and hopefully few prototypes,
39507     which can conflict with char $ac_func (); below.
39508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39509     <limits.h> exists even on freestanding compilers.  */
39510
39511 #ifdef __STDC__
39512 # include <limits.h>
39513 #else
39514 # include <assert.h>
39515 #endif
39516
39517 #undef $ac_func
39518
39519 /* Override any GCC internal prototype to avoid an error.
39520    Use char because int might match the return type of a GCC
39521    builtin and then its argument prototype would still apply.  */
39522 #ifdef __cplusplus
39523 extern "C"
39524 #endif
39525 char $ac_func ();
39526 /* The GNU C library defines this for functions which it implements
39527     to always fail with ENOSYS.  Some functions are actually named
39528     something starting with __ and the normal name is an alias.  */
39529 #if defined __stub_$ac_func || defined __stub___$ac_func
39530 choke me
39531 #endif
39532
39533 int
39534 main ()
39535 {
39536 return $ac_func ();
39537   ;
39538   return 0;
39539 }
39540 _ACEOF
39541 rm -f conftest.$ac_objext conftest$ac_exeext
39542 if { (ac_try="$ac_link"
39543 case "(($ac_try" in
39544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39545   *) ac_try_echo=$ac_try;;
39546 esac
39547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39548   (eval "$ac_link") 2>conftest.er1
39549   ac_status=$?
39550   grep -v '^ *+' conftest.er1 >conftest.err
39551   rm -f conftest.er1
39552   cat conftest.err >&5
39553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39554   (exit $ac_status); } && {
39555          test -z "$ac_c_werror_flag" ||
39556          test ! -s conftest.err
39557        } && test -s conftest$ac_exeext &&
39558        $as_test_x conftest$ac_exeext; then
39559   eval "$as_ac_var=yes"
39560 else
39561   echo "$as_me: failed program was:" >&5
39562 sed 's/^/| /' conftest.$ac_ext >&5
39563
39564         eval "$as_ac_var=no"
39565 fi
39566
39567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39568       conftest$ac_exeext conftest.$ac_ext
39569 fi
39570 ac_res=`eval echo '${'$as_ac_var'}'`
39571                { echo "$as_me:$LINENO: result: $ac_res" >&5
39572 echo "${ECHO_T}$ac_res" >&6; }
39573 if test `eval echo '${'$as_ac_var'}'` = yes; then
39574   cat >>confdefs.h <<_ACEOF
39575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39576 _ACEOF
39577
39578 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39579 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39580 if test "${ac_cv_func__doprnt+set}" = set; then
39581   echo $ECHO_N "(cached) $ECHO_C" >&6
39582 else
39583   cat >conftest.$ac_ext <<_ACEOF
39584 /* confdefs.h.  */
39585 _ACEOF
39586 cat confdefs.h >>conftest.$ac_ext
39587 cat >>conftest.$ac_ext <<_ACEOF
39588 /* end confdefs.h.  */
39589 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39590    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39591 #define _doprnt innocuous__doprnt
39592
39593 /* System header to define __stub macros and hopefully few prototypes,
39594     which can conflict with char _doprnt (); below.
39595     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39596     <limits.h> exists even on freestanding compilers.  */
39597
39598 #ifdef __STDC__
39599 # include <limits.h>
39600 #else
39601 # include <assert.h>
39602 #endif
39603
39604 #undef _doprnt
39605
39606 /* Override any GCC internal prototype to avoid an error.
39607    Use char because int might match the return type of a GCC
39608    builtin and then its argument prototype would still apply.  */
39609 #ifdef __cplusplus
39610 extern "C"
39611 #endif
39612 char _doprnt ();
39613 /* The GNU C library defines this for functions which it implements
39614     to always fail with ENOSYS.  Some functions are actually named
39615     something starting with __ and the normal name is an alias.  */
39616 #if defined __stub__doprnt || defined __stub____doprnt
39617 choke me
39618 #endif
39619
39620 int
39621 main ()
39622 {
39623 return _doprnt ();
39624   ;
39625   return 0;
39626 }
39627 _ACEOF
39628 rm -f conftest.$ac_objext conftest$ac_exeext
39629 if { (ac_try="$ac_link"
39630 case "(($ac_try" in
39631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39632   *) ac_try_echo=$ac_try;;
39633 esac
39634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39635   (eval "$ac_link") 2>conftest.er1
39636   ac_status=$?
39637   grep -v '^ *+' conftest.er1 >conftest.err
39638   rm -f conftest.er1
39639   cat conftest.err >&5
39640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39641   (exit $ac_status); } && {
39642          test -z "$ac_c_werror_flag" ||
39643          test ! -s conftest.err
39644        } && test -s conftest$ac_exeext &&
39645        $as_test_x conftest$ac_exeext; then
39646   ac_cv_func__doprnt=yes
39647 else
39648   echo "$as_me: failed program was:" >&5
39649 sed 's/^/| /' conftest.$ac_ext >&5
39650
39651         ac_cv_func__doprnt=no
39652 fi
39653
39654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39655       conftest$ac_exeext conftest.$ac_ext
39656 fi
39657 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39658 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39659 if test $ac_cv_func__doprnt = yes; then
39660
39661 cat >>confdefs.h <<\_ACEOF
39662 #define HAVE_DOPRNT 1
39663 _ACEOF
39664
39665 fi
39666
39667 fi
39668 done
39669
39670
39671 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39672 # for constant arguments.  Useless!
39673 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39674 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39675 if test "${ac_cv_working_alloca_h+set}" = set; then
39676   echo $ECHO_N "(cached) $ECHO_C" >&6
39677 else
39678   cat >conftest.$ac_ext <<_ACEOF
39679 /* confdefs.h.  */
39680 _ACEOF
39681 cat confdefs.h >>conftest.$ac_ext
39682 cat >>conftest.$ac_ext <<_ACEOF
39683 /* end confdefs.h.  */
39684 #include <alloca.h>
39685 int
39686 main ()
39687 {
39688 char *p = (char *) alloca (2 * sizeof (int));
39689                           if (p) return 0;
39690   ;
39691   return 0;
39692 }
39693 _ACEOF
39694 rm -f conftest.$ac_objext conftest$ac_exeext
39695 if { (ac_try="$ac_link"
39696 case "(($ac_try" in
39697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39698   *) ac_try_echo=$ac_try;;
39699 esac
39700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39701   (eval "$ac_link") 2>conftest.er1
39702   ac_status=$?
39703   grep -v '^ *+' conftest.er1 >conftest.err
39704   rm -f conftest.er1
39705   cat conftest.err >&5
39706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39707   (exit $ac_status); } && {
39708          test -z "$ac_c_werror_flag" ||
39709          test ! -s conftest.err
39710        } && test -s conftest$ac_exeext &&
39711        $as_test_x conftest$ac_exeext; then
39712   ac_cv_working_alloca_h=yes
39713 else
39714   echo "$as_me: failed program was:" >&5
39715 sed 's/^/| /' conftest.$ac_ext >&5
39716
39717         ac_cv_working_alloca_h=no
39718 fi
39719
39720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39721       conftest$ac_exeext conftest.$ac_ext
39722 fi
39723 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39724 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39725 if test $ac_cv_working_alloca_h = yes; then
39726
39727 cat >>confdefs.h <<\_ACEOF
39728 #define HAVE_ALLOCA_H 1
39729 _ACEOF
39730
39731 fi
39732
39733 { echo "$as_me:$LINENO: checking for alloca" >&5
39734 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39735 if test "${ac_cv_func_alloca_works+set}" = set; then
39736   echo $ECHO_N "(cached) $ECHO_C" >&6
39737 else
39738   cat >conftest.$ac_ext <<_ACEOF
39739 /* confdefs.h.  */
39740 _ACEOF
39741 cat confdefs.h >>conftest.$ac_ext
39742 cat >>conftest.$ac_ext <<_ACEOF
39743 /* end confdefs.h.  */
39744 #ifdef __GNUC__
39745 # define alloca __builtin_alloca
39746 #else
39747 # ifdef _MSC_VER
39748 #  include <malloc.h>
39749 #  define alloca _alloca
39750 # else
39751 #  ifdef HAVE_ALLOCA_H
39752 #   include <alloca.h>
39753 #  else
39754 #   ifdef _AIX
39755  #pragma alloca
39756 #   else
39757 #    ifndef alloca /* predefined by HP cc +Olibcalls */
39758 char *alloca ();
39759 #    endif
39760 #   endif
39761 #  endif
39762 # endif
39763 #endif
39764
39765 int
39766 main ()
39767 {
39768 char *p = (char *) alloca (1);
39769                                     if (p) return 0;
39770   ;
39771   return 0;
39772 }
39773 _ACEOF
39774 rm -f conftest.$ac_objext conftest$ac_exeext
39775 if { (ac_try="$ac_link"
39776 case "(($ac_try" in
39777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39778   *) ac_try_echo=$ac_try;;
39779 esac
39780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39781   (eval "$ac_link") 2>conftest.er1
39782   ac_status=$?
39783   grep -v '^ *+' conftest.er1 >conftest.err
39784   rm -f conftest.er1
39785   cat conftest.err >&5
39786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39787   (exit $ac_status); } && {
39788          test -z "$ac_c_werror_flag" ||
39789          test ! -s conftest.err
39790        } && test -s conftest$ac_exeext &&
39791        $as_test_x conftest$ac_exeext; then
39792   ac_cv_func_alloca_works=yes
39793 else
39794   echo "$as_me: failed program was:" >&5
39795 sed 's/^/| /' conftest.$ac_ext >&5
39796
39797         ac_cv_func_alloca_works=no
39798 fi
39799
39800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39801       conftest$ac_exeext conftest.$ac_ext
39802 fi
39803 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39804 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39805
39806 if test $ac_cv_func_alloca_works = yes; then
39807
39808 cat >>confdefs.h <<\_ACEOF
39809 #define HAVE_ALLOCA 1
39810 _ACEOF
39811
39812 else
39813   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39814 # that cause trouble.  Some versions do not even contain alloca or
39815 # contain a buggy version.  If you still want to use their alloca,
39816 # use ar to extract alloca.o from them instead of compiling alloca.c.
39817
39818 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39819
39820 cat >>confdefs.h <<\_ACEOF
39821 #define C_ALLOCA 1
39822 _ACEOF
39823
39824
39825 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39826 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39827 if test "${ac_cv_os_cray+set}" = set; then
39828   echo $ECHO_N "(cached) $ECHO_C" >&6
39829 else
39830   cat >conftest.$ac_ext <<_ACEOF
39831 /* confdefs.h.  */
39832 _ACEOF
39833 cat confdefs.h >>conftest.$ac_ext
39834 cat >>conftest.$ac_ext <<_ACEOF
39835 /* end confdefs.h.  */
39836 #if defined CRAY && ! defined CRAY2
39837 webecray
39838 #else
39839 wenotbecray
39840 #endif
39841
39842 _ACEOF
39843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39844   $EGREP "webecray" >/dev/null 2>&1; then
39845   ac_cv_os_cray=yes
39846 else
39847   ac_cv_os_cray=no
39848 fi
39849 rm -f conftest*
39850
39851 fi
39852 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39853 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39854 if test $ac_cv_os_cray = yes; then
39855   for ac_func in _getb67 GETB67 getb67; do
39856     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39857 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39859 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39860   echo $ECHO_N "(cached) $ECHO_C" >&6
39861 else
39862   cat >conftest.$ac_ext <<_ACEOF
39863 /* confdefs.h.  */
39864 _ACEOF
39865 cat confdefs.h >>conftest.$ac_ext
39866 cat >>conftest.$ac_ext <<_ACEOF
39867 /* end confdefs.h.  */
39868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39869    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39870 #define $ac_func innocuous_$ac_func
39871
39872 /* System header to define __stub macros and hopefully few prototypes,
39873     which can conflict with char $ac_func (); below.
39874     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39875     <limits.h> exists even on freestanding compilers.  */
39876
39877 #ifdef __STDC__
39878 # include <limits.h>
39879 #else
39880 # include <assert.h>
39881 #endif
39882
39883 #undef $ac_func
39884
39885 /* Override any GCC internal prototype to avoid an error.
39886    Use char because int might match the return type of a GCC
39887    builtin and then its argument prototype would still apply.  */
39888 #ifdef __cplusplus
39889 extern "C"
39890 #endif
39891 char $ac_func ();
39892 /* The GNU C library defines this for functions which it implements
39893     to always fail with ENOSYS.  Some functions are actually named
39894     something starting with __ and the normal name is an alias.  */
39895 #if defined __stub_$ac_func || defined __stub___$ac_func
39896 choke me
39897 #endif
39898
39899 int
39900 main ()
39901 {
39902 return $ac_func ();
39903   ;
39904   return 0;
39905 }
39906 _ACEOF
39907 rm -f conftest.$ac_objext conftest$ac_exeext
39908 if { (ac_try="$ac_link"
39909 case "(($ac_try" in
39910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39911   *) ac_try_echo=$ac_try;;
39912 esac
39913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39914   (eval "$ac_link") 2>conftest.er1
39915   ac_status=$?
39916   grep -v '^ *+' conftest.er1 >conftest.err
39917   rm -f conftest.er1
39918   cat conftest.err >&5
39919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39920   (exit $ac_status); } && {
39921          test -z "$ac_c_werror_flag" ||
39922          test ! -s conftest.err
39923        } && test -s conftest$ac_exeext &&
39924        $as_test_x conftest$ac_exeext; then
39925   eval "$as_ac_var=yes"
39926 else
39927   echo "$as_me: failed program was:" >&5
39928 sed 's/^/| /' conftest.$ac_ext >&5
39929
39930         eval "$as_ac_var=no"
39931 fi
39932
39933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39934       conftest$ac_exeext conftest.$ac_ext
39935 fi
39936 ac_res=`eval echo '${'$as_ac_var'}'`
39937                { echo "$as_me:$LINENO: result: $ac_res" >&5
39938 echo "${ECHO_T}$ac_res" >&6; }
39939 if test `eval echo '${'$as_ac_var'}'` = yes; then
39940
39941 cat >>confdefs.h <<_ACEOF
39942 #define CRAY_STACKSEG_END $ac_func
39943 _ACEOF
39944
39945     break
39946 fi
39947
39948   done
39949 fi
39950
39951 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39952 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39953 if test "${ac_cv_c_stack_direction+set}" = set; then
39954   echo $ECHO_N "(cached) $ECHO_C" >&6
39955 else
39956   if test "$cross_compiling" = yes; then
39957   ac_cv_c_stack_direction=0
39958 else
39959   cat >conftest.$ac_ext <<_ACEOF
39960 /* confdefs.h.  */
39961 _ACEOF
39962 cat confdefs.h >>conftest.$ac_ext
39963 cat >>conftest.$ac_ext <<_ACEOF
39964 /* end confdefs.h.  */
39965 $ac_includes_default
39966 int
39967 find_stack_direction ()
39968 {
39969   static char *addr = 0;
39970   auto char dummy;
39971   if (addr == 0)
39972     {
39973       addr = &dummy;
39974       return find_stack_direction ();
39975     }
39976   else
39977     return (&dummy > addr) ? 1 : -1;
39978 }
39979
39980 int
39981 main ()
39982 {
39983   return find_stack_direction () < 0;
39984 }
39985 _ACEOF
39986 rm -f conftest$ac_exeext
39987 if { (ac_try="$ac_link"
39988 case "(($ac_try" in
39989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39990   *) ac_try_echo=$ac_try;;
39991 esac
39992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39993   (eval "$ac_link") 2>&5
39994   ac_status=$?
39995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39996   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39997   { (case "(($ac_try" in
39998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39999   *) ac_try_echo=$ac_try;;
40000 esac
40001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40002   (eval "$ac_try") 2>&5
40003   ac_status=$?
40004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40005   (exit $ac_status); }; }; then
40006   ac_cv_c_stack_direction=1
40007 else
40008   echo "$as_me: program exited with status $ac_status" >&5
40009 echo "$as_me: failed program was:" >&5
40010 sed 's/^/| /' conftest.$ac_ext >&5
40011
40012 ( exit $ac_status )
40013 ac_cv_c_stack_direction=-1
40014 fi
40015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40016 fi
40017
40018
40019 fi
40020 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40021 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40022
40023 cat >>confdefs.h <<_ACEOF
40024 #define STACK_DIRECTION $ac_cv_c_stack_direction
40025 _ACEOF
40026
40027
40028 fi
40029
40030 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40031 # -lseq on Dynix/PTX, -lgen on Unixware.
40032 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40033 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40034 if test "${ac_cv_search_getmntent+set}" = set; then
40035   echo $ECHO_N "(cached) $ECHO_C" >&6
40036 else
40037   ac_func_search_save_LIBS=$LIBS
40038 cat >conftest.$ac_ext <<_ACEOF
40039 /* confdefs.h.  */
40040 _ACEOF
40041 cat confdefs.h >>conftest.$ac_ext
40042 cat >>conftest.$ac_ext <<_ACEOF
40043 /* end confdefs.h.  */
40044
40045 /* Override any GCC internal prototype to avoid an error.
40046    Use char because int might match the return type of a GCC
40047    builtin and then its argument prototype would still apply.  */
40048 #ifdef __cplusplus
40049 extern "C"
40050 #endif
40051 char getmntent ();
40052 int
40053 main ()
40054 {
40055 return getmntent ();
40056   ;
40057   return 0;
40058 }
40059 _ACEOF
40060 for ac_lib in '' sun seq gen; do
40061   if test -z "$ac_lib"; then
40062     ac_res="none required"
40063   else
40064     ac_res=-l$ac_lib
40065     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
40066   fi
40067   rm -f conftest.$ac_objext conftest$ac_exeext
40068 if { (ac_try="$ac_link"
40069 case "(($ac_try" in
40070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40071   *) ac_try_echo=$ac_try;;
40072 esac
40073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40074   (eval "$ac_link") 2>conftest.er1
40075   ac_status=$?
40076   grep -v '^ *+' conftest.er1 >conftest.err
40077   rm -f conftest.er1
40078   cat conftest.err >&5
40079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40080   (exit $ac_status); } && {
40081          test -z "$ac_c_werror_flag" ||
40082          test ! -s conftest.err
40083        } && test -s conftest$ac_exeext &&
40084        $as_test_x conftest$ac_exeext; then
40085   ac_cv_search_getmntent=$ac_res
40086 else
40087   echo "$as_me: failed program was:" >&5
40088 sed 's/^/| /' conftest.$ac_ext >&5
40089
40090
40091 fi
40092
40093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40094       conftest$ac_exeext
40095   if test "${ac_cv_search_getmntent+set}" = set; then
40096   break
40097 fi
40098 done
40099 if test "${ac_cv_search_getmntent+set}" = set; then
40100   :
40101 else
40102   ac_cv_search_getmntent=no
40103 fi
40104 rm conftest.$ac_ext
40105 LIBS=$ac_func_search_save_LIBS
40106 fi
40107 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40108 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40109 ac_res=$ac_cv_search_getmntent
40110 if test "$ac_res" != no; then
40111   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40112   ac_cv_func_getmntent=yes
40113
40114 cat >>confdefs.h <<\_ACEOF
40115 #define HAVE_GETMNTENT 1
40116 _ACEOF
40117
40118 else
40119   ac_cv_func_getmntent=no
40120 fi
40121
40122
40123 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40124 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40125 if test "${ac_cv_func_closedir_void+set}" = set; then
40126   echo $ECHO_N "(cached) $ECHO_C" >&6
40127 else
40128   if test "$cross_compiling" = yes; then
40129   ac_cv_func_closedir_void=yes
40130 else
40131   cat >conftest.$ac_ext <<_ACEOF
40132 /* confdefs.h.  */
40133 _ACEOF
40134 cat confdefs.h >>conftest.$ac_ext
40135 cat >>conftest.$ac_ext <<_ACEOF
40136 /* end confdefs.h.  */
40137 $ac_includes_default
40138 #include <$ac_header_dirent>
40139 #ifndef __cplusplus
40140 int closedir ();
40141 #endif
40142
40143 int
40144 main ()
40145 {
40146 return closedir (opendir (".")) != 0;
40147   ;
40148   return 0;
40149 }
40150 _ACEOF
40151 rm -f conftest$ac_exeext
40152 if { (ac_try="$ac_link"
40153 case "(($ac_try" in
40154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40155   *) ac_try_echo=$ac_try;;
40156 esac
40157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40158   (eval "$ac_link") 2>&5
40159   ac_status=$?
40160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40161   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40162   { (case "(($ac_try" in
40163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40164   *) ac_try_echo=$ac_try;;
40165 esac
40166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40167   (eval "$ac_try") 2>&5
40168   ac_status=$?
40169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40170   (exit $ac_status); }; }; then
40171   ac_cv_func_closedir_void=no
40172 else
40173   echo "$as_me: program exited with status $ac_status" >&5
40174 echo "$as_me: failed program was:" >&5
40175 sed 's/^/| /' conftest.$ac_ext >&5
40176
40177 ( exit $ac_status )
40178 ac_cv_func_closedir_void=yes
40179 fi
40180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40181 fi
40182
40183
40184 fi
40185 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40186 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40187 if test $ac_cv_func_closedir_void = yes; then
40188
40189 cat >>confdefs.h <<\_ACEOF
40190 #define CLOSEDIR_VOID 1
40191 _ACEOF
40192
40193 fi
40194
40195 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40196 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40197 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40198   echo $ECHO_N "(cached) $ECHO_C" >&6
40199 else
40200   if test "$cross_compiling" = yes; then
40201   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40202 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40203    { (exit 1); exit 1; }; }
40204 else
40205   cat >conftest.$ac_ext <<_ACEOF
40206 /* confdefs.h.  */
40207 _ACEOF
40208 cat confdefs.h >>conftest.$ac_ext
40209 cat >>conftest.$ac_ext <<_ACEOF
40210 /* end confdefs.h.  */
40211 $ac_includes_default
40212 int
40213 main ()
40214 {
40215 /* If this system has a BSD-style setpgrp which takes arguments,
40216   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40217   exit successfully. */
40218   return setpgrp (1,1) != -1;
40219   ;
40220   return 0;
40221 }
40222 _ACEOF
40223 rm -f conftest$ac_exeext
40224 if { (ac_try="$ac_link"
40225 case "(($ac_try" in
40226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40227   *) ac_try_echo=$ac_try;;
40228 esac
40229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40230   (eval "$ac_link") 2>&5
40231   ac_status=$?
40232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40233   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40234   { (case "(($ac_try" in
40235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40236   *) ac_try_echo=$ac_try;;
40237 esac
40238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40239   (eval "$ac_try") 2>&5
40240   ac_status=$?
40241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40242   (exit $ac_status); }; }; then
40243   ac_cv_func_setpgrp_void=no
40244 else
40245   echo "$as_me: program exited with status $ac_status" >&5
40246 echo "$as_me: failed program was:" >&5
40247 sed 's/^/| /' conftest.$ac_ext >&5
40248
40249 ( exit $ac_status )
40250 ac_cv_func_setpgrp_void=yes
40251 fi
40252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40253 fi
40254
40255
40256 fi
40257 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40258 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40259 if test $ac_cv_func_setpgrp_void = yes; then
40260
40261 cat >>confdefs.h <<\_ACEOF
40262 #define SETPGRP_VOID 1
40263 _ACEOF
40264
40265 fi
40266             # AC_FUNC_FNMATCH    dnl use local version
40267
40268 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40269 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40270 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40271   echo $ECHO_N "(cached) $ECHO_C" >&6
40272 else
40273   ac_check_lib_save_LIBS=$LIBS
40274 LIBS="-lintl  $LIBS"
40275 cat >conftest.$ac_ext <<_ACEOF
40276 /* confdefs.h.  */
40277 _ACEOF
40278 cat confdefs.h >>conftest.$ac_ext
40279 cat >>conftest.$ac_ext <<_ACEOF
40280 /* end confdefs.h.  */
40281
40282 /* Override any GCC internal prototype to avoid an error.
40283    Use char because int might match the return type of a GCC
40284    builtin and then its argument prototype would still apply.  */
40285 #ifdef __cplusplus
40286 extern "C"
40287 #endif
40288 char gettext ();
40289 int
40290 main ()
40291 {
40292 return gettext ();
40293   ;
40294   return 0;
40295 }
40296 _ACEOF
40297 rm -f conftest.$ac_objext conftest$ac_exeext
40298 if { (ac_try="$ac_link"
40299 case "(($ac_try" in
40300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40301   *) ac_try_echo=$ac_try;;
40302 esac
40303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40304   (eval "$ac_link") 2>conftest.er1
40305   ac_status=$?
40306   grep -v '^ *+' conftest.er1 >conftest.err
40307   rm -f conftest.er1
40308   cat conftest.err >&5
40309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40310   (exit $ac_status); } && {
40311          test -z "$ac_c_werror_flag" ||
40312          test ! -s conftest.err
40313        } && test -s conftest$ac_exeext &&
40314        $as_test_x conftest$ac_exeext; then
40315   ac_cv_lib_intl_gettext=yes
40316 else
40317   echo "$as_me: failed program was:" >&5
40318 sed 's/^/| /' conftest.$ac_ext >&5
40319
40320         ac_cv_lib_intl_gettext=no
40321 fi
40322
40323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40324       conftest$ac_exeext conftest.$ac_ext
40325 LIBS=$ac_check_lib_save_LIBS
40326 fi
40327 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40328 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40329 if test $ac_cv_lib_intl_gettext = yes; then
40330   LIBS="$LIBS -lintl"
40331 fi
40332
40333
40334
40335 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40336 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40337 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40338   echo $ECHO_N "(cached) $ECHO_C" >&6
40339 else
40340   ac_check_lib_save_LIBS=$LIBS
40341 LIBS="-lsun  $LIBS"
40342 cat >conftest.$ac_ext <<_ACEOF
40343 /* confdefs.h.  */
40344 _ACEOF
40345 cat confdefs.h >>conftest.$ac_ext
40346 cat >>conftest.$ac_ext <<_ACEOF
40347 /* end confdefs.h.  */
40348
40349 /* Override any GCC internal prototype to avoid an error.
40350    Use char because int might match the return type of a GCC
40351    builtin and then its argument prototype would still apply.  */
40352 #ifdef __cplusplus
40353 extern "C"
40354 #endif
40355 char getpwnam ();
40356 int
40357 main ()
40358 {
40359 return getpwnam ();
40360   ;
40361   return 0;
40362 }
40363 _ACEOF
40364 rm -f conftest.$ac_objext conftest$ac_exeext
40365 if { (ac_try="$ac_link"
40366 case "(($ac_try" in
40367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40368   *) ac_try_echo=$ac_try;;
40369 esac
40370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40371   (eval "$ac_link") 2>conftest.er1
40372   ac_status=$?
40373   grep -v '^ *+' conftest.er1 >conftest.err
40374   rm -f conftest.er1
40375   cat conftest.err >&5
40376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40377   (exit $ac_status); } && {
40378          test -z "$ac_c_werror_flag" ||
40379          test ! -s conftest.err
40380        } && test -s conftest$ac_exeext &&
40381        $as_test_x conftest$ac_exeext; then
40382   ac_cv_lib_sun_getpwnam=yes
40383 else
40384   echo "$as_me: failed program was:" >&5
40385 sed 's/^/| /' conftest.$ac_ext >&5
40386
40387         ac_cv_lib_sun_getpwnam=no
40388 fi
40389
40390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40391       conftest$ac_exeext conftest.$ac_ext
40392 LIBS=$ac_check_lib_save_LIBS
40393 fi
40394 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40395 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40396 if test $ac_cv_lib_sun_getpwnam = yes; then
40397   cat >>confdefs.h <<_ACEOF
40398 #define HAVE_LIBSUN 1
40399 _ACEOF
40400
40401   LIBS="-lsun $LIBS"
40402
40403 fi
40404
40405
40406
40407 for ac_header in zlib.h
40408 do
40409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40411   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40414   echo $ECHO_N "(cached) $ECHO_C" >&6
40415 fi
40416 ac_res=`eval echo '${'$as_ac_Header'}'`
40417                { echo "$as_me:$LINENO: result: $ac_res" >&5
40418 echo "${ECHO_T}$ac_res" >&6; }
40419 else
40420   # Is the header compilable?
40421 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40423 cat >conftest.$ac_ext <<_ACEOF
40424 /* confdefs.h.  */
40425 _ACEOF
40426 cat confdefs.h >>conftest.$ac_ext
40427 cat >>conftest.$ac_ext <<_ACEOF
40428 /* end confdefs.h.  */
40429 $ac_includes_default
40430 #include <$ac_header>
40431 _ACEOF
40432 rm -f conftest.$ac_objext
40433 if { (ac_try="$ac_compile"
40434 case "(($ac_try" in
40435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40436   *) ac_try_echo=$ac_try;;
40437 esac
40438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40439   (eval "$ac_compile") 2>conftest.er1
40440   ac_status=$?
40441   grep -v '^ *+' conftest.er1 >conftest.err
40442   rm -f conftest.er1
40443   cat conftest.err >&5
40444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40445   (exit $ac_status); } && {
40446          test -z "$ac_c_werror_flag" ||
40447          test ! -s conftest.err
40448        } && test -s conftest.$ac_objext; then
40449   ac_header_compiler=yes
40450 else
40451   echo "$as_me: failed program was:" >&5
40452 sed 's/^/| /' conftest.$ac_ext >&5
40453
40454         ac_header_compiler=no
40455 fi
40456
40457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40458 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40459 echo "${ECHO_T}$ac_header_compiler" >&6; }
40460
40461 # Is the header present?
40462 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 #include <$ac_header>
40471 _ACEOF
40472 if { (ac_try="$ac_cpp conftest.$ac_ext"
40473 case "(($ac_try" in
40474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40475   *) ac_try_echo=$ac_try;;
40476 esac
40477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40478   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40479   ac_status=$?
40480   grep -v '^ *+' conftest.er1 >conftest.err
40481   rm -f conftest.er1
40482   cat conftest.err >&5
40483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40484   (exit $ac_status); } >/dev/null && {
40485          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40486          test ! -s conftest.err
40487        }; then
40488   ac_header_preproc=yes
40489 else
40490   echo "$as_me: failed program was:" >&5
40491 sed 's/^/| /' conftest.$ac_ext >&5
40492
40493   ac_header_preproc=no
40494 fi
40495
40496 rm -f conftest.err conftest.$ac_ext
40497 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40498 echo "${ECHO_T}$ac_header_preproc" >&6; }
40499
40500 # So?  What about this header?
40501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40502   yes:no: )
40503     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40505     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40507     ac_header_preproc=yes
40508     ;;
40509   no:yes:* )
40510     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40512     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40513 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40514     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40515 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40516     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40517 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40518     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40520     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40521 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40522
40523     ;;
40524 esac
40525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40528   echo $ECHO_N "(cached) $ECHO_C" >&6
40529 else
40530   eval "$as_ac_Header=\$ac_header_preproc"
40531 fi
40532 ac_res=`eval echo '${'$as_ac_Header'}'`
40533                { echo "$as_me:$LINENO: result: $ac_res" >&5
40534 echo "${ECHO_T}$ac_res" >&6; }
40535
40536 fi
40537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40538   cat >>confdefs.h <<_ACEOF
40539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40540 _ACEOF
40541
40542 fi
40543
40544 done
40545
40546 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40547 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40548 if test "${ac_cv_lib_z_deflate+set}" = set; then
40549   echo $ECHO_N "(cached) $ECHO_C" >&6
40550 else
40551   ac_check_lib_save_LIBS=$LIBS
40552 LIBS="-lz  $LIBS"
40553 cat >conftest.$ac_ext <<_ACEOF
40554 /* confdefs.h.  */
40555 _ACEOF
40556 cat confdefs.h >>conftest.$ac_ext
40557 cat >>conftest.$ac_ext <<_ACEOF
40558 /* end confdefs.h.  */
40559
40560 /* Override any GCC internal prototype to avoid an error.
40561    Use char because int might match the return type of a GCC
40562    builtin and then its argument prototype would still apply.  */
40563 #ifdef __cplusplus
40564 extern "C"
40565 #endif
40566 char deflate ();
40567 int
40568 main ()
40569 {
40570 return deflate ();
40571   ;
40572   return 0;
40573 }
40574 _ACEOF
40575 rm -f conftest.$ac_objext conftest$ac_exeext
40576 if { (ac_try="$ac_link"
40577 case "(($ac_try" in
40578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40579   *) ac_try_echo=$ac_try;;
40580 esac
40581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40582   (eval "$ac_link") 2>conftest.er1
40583   ac_status=$?
40584   grep -v '^ *+' conftest.er1 >conftest.err
40585   rm -f conftest.er1
40586   cat conftest.err >&5
40587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40588   (exit $ac_status); } && {
40589          test -z "$ac_c_werror_flag" ||
40590          test ! -s conftest.err
40591        } && test -s conftest$ac_exeext &&
40592        $as_test_x conftest$ac_exeext; then
40593   ac_cv_lib_z_deflate=yes
40594 else
40595   echo "$as_me: failed program was:" >&5
40596 sed 's/^/| /' conftest.$ac_ext >&5
40597
40598         ac_cv_lib_z_deflate=no
40599 fi
40600
40601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40602       conftest$ac_exeext conftest.$ac_ext
40603 LIBS=$ac_check_lib_save_LIBS
40604 fi
40605 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40606 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40607 if test $ac_cv_lib_z_deflate = yes; then
40608   FDLIBS="-lz"
40609 fi
40610
40611 have_zlib=no
40612 if test x$FDLIBS = x-lz; then
40613    cat >>confdefs.h <<\_ACEOF
40614 #define HAVE_LIBZ 1
40615 _ACEOF
40616
40617    have_zlib=yes
40618 fi
40619
40620 support_acl=auto
40621 # Check whether --enable-acl was given.
40622 if test "${enable_acl+set}" = set; then
40623   enableval=$enable_acl;
40624        if test x$enableval = xyes; then
40625           support_acl=yes
40626        elif test x$enableval = xno; then
40627           support_acl=no
40628        fi
40629
40630
40631 fi
40632
40633
40634 have_acl=no
40635 have_extended_acl=no
40636 if test x$support_acl = xyes -o x$support_acl = xauto; then
40637    if test "${ac_cv_header_sys_acl_h+set}" = set; then
40638   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40639 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40640 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40641   echo $ECHO_N "(cached) $ECHO_C" >&6
40642 fi
40643 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40644 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40645 else
40646   # Is the header compilable?
40647 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40648 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40649 cat >conftest.$ac_ext <<_ACEOF
40650 /* confdefs.h.  */
40651 _ACEOF
40652 cat confdefs.h >>conftest.$ac_ext
40653 cat >>conftest.$ac_ext <<_ACEOF
40654 /* end confdefs.h.  */
40655 $ac_includes_default
40656 #include <sys/acl.h>
40657 _ACEOF
40658 rm -f conftest.$ac_objext
40659 if { (ac_try="$ac_compile"
40660 case "(($ac_try" in
40661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40662   *) ac_try_echo=$ac_try;;
40663 esac
40664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40665   (eval "$ac_compile") 2>conftest.er1
40666   ac_status=$?
40667   grep -v '^ *+' conftest.er1 >conftest.err
40668   rm -f conftest.er1
40669   cat conftest.err >&5
40670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40671   (exit $ac_status); } && {
40672          test -z "$ac_c_werror_flag" ||
40673          test ! -s conftest.err
40674        } && test -s conftest.$ac_objext; then
40675   ac_header_compiler=yes
40676 else
40677   echo "$as_me: failed program was:" >&5
40678 sed 's/^/| /' conftest.$ac_ext >&5
40679
40680         ac_header_compiler=no
40681 fi
40682
40683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40684 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40685 echo "${ECHO_T}$ac_header_compiler" >&6; }
40686
40687 # Is the header present?
40688 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40689 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40690 cat >conftest.$ac_ext <<_ACEOF
40691 /* confdefs.h.  */
40692 _ACEOF
40693 cat confdefs.h >>conftest.$ac_ext
40694 cat >>conftest.$ac_ext <<_ACEOF
40695 /* end confdefs.h.  */
40696 #include <sys/acl.h>
40697 _ACEOF
40698 if { (ac_try="$ac_cpp conftest.$ac_ext"
40699 case "(($ac_try" in
40700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40701   *) ac_try_echo=$ac_try;;
40702 esac
40703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40704   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40705   ac_status=$?
40706   grep -v '^ *+' conftest.er1 >conftest.err
40707   rm -f conftest.er1
40708   cat conftest.err >&5
40709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40710   (exit $ac_status); } >/dev/null && {
40711          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40712          test ! -s conftest.err
40713        }; then
40714   ac_header_preproc=yes
40715 else
40716   echo "$as_me: failed program was:" >&5
40717 sed 's/^/| /' conftest.$ac_ext >&5
40718
40719   ac_header_preproc=no
40720 fi
40721
40722 rm -f conftest.err conftest.$ac_ext
40723 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40724 echo "${ECHO_T}$ac_header_preproc" >&6; }
40725
40726 # So?  What about this header?
40727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40728   yes:no: )
40729     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40730 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40731     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40732 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40733     ac_header_preproc=yes
40734     ;;
40735   no:yes:* )
40736     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40737 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40738     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
40739 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
40740     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40741 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40742     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
40743 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
40744     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40745 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40746     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40747 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40748
40749     ;;
40750 esac
40751 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40752 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40753 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40754   echo $ECHO_N "(cached) $ECHO_C" >&6
40755 else
40756   ac_cv_header_sys_acl_h=$ac_header_preproc
40757 fi
40758 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40759 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40760
40761 fi
40762 if test $ac_cv_header_sys_acl_h = yes; then
40763
40764 cat >>confdefs.h <<\_ACEOF
40765 #define HAVE_SYS_ACL_H 1
40766 _ACEOF
40767
40768 fi
40769
40770
40771    { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40772 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40773 if test "${ac_cv_func_acl_get_file+set}" = set; then
40774   echo $ECHO_N "(cached) $ECHO_C" >&6
40775 else
40776   cat >conftest.$ac_ext <<_ACEOF
40777 /* confdefs.h.  */
40778 _ACEOF
40779 cat confdefs.h >>conftest.$ac_ext
40780 cat >>conftest.$ac_ext <<_ACEOF
40781 /* end confdefs.h.  */
40782 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40783    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40784 #define acl_get_file innocuous_acl_get_file
40785
40786 /* System header to define __stub macros and hopefully few prototypes,
40787     which can conflict with char acl_get_file (); below.
40788     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40789     <limits.h> exists even on freestanding compilers.  */
40790
40791 #ifdef __STDC__
40792 # include <limits.h>
40793 #else
40794 # include <assert.h>
40795 #endif
40796
40797 #undef acl_get_file
40798
40799 /* Override any GCC internal prototype to avoid an error.
40800    Use char because int might match the return type of a GCC
40801    builtin and then its argument prototype would still apply.  */
40802 #ifdef __cplusplus
40803 extern "C"
40804 #endif
40805 char acl_get_file ();
40806 /* The GNU C library defines this for functions which it implements
40807     to always fail with ENOSYS.  Some functions are actually named
40808     something starting with __ and the normal name is an alias.  */
40809 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40810 choke me
40811 #endif
40812
40813 int
40814 main ()
40815 {
40816 return acl_get_file ();
40817   ;
40818   return 0;
40819 }
40820 _ACEOF
40821 rm -f conftest.$ac_objext conftest$ac_exeext
40822 if { (ac_try="$ac_link"
40823 case "(($ac_try" in
40824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40825   *) ac_try_echo=$ac_try;;
40826 esac
40827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40828   (eval "$ac_link") 2>conftest.er1
40829   ac_status=$?
40830   grep -v '^ *+' conftest.er1 >conftest.err
40831   rm -f conftest.er1
40832   cat conftest.err >&5
40833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40834   (exit $ac_status); } && {
40835          test -z "$ac_c_werror_flag" ||
40836          test ! -s conftest.err
40837        } && test -s conftest$ac_exeext &&
40838        $as_test_x conftest$ac_exeext; then
40839   ac_cv_func_acl_get_file=yes
40840 else
40841   echo "$as_me: failed program was:" >&5
40842 sed 's/^/| /' conftest.$ac_ext >&5
40843
40844         ac_cv_func_acl_get_file=no
40845 fi
40846
40847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40848       conftest$ac_exeext conftest.$ac_ext
40849 fi
40850 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40851 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40852 if test $ac_cv_func_acl_get_file = yes; then
40853
40854           have_acl=yes
40855
40856 else
40857
40858           { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40859 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40860 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40861   echo $ECHO_N "(cached) $ECHO_C" >&6
40862 else
40863   ac_check_lib_save_LIBS=$LIBS
40864 LIBS="-lacl  $LIBS"
40865 cat >conftest.$ac_ext <<_ACEOF
40866 /* confdefs.h.  */
40867 _ACEOF
40868 cat confdefs.h >>conftest.$ac_ext
40869 cat >>conftest.$ac_ext <<_ACEOF
40870 /* end confdefs.h.  */
40871
40872 /* Override any GCC internal prototype to avoid an error.
40873    Use char because int might match the return type of a GCC
40874    builtin and then its argument prototype would still apply.  */
40875 #ifdef __cplusplus
40876 extern "C"
40877 #endif
40878 char acl_get_file ();
40879 int
40880 main ()
40881 {
40882 return acl_get_file ();
40883   ;
40884   return 0;
40885 }
40886 _ACEOF
40887 rm -f conftest.$ac_objext conftest$ac_exeext
40888 if { (ac_try="$ac_link"
40889 case "(($ac_try" in
40890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40891   *) ac_try_echo=$ac_try;;
40892 esac
40893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40894   (eval "$ac_link") 2>conftest.er1
40895   ac_status=$?
40896   grep -v '^ *+' conftest.er1 >conftest.err
40897   rm -f conftest.er1
40898   cat conftest.err >&5
40899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40900   (exit $ac_status); } && {
40901          test -z "$ac_c_werror_flag" ||
40902          test ! -s conftest.err
40903        } && test -s conftest$ac_exeext &&
40904        $as_test_x conftest$ac_exeext; then
40905   ac_cv_lib_acl_acl_get_file=yes
40906 else
40907   echo "$as_me: failed program was:" >&5
40908 sed 's/^/| /' conftest.$ac_ext >&5
40909
40910         ac_cv_lib_acl_acl_get_file=no
40911 fi
40912
40913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40914       conftest$ac_exeext conftest.$ac_ext
40915 LIBS=$ac_check_lib_save_LIBS
40916 fi
40917 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40918 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40919 if test $ac_cv_lib_acl_acl_get_file = yes; then
40920
40921                  have_acl=yes;
40922                  FDLIBS="-lacl $FDLIBS"
40923
40924 else
40925
40926                  { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
40927 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
40928 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
40929   echo $ECHO_N "(cached) $ECHO_C" >&6
40930 else
40931   ac_check_lib_save_LIBS=$LIBS
40932 LIBS="-lpacl  $LIBS"
40933 cat >conftest.$ac_ext <<_ACEOF
40934 /* confdefs.h.  */
40935 _ACEOF
40936 cat confdefs.h >>conftest.$ac_ext
40937 cat >>conftest.$ac_ext <<_ACEOF
40938 /* end confdefs.h.  */
40939
40940 /* Override any GCC internal prototype to avoid an error.
40941    Use char because int might match the return type of a GCC
40942    builtin and then its argument prototype would still apply.  */
40943 #ifdef __cplusplus
40944 extern "C"
40945 #endif
40946 char acl_get_file ();
40947 int
40948 main ()
40949 {
40950 return acl_get_file ();
40951   ;
40952   return 0;
40953 }
40954 _ACEOF
40955 rm -f conftest.$ac_objext conftest$ac_exeext
40956 if { (ac_try="$ac_link"
40957 case "(($ac_try" in
40958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40959   *) ac_try_echo=$ac_try;;
40960 esac
40961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40962   (eval "$ac_link") 2>conftest.er1
40963   ac_status=$?
40964   grep -v '^ *+' conftest.er1 >conftest.err
40965   rm -f conftest.er1
40966   cat conftest.err >&5
40967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40968   (exit $ac_status); } && {
40969          test -z "$ac_c_werror_flag" ||
40970          test ! -s conftest.err
40971        } && test -s conftest$ac_exeext &&
40972        $as_test_x conftest$ac_exeext; then
40973   ac_cv_lib_pacl_acl_get_file=yes
40974 else
40975   echo "$as_me: failed program was:" >&5
40976 sed 's/^/| /' conftest.$ac_ext >&5
40977
40978         ac_cv_lib_pacl_acl_get_file=no
40979 fi
40980
40981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40982       conftest$ac_exeext conftest.$ac_ext
40983 LIBS=$ac_check_lib_save_LIBS
40984 fi
40985 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
40986 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
40987 if test $ac_cv_lib_pacl_acl_get_file = yes; then
40988
40989                         have_acl=yes;
40990                         FDLIBS="-lpacl $FDLIBS"
40991
40992 else
40993
40994                         { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40995 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40996 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40997   echo $ECHO_N "(cached) $ECHO_C" >&6
40998 else
40999   ac_check_lib_save_LIBS=$LIBS
41000 LIBS="-lsec  $LIBS"
41001 cat >conftest.$ac_ext <<_ACEOF
41002 /* confdefs.h.  */
41003 _ACEOF
41004 cat confdefs.h >>conftest.$ac_ext
41005 cat >>conftest.$ac_ext <<_ACEOF
41006 /* end confdefs.h.  */
41007
41008 /* Override any GCC internal prototype to avoid an error.
41009    Use char because int might match the return type of a GCC
41010    builtin and then its argument prototype would still apply.  */
41011 #ifdef __cplusplus
41012 extern "C"
41013 #endif
41014 char acltotext ();
41015 int
41016 main ()
41017 {
41018 return acltotext ();
41019   ;
41020   return 0;
41021 }
41022 _ACEOF
41023 rm -f conftest.$ac_objext conftest$ac_exeext
41024 if { (ac_try="$ac_link"
41025 case "(($ac_try" in
41026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41027   *) ac_try_echo=$ac_try;;
41028 esac
41029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41030   (eval "$ac_link") 2>conftest.er1
41031   ac_status=$?
41032   grep -v '^ *+' conftest.er1 >conftest.err
41033   rm -f conftest.er1
41034   cat conftest.err >&5
41035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41036   (exit $ac_status); } && {
41037          test -z "$ac_c_werror_flag" ||
41038          test ! -s conftest.err
41039        } && test -s conftest$ac_exeext &&
41040        $as_test_x conftest$ac_exeext; then
41041   ac_cv_lib_sec_acltotext=yes
41042 else
41043   echo "$as_me: failed program was:" >&5
41044 sed 's/^/| /' conftest.$ac_ext >&5
41045
41046         ac_cv_lib_sec_acltotext=no
41047 fi
41048
41049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41050       conftest$ac_exeext conftest.$ac_ext
41051 LIBS=$ac_check_lib_save_LIBS
41052 fi
41053 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41054 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41055 if test $ac_cv_lib_sec_acltotext = yes; then
41056
41057                                have_acl=yes;
41058                                FDLIBS="-lsec $FDLIBS"
41059
41060                                { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41061 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41062 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41063   echo $ECHO_N "(cached) $ECHO_C" >&6
41064 else
41065   ac_check_lib_save_LIBS=$LIBS
41066 LIBS="-lsec  $LIBS"
41067 cat >conftest.$ac_ext <<_ACEOF
41068 /* confdefs.h.  */
41069 _ACEOF
41070 cat confdefs.h >>conftest.$ac_ext
41071 cat >>conftest.$ac_ext <<_ACEOF
41072 /* end confdefs.h.  */
41073
41074 /* Override any GCC internal prototype to avoid an error.
41075    Use char because int might match the return type of a GCC
41076    builtin and then its argument prototype would still apply.  */
41077 #ifdef __cplusplus
41078 extern "C"
41079 #endif
41080 char acl_totext ();
41081 int
41082 main ()
41083 {
41084 return acl_totext ();
41085   ;
41086   return 0;
41087 }
41088 _ACEOF
41089 rm -f conftest.$ac_objext conftest$ac_exeext
41090 if { (ac_try="$ac_link"
41091 case "(($ac_try" in
41092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41093   *) ac_try_echo=$ac_try;;
41094 esac
41095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41096   (eval "$ac_link") 2>conftest.er1
41097   ac_status=$?
41098   grep -v '^ *+' conftest.er1 >conftest.err
41099   rm -f conftest.er1
41100   cat conftest.err >&5
41101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41102   (exit $ac_status); } && {
41103          test -z "$ac_c_werror_flag" ||
41104          test ! -s conftest.err
41105        } && test -s conftest$ac_exeext &&
41106        $as_test_x conftest$ac_exeext; then
41107   ac_cv_lib_sec_acl_totext=yes
41108 else
41109   echo "$as_me: failed program was:" >&5
41110 sed 's/^/| /' conftest.$ac_ext >&5
41111
41112         ac_cv_lib_sec_acl_totext=no
41113 fi
41114
41115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41116       conftest$ac_exeext conftest.$ac_ext
41117 LIBS=$ac_check_lib_save_LIBS
41118 fi
41119 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41120 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41121 if test $ac_cv_lib_sec_acl_totext = yes; then
41122
41123                                       have_extended_acl=yes
41124
41125
41126 fi
41127
41128
41129
41130 fi
41131
41132
41133
41134 fi
41135
41136
41137
41138 fi
41139
41140
41141
41142 fi
41143
41144
41145    if test x$support_acl = xyes -a $have_acl != yes; then
41146       { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41147   please either load the acl libraries or rerun configure without --enable-acl" >&5
41148 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41149   please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41150    { (exit 1); exit 1; }; }
41151    else
41152       if test $have_acl = yes; then
41153
41154 cat >>confdefs.h <<\_ACEOF
41155 #define HAVE_ACL 1
41156 _ACEOF
41157
41158       fi
41159
41160       if test $have_extended_acl = yes; then
41161
41162 cat >>confdefs.h <<\_ACEOF
41163 #define HAVE_EXTENDED_ACL 1
41164 _ACEOF
41165
41166       fi
41167    fi
41168 fi
41169
41170 support_xattr=auto
41171 # Check whether --enable-xattr was given.
41172 if test "${enable_xattr+set}" = set; then
41173   enableval=$enable_xattr;
41174        if test x$enableval = xyes; then
41175           support_xattr=yes
41176        elif test x$enableval = xno; then
41177           support_xattr=no
41178        fi
41179
41180
41181 fi
41182
41183
41184 have_xattr=no
41185 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
41186             if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41187   { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41188 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41189 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41190   echo $ECHO_N "(cached) $ECHO_C" >&6
41191 fi
41192 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41193 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41194 else
41195   # Is the header compilable?
41196 { echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
41197 echo $ECHO_N "checking sys/extattr.h usability... $ECHO_C" >&6; }
41198 cat >conftest.$ac_ext <<_ACEOF
41199 /* confdefs.h.  */
41200 _ACEOF
41201 cat confdefs.h >>conftest.$ac_ext
41202 cat >>conftest.$ac_ext <<_ACEOF
41203 /* end confdefs.h.  */
41204 $ac_includes_default
41205 #include <sys/extattr.h>
41206 _ACEOF
41207 rm -f conftest.$ac_objext
41208 if { (ac_try="$ac_compile"
41209 case "(($ac_try" in
41210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41211   *) ac_try_echo=$ac_try;;
41212 esac
41213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41214   (eval "$ac_compile") 2>conftest.er1
41215   ac_status=$?
41216   grep -v '^ *+' conftest.er1 >conftest.err
41217   rm -f conftest.er1
41218   cat conftest.err >&5
41219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41220   (exit $ac_status); } && {
41221          test -z "$ac_c_werror_flag" ||
41222          test ! -s conftest.err
41223        } && test -s conftest.$ac_objext; then
41224   ac_header_compiler=yes
41225 else
41226   echo "$as_me: failed program was:" >&5
41227 sed 's/^/| /' conftest.$ac_ext >&5
41228
41229         ac_header_compiler=no
41230 fi
41231
41232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41233 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41234 echo "${ECHO_T}$ac_header_compiler" >&6; }
41235
41236 # Is the header present?
41237 { echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
41238 echo $ECHO_N "checking sys/extattr.h presence... $ECHO_C" >&6; }
41239 cat >conftest.$ac_ext <<_ACEOF
41240 /* confdefs.h.  */
41241 _ACEOF
41242 cat confdefs.h >>conftest.$ac_ext
41243 cat >>conftest.$ac_ext <<_ACEOF
41244 /* end confdefs.h.  */
41245 #include <sys/extattr.h>
41246 _ACEOF
41247 if { (ac_try="$ac_cpp conftest.$ac_ext"
41248 case "(($ac_try" in
41249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41250   *) ac_try_echo=$ac_try;;
41251 esac
41252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41253   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41254   ac_status=$?
41255   grep -v '^ *+' conftest.er1 >conftest.err
41256   rm -f conftest.er1
41257   cat conftest.err >&5
41258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41259   (exit $ac_status); } >/dev/null && {
41260          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41261          test ! -s conftest.err
41262        }; then
41263   ac_header_preproc=yes
41264 else
41265   echo "$as_me: failed program was:" >&5
41266 sed 's/^/| /' conftest.$ac_ext >&5
41267
41268   ac_header_preproc=no
41269 fi
41270
41271 rm -f conftest.err conftest.$ac_ext
41272 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41273 echo "${ECHO_T}$ac_header_preproc" >&6; }
41274
41275 # So?  What about this header?
41276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41277   yes:no: )
41278     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41279 echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41280     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
41281 echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
41282     ac_header_preproc=yes
41283     ;;
41284   no:yes:* )
41285     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
41286 echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
41287     { echo "$as_me:$LINENO: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&5
41288 echo "$as_me: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&2;}
41289     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
41290 echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
41291     { echo "$as_me:$LINENO: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&5
41292 echo "$as_me: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41293     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
41294 echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
41295     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
41296 echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
41297
41298     ;;
41299 esac
41300 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41301 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41302 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41303   echo $ECHO_N "(cached) $ECHO_C" >&6
41304 else
41305   ac_cv_header_sys_extattr_h=$ac_header_preproc
41306 fi
41307 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41308 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41309
41310 fi
41311 if test $ac_cv_header_sys_extattr_h = yes; then
41312
41313 cat >>confdefs.h <<\_ACEOF
41314 #define HAVE_SYS_EXTATTR_H 1
41315 _ACEOF
41316
41317 fi
41318
41319
41320    if test "${ac_cv_header_libutil_h+set}" = set; then
41321   { echo "$as_me:$LINENO: checking for libutil.h" >&5
41322 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41323 if test "${ac_cv_header_libutil_h+set}" = set; then
41324   echo $ECHO_N "(cached) $ECHO_C" >&6
41325 fi
41326 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41327 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41328 else
41329   # Is the header compilable?
41330 { echo "$as_me:$LINENO: checking libutil.h usability" >&5
41331 echo $ECHO_N "checking libutil.h usability... $ECHO_C" >&6; }
41332 cat >conftest.$ac_ext <<_ACEOF
41333 /* confdefs.h.  */
41334 _ACEOF
41335 cat confdefs.h >>conftest.$ac_ext
41336 cat >>conftest.$ac_ext <<_ACEOF
41337 /* end confdefs.h.  */
41338 $ac_includes_default
41339 #include <libutil.h>
41340 _ACEOF
41341 rm -f conftest.$ac_objext
41342 if { (ac_try="$ac_compile"
41343 case "(($ac_try" in
41344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41345   *) ac_try_echo=$ac_try;;
41346 esac
41347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41348   (eval "$ac_compile") 2>conftest.er1
41349   ac_status=$?
41350   grep -v '^ *+' conftest.er1 >conftest.err
41351   rm -f conftest.er1
41352   cat conftest.err >&5
41353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41354   (exit $ac_status); } && {
41355          test -z "$ac_c_werror_flag" ||
41356          test ! -s conftest.err
41357        } && test -s conftest.$ac_objext; then
41358   ac_header_compiler=yes
41359 else
41360   echo "$as_me: failed program was:" >&5
41361 sed 's/^/| /' conftest.$ac_ext >&5
41362
41363         ac_header_compiler=no
41364 fi
41365
41366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41367 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41368 echo "${ECHO_T}$ac_header_compiler" >&6; }
41369
41370 # Is the header present?
41371 { echo "$as_me:$LINENO: checking libutil.h presence" >&5
41372 echo $ECHO_N "checking libutil.h presence... $ECHO_C" >&6; }
41373 cat >conftest.$ac_ext <<_ACEOF
41374 /* confdefs.h.  */
41375 _ACEOF
41376 cat confdefs.h >>conftest.$ac_ext
41377 cat >>conftest.$ac_ext <<_ACEOF
41378 /* end confdefs.h.  */
41379 #include <libutil.h>
41380 _ACEOF
41381 if { (ac_try="$ac_cpp conftest.$ac_ext"
41382 case "(($ac_try" in
41383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41384   *) ac_try_echo=$ac_try;;
41385 esac
41386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41387   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41388   ac_status=$?
41389   grep -v '^ *+' conftest.er1 >conftest.err
41390   rm -f conftest.er1
41391   cat conftest.err >&5
41392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41393   (exit $ac_status); } >/dev/null && {
41394          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41395          test ! -s conftest.err
41396        }; then
41397   ac_header_preproc=yes
41398 else
41399   echo "$as_me: failed program was:" >&5
41400 sed 's/^/| /' conftest.$ac_ext >&5
41401
41402   ac_header_preproc=no
41403 fi
41404
41405 rm -f conftest.err conftest.$ac_ext
41406 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41407 echo "${ECHO_T}$ac_header_preproc" >&6; }
41408
41409 # So?  What about this header?
41410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41411   yes:no: )
41412     { echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
41413 echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41414     { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
41415 echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
41416     ac_header_preproc=yes
41417     ;;
41418   no:yes:* )
41419     { echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
41420 echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
41421     { echo "$as_me:$LINENO: WARNING: libutil.h:     check for missing prerequisite headers?" >&5
41422 echo "$as_me: WARNING: libutil.h:     check for missing prerequisite headers?" >&2;}
41423     { echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
41424 echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
41425     { echo "$as_me:$LINENO: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&5
41426 echo "$as_me: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41427     { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
41428 echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
41429     { echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
41430 echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
41431
41432     ;;
41433 esac
41434 { echo "$as_me:$LINENO: checking for libutil.h" >&5
41435 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41436 if test "${ac_cv_header_libutil_h+set}" = set; then
41437   echo $ECHO_N "(cached) $ECHO_C" >&6
41438 else
41439   ac_cv_header_libutil_h=$ac_header_preproc
41440 fi
41441 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41442 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41443
41444 fi
41445 if test $ac_cv_header_libutil_h = yes; then
41446
41447 cat >>confdefs.h <<\_ACEOF
41448 #define HAVE_LIBUTIL_H 1
41449 _ACEOF
41450
41451 fi
41452
41453
41454
41455
41456
41457 for ac_func in extattr_get_link extattr_set_link extattr_list_link
41458 do
41459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41460 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41462 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41463   echo $ECHO_N "(cached) $ECHO_C" >&6
41464 else
41465   cat >conftest.$ac_ext <<_ACEOF
41466 /* confdefs.h.  */
41467 _ACEOF
41468 cat confdefs.h >>conftest.$ac_ext
41469 cat >>conftest.$ac_ext <<_ACEOF
41470 /* end confdefs.h.  */
41471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41472    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41473 #define $ac_func innocuous_$ac_func
41474
41475 /* System header to define __stub macros and hopefully few prototypes,
41476     which can conflict with char $ac_func (); below.
41477     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41478     <limits.h> exists even on freestanding compilers.  */
41479
41480 #ifdef __STDC__
41481 # include <limits.h>
41482 #else
41483 # include <assert.h>
41484 #endif
41485
41486 #undef $ac_func
41487
41488 /* Override any GCC internal prototype to avoid an error.
41489    Use char because int might match the return type of a GCC
41490    builtin and then its argument prototype would still apply.  */
41491 #ifdef __cplusplus
41492 extern "C"
41493 #endif
41494 char $ac_func ();
41495 /* The GNU C library defines this for functions which it implements
41496     to always fail with ENOSYS.  Some functions are actually named
41497     something starting with __ and the normal name is an alias.  */
41498 #if defined __stub_$ac_func || defined __stub___$ac_func
41499 choke me
41500 #endif
41501
41502 int
41503 main ()
41504 {
41505 return $ac_func ();
41506   ;
41507   return 0;
41508 }
41509 _ACEOF
41510 rm -f conftest.$ac_objext conftest$ac_exeext
41511 if { (ac_try="$ac_link"
41512 case "(($ac_try" in
41513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41514   *) ac_try_echo=$ac_try;;
41515 esac
41516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41517   (eval "$ac_link") 2>conftest.er1
41518   ac_status=$?
41519   grep -v '^ *+' conftest.er1 >conftest.err
41520   rm -f conftest.er1
41521   cat conftest.err >&5
41522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41523   (exit $ac_status); } && {
41524          test -z "$ac_c_werror_flag" ||
41525          test ! -s conftest.err
41526        } && test -s conftest$ac_exeext &&
41527        $as_test_x conftest$ac_exeext; then
41528   eval "$as_ac_var=yes"
41529 else
41530   echo "$as_me: failed program was:" >&5
41531 sed 's/^/| /' conftest.$ac_ext >&5
41532
41533         eval "$as_ac_var=no"
41534 fi
41535
41536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41537       conftest$ac_exeext conftest.$ac_ext
41538 fi
41539 ac_res=`eval echo '${'$as_ac_var'}'`
41540                { echo "$as_me:$LINENO: result: $ac_res" >&5
41541 echo "${ECHO_T}$ac_res" >&6; }
41542 if test `eval echo '${'$as_ac_var'}'` = yes; then
41543   cat >>confdefs.h <<_ACEOF
41544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41545 _ACEOF
41546
41547           have_xattr=yes
41548
41549 cat >>confdefs.h <<\_ACEOF
41550 #define HAVE_EXTATTR_GET_LINK 1
41551 _ACEOF
41552
41553
41554 cat >>confdefs.h <<\_ACEOF
41555 #define HAVE_EXTATTR_SET_LINK 1
41556 _ACEOF
41557
41558
41559 cat >>confdefs.h <<\_ACEOF
41560 #define HAVE_EXTATTR_LIST_LINK 1
41561 _ACEOF
41562
41563
41564
41565 fi
41566 done
41567
41568
41569    if test $have_xattr = no; then
41570
41571
41572
41573 for ac_func in extattr_get_file extattr_set_file extattr_list_file
41574 do
41575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41576 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41578 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41579   echo $ECHO_N "(cached) $ECHO_C" >&6
41580 else
41581   cat >conftest.$ac_ext <<_ACEOF
41582 /* confdefs.h.  */
41583 _ACEOF
41584 cat confdefs.h >>conftest.$ac_ext
41585 cat >>conftest.$ac_ext <<_ACEOF
41586 /* end confdefs.h.  */
41587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41588    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41589 #define $ac_func innocuous_$ac_func
41590
41591 /* System header to define __stub macros and hopefully few prototypes,
41592     which can conflict with char $ac_func (); below.
41593     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41594     <limits.h> exists even on freestanding compilers.  */
41595
41596 #ifdef __STDC__
41597 # include <limits.h>
41598 #else
41599 # include <assert.h>
41600 #endif
41601
41602 #undef $ac_func
41603
41604 /* Override any GCC internal prototype to avoid an error.
41605    Use char because int might match the return type of a GCC
41606    builtin and then its argument prototype would still apply.  */
41607 #ifdef __cplusplus
41608 extern "C"
41609 #endif
41610 char $ac_func ();
41611 /* The GNU C library defines this for functions which it implements
41612     to always fail with ENOSYS.  Some functions are actually named
41613     something starting with __ and the normal name is an alias.  */
41614 #if defined __stub_$ac_func || defined __stub___$ac_func
41615 choke me
41616 #endif
41617
41618 int
41619 main ()
41620 {
41621 return $ac_func ();
41622   ;
41623   return 0;
41624 }
41625 _ACEOF
41626 rm -f conftest.$ac_objext conftest$ac_exeext
41627 if { (ac_try="$ac_link"
41628 case "(($ac_try" in
41629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41630   *) ac_try_echo=$ac_try;;
41631 esac
41632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41633   (eval "$ac_link") 2>conftest.er1
41634   ac_status=$?
41635   grep -v '^ *+' conftest.er1 >conftest.err
41636   rm -f conftest.er1
41637   cat conftest.err >&5
41638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41639   (exit $ac_status); } && {
41640          test -z "$ac_c_werror_flag" ||
41641          test ! -s conftest.err
41642        } && test -s conftest$ac_exeext &&
41643        $as_test_x conftest$ac_exeext; then
41644   eval "$as_ac_var=yes"
41645 else
41646   echo "$as_me: failed program was:" >&5
41647 sed 's/^/| /' conftest.$ac_ext >&5
41648
41649         eval "$as_ac_var=no"
41650 fi
41651
41652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41653       conftest$ac_exeext conftest.$ac_ext
41654 fi
41655 ac_res=`eval echo '${'$as_ac_var'}'`
41656                { echo "$as_me:$LINENO: result: $ac_res" >&5
41657 echo "${ECHO_T}$ac_res" >&6; }
41658 if test `eval echo '${'$as_ac_var'}'` = yes; then
41659   cat >>confdefs.h <<_ACEOF
41660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41661 _ACEOF
41662
41663              have_xattr=yes
41664
41665 cat >>confdefs.h <<\_ACEOF
41666 #define HAVE_EXTATTR_GET_FILE 1
41667 _ACEOF
41668
41669
41670 cat >>confdefs.h <<\_ACEOF
41671 #define HAVE_EXTATTR_SET_FILE 1
41672 _ACEOF
41673
41674
41675 cat >>confdefs.h <<\_ACEOF
41676 #define HAVE_EXTATTR_LIST_FILE 1
41677 _ACEOF
41678
41679
41680
41681 fi
41682 done
41683
41684    fi
41685
41686    if test $have_xattr = yes; then
41687       have_extattr_string_in_libc=no
41688
41689
41690 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
41691 do
41692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41693 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41695 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41696   echo $ECHO_N "(cached) $ECHO_C" >&6
41697 else
41698   cat >conftest.$ac_ext <<_ACEOF
41699 /* confdefs.h.  */
41700 _ACEOF
41701 cat confdefs.h >>conftest.$ac_ext
41702 cat >>conftest.$ac_ext <<_ACEOF
41703 /* end confdefs.h.  */
41704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41705    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41706 #define $ac_func innocuous_$ac_func
41707
41708 /* System header to define __stub macros and hopefully few prototypes,
41709     which can conflict with char $ac_func (); below.
41710     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41711     <limits.h> exists even on freestanding compilers.  */
41712
41713 #ifdef __STDC__
41714 # include <limits.h>
41715 #else
41716 # include <assert.h>
41717 #endif
41718
41719 #undef $ac_func
41720
41721 /* Override any GCC internal prototype to avoid an error.
41722    Use char because int might match the return type of a GCC
41723    builtin and then its argument prototype would still apply.  */
41724 #ifdef __cplusplus
41725 extern "C"
41726 #endif
41727 char $ac_func ();
41728 /* The GNU C library defines this for functions which it implements
41729     to always fail with ENOSYS.  Some functions are actually named
41730     something starting with __ and the normal name is an alias.  */
41731 #if defined __stub_$ac_func || defined __stub___$ac_func
41732 choke me
41733 #endif
41734
41735 int
41736 main ()
41737 {
41738 return $ac_func ();
41739   ;
41740   return 0;
41741 }
41742 _ACEOF
41743 rm -f conftest.$ac_objext conftest$ac_exeext
41744 if { (ac_try="$ac_link"
41745 case "(($ac_try" in
41746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41747   *) ac_try_echo=$ac_try;;
41748 esac
41749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41750   (eval "$ac_link") 2>conftest.er1
41751   ac_status=$?
41752   grep -v '^ *+' conftest.er1 >conftest.err
41753   rm -f conftest.er1
41754   cat conftest.err >&5
41755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41756   (exit $ac_status); } && {
41757          test -z "$ac_c_werror_flag" ||
41758          test ! -s conftest.err
41759        } && test -s conftest$ac_exeext &&
41760        $as_test_x conftest$ac_exeext; then
41761   eval "$as_ac_var=yes"
41762 else
41763   echo "$as_me: failed program was:" >&5
41764 sed 's/^/| /' conftest.$ac_ext >&5
41765
41766         eval "$as_ac_var=no"
41767 fi
41768
41769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41770       conftest$ac_exeext conftest.$ac_ext
41771 fi
41772 ac_res=`eval echo '${'$as_ac_var'}'`
41773                { echo "$as_me:$LINENO: result: $ac_res" >&5
41774 echo "${ECHO_T}$ac_res" >&6; }
41775 if test `eval echo '${'$as_ac_var'}'` = yes; then
41776   cat >>confdefs.h <<_ACEOF
41777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41778 _ACEOF
41779
41780              have_extattr_string_in_libc=yes
41781
41782 cat >>confdefs.h <<\_ACEOF
41783 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
41784 _ACEOF
41785
41786
41787 cat >>confdefs.h <<\_ACEOF
41788 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
41789 _ACEOF
41790
41791
41792
41793 fi
41794 done
41795
41796
41797                         if test $have_extattr_string_in_libc = no; then
41798          { echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
41799 echo $ECHO_N "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... $ECHO_C" >&6; }
41800 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
41801   echo $ECHO_N "(cached) $ECHO_C" >&6
41802 else
41803   ac_check_lib_save_LIBS=$LIBS
41804 LIBS="-lutil  $LIBS"
41805 cat >conftest.$ac_ext <<_ACEOF
41806 /* confdefs.h.  */
41807 _ACEOF
41808 cat confdefs.h >>conftest.$ac_ext
41809 cat >>conftest.$ac_ext <<_ACEOF
41810 /* end confdefs.h.  */
41811
41812 /* Override any GCC internal prototype to avoid an error.
41813    Use char because int might match the return type of a GCC
41814    builtin and then its argument prototype would still apply.  */
41815 #ifdef __cplusplus
41816 extern "C"
41817 #endif
41818 char extattr_namespace_to_string extattr_string_to_namespace ();
41819 int
41820 main ()
41821 {
41822 return extattr_namespace_to_string extattr_string_to_namespace ();
41823   ;
41824   return 0;
41825 }
41826 _ACEOF
41827 rm -f conftest.$ac_objext conftest$ac_exeext
41828 if { (ac_try="$ac_link"
41829 case "(($ac_try" in
41830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41831   *) ac_try_echo=$ac_try;;
41832 esac
41833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41834   (eval "$ac_link") 2>conftest.er1
41835   ac_status=$?
41836   grep -v '^ *+' conftest.er1 >conftest.err
41837   rm -f conftest.er1
41838   cat conftest.err >&5
41839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41840   (exit $ac_status); } && {
41841          test -z "$ac_c_werror_flag" ||
41842          test ! -s conftest.err
41843        } && test -s conftest$ac_exeext &&
41844        $as_test_x conftest$ac_exeext; then
41845   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
41846 else
41847   echo "$as_me: failed program was:" >&5
41848 sed 's/^/| /' conftest.$ac_ext >&5
41849
41850         ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
41851 fi
41852
41853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41854       conftest$ac_exeext conftest.$ac_ext
41855 LIBS=$ac_check_lib_save_LIBS
41856 fi
41857 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
41858 echo "${ECHO_T}$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
41859 if test $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace = yes; then
41860
41861
41862 cat >>confdefs.h <<\_ACEOF
41863 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
41864 _ACEOF
41865
41866
41867 cat >>confdefs.h <<\_ACEOF
41868 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
41869 _ACEOF
41870
41871                 FDLIBS="-lutil $FDLIBS"
41872
41873
41874 fi
41875
41876       fi
41877    fi
41878
41879             if test $have_xattr = no; then
41880       if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41881   { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41882 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41883 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41884   echo $ECHO_N "(cached) $ECHO_C" >&6
41885 fi
41886 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41887 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41888 else
41889   # Is the header compilable?
41890 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
41891 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
41892 cat >conftest.$ac_ext <<_ACEOF
41893 /* confdefs.h.  */
41894 _ACEOF
41895 cat confdefs.h >>conftest.$ac_ext
41896 cat >>conftest.$ac_ext <<_ACEOF
41897 /* end confdefs.h.  */
41898 $ac_includes_default
41899 #include <sys/xattr.h>
41900 _ACEOF
41901 rm -f conftest.$ac_objext
41902 if { (ac_try="$ac_compile"
41903 case "(($ac_try" in
41904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41905   *) ac_try_echo=$ac_try;;
41906 esac
41907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41908   (eval "$ac_compile") 2>conftest.er1
41909   ac_status=$?
41910   grep -v '^ *+' conftest.er1 >conftest.err
41911   rm -f conftest.er1
41912   cat conftest.err >&5
41913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41914   (exit $ac_status); } && {
41915          test -z "$ac_c_werror_flag" ||
41916          test ! -s conftest.err
41917        } && test -s conftest.$ac_objext; then
41918   ac_header_compiler=yes
41919 else
41920   echo "$as_me: failed program was:" >&5
41921 sed 's/^/| /' conftest.$ac_ext >&5
41922
41923         ac_header_compiler=no
41924 fi
41925
41926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41927 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41928 echo "${ECHO_T}$ac_header_compiler" >&6; }
41929
41930 # Is the header present?
41931 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
41932 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
41933 cat >conftest.$ac_ext <<_ACEOF
41934 /* confdefs.h.  */
41935 _ACEOF
41936 cat confdefs.h >>conftest.$ac_ext
41937 cat >>conftest.$ac_ext <<_ACEOF
41938 /* end confdefs.h.  */
41939 #include <sys/xattr.h>
41940 _ACEOF
41941 if { (ac_try="$ac_cpp conftest.$ac_ext"
41942 case "(($ac_try" in
41943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41944   *) ac_try_echo=$ac_try;;
41945 esac
41946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41947   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41948   ac_status=$?
41949   grep -v '^ *+' conftest.er1 >conftest.err
41950   rm -f conftest.er1
41951   cat conftest.err >&5
41952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41953   (exit $ac_status); } >/dev/null && {
41954          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41955          test ! -s conftest.err
41956        }; then
41957   ac_header_preproc=yes
41958 else
41959   echo "$as_me: failed program was:" >&5
41960 sed 's/^/| /' conftest.$ac_ext >&5
41961
41962   ac_header_preproc=no
41963 fi
41964
41965 rm -f conftest.err conftest.$ac_ext
41966 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41967 echo "${ECHO_T}$ac_header_preproc" >&6; }
41968
41969 # So?  What about this header?
41970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41971   yes:no: )
41972     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41973 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41974     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
41975 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
41976     ac_header_preproc=yes
41977     ;;
41978   no:yes:* )
41979     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
41980 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
41981     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&5
41982 echo "$as_me: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&2;}
41983     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
41984 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
41985     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&5
41986 echo "$as_me: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41987     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
41988 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
41989     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
41990 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
41991
41992     ;;
41993 esac
41994 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41995 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41996 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41997   echo $ECHO_N "(cached) $ECHO_C" >&6
41998 else
41999   ac_cv_header_sys_xattr_h=$ac_header_preproc
42000 fi
42001 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42002 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42003
42004 fi
42005 if test $ac_cv_header_sys_xattr_h = yes; then
42006
42007 cat >>confdefs.h <<\_ACEOF
42008 #define HAVE_SYS_XATTR_H 1
42009 _ACEOF
42010
42011 fi
42012
42013
42014
42015
42016
42017 for ac_func in llistxattr lgetxattr lsetxattr
42018 do
42019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42020 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42022 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42023   echo $ECHO_N "(cached) $ECHO_C" >&6
42024 else
42025   cat >conftest.$ac_ext <<_ACEOF
42026 /* confdefs.h.  */
42027 _ACEOF
42028 cat confdefs.h >>conftest.$ac_ext
42029 cat >>conftest.$ac_ext <<_ACEOF
42030 /* end confdefs.h.  */
42031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42032    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42033 #define $ac_func innocuous_$ac_func
42034
42035 /* System header to define __stub macros and hopefully few prototypes,
42036     which can conflict with char $ac_func (); below.
42037     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42038     <limits.h> exists even on freestanding compilers.  */
42039
42040 #ifdef __STDC__
42041 # include <limits.h>
42042 #else
42043 # include <assert.h>
42044 #endif
42045
42046 #undef $ac_func
42047
42048 /* Override any GCC internal prototype to avoid an error.
42049    Use char because int might match the return type of a GCC
42050    builtin and then its argument prototype would still apply.  */
42051 #ifdef __cplusplus
42052 extern "C"
42053 #endif
42054 char $ac_func ();
42055 /* The GNU C library defines this for functions which it implements
42056     to always fail with ENOSYS.  Some functions are actually named
42057     something starting with __ and the normal name is an alias.  */
42058 #if defined __stub_$ac_func || defined __stub___$ac_func
42059 choke me
42060 #endif
42061
42062 int
42063 main ()
42064 {
42065 return $ac_func ();
42066   ;
42067   return 0;
42068 }
42069 _ACEOF
42070 rm -f conftest.$ac_objext conftest$ac_exeext
42071 if { (ac_try="$ac_link"
42072 case "(($ac_try" in
42073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42074   *) ac_try_echo=$ac_try;;
42075 esac
42076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42077   (eval "$ac_link") 2>conftest.er1
42078   ac_status=$?
42079   grep -v '^ *+' conftest.er1 >conftest.err
42080   rm -f conftest.er1
42081   cat conftest.err >&5
42082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42083   (exit $ac_status); } && {
42084          test -z "$ac_c_werror_flag" ||
42085          test ! -s conftest.err
42086        } && test -s conftest$ac_exeext &&
42087        $as_test_x conftest$ac_exeext; then
42088   eval "$as_ac_var=yes"
42089 else
42090   echo "$as_me: failed program was:" >&5
42091 sed 's/^/| /' conftest.$ac_ext >&5
42092
42093         eval "$as_ac_var=no"
42094 fi
42095
42096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42097       conftest$ac_exeext conftest.$ac_ext
42098 fi
42099 ac_res=`eval echo '${'$as_ac_var'}'`
42100                { echo "$as_me:$LINENO: result: $ac_res" >&5
42101 echo "${ECHO_T}$ac_res" >&6; }
42102 if test `eval echo '${'$as_ac_var'}'` = yes; then
42103   cat >>confdefs.h <<_ACEOF
42104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42105 _ACEOF
42106
42107              have_xattr=yes
42108
42109 cat >>confdefs.h <<\_ACEOF
42110 #define HAVE_LLISTXATTR 1
42111 _ACEOF
42112
42113
42114 cat >>confdefs.h <<\_ACEOF
42115 #define HAVE_LGETXATTR 1
42116 _ACEOF
42117
42118
42119 cat >>confdefs.h <<\_ACEOF
42120 #define HAVE_LSETXATTR 1
42121 _ACEOF
42122
42123
42124
42125 fi
42126 done
42127
42128
42129       if test $have_xattr = no; then
42130
42131
42132
42133 for ac_func in listxattr getxattr setxattr
42134 do
42135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42136 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42138 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42139   echo $ECHO_N "(cached) $ECHO_C" >&6
42140 else
42141   cat >conftest.$ac_ext <<_ACEOF
42142 /* confdefs.h.  */
42143 _ACEOF
42144 cat confdefs.h >>conftest.$ac_ext
42145 cat >>conftest.$ac_ext <<_ACEOF
42146 /* end confdefs.h.  */
42147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42148    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42149 #define $ac_func innocuous_$ac_func
42150
42151 /* System header to define __stub macros and hopefully few prototypes,
42152     which can conflict with char $ac_func (); below.
42153     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42154     <limits.h> exists even on freestanding compilers.  */
42155
42156 #ifdef __STDC__
42157 # include <limits.h>
42158 #else
42159 # include <assert.h>
42160 #endif
42161
42162 #undef $ac_func
42163
42164 /* Override any GCC internal prototype to avoid an error.
42165    Use char because int might match the return type of a GCC
42166    builtin and then its argument prototype would still apply.  */
42167 #ifdef __cplusplus
42168 extern "C"
42169 #endif
42170 char $ac_func ();
42171 /* The GNU C library defines this for functions which it implements
42172     to always fail with ENOSYS.  Some functions are actually named
42173     something starting with __ and the normal name is an alias.  */
42174 #if defined __stub_$ac_func || defined __stub___$ac_func
42175 choke me
42176 #endif
42177
42178 int
42179 main ()
42180 {
42181 return $ac_func ();
42182   ;
42183   return 0;
42184 }
42185 _ACEOF
42186 rm -f conftest.$ac_objext conftest$ac_exeext
42187 if { (ac_try="$ac_link"
42188 case "(($ac_try" in
42189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42190   *) ac_try_echo=$ac_try;;
42191 esac
42192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42193   (eval "$ac_link") 2>conftest.er1
42194   ac_status=$?
42195   grep -v '^ *+' conftest.er1 >conftest.err
42196   rm -f conftest.er1
42197   cat conftest.err >&5
42198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42199   (exit $ac_status); } && {
42200          test -z "$ac_c_werror_flag" ||
42201          test ! -s conftest.err
42202        } && test -s conftest$ac_exeext &&
42203        $as_test_x conftest$ac_exeext; then
42204   eval "$as_ac_var=yes"
42205 else
42206   echo "$as_me: failed program was:" >&5
42207 sed 's/^/| /' conftest.$ac_ext >&5
42208
42209         eval "$as_ac_var=no"
42210 fi
42211
42212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42213       conftest$ac_exeext conftest.$ac_ext
42214 fi
42215 ac_res=`eval echo '${'$as_ac_var'}'`
42216                { echo "$as_me:$LINENO: result: $ac_res" >&5
42217 echo "${ECHO_T}$ac_res" >&6; }
42218 if test `eval echo '${'$as_ac_var'}'` = yes; then
42219   cat >>confdefs.h <<_ACEOF
42220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42221 _ACEOF
42222
42223                 have_xattr=yes
42224
42225 cat >>confdefs.h <<\_ACEOF
42226 #define HAVE_LISTXATTR 1
42227 _ACEOF
42228
42229
42230 cat >>confdefs.h <<\_ACEOF
42231 #define HAVE_GETXATTR 1
42232 _ACEOF
42233
42234
42235 cat >>confdefs.h <<\_ACEOF
42236 #define HAVE_SETXATTR 1
42237 _ACEOF
42238
42239
42240
42241 fi
42242 done
42243
42244       fi
42245    fi
42246
42247             if test $have_xattr = no; then
42248       if test "${ac_cv_header_sys_attr_h+set}" = set; then
42249   { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42250 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42251 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42252   echo $ECHO_N "(cached) $ECHO_C" >&6
42253 fi
42254 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42255 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42256 else
42257   # Is the header compilable?
42258 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
42259 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
42260 cat >conftest.$ac_ext <<_ACEOF
42261 /* confdefs.h.  */
42262 _ACEOF
42263 cat confdefs.h >>conftest.$ac_ext
42264 cat >>conftest.$ac_ext <<_ACEOF
42265 /* end confdefs.h.  */
42266 $ac_includes_default
42267 #include <sys/attr.h>
42268 _ACEOF
42269 rm -f conftest.$ac_objext
42270 if { (ac_try="$ac_compile"
42271 case "(($ac_try" in
42272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42273   *) ac_try_echo=$ac_try;;
42274 esac
42275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42276   (eval "$ac_compile") 2>conftest.er1
42277   ac_status=$?
42278   grep -v '^ *+' conftest.er1 >conftest.err
42279   rm -f conftest.er1
42280   cat conftest.err >&5
42281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42282   (exit $ac_status); } && {
42283          test -z "$ac_c_werror_flag" ||
42284          test ! -s conftest.err
42285        } && test -s conftest.$ac_objext; then
42286   ac_header_compiler=yes
42287 else
42288   echo "$as_me: failed program was:" >&5
42289 sed 's/^/| /' conftest.$ac_ext >&5
42290
42291         ac_header_compiler=no
42292 fi
42293
42294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42296 echo "${ECHO_T}$ac_header_compiler" >&6; }
42297
42298 # Is the header present?
42299 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
42300 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
42301 cat >conftest.$ac_ext <<_ACEOF
42302 /* confdefs.h.  */
42303 _ACEOF
42304 cat confdefs.h >>conftest.$ac_ext
42305 cat >>conftest.$ac_ext <<_ACEOF
42306 /* end confdefs.h.  */
42307 #include <sys/attr.h>
42308 _ACEOF
42309 if { (ac_try="$ac_cpp conftest.$ac_ext"
42310 case "(($ac_try" in
42311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42312   *) ac_try_echo=$ac_try;;
42313 esac
42314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42315   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42316   ac_status=$?
42317   grep -v '^ *+' conftest.er1 >conftest.err
42318   rm -f conftest.er1
42319   cat conftest.err >&5
42320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42321   (exit $ac_status); } >/dev/null && {
42322          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42323          test ! -s conftest.err
42324        }; then
42325   ac_header_preproc=yes
42326 else
42327   echo "$as_me: failed program was:" >&5
42328 sed 's/^/| /' conftest.$ac_ext >&5
42329
42330   ac_header_preproc=no
42331 fi
42332
42333 rm -f conftest.err conftest.$ac_ext
42334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42335 echo "${ECHO_T}$ac_header_preproc" >&6; }
42336
42337 # So?  What about this header?
42338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42339   yes:no: )
42340     { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42341 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42342     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
42343 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
42344     ac_header_preproc=yes
42345     ;;
42346   no:yes:* )
42347     { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
42348 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
42349     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&5
42350 echo "$as_me: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&2;}
42351     { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
42352 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
42353     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&5
42354 echo "$as_me: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42355     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
42356 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
42357     { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
42358 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
42359
42360     ;;
42361 esac
42362 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42363 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42364 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42365   echo $ECHO_N "(cached) $ECHO_C" >&6
42366 else
42367   ac_cv_header_sys_attr_h=$ac_header_preproc
42368 fi
42369 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42370 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42371
42372 fi
42373 if test $ac_cv_header_sys_attr_h = yes; then
42374
42375 cat >>confdefs.h <<\_ACEOF
42376 #define HAVE_SYS_ATTR_H 1
42377 _ACEOF
42378
42379 fi
42380
42381
42382       if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42383   { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42384 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42385 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42386   echo $ECHO_N "(cached) $ECHO_C" >&6
42387 fi
42388 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42389 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42390 else
42391   # Is the header compilable?
42392 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
42393 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
42394 cat >conftest.$ac_ext <<_ACEOF
42395 /* confdefs.h.  */
42396 _ACEOF
42397 cat confdefs.h >>conftest.$ac_ext
42398 cat >>conftest.$ac_ext <<_ACEOF
42399 /* end confdefs.h.  */
42400 $ac_includes_default
42401 #include <sys/nvpair.h>
42402 _ACEOF
42403 rm -f conftest.$ac_objext
42404 if { (ac_try="$ac_compile"
42405 case "(($ac_try" in
42406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42407   *) ac_try_echo=$ac_try;;
42408 esac
42409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42410   (eval "$ac_compile") 2>conftest.er1
42411   ac_status=$?
42412   grep -v '^ *+' conftest.er1 >conftest.err
42413   rm -f conftest.er1
42414   cat conftest.err >&5
42415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42416   (exit $ac_status); } && {
42417          test -z "$ac_c_werror_flag" ||
42418          test ! -s conftest.err
42419        } && test -s conftest.$ac_objext; then
42420   ac_header_compiler=yes
42421 else
42422   echo "$as_me: failed program was:" >&5
42423 sed 's/^/| /' conftest.$ac_ext >&5
42424
42425         ac_header_compiler=no
42426 fi
42427
42428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42429 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42430 echo "${ECHO_T}$ac_header_compiler" >&6; }
42431
42432 # Is the header present?
42433 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
42434 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
42435 cat >conftest.$ac_ext <<_ACEOF
42436 /* confdefs.h.  */
42437 _ACEOF
42438 cat confdefs.h >>conftest.$ac_ext
42439 cat >>conftest.$ac_ext <<_ACEOF
42440 /* end confdefs.h.  */
42441 #include <sys/nvpair.h>
42442 _ACEOF
42443 if { (ac_try="$ac_cpp conftest.$ac_ext"
42444 case "(($ac_try" in
42445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42446   *) ac_try_echo=$ac_try;;
42447 esac
42448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42449   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42450   ac_status=$?
42451   grep -v '^ *+' conftest.er1 >conftest.err
42452   rm -f conftest.er1
42453   cat conftest.err >&5
42454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42455   (exit $ac_status); } >/dev/null && {
42456          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42457          test ! -s conftest.err
42458        }; then
42459   ac_header_preproc=yes
42460 else
42461   echo "$as_me: failed program was:" >&5
42462 sed 's/^/| /' conftest.$ac_ext >&5
42463
42464   ac_header_preproc=no
42465 fi
42466
42467 rm -f conftest.err conftest.$ac_ext
42468 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42469 echo "${ECHO_T}$ac_header_preproc" >&6; }
42470
42471 # So?  What about this header?
42472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42473   yes:no: )
42474     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
42475 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42476     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
42477 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
42478     ac_header_preproc=yes
42479     ;;
42480   no:yes:* )
42481     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
42482 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
42483     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&5
42484 echo "$as_me: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&2;}
42485     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
42486 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
42487     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&5
42488 echo "$as_me: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42489     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
42490 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
42491     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
42492 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
42493
42494     ;;
42495 esac
42496 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42497 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42498 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42499   echo $ECHO_N "(cached) $ECHO_C" >&6
42500 else
42501   ac_cv_header_sys_nvpair_h=$ac_header_preproc
42502 fi
42503 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42504 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42505
42506 fi
42507 if test $ac_cv_header_sys_nvpair_h = yes; then
42508
42509 cat >>confdefs.h <<\_ACEOF
42510 #define HAVE_SYS_NVPAIR_H 1
42511 _ACEOF
42512
42513 fi
42514
42515
42516       if test "${ac_cv_header_attr_h+set}" = set; then
42517   { echo "$as_me:$LINENO: checking for attr.h" >&5
42518 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42519 if test "${ac_cv_header_attr_h+set}" = set; then
42520   echo $ECHO_N "(cached) $ECHO_C" >&6
42521 fi
42522 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42523 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42524 else
42525   # Is the header compilable?
42526 { echo "$as_me:$LINENO: checking attr.h usability" >&5
42527 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
42528 cat >conftest.$ac_ext <<_ACEOF
42529 /* confdefs.h.  */
42530 _ACEOF
42531 cat confdefs.h >>conftest.$ac_ext
42532 cat >>conftest.$ac_ext <<_ACEOF
42533 /* end confdefs.h.  */
42534 $ac_includes_default
42535 #include <attr.h>
42536 _ACEOF
42537 rm -f conftest.$ac_objext
42538 if { (ac_try="$ac_compile"
42539 case "(($ac_try" in
42540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42541   *) ac_try_echo=$ac_try;;
42542 esac
42543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42544   (eval "$ac_compile") 2>conftest.er1
42545   ac_status=$?
42546   grep -v '^ *+' conftest.er1 >conftest.err
42547   rm -f conftest.er1
42548   cat conftest.err >&5
42549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42550   (exit $ac_status); } && {
42551          test -z "$ac_c_werror_flag" ||
42552          test ! -s conftest.err
42553        } && test -s conftest.$ac_objext; then
42554   ac_header_compiler=yes
42555 else
42556   echo "$as_me: failed program was:" >&5
42557 sed 's/^/| /' conftest.$ac_ext >&5
42558
42559         ac_header_compiler=no
42560 fi
42561
42562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42563 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42564 echo "${ECHO_T}$ac_header_compiler" >&6; }
42565
42566 # Is the header present?
42567 { echo "$as_me:$LINENO: checking attr.h presence" >&5
42568 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
42569 cat >conftest.$ac_ext <<_ACEOF
42570 /* confdefs.h.  */
42571 _ACEOF
42572 cat confdefs.h >>conftest.$ac_ext
42573 cat >>conftest.$ac_ext <<_ACEOF
42574 /* end confdefs.h.  */
42575 #include <attr.h>
42576 _ACEOF
42577 if { (ac_try="$ac_cpp conftest.$ac_ext"
42578 case "(($ac_try" in
42579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42580   *) ac_try_echo=$ac_try;;
42581 esac
42582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42583   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42584   ac_status=$?
42585   grep -v '^ *+' conftest.er1 >conftest.err
42586   rm -f conftest.er1
42587   cat conftest.err >&5
42588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42589   (exit $ac_status); } >/dev/null && {
42590          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42591          test ! -s conftest.err
42592        }; then
42593   ac_header_preproc=yes
42594 else
42595   echo "$as_me: failed program was:" >&5
42596 sed 's/^/| /' conftest.$ac_ext >&5
42597
42598   ac_header_preproc=no
42599 fi
42600
42601 rm -f conftest.err conftest.$ac_ext
42602 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42603 echo "${ECHO_T}$ac_header_preproc" >&6; }
42604
42605 # So?  What about this header?
42606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42607   yes:no: )
42608     { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42609 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42610     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
42611 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
42612     ac_header_preproc=yes
42613     ;;
42614   no:yes:* )
42615     { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
42616 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
42617     { echo "$as_me:$LINENO: WARNING: attr.h:     check for missing prerequisite headers?" >&5
42618 echo "$as_me: WARNING: attr.h:     check for missing prerequisite headers?" >&2;}
42619     { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
42620 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
42621     { echo "$as_me:$LINENO: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&5
42622 echo "$as_me: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42623     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
42624 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
42625     { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
42626 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
42627
42628     ;;
42629 esac
42630 { echo "$as_me:$LINENO: checking for attr.h" >&5
42631 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42632 if test "${ac_cv_header_attr_h+set}" = set; then
42633   echo $ECHO_N "(cached) $ECHO_C" >&6
42634 else
42635   ac_cv_header_attr_h=$ac_header_preproc
42636 fi
42637 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42638 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42639
42640 fi
42641 if test $ac_cv_header_attr_h = yes; then
42642
42643 cat >>confdefs.h <<\_ACEOF
42644 #define HAVE_ATTR_H 1
42645 _ACEOF
42646
42647 fi
42648
42649
42650
42651
42652
42653
42654
42655
42656 for ac_func in openat fstatat unlinkat fchownat futimesat
42657 do
42658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42659 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42661 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42662   echo $ECHO_N "(cached) $ECHO_C" >&6
42663 else
42664   cat >conftest.$ac_ext <<_ACEOF
42665 /* confdefs.h.  */
42666 _ACEOF
42667 cat confdefs.h >>conftest.$ac_ext
42668 cat >>conftest.$ac_ext <<_ACEOF
42669 /* end confdefs.h.  */
42670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42671    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42672 #define $ac_func innocuous_$ac_func
42673
42674 /* System header to define __stub macros and hopefully few prototypes,
42675     which can conflict with char $ac_func (); below.
42676     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42677     <limits.h> exists even on freestanding compilers.  */
42678
42679 #ifdef __STDC__
42680 # include <limits.h>
42681 #else
42682 # include <assert.h>
42683 #endif
42684
42685 #undef $ac_func
42686
42687 /* Override any GCC internal prototype to avoid an error.
42688    Use char because int might match the return type of a GCC
42689    builtin and then its argument prototype would still apply.  */
42690 #ifdef __cplusplus
42691 extern "C"
42692 #endif
42693 char $ac_func ();
42694 /* The GNU C library defines this for functions which it implements
42695     to always fail with ENOSYS.  Some functions are actually named
42696     something starting with __ and the normal name is an alias.  */
42697 #if defined __stub_$ac_func || defined __stub___$ac_func
42698 choke me
42699 #endif
42700
42701 int
42702 main ()
42703 {
42704 return $ac_func ();
42705   ;
42706   return 0;
42707 }
42708 _ACEOF
42709 rm -f conftest.$ac_objext conftest$ac_exeext
42710 if { (ac_try="$ac_link"
42711 case "(($ac_try" in
42712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42713   *) ac_try_echo=$ac_try;;
42714 esac
42715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42716   (eval "$ac_link") 2>conftest.er1
42717   ac_status=$?
42718   grep -v '^ *+' conftest.er1 >conftest.err
42719   rm -f conftest.er1
42720   cat conftest.err >&5
42721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42722   (exit $ac_status); } && {
42723          test -z "$ac_c_werror_flag" ||
42724          test ! -s conftest.err
42725        } && test -s conftest$ac_exeext &&
42726        $as_test_x conftest$ac_exeext; then
42727   eval "$as_ac_var=yes"
42728 else
42729   echo "$as_me: failed program was:" >&5
42730 sed 's/^/| /' conftest.$ac_ext >&5
42731
42732         eval "$as_ac_var=no"
42733 fi
42734
42735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42736       conftest$ac_exeext conftest.$ac_ext
42737 fi
42738 ac_res=`eval echo '${'$as_ac_var'}'`
42739                { echo "$as_me:$LINENO: result: $ac_res" >&5
42740 echo "${ECHO_T}$ac_res" >&6; }
42741 if test `eval echo '${'$as_ac_var'}'` = yes; then
42742   cat >>confdefs.h <<_ACEOF
42743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42744 _ACEOF
42745
42746              have_xattr=yes
42747
42748 cat >>confdefs.h <<\_ACEOF
42749 #define HAVE_OPENAT 1
42750 _ACEOF
42751
42752
42753 cat >>confdefs.h <<\_ACEOF
42754 #define HAVE_FSTATAT 1
42755 _ACEOF
42756
42757
42758 cat >>confdefs.h <<\_ACEOF
42759 #define HAVE_UNLINKAT 1
42760 _ACEOF
42761
42762
42763 cat >>confdefs.h <<\_ACEOF
42764 #define HAVE_FCHOWNAT 1
42765 _ACEOF
42766
42767
42768 cat >>confdefs.h <<\_ACEOF
42769 #define HAVE_FUTIMESAT 1
42770 _ACEOF
42771
42772
42773
42774 fi
42775 done
42776
42777
42778       if test $have_xattr = yes; then
42779          { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
42780 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
42781 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
42782   echo $ECHO_N "(cached) $ECHO_C" >&6
42783 else
42784   ac_check_lib_save_LIBS=$LIBS
42785 LIBS="-lnvpair  $LIBS"
42786 cat >conftest.$ac_ext <<_ACEOF
42787 /* confdefs.h.  */
42788 _ACEOF
42789 cat confdefs.h >>conftest.$ac_ext
42790 cat >>conftest.$ac_ext <<_ACEOF
42791 /* end confdefs.h.  */
42792
42793 /* Override any GCC internal prototype to avoid an error.
42794    Use char because int might match the return type of a GCC
42795    builtin and then its argument prototype would still apply.  */
42796 #ifdef __cplusplus
42797 extern "C"
42798 #endif
42799 char nvlist_next_nvpair ();
42800 int
42801 main ()
42802 {
42803 return nvlist_next_nvpair ();
42804   ;
42805   return 0;
42806 }
42807 _ACEOF
42808 rm -f conftest.$ac_objext conftest$ac_exeext
42809 if { (ac_try="$ac_link"
42810 case "(($ac_try" in
42811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42812   *) ac_try_echo=$ac_try;;
42813 esac
42814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42815   (eval "$ac_link") 2>conftest.er1
42816   ac_status=$?
42817   grep -v '^ *+' conftest.er1 >conftest.err
42818   rm -f conftest.er1
42819   cat conftest.err >&5
42820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42821   (exit $ac_status); } && {
42822          test -z "$ac_c_werror_flag" ||
42823          test ! -s conftest.err
42824        } && test -s conftest$ac_exeext &&
42825        $as_test_x conftest$ac_exeext; then
42826   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
42827 else
42828   echo "$as_me: failed program was:" >&5
42829 sed 's/^/| /' conftest.$ac_ext >&5
42830
42831         ac_cv_lib_nvpair_nvlist_next_nvpair=no
42832 fi
42833
42834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42835       conftest$ac_exeext conftest.$ac_ext
42836 LIBS=$ac_check_lib_save_LIBS
42837 fi
42838 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
42839 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
42840 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
42841
42842
42843 cat >>confdefs.h <<\_ACEOF
42844 #define HAVE_NVLIST_NEXT_NVPAIR 1
42845 _ACEOF
42846
42847                 FDLIBS="-lnvpair $FDLIBS"
42848
42849
42850 fi
42851
42852       fi
42853    fi
42854
42855    if test x$support_xattr = xyes -a $have_xattr != yes; then
42856       { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
42857   please either load the xattr libraries or rerun configure without --enable-xattr" >&5
42858 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
42859   please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
42860    { (exit 1); exit 1; }; }
42861    else
42862       if test $have_xattr = yes; then
42863
42864 cat >>confdefs.h <<\_ACEOF
42865 #define HAVE_XATTR 1
42866 _ACEOF
42867
42868       fi
42869    fi
42870 fi
42871
42872 PTHREAD_LIB=""
42873 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
42874 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
42875 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
42876   echo $ECHO_N "(cached) $ECHO_C" >&6
42877 else
42878   ac_check_lib_save_LIBS=$LIBS
42879 LIBS="-lpthread  $LIBS"
42880 cat >conftest.$ac_ext <<_ACEOF
42881 /* confdefs.h.  */
42882 _ACEOF
42883 cat confdefs.h >>conftest.$ac_ext
42884 cat >>conftest.$ac_ext <<_ACEOF
42885 /* end confdefs.h.  */
42886
42887 /* Override any GCC internal prototype to avoid an error.
42888    Use char because int might match the return type of a GCC
42889    builtin and then its argument prototype would still apply.  */
42890 #ifdef __cplusplus
42891 extern "C"
42892 #endif
42893 char pthread_create ();
42894 int
42895 main ()
42896 {
42897 return pthread_create ();
42898   ;
42899   return 0;
42900 }
42901 _ACEOF
42902 rm -f conftest.$ac_objext conftest$ac_exeext
42903 if { (ac_try="$ac_link"
42904 case "(($ac_try" in
42905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42906   *) ac_try_echo=$ac_try;;
42907 esac
42908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42909   (eval "$ac_link") 2>conftest.er1
42910   ac_status=$?
42911   grep -v '^ *+' conftest.er1 >conftest.err
42912   rm -f conftest.er1
42913   cat conftest.err >&5
42914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42915   (exit $ac_status); } && {
42916          test -z "$ac_c_werror_flag" ||
42917          test ! -s conftest.err
42918        } && test -s conftest$ac_exeext &&
42919        $as_test_x conftest$ac_exeext; then
42920   ac_cv_lib_pthread_pthread_create=yes
42921 else
42922   echo "$as_me: failed program was:" >&5
42923 sed 's/^/| /' conftest.$ac_ext >&5
42924
42925         ac_cv_lib_pthread_pthread_create=no
42926 fi
42927
42928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42929       conftest$ac_exeext conftest.$ac_ext
42930 LIBS=$ac_check_lib_save_LIBS
42931 fi
42932 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
42933 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
42934 if test $ac_cv_lib_pthread_pthread_create = yes; then
42935   PTHREAD_LIB="-lpthread"
42936 else
42937
42938        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
42939 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
42940 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
42941   echo $ECHO_N "(cached) $ECHO_C" >&6
42942 else
42943   ac_check_lib_save_LIBS=$LIBS
42944 LIBS="-lpthreads  $LIBS"
42945 cat >conftest.$ac_ext <<_ACEOF
42946 /* confdefs.h.  */
42947 _ACEOF
42948 cat confdefs.h >>conftest.$ac_ext
42949 cat >>conftest.$ac_ext <<_ACEOF
42950 /* end confdefs.h.  */
42951
42952 /* Override any GCC internal prototype to avoid an error.
42953    Use char because int might match the return type of a GCC
42954    builtin and then its argument prototype would still apply.  */
42955 #ifdef __cplusplus
42956 extern "C"
42957 #endif
42958 char pthread_create ();
42959 int
42960 main ()
42961 {
42962 return pthread_create ();
42963   ;
42964   return 0;
42965 }
42966 _ACEOF
42967 rm -f conftest.$ac_objext conftest$ac_exeext
42968 if { (ac_try="$ac_link"
42969 case "(($ac_try" in
42970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42971   *) ac_try_echo=$ac_try;;
42972 esac
42973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42974   (eval "$ac_link") 2>conftest.er1
42975   ac_status=$?
42976   grep -v '^ *+' conftest.er1 >conftest.err
42977   rm -f conftest.er1
42978   cat conftest.err >&5
42979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42980   (exit $ac_status); } && {
42981          test -z "$ac_c_werror_flag" ||
42982          test ! -s conftest.err
42983        } && test -s conftest$ac_exeext &&
42984        $as_test_x conftest$ac_exeext; then
42985   ac_cv_lib_pthreads_pthread_create=yes
42986 else
42987   echo "$as_me: failed program was:" >&5
42988 sed 's/^/| /' conftest.$ac_ext >&5
42989
42990         ac_cv_lib_pthreads_pthread_create=no
42991 fi
42992
42993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42994       conftest$ac_exeext conftest.$ac_ext
42995 LIBS=$ac_check_lib_save_LIBS
42996 fi
42997 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
42998 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
42999 if test $ac_cv_lib_pthreads_pthread_create = yes; then
43000   PTHREAD_LIB="-lpthreads"
43001 else
43002
43003               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
43004 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
43005 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
43006   echo $ECHO_N "(cached) $ECHO_C" >&6
43007 else
43008   ac_check_lib_save_LIBS=$LIBS
43009 LIBS="-lc_r  $LIBS"
43010 cat >conftest.$ac_ext <<_ACEOF
43011 /* confdefs.h.  */
43012 _ACEOF
43013 cat confdefs.h >>conftest.$ac_ext
43014 cat >>conftest.$ac_ext <<_ACEOF
43015 /* end confdefs.h.  */
43016
43017 /* Override any GCC internal prototype to avoid an error.
43018    Use char because int might match the return type of a GCC
43019    builtin and then its argument prototype would still apply.  */
43020 #ifdef __cplusplus
43021 extern "C"
43022 #endif
43023 char pthread_create ();
43024 int
43025 main ()
43026 {
43027 return pthread_create ();
43028   ;
43029   return 0;
43030 }
43031 _ACEOF
43032 rm -f conftest.$ac_objext conftest$ac_exeext
43033 if { (ac_try="$ac_link"
43034 case "(($ac_try" in
43035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43036   *) ac_try_echo=$ac_try;;
43037 esac
43038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43039   (eval "$ac_link") 2>conftest.er1
43040   ac_status=$?
43041   grep -v '^ *+' conftest.er1 >conftest.err
43042   rm -f conftest.er1
43043   cat conftest.err >&5
43044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43045   (exit $ac_status); } && {
43046          test -z "$ac_c_werror_flag" ||
43047          test ! -s conftest.err
43048        } && test -s conftest$ac_exeext &&
43049        $as_test_x conftest$ac_exeext; then
43050   ac_cv_lib_c_r_pthread_create=yes
43051 else
43052   echo "$as_me: failed program was:" >&5
43053 sed 's/^/| /' conftest.$ac_ext >&5
43054
43055         ac_cv_lib_c_r_pthread_create=no
43056 fi
43057
43058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43059       conftest$ac_exeext conftest.$ac_ext
43060 LIBS=$ac_check_lib_save_LIBS
43061 fi
43062 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
43063 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
43064 if test $ac_cv_lib_c_r_pthread_create = yes; then
43065   PTHREAD_LIB="-lc_r"
43066 else
43067
43068                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
43069 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
43070 if test "${ac_cv_func_pthread_create+set}" = set; then
43071   echo $ECHO_N "(cached) $ECHO_C" >&6
43072 else
43073   cat >conftest.$ac_ext <<_ACEOF
43074 /* confdefs.h.  */
43075 _ACEOF
43076 cat confdefs.h >>conftest.$ac_ext
43077 cat >>conftest.$ac_ext <<_ACEOF
43078 /* end confdefs.h.  */
43079 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
43080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43081 #define pthread_create innocuous_pthread_create
43082
43083 /* System header to define __stub macros and hopefully few prototypes,
43084     which can conflict with char pthread_create (); below.
43085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43086     <limits.h> exists even on freestanding compilers.  */
43087
43088 #ifdef __STDC__
43089 # include <limits.h>
43090 #else
43091 # include <assert.h>
43092 #endif
43093
43094 #undef pthread_create
43095
43096 /* Override any GCC internal prototype to avoid an error.
43097    Use char because int might match the return type of a GCC
43098    builtin and then its argument prototype would still apply.  */
43099 #ifdef __cplusplus
43100 extern "C"
43101 #endif
43102 char pthread_create ();
43103 /* The GNU C library defines this for functions which it implements
43104     to always fail with ENOSYS.  Some functions are actually named
43105     something starting with __ and the normal name is an alias.  */
43106 #if defined __stub_pthread_create || defined __stub___pthread_create
43107 choke me
43108 #endif
43109
43110 int
43111 main ()
43112 {
43113 return pthread_create ();
43114   ;
43115   return 0;
43116 }
43117 _ACEOF
43118 rm -f conftest.$ac_objext conftest$ac_exeext
43119 if { (ac_try="$ac_link"
43120 case "(($ac_try" in
43121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43122   *) ac_try_echo=$ac_try;;
43123 esac
43124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43125   (eval "$ac_link") 2>conftest.er1
43126   ac_status=$?
43127   grep -v '^ *+' conftest.er1 >conftest.err
43128   rm -f conftest.er1
43129   cat conftest.err >&5
43130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43131   (exit $ac_status); } && {
43132          test -z "$ac_c_werror_flag" ||
43133          test ! -s conftest.err
43134        } && test -s conftest$ac_exeext &&
43135        $as_test_x conftest$ac_exeext; then
43136   ac_cv_func_pthread_create=yes
43137 else
43138   echo "$as_me: failed program was:" >&5
43139 sed 's/^/| /' conftest.$ac_ext >&5
43140
43141         ac_cv_func_pthread_create=no
43142 fi
43143
43144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43145       conftest$ac_exeext conftest.$ac_ext
43146 fi
43147 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
43148 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
43149
43150
43151
43152 fi
43153
43154
43155
43156 fi
43157
43158
43159
43160 fi
43161
43162
43163
43164
43165 for ac_header in sys/prctl.h sys/capability.h
43166 do
43167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43169   { echo "$as_me:$LINENO: checking for $ac_header" >&5
43170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43172   echo $ECHO_N "(cached) $ECHO_C" >&6
43173 fi
43174 ac_res=`eval echo '${'$as_ac_Header'}'`
43175                { echo "$as_me:$LINENO: result: $ac_res" >&5
43176 echo "${ECHO_T}$ac_res" >&6; }
43177 else
43178   # Is the header compilable?
43179 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
43180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
43181 cat >conftest.$ac_ext <<_ACEOF
43182 /* confdefs.h.  */
43183 _ACEOF
43184 cat confdefs.h >>conftest.$ac_ext
43185 cat >>conftest.$ac_ext <<_ACEOF
43186 /* end confdefs.h.  */
43187 $ac_includes_default
43188 #include <$ac_header>
43189 _ACEOF
43190 rm -f conftest.$ac_objext
43191 if { (ac_try="$ac_compile"
43192 case "(($ac_try" in
43193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43194   *) ac_try_echo=$ac_try;;
43195 esac
43196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43197   (eval "$ac_compile") 2>conftest.er1
43198   ac_status=$?
43199   grep -v '^ *+' conftest.er1 >conftest.err
43200   rm -f conftest.er1
43201   cat conftest.err >&5
43202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43203   (exit $ac_status); } && {
43204          test -z "$ac_c_werror_flag" ||
43205          test ! -s conftest.err
43206        } && test -s conftest.$ac_objext; then
43207   ac_header_compiler=yes
43208 else
43209   echo "$as_me: failed program was:" >&5
43210 sed 's/^/| /' conftest.$ac_ext >&5
43211
43212         ac_header_compiler=no
43213 fi
43214
43215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43216 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43217 echo "${ECHO_T}$ac_header_compiler" >&6; }
43218
43219 # Is the header present?
43220 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
43221 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
43222 cat >conftest.$ac_ext <<_ACEOF
43223 /* confdefs.h.  */
43224 _ACEOF
43225 cat confdefs.h >>conftest.$ac_ext
43226 cat >>conftest.$ac_ext <<_ACEOF
43227 /* end confdefs.h.  */
43228 #include <$ac_header>
43229 _ACEOF
43230 if { (ac_try="$ac_cpp conftest.$ac_ext"
43231 case "(($ac_try" in
43232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43233   *) ac_try_echo=$ac_try;;
43234 esac
43235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43236   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43237   ac_status=$?
43238   grep -v '^ *+' conftest.er1 >conftest.err
43239   rm -f conftest.er1
43240   cat conftest.err >&5
43241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43242   (exit $ac_status); } >/dev/null && {
43243          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43244          test ! -s conftest.err
43245        }; then
43246   ac_header_preproc=yes
43247 else
43248   echo "$as_me: failed program was:" >&5
43249 sed 's/^/| /' conftest.$ac_ext >&5
43250
43251   ac_header_preproc=no
43252 fi
43253
43254 rm -f conftest.err conftest.$ac_ext
43255 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43256 echo "${ECHO_T}$ac_header_preproc" >&6; }
43257
43258 # So?  What about this header?
43259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43260   yes:no: )
43261     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43262 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43263     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43264 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43265     ac_header_preproc=yes
43266     ;;
43267   no:yes:* )
43268     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43269 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43270     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43271 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43272     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43273 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43274     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43275 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43276     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43278     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43279 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43280
43281     ;;
43282 esac
43283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43286   echo $ECHO_N "(cached) $ECHO_C" >&6
43287 else
43288   eval "$as_ac_Header=\$ac_header_preproc"
43289 fi
43290 ac_res=`eval echo '${'$as_ac_Header'}'`
43291                { echo "$as_me:$LINENO: result: $ac_res" >&5
43292 echo "${ECHO_T}$ac_res" >&6; }
43293
43294 fi
43295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43296   cat >>confdefs.h <<_ACEOF
43297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43298 _ACEOF
43299
43300 fi
43301
43302 done
43303
43304
43305
43306 for ac_func in prctl setreuid
43307 do
43308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43309 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43312   echo $ECHO_N "(cached) $ECHO_C" >&6
43313 else
43314   cat >conftest.$ac_ext <<_ACEOF
43315 /* confdefs.h.  */
43316 _ACEOF
43317 cat confdefs.h >>conftest.$ac_ext
43318 cat >>conftest.$ac_ext <<_ACEOF
43319 /* end confdefs.h.  */
43320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43322 #define $ac_func innocuous_$ac_func
43323
43324 /* System header to define __stub macros and hopefully few prototypes,
43325     which can conflict with char $ac_func (); below.
43326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43327     <limits.h> exists even on freestanding compilers.  */
43328
43329 #ifdef __STDC__
43330 # include <limits.h>
43331 #else
43332 # include <assert.h>
43333 #endif
43334
43335 #undef $ac_func
43336
43337 /* Override any GCC internal prototype to avoid an error.
43338    Use char because int might match the return type of a GCC
43339    builtin and then its argument prototype would still apply.  */
43340 #ifdef __cplusplus
43341 extern "C"
43342 #endif
43343 char $ac_func ();
43344 /* The GNU C library defines this for functions which it implements
43345     to always fail with ENOSYS.  Some functions are actually named
43346     something starting with __ and the normal name is an alias.  */
43347 #if defined __stub_$ac_func || defined __stub___$ac_func
43348 choke me
43349 #endif
43350
43351 int
43352 main ()
43353 {
43354 return $ac_func ();
43355   ;
43356   return 0;
43357 }
43358 _ACEOF
43359 rm -f conftest.$ac_objext conftest$ac_exeext
43360 if { (ac_try="$ac_link"
43361 case "(($ac_try" in
43362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43363   *) ac_try_echo=$ac_try;;
43364 esac
43365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43366   (eval "$ac_link") 2>conftest.er1
43367   ac_status=$?
43368   grep -v '^ *+' conftest.er1 >conftest.err
43369   rm -f conftest.er1
43370   cat conftest.err >&5
43371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43372   (exit $ac_status); } && {
43373          test -z "$ac_c_werror_flag" ||
43374          test ! -s conftest.err
43375        } && test -s conftest$ac_exeext &&
43376        $as_test_x conftest$ac_exeext; then
43377   eval "$as_ac_var=yes"
43378 else
43379   echo "$as_me: failed program was:" >&5
43380 sed 's/^/| /' conftest.$ac_ext >&5
43381
43382         eval "$as_ac_var=no"
43383 fi
43384
43385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43386       conftest$ac_exeext conftest.$ac_ext
43387 fi
43388 ac_res=`eval echo '${'$as_ac_var'}'`
43389                { echo "$as_me:$LINENO: result: $ac_res" >&5
43390 echo "${ECHO_T}$ac_res" >&6; }
43391 if test `eval echo '${'$as_ac_var'}'` = yes; then
43392   cat >>confdefs.h <<_ACEOF
43393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43394 _ACEOF
43395
43396 fi
43397 done
43398
43399 { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
43400 echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
43401 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
43402   echo $ECHO_N "(cached) $ECHO_C" >&6
43403 else
43404   ac_check_lib_save_LIBS=$LIBS
43405 LIBS="-lcap  $LIBS"
43406 cat >conftest.$ac_ext <<_ACEOF
43407 /* confdefs.h.  */
43408 _ACEOF
43409 cat confdefs.h >>conftest.$ac_ext
43410 cat >>conftest.$ac_ext <<_ACEOF
43411 /* end confdefs.h.  */
43412
43413 /* Override any GCC internal prototype to avoid an error.
43414    Use char because int might match the return type of a GCC
43415    builtin and then its argument prototype would still apply.  */
43416 #ifdef __cplusplus
43417 extern "C"
43418 #endif
43419 char cap_set_proc ();
43420 int
43421 main ()
43422 {
43423 return cap_set_proc ();
43424   ;
43425   return 0;
43426 }
43427 _ACEOF
43428 rm -f conftest.$ac_objext conftest$ac_exeext
43429 if { (ac_try="$ac_link"
43430 case "(($ac_try" in
43431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43432   *) ac_try_echo=$ac_try;;
43433 esac
43434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43435   (eval "$ac_link") 2>conftest.er1
43436   ac_status=$?
43437   grep -v '^ *+' conftest.er1 >conftest.err
43438   rm -f conftest.er1
43439   cat conftest.err >&5
43440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43441   (exit $ac_status); } && {
43442          test -z "$ac_c_werror_flag" ||
43443          test ! -s conftest.err
43444        } && test -s conftest$ac_exeext &&
43445        $as_test_x conftest$ac_exeext; then
43446   ac_cv_lib_cap_cap_set_proc=yes
43447 else
43448   echo "$as_me: failed program was:" >&5
43449 sed 's/^/| /' conftest.$ac_ext >&5
43450
43451         ac_cv_lib_cap_cap_set_proc=no
43452 fi
43453
43454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43455       conftest$ac_exeext conftest.$ac_ext
43456 LIBS=$ac_check_lib_save_LIBS
43457 fi
43458 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
43459 echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
43460 if test $ac_cv_lib_cap_cap_set_proc = yes; then
43461   CAP_LIBS="-lcap"
43462 else
43463   CAP_LIBS=
43464 fi
43465
43466 if test x$CAP_LIBS = x-lcap; then
43467
43468 cat >>confdefs.h <<\_ACEOF
43469 #define HAVE_LIBCAP 1
43470 _ACEOF
43471
43472 fi
43473
43474
43475
43476 cat >>confdefs.h <<\_ACEOF
43477 #define FDLIBS 1
43478 _ACEOF
43479
43480
43481 CFLAGS=${CFLAGS--O}
43482
43483 if test x$have_gcc = xyes ; then
43484    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43485    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43486 fi
43487 LDFLAGS=${LDFLAGS--O}
43488 DB_LIBS="${SQL_LFLAGS}"
43489 CPPFLAGS="$CPPFLAGS"
43490 CFLAGS="$CFLAGS"
43491
43492
43493
43494
43495
43496
43497
43498
43499
43500
43501
43502
43503
43504
43505
43506
43507 OBJLIST=
43508
43509
43510 lld="lld"
43511 llu="llu"
43512
43513 WCFLAGS=
43514 WLDFLAGS=
43515
43516 PFILES="platforms/Makefile"
43517 PSCMD="ps -e"
43518 WIN32=
43519 MACOSX=
43520
43521 hostname=`uname -n | cut -d '.' -f 1`
43522 if test x${hostname} = x ; then
43523    hostname="localhost"
43524 fi
43525 ping -c 1 $hostname 2>/dev/null 1>/dev/null
43526 if test ! $? = 0; then
43527   hostname="localhost"
43528 fi
43529
43530 case "$DISTNAME" in
43531 aix)
43532    DISTVER=`uname -r`
43533    PSCMD="ps -e -o pid,comm"
43534    PFILES="${PFILES} \
43535       platforms/aix/Makefile"
43536    TAPEDRIVE="/dev/rmt0.1"
43537   ;;
43538 alpha)
43539    DISTVER=`uname -r`
43540    PTHREAD_LIB="-lpthread -lexc"
43541    if test "${CC}" = "gcc" ; then
43542       lld="lld"
43543       llu="llu"
43544    else
43545       lld="ld"
43546       llu="lu"
43547    fi
43548    TAPEDRIVE="/dev/nrmt0"
43549   ;;
43550 bsdi)
43551    DISTVER=`uname -a |awk '{print $3}'`
43552    TAPEDRIVE="/dev/nrmt0"
43553    PTHREAD_LIB="-pthread"
43554    CFLAGS="${CFLAGS} -pthread"
43555    PSCMD="ps -ax -o pid,command"
43556    lld="qd"
43557    llu="qu"
43558    PFILES="${PFILES} \
43559        platforms/bsdi/Makefile \
43560        platforms/bsdi/bacula-fd \
43561        platforms/bsdi/bacula-sd \
43562        platforms/bsdi/bacula-dir"
43563    largefile_support="yes"
43564   ;;
43565 cygwin)
43566    DISTVER=`uname -a |awk '{print $3}'`
43567    TAPEDRIVE="/dev/nrst0"
43568    WIN32=win32
43569    WCFLAGS="-mwindows"
43570    WLDFLAGS="-mwindows"
43571   ;;
43572 darwin)
43573    DISTVER=`uname -r`
43574    TAPEDRIVE="/dev/nst0"
43575    PSCMD="ps -e -o pid,command"
43576    MACOSX=macosx
43577    PFILES="${PFILES} \
43578       platforms/darwin/Makefile"
43579   ;;
43580 osx)
43581    DISTVER=`uname -r`
43582    TAPEDRIVE="/dev/nst0"
43583    PSCMD="ps -e -o pid,command"
43584    MACOSX=macosx
43585    PFILES="${PFILES} \
43586       platforms/osx/Makefile"
43587   ;;
43588 debian)
43589    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
43590       DISTNAME="ubuntu"
43591    fi
43592    DISTVER=`cat /etc/debian_version`
43593    if test -f /etc/lsb-release ; then
43594       . /etc/lsb-release
43595       if test "x$DISTRIB_ID" != "x" ; then
43596          DISTNAME=$DISTRIB_ID
43597       fi
43598       if test "x$DISTRIB_RELEASE" != "x" ; then
43599          DISTVER=$DISTRIB_RELEASE
43600       fi
43601    fi
43602    if test "$DISTNAME" = "Ubuntu" ; then
43603       DISTNAME="ubuntu"
43604    fi
43605    TAPEDRIVE="/dev/nst0"
43606    PSCMD="ps -e -o pid,command"
43607    if test "$DISTNAME" = "ubuntu" ; then
43608       PFILES="${PFILES} \
43609          platforms/ubuntu/Makefile \
43610          platforms/ubuntu/bacula-fd \
43611          platforms/ubuntu/bacula-sd \
43612          platforms/ubuntu/bacula-dir"
43613    else
43614       PFILES="${PFILES} \
43615          platforms/debian/Makefile \
43616          platforms/debian/bacula-fd \
43617          platforms/debian/bacula-sd \
43618          platforms/debian/bacula-dir"
43619    fi
43620   ;;
43621 freebsd)
43622    DISTVER=`uname -a |awk '{print $3}'`
43623    VER=`echo $DISTVER | cut -c 1`
43624    if test x$VER = x4 ; then
43625       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
43626       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
43627    fi
43628    lld="qd"
43629    llu="qu"
43630    TAPEDRIVE="/dev/nrsa0"
43631    PSCMD="ps -ax -o pid,command"
43632    PFILES="${PFILES} \
43633        platforms/freebsd/Makefile \
43634        platforms/freebsd/bacula-fd \
43635        platforms/freebsd/bacula-sd \
43636        platforms/freebsd/bacula-dir"
43637    largefile_support="yes"
43638   ;;
43639 hpux)
43640    PSCMD="UNIX95=1; ps -e -o pid,comm"
43641    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
43642    DISTVER=`uname -r`
43643    TAPEDRIVE="/dev/rmt/0hnb"
43644    PTHREAD_LIB="-lpthread"
43645    cat >>confdefs.h <<\_ACEOF
43646 #define _INCLUDE_LONGLONG 1
43647 _ACEOF
43648
43649   ;;
43650 irix)
43651    DISTVER=`uname -r`
43652    TAPEDRIVE="/dev/rmt/0cbn"
43653    PSCMD="ps -e -o pid,comm"
43654    PFILES="${PFILES} \
43655        platforms/irix/Makefile \
43656        platforms/irix/bacula-fd \
43657        platforms/irix/bacula-sd \
43658        platforms/irix/bacula-dir"
43659   ;;
43660 netbsd)
43661    DISTVER=`uname -a |awk '{print $3}'`
43662    lld="qd"
43663    llu="qu"
43664    TAPEDRIVE="/dev/nrst0"
43665    PSCMD="ps -ax -o pid,command"
43666    PTHREAD_LIB="-pthread"
43667    CFLAGS="${CFLAGS} -pthread"
43668   ;;
43669 openbsd)
43670    DISTVER=`uname -a |awk '{print $3}'`
43671    lld="qd"
43672    llu="qu"
43673    TAPEDRIVE="/dev/nrst0"
43674    PSCMD="ps -ax -o pid,command"
43675    PTHREAD_LIB="-pthread"
43676    CFLAGS="${CFLAGS} -pthread"
43677    PFILES="${PFILES} \
43678        platforms/openbsd/Makefile \
43679        platforms/openbsd/bacula-fd \
43680        platforms/openbsd/bacula-sd \
43681        platforms/openbsd/bacula-dir"
43682   ;;
43683 redhat)
43684    if test -f /etc/whitebox-release ; then
43685       f=/etc/whitebox-release
43686    else
43687       f=/etc/redhat-release
43688    fi
43689    if test `cat $f | grep release |\
43690          cut -f 3 -d ' '`x = "Enterprise"x ; then
43691       DISTVER="Enterprise "`cat $f | grep release |\
43692           cut -f 6 -d ' '`
43693    else
43694        DISTVER=`cat /etc/redhat-release | grep release |\
43695            cut -f 5 -d ' '`
43696    fi
43697    TAPEDRIVE="/dev/nst0"
43698    PSCMD="ps -e -o pid,command"
43699    PFILES="${PFILES} \
43700        platforms/redhat/Makefile \
43701        platforms/redhat/bacula-fd \
43702        platforms/redhat/bacula-sd \
43703        platforms/redhat/bacula-dir
43704        "
43705   ;;
43706 mandrake)
43707    DISTVER=`cat /etc/mandrake-release | grep release |\
43708       cut -f 5 -d ' '`
43709    TAPEDRIVE="/dev/nst0"
43710    PSCMD="ps -e -o pid,command"
43711    PFILES="${PFILES} \
43712        platforms/mandrake/Makefile \
43713        platforms/mandrake/bacula-fd \
43714        platforms/mandrake/bacula-sd \
43715        platforms/mandrake/bacula-dir \
43716        platforms/mandrake/bacula.spec \
43717        "
43718   ;;
43719 gentoo)
43720    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
43721    TAPEDRIVE="/dev/nst0"
43722    PSCMD="ps -e -o pid,command"
43723    PFILES="${PFILES} \
43724        platforms/gentoo/Makefile \
43725     platforms/gentoo/bacula-init \
43726        platforms/gentoo/bacula-fd \
43727        platforms/gentoo/bacula-sd \
43728        platforms/gentoo/bacula-dir"
43729   ;;
43730 slackware)
43731    DISTVER=`cat /etc/slackware-version`
43732    TAPEDRIVE="/dev/nst0"
43733    PSCMD="ps -e -o pid,command"
43734    PFILES="${PFILES} \
43735        platforms/slackware/Makefile \
43736        platforms/slackware/rc.bacula-fd \
43737        platforms/slackware/rc.bacula-sd \
43738        platforms/slackware/rc.bacula-dir\
43739        platforms/slackware/functions.bacula"
43740   ;;
43741 solaris)
43742    DISTVER=`uname -r`
43743    TAPEDRIVE="/dev/rmt/0cbn"
43744    PSCMD="ps -e -o pid,comm"
43745    PFILES="${PFILES} \
43746        platforms/solaris/Makefile \
43747        platforms/solaris/bacula-fd \
43748        platforms/solaris/bacula-sd \
43749        platforms/solaris/bacula-dir"
43750    if test x$DISTVER = x5.6 ; then
43751        cat >>confdefs.h <<\_ACEOF
43752 #define HAVE_OLD_SOCKOPT 1
43753 _ACEOF
43754
43755    fi
43756    LIBS="$LIBS -lresolv"
43757   ;;
43758 suse)
43759    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
43760        cut -f 3 -d ' '`
43761    TAPEDRIVE="/dev/nst0"
43762    PSCMD="ps -e -o pid,command"
43763    PFILES="${PFILES} \
43764        platforms/suse/Makefile \
43765        platforms/suse/bacula-fd \
43766        platforms/suse/bacula-sd \
43767        platforms/suse/bacula-dir \
43768        platforms/suse/bacula \
43769        platforms/suse/bacula.spec"
43770   ;;
43771 suse5)
43772    DISTNAME=suse
43773    DISTVER=5.x
43774    TAPEDRIVE="/dev/nst0"
43775    PSCMD="ps -e -o pid,command"
43776    PFILES="${PFILES} \
43777        platforms/suse/Makefile \
43778        platforms/suse/bacula-fd \
43779        platforms/suse/bacula-sd \
43780        platforms/suse/bacula-dir"
43781   ;;
43782 unknown)
43783    DISTVER=unknown
43784    TAPEDRIVE="/dev/nst0"
43785   ;;
43786 *)
43787   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
43788   ;;
43789 esac
43790
43791
43792
43793 LIBS="$PTHREAD_LIB $LIBS"
43794
43795 cat >>confdefs.h <<_ACEOF
43796 #define lld "$lld"
43797 _ACEOF
43798
43799 cat >>confdefs.h <<_ACEOF
43800 #define llu "$llu"
43801 _ACEOF
43802
43803
43804
43805
43806
43807
43808
43809
43810 MCOMMON=./autoconf/Make.common
43811
43812
43813 if test "x${subsysdir}" = "x${sbindir}" ; then
43814    echo " "
43815    echo " "
43816    echo "You have set both --sbindir and --with-subsys-dir"
43817    echo "  equal to: ${subsysdir} "
43818    echo "This is not permitted. Please reconfigure."
43819    echo " "
43820    echo "Aborting configuration ..."
43821    echo " "
43822    echo " "
43823    exit 1
43824 fi
43825
43826 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_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_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_sqlite_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_sqlite_tables_10_to_11 $PFILES"
43827
43828 ac_config_commands="$ac_config_commands default"
43829
43830 cat >confcache <<\_ACEOF
43831 # This file is a shell script that caches the results of configure
43832 # tests run on this system so they can be shared between configure
43833 # scripts and configure runs, see configure's option --config-cache.
43834 # It is not useful on other systems.  If it contains results you don't
43835 # want to keep, you may remove or edit it.
43836 #
43837 # config.status only pays attention to the cache file if you give it
43838 # the --recheck option to rerun configure.
43839 #
43840 # `ac_cv_env_foo' variables (set or unset) will be overridden when
43841 # loading this file, other *unset* `ac_cv_foo' will be assigned the
43842 # following values.
43843
43844 _ACEOF
43845
43846 # The following way of writing the cache mishandles newlines in values,
43847 # but we know of no workaround that is simple, portable, and efficient.
43848 # So, we kill variables containing newlines.
43849 # Ultrix sh set writes to stderr and can't be redirected directly,
43850 # and sets the high bit in the cache file unless we assign to the vars.
43851 (
43852   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
43853     eval ac_val=\$$ac_var
43854     case $ac_val in #(
43855     *${as_nl}*)
43856       case $ac_var in #(
43857       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
43858 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
43859       esac
43860       case $ac_var in #(
43861       _ | IFS | as_nl) ;; #(
43862       *) $as_unset $ac_var ;;
43863       esac ;;
43864     esac
43865   done
43866
43867   (set) 2>&1 |
43868     case $as_nl`(ac_space=' '; set) 2>&1` in #(
43869     *${as_nl}ac_space=\ *)
43870       # `set' does not quote correctly, so add quotes (double-quote
43871       # substitution turns \\\\ into \\, and sed turns \\ into \).
43872       sed -n \
43873         "s/'/'\\\\''/g;
43874           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
43875       ;; #(
43876     *)
43877       # `set' quotes correctly as required by POSIX, so do not add quotes.
43878       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
43879       ;;
43880     esac |
43881     sort
43882 ) |
43883   sed '
43884      /^ac_cv_env_/b end
43885      t clear
43886      :clear
43887      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43888      t end
43889      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43890      :end' >>confcache
43891 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
43892   if test -w "$cache_file"; then
43893     test "x$cache_file" != "x/dev/null" &&
43894       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
43895 echo "$as_me: updating cache $cache_file" >&6;}
43896     cat confcache >$cache_file
43897   else
43898     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
43899 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
43900   fi
43901 fi
43902 rm -f confcache
43903
43904 test "x$prefix" = xNONE && prefix=$ac_default_prefix
43905 # Let make expand exec_prefix.
43906 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43907
43908 DEFS=-DHAVE_CONFIG_H
43909
43910 ac_libobjs=
43911 ac_ltlibobjs=
43912 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43913   # 1. Remove the extension, and $U if already installed.
43914   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
43915   ac_i=`echo "$ac_i" | sed "$ac_script"`
43916   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
43917   #    will be set to the directory where LIBOBJS objects are built.
43918   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
43919   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
43920 done
43921 LIBOBJS=$ac_libobjs
43922
43923 LTLIBOBJS=$ac_ltlibobjs
43924
43925
43926
43927 : ${CONFIG_STATUS=./config.status}
43928 ac_clean_files_save=$ac_clean_files
43929 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43930 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43931 echo "$as_me: creating $CONFIG_STATUS" >&6;}
43932 cat >$CONFIG_STATUS <<_ACEOF
43933 #! $SHELL
43934 # Generated by $as_me.
43935 # Run this file to recreate the current configuration.
43936 # Compiler output produced by configure, useful for debugging
43937 # configure, is in config.log if it exists.
43938
43939 debug=false
43940 ac_cs_recheck=false
43941 ac_cs_silent=false
43942 SHELL=\${CONFIG_SHELL-$SHELL}
43943 _ACEOF
43944
43945 cat >>$CONFIG_STATUS <<\_ACEOF
43946 ## --------------------- ##
43947 ## M4sh Initialization.  ##
43948 ## --------------------- ##
43949
43950 # Be more Bourne compatible
43951 DUALCASE=1; export DUALCASE # for MKS sh
43952 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43953   emulate sh
43954   NULLCMD=:
43955   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43956   # is contrary to our usage.  Disable this feature.
43957   alias -g '${1+"$@"}'='"$@"'
43958   setopt NO_GLOB_SUBST
43959 else
43960   case `(set -o) 2>/dev/null` in
43961   *posix*) set -o posix ;;
43962 esac
43963
43964 fi
43965
43966
43967
43968
43969 # PATH needs CR
43970 # Avoid depending upon Character Ranges.
43971 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43972 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43973 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43974 as_cr_digits='0123456789'
43975 as_cr_alnum=$as_cr_Letters$as_cr_digits
43976
43977 # The user is always right.
43978 if test "${PATH_SEPARATOR+set}" != set; then
43979   echo "#! /bin/sh" >conf$$.sh
43980   echo  "exit 0"   >>conf$$.sh
43981   chmod +x conf$$.sh
43982   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43983     PATH_SEPARATOR=';'
43984   else
43985     PATH_SEPARATOR=:
43986   fi
43987   rm -f conf$$.sh
43988 fi
43989
43990 # Support unset when possible.
43991 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
43992   as_unset=unset
43993 else
43994   as_unset=false
43995 fi
43996
43997
43998 # IFS
43999 # We need space, tab and new line, in precisely that order.  Quoting is
44000 # there to prevent editors from complaining about space-tab.
44001 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
44002 # splitting by setting IFS to empty value.)
44003 as_nl='
44004 '
44005 IFS=" ""        $as_nl"
44006
44007 # Find who we are.  Look in the path if we contain no directory separator.
44008 case $0 in
44009   *[\\/]* ) as_myself=$0 ;;
44010   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44011 for as_dir in $PATH
44012 do
44013   IFS=$as_save_IFS
44014   test -z "$as_dir" && as_dir=.
44015   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44016 done
44017 IFS=$as_save_IFS
44018
44019      ;;
44020 esac
44021 # We did not find ourselves, most probably we were run as `sh COMMAND'
44022 # in which case we are not to be found in the path.
44023 if test "x$as_myself" = x; then
44024   as_myself=$0
44025 fi
44026 if test ! -f "$as_myself"; then
44027   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
44028   { (exit 1); exit 1; }
44029 fi
44030
44031 # Work around bugs in pre-3.0 UWIN ksh.
44032 for as_var in ENV MAIL MAILPATH
44033 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44034 done
44035 PS1='$ '
44036 PS2='> '
44037 PS4='+ '
44038
44039 # NLS nuisances.
44040 for as_var in \
44041   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44042   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44043   LC_TELEPHONE LC_TIME
44044 do
44045   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44046     eval $as_var=C; export $as_var
44047   else
44048     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44049   fi
44050 done
44051
44052 # Required to use basename.
44053 if expr a : '\(a\)' >/dev/null 2>&1 &&
44054    test "X`expr 00001 : '.*\(...\)'`" = X001; then
44055   as_expr=expr
44056 else
44057   as_expr=false
44058 fi
44059
44060 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
44061   as_basename=basename
44062 else
44063   as_basename=false
44064 fi
44065
44066
44067 # Name of the executable.
44068 as_me=`$as_basename -- "$0" ||
44069 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44070          X"$0" : 'X\(//\)$' \| \
44071          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
44072 echo X/"$0" |
44073     sed '/^.*\/\([^/][^/]*\)\/*$/{
44074             s//\1/
44075             q
44076           }
44077           /^X\/\(\/\/\)$/{
44078             s//\1/
44079             q
44080           }
44081           /^X\/\(\/\).*/{
44082             s//\1/
44083             q
44084           }
44085           s/.*/./; q'`
44086
44087 # CDPATH.
44088 $as_unset CDPATH
44089
44090
44091
44092   as_lineno_1=$LINENO
44093   as_lineno_2=$LINENO
44094   test "x$as_lineno_1" != "x$as_lineno_2" &&
44095   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
44096
44097   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44098   # uniformly replaced by the line number.  The first 'sed' inserts a
44099   # line-number line after each line using $LINENO; the second 'sed'
44100   # does the real work.  The second script uses 'N' to pair each
44101   # line-number line with the line containing $LINENO, and appends
44102   # trailing '-' during substitution so that $LINENO is not a special
44103   # case at line end.
44104   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44105   # scripts with optimization help from Paolo Bonzini.  Blame Lee
44106   # E. McMahon (1931-1989) for sed's syntax.  :-)
44107   sed -n '
44108     p
44109     /[$]LINENO/=
44110   ' <$as_myself |
44111     sed '
44112       s/[$]LINENO.*/&-/
44113       t lineno
44114       b
44115       :lineno
44116       N
44117       :loop
44118       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
44119       t loop
44120       s/-\n.*//
44121     ' >$as_me.lineno &&
44122   chmod +x "$as_me.lineno" ||
44123     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
44124    { (exit 1); exit 1; }; }
44125
44126   # Don't try to exec as it changes $[0], causing all sort of problems
44127   # (the dirname of $[0] is not the place where we might find the
44128   # original and so on.  Autoconf is especially sensitive to this).
44129   . "./$as_me.lineno"
44130   # Exit status is that of the last command.
44131   exit
44132 }
44133
44134
44135 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
44136   as_dirname=dirname
44137 else
44138   as_dirname=false
44139 fi
44140
44141 ECHO_C= ECHO_N= ECHO_T=
44142 case `echo -n x` in
44143 -n*)
44144   case `echo 'x\c'` in
44145   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
44146   *)   ECHO_C='\c';;
44147   esac;;
44148 *)
44149   ECHO_N='-n';;
44150 esac
44151
44152 if expr a : '\(a\)' >/dev/null 2>&1 &&
44153    test "X`expr 00001 : '.*\(...\)'`" = X001; then
44154   as_expr=expr
44155 else
44156   as_expr=false
44157 fi
44158
44159 rm -f conf$$ conf$$.exe conf$$.file
44160 if test -d conf$$.dir; then
44161   rm -f conf$$.dir/conf$$.file
44162 else
44163   rm -f conf$$.dir
44164   mkdir conf$$.dir
44165 fi
44166 echo >conf$$.file
44167 if ln -s conf$$.file conf$$ 2>/dev/null; then
44168   as_ln_s='ln -s'
44169   # ... but there are two gotchas:
44170   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
44171   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
44172   # In both cases, we have to default to `cp -p'.
44173   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
44174     as_ln_s='cp -p'
44175 elif ln conf$$.file conf$$ 2>/dev/null; then
44176   as_ln_s=ln
44177 else
44178   as_ln_s='cp -p'
44179 fi
44180 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
44181 rmdir conf$$.dir 2>/dev/null
44182
44183 if mkdir -p . 2>/dev/null; then
44184   as_mkdir_p=:
44185 else
44186   test -d ./-p && rmdir ./-p
44187   as_mkdir_p=false
44188 fi
44189
44190 if test -x / >/dev/null 2>&1; then
44191   as_test_x='test -x'
44192 else
44193   if ls -dL / >/dev/null 2>&1; then
44194     as_ls_L_option=L
44195   else
44196     as_ls_L_option=
44197   fi
44198   as_test_x='
44199     eval sh -c '\''
44200       if test -d "$1"; then
44201         test -d "$1/.";
44202       else
44203         case $1 in
44204         -*)set "./$1";;
44205         esac;
44206         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
44207         ???[sx]*):;;*)false;;esac;fi
44208     '\'' sh
44209   '
44210 fi
44211 as_executable_p=$as_test_x
44212
44213 # Sed expression to map a string onto a valid CPP name.
44214 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
44215
44216 # Sed expression to map a string onto a valid variable name.
44217 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
44218
44219
44220 exec 6>&1
44221
44222 # Save the log message, to keep $[0] and so on meaningful, and to
44223 # report actual input values of CONFIG_FILES etc. instead of their
44224 # values after options handling.
44225 ac_log="
44226 This file was extended by $as_me, which was
44227 generated by GNU Autoconf 2.61.  Invocation command line was
44228
44229   CONFIG_FILES    = $CONFIG_FILES
44230   CONFIG_HEADERS  = $CONFIG_HEADERS
44231   CONFIG_LINKS    = $CONFIG_LINKS
44232   CONFIG_COMMANDS = $CONFIG_COMMANDS
44233   $ $0 $@
44234
44235 on `(hostname || uname -n) 2>/dev/null | sed 1q`
44236 "
44237
44238 _ACEOF
44239
44240 cat >>$CONFIG_STATUS <<_ACEOF
44241 # Files that config.status was made for.
44242 config_files="$ac_config_files"
44243 config_headers="$ac_config_headers"
44244 config_commands="$ac_config_commands"
44245
44246 _ACEOF
44247
44248 cat >>$CONFIG_STATUS <<\_ACEOF
44249 ac_cs_usage="\
44250 \`$as_me' instantiates files from templates according to the
44251 current configuration.
44252
44253 Usage: $0 [OPTIONS] [FILE]...
44254
44255   -h, --help       print this help, then exit
44256   -V, --version    print version number and configuration settings, then exit
44257   -q, --quiet      do not print progress messages
44258   -d, --debug      don't remove temporary files
44259       --recheck    update $as_me by reconfiguring in the same conditions
44260   --file=FILE[:TEMPLATE]
44261                    instantiate the configuration file FILE
44262   --header=FILE[:TEMPLATE]
44263                    instantiate the configuration header FILE
44264
44265 Configuration files:
44266 $config_files
44267
44268 Configuration headers:
44269 $config_headers
44270
44271 Configuration commands:
44272 $config_commands
44273
44274 Report bugs to <bug-autoconf@gnu.org>."
44275
44276 _ACEOF
44277 cat >>$CONFIG_STATUS <<_ACEOF
44278 ac_cs_version="\\
44279 config.status
44280 configured by $0, generated by GNU Autoconf 2.61,
44281   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
44282
44283 Copyright (C) 2006 Free Software Foundation, Inc.
44284 This config.status script is free software; the Free Software Foundation
44285 gives unlimited permission to copy, distribute and modify it."
44286
44287 ac_pwd='$ac_pwd'
44288 srcdir='$srcdir'
44289 INSTALL='$INSTALL'
44290 _ACEOF
44291
44292 cat >>$CONFIG_STATUS <<\_ACEOF
44293 # If no file are specified by the user, then we need to provide default
44294 # value.  By we need to know if files were specified by the user.
44295 ac_need_defaults=:
44296 while test $# != 0
44297 do
44298   case $1 in
44299   --*=*)
44300     ac_option=`expr "X$1" : 'X\([^=]*\)='`
44301     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
44302     ac_shift=:
44303     ;;
44304   *)
44305     ac_option=$1
44306     ac_optarg=$2
44307     ac_shift=shift
44308     ;;
44309   esac
44310
44311   case $ac_option in
44312   # Handling of the options.
44313   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44314     ac_cs_recheck=: ;;
44315   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
44316     echo "$ac_cs_version"; exit ;;
44317   --debug | --debu | --deb | --de | --d | -d )
44318     debug=: ;;
44319   --file | --fil | --fi | --f )
44320     $ac_shift
44321     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44322     ac_need_defaults=false;;
44323   --header | --heade | --head | --hea )
44324     $ac_shift
44325     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44326     ac_need_defaults=false;;
44327   --he | --h)
44328     # Conflict between --help and --header
44329     { echo "$as_me: error: ambiguous option: $1
44330 Try \`$0 --help' for more information." >&2
44331    { (exit 1); exit 1; }; };;
44332   --help | --hel | -h )
44333     echo "$ac_cs_usage"; exit ;;
44334   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44335   | -silent | --silent | --silen | --sile | --sil | --si | --s)
44336     ac_cs_silent=: ;;
44337
44338   # This is an error.
44339   -*) { echo "$as_me: error: unrecognized option: $1
44340 Try \`$0 --help' for more information." >&2
44341    { (exit 1); exit 1; }; } ;;
44342
44343   *) ac_config_targets="$ac_config_targets $1"
44344      ac_need_defaults=false ;;
44345
44346   esac
44347   shift
44348 done
44349
44350 ac_configure_extra_args=
44351
44352 if $ac_cs_silent; then
44353   exec 6>/dev/null
44354   ac_configure_extra_args="$ac_configure_extra_args --silent"
44355 fi
44356
44357 _ACEOF
44358 cat >>$CONFIG_STATUS <<_ACEOF
44359 if \$ac_cs_recheck; then
44360   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44361   CONFIG_SHELL=$SHELL
44362   export CONFIG_SHELL
44363   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44364 fi
44365
44366 _ACEOF
44367 cat >>$CONFIG_STATUS <<\_ACEOF
44368 exec 5>>config.log
44369 {
44370   echo
44371   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44372 ## Running $as_me. ##
44373 _ASBOX
44374   echo "$ac_log"
44375 } >&5
44376
44377 _ACEOF
44378 cat >>$CONFIG_STATUS <<_ACEOF
44379 #
44380 # INIT-COMMANDS
44381 #
44382
44383
44384 # The HP-UX ksh and POSIX shell print the target directory to stdout
44385 # if CDPATH is set.
44386 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
44387
44388 sed_quote_subst='$sed_quote_subst'
44389 double_quote_subst='$double_quote_subst'
44390 delay_variable_subst='$delay_variable_subst'
44391 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
44392 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
44393 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
44394 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
44395 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
44396 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
44397 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
44398 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
44399 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
44400 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
44401 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
44402 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
44403 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
44404 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
44405 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
44406 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
44407 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
44408 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
44409 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
44410 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
44411 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
44412 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
44413 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
44414 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
44415 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
44416 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
44417 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
44418 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44419 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
44420 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
44421 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
44422 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
44423 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44424 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
44425 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
44426 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44427 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44428 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44429 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
44430 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44431 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
44432 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
44433 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
44434 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
44435 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"`'
44436 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"`'
44437 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
44438 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
44439 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
44440 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
44441 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
44442 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
44443 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
44444 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
44445 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
44446 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
44447 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
44448 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
44449 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
44450 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
44451 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
44452 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
44453 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44454 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44455 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
44456 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
44457 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44458 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44459 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
44460 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44461 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44462 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44463 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44464 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44465 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44466 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
44467 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44468 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44469 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44470 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
44471 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
44472 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
44473 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
44474 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
44475 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44476 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
44477 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
44478 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
44479 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
44480 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
44481 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44482 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44483 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44484 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44485 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
44486 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
44487 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
44488 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
44489 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
44490 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44491 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44492 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
44493 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44494 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
44495 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44496 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44497 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44498 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44499 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
44500 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
44501 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44502 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44503 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
44504 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
44505 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
44506 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
44507 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
44508 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
44509 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
44510 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44511 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44512 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
44513 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
44514 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
44515 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44516 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44517 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44518 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44519 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44520 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44521 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44522 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44523 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44524 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44525 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44526 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44527 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44528 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44529 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44530 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44531 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44532 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44533 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44534 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44535 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44536 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44537 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44538 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44539 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44540 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44541 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44542 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44543 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44544 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44545 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44546 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44547 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44548 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44549 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44550 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44551 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44552 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44553 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44554 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44555 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44556 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44557 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44558 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44559 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44560 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44561 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44562
44563 LTCC='$LTCC'
44564 LTCFLAGS='$LTCFLAGS'
44565 compiler='$compiler_DEFAULT'
44566
44567 # Quote evaled strings.
44568 for var in SED \
44569 GREP \
44570 EGREP \
44571 FGREP \
44572 LD \
44573 NM \
44574 LN_S \
44575 lt_SP2NL \
44576 lt_NL2SP \
44577 reload_flag \
44578 OBJDUMP \
44579 deplibs_check_method \
44580 file_magic_cmd \
44581 AR \
44582 AR_FLAGS \
44583 STRIP \
44584 RANLIB \
44585 CC \
44586 CFLAGS \
44587 compiler \
44588 lt_cv_sys_global_symbol_pipe \
44589 lt_cv_sys_global_symbol_to_cdecl \
44590 lt_cv_sys_global_symbol_to_c_name_address \
44591 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
44592 SHELL \
44593 ECHO \
44594 lt_prog_compiler_no_builtin_flag \
44595 lt_prog_compiler_wl \
44596 lt_prog_compiler_pic \
44597 lt_prog_compiler_static \
44598 lt_cv_prog_compiler_c_o \
44599 need_locks \
44600 DSYMUTIL \
44601 NMEDIT \
44602 LIPO \
44603 OTOOL \
44604 OTOOL64 \
44605 shrext_cmds \
44606 export_dynamic_flag_spec \
44607 whole_archive_flag_spec \
44608 compiler_needs_object \
44609 with_gnu_ld \
44610 allow_undefined_flag \
44611 no_undefined_flag \
44612 hardcode_libdir_flag_spec \
44613 hardcode_libdir_flag_spec_ld \
44614 hardcode_libdir_separator \
44615 fix_srcfile_path \
44616 exclude_expsyms \
44617 include_expsyms \
44618 file_list_spec \
44619 variables_saved_for_relink \
44620 libname_spec \
44621 library_names_spec \
44622 soname_spec \
44623 finish_eval \
44624 old_striplib \
44625 striplib \
44626 compiler_lib_search_dirs \
44627 predep_objects \
44628 postdep_objects \
44629 predeps \
44630 postdeps \
44631 compiler_lib_search_path \
44632 LD_CXX \
44633 compiler_CXX \
44634 lt_prog_compiler_no_builtin_flag_CXX \
44635 lt_prog_compiler_wl_CXX \
44636 lt_prog_compiler_pic_CXX \
44637 lt_prog_compiler_static_CXX \
44638 lt_cv_prog_compiler_c_o_CXX \
44639 export_dynamic_flag_spec_CXX \
44640 whole_archive_flag_spec_CXX \
44641 compiler_needs_object_CXX \
44642 with_gnu_ld_CXX \
44643 allow_undefined_flag_CXX \
44644 no_undefined_flag_CXX \
44645 hardcode_libdir_flag_spec_CXX \
44646 hardcode_libdir_flag_spec_ld_CXX \
44647 hardcode_libdir_separator_CXX \
44648 fix_srcfile_path_CXX \
44649 exclude_expsyms_CXX \
44650 include_expsyms_CXX \
44651 file_list_spec_CXX \
44652 compiler_lib_search_dirs_CXX \
44653 predep_objects_CXX \
44654 postdep_objects_CXX \
44655 predeps_CXX \
44656 postdeps_CXX \
44657 compiler_lib_search_path_CXX; do
44658     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44659     *[\\\\\\\`\\"\\\$]*)
44660       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
44661       ;;
44662     *)
44663       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44664       ;;
44665     esac
44666 done
44667
44668 # Double-quote double-evaled strings.
44669 for var in reload_cmds \
44670 old_postinstall_cmds \
44671 old_postuninstall_cmds \
44672 old_archive_cmds \
44673 extract_expsyms_cmds \
44674 old_archive_from_new_cmds \
44675 old_archive_from_expsyms_cmds \
44676 archive_cmds \
44677 archive_expsym_cmds \
44678 module_cmds \
44679 module_expsym_cmds \
44680 export_symbols_cmds \
44681 prelink_cmds \
44682 postinstall_cmds \
44683 postuninstall_cmds \
44684 finish_cmds \
44685 sys_lib_search_path_spec \
44686 sys_lib_dlsearch_path_spec \
44687 old_archive_cmds_CXX \
44688 old_archive_from_new_cmds_CXX \
44689 old_archive_from_expsyms_cmds_CXX \
44690 archive_cmds_CXX \
44691 archive_expsym_cmds_CXX \
44692 module_cmds_CXX \
44693 module_expsym_cmds_CXX \
44694 export_symbols_cmds_CXX \
44695 prelink_cmds_CXX; do
44696     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44697     *[\\\\\\\`\\"\\\$]*)
44698       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
44699       ;;
44700     *)
44701       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44702       ;;
44703     esac
44704 done
44705
44706 # Fix-up fallback echo if it was mangled by the above quoting rules.
44707 case \$lt_ECHO in
44708 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
44709   ;;
44710 esac
44711
44712 ac_aux_dir='$ac_aux_dir'
44713 xsi_shell='$xsi_shell'
44714 lt_shell_append='$lt_shell_append'
44715
44716 # See if we are running on zsh, and set the options which allow our
44717 # commands through without removal of \ escapes INIT.
44718 if test -n "\${ZSH_VERSION+set}" ; then
44719    setopt NO_GLOB_SUBST
44720 fi
44721
44722
44723     PACKAGE='$PACKAGE'
44724     VERSION='$VERSION'
44725     TIMESTAMP='$TIMESTAMP'
44726     RM='$RM'
44727     ofile='$ofile'
44728
44729
44730
44731
44732
44733 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
44734     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
44735     # from automake.
44736     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
44737     # Capture the value of LINGUAS because we need it to compute CATALOGS.
44738     LINGUAS="${LINGUAS-%UNSET%}"
44739
44740
44741 _ACEOF
44742
44743 cat >>$CONFIG_STATUS <<\_ACEOF
44744
44745 # Handling of arguments.
44746 for ac_config_target in $ac_config_targets
44747 do
44748   case $ac_config_target in
44749     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
44750     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
44751     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
44752     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
44753     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44754     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
44755     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
44756     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
44757     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
44758     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
44759     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
44760     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
44761     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
44762     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
44763     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
44764     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
44765     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
44766     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
44767     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
44768     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
44769     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
44770     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
44771     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
44772     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
44773     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
44774     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
44775     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
44776     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
44777     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
44778     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
44779     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
44780     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
44781     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
44782     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
44783     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
44784     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
44785     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
44786     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
44787     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
44788     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
44789     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
44790     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
44791     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
44792     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
44793     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
44794     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
44795     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
44796     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
44797     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
44798     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
44799     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
44800     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
44801     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
44802     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
44803     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
44804     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
44805     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
44806     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
44807     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
44808     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
44809     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
44810     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
44811     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
44812     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
44813     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
44814     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
44815     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
44816     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
44817     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
44818     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
44819     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
44820     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
44821     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
44822     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
44823     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
44824     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
44825     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
44826     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
44827     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
44828     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
44829     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
44830     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
44831     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
44832     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
44833     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
44834     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
44835     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
44836     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
44837     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
44838     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
44839     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
44840     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
44841     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
44842     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
44843     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
44844     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
44845     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
44846     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
44847     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
44848     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
44849     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
44850     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
44851     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
44852     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
44853     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
44854     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
44855     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
44856     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
44857     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
44858     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
44859     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
44860     "updatedb/update_sqlite_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_9_to_10" ;;
44861     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
44862     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
44863     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
44864     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
44865     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
44866     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
44867
44868   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44869 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44870    { (exit 1); exit 1; }; };;
44871   esac
44872 done
44873
44874
44875 # If the user did not use the arguments to specify the items to instantiate,
44876 # then the envvar interface is used.  Set only those that are not.
44877 # We use the long form for the default assignment because of an extremely
44878 # bizarre bug on SunOS 4.1.3.
44879 if $ac_need_defaults; then
44880   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44881   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44882   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44883 fi
44884
44885 # Have a temporary directory for convenience.  Make it in the build tree
44886 # simply because there is no reason against having it here, and in addition,
44887 # creating and moving files from /tmp can sometimes cause problems.
44888 # Hook for its removal unless debugging.
44889 # Note that there is a small window in which the directory will not be cleaned:
44890 # after its creation but before its name has been assigned to `$tmp'.
44891 $debug ||
44892 {
44893   tmp=
44894   trap 'exit_status=$?
44895   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
44896 ' 0
44897   trap '{ (exit 1); exit 1; }' 1 2 13 15
44898 }
44899 # Create a (secure) tmp directory for tmp files.
44900
44901 {
44902   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
44903   test -n "$tmp" && test -d "$tmp"
44904 }  ||
44905 {
44906   tmp=./conf$$-$RANDOM
44907   (umask 077 && mkdir "$tmp")
44908 } ||
44909 {
44910    echo "$me: cannot create a temporary directory in ." >&2
44911    { (exit 1); exit 1; }
44912 }
44913
44914 #
44915 # Set up the sed scripts for CONFIG_FILES section.
44916 #
44917
44918 # No need to generate the scripts if there are no CONFIG_FILES.
44919 # This happens for instance when ./config.status config.h
44920 if test -n "$CONFIG_FILES"; then
44921
44922 _ACEOF
44923
44924 # Create sed commands to just substitute file output variables.
44925
44926 # Remaining file output variables are in a fragment that also has non-file
44927 # output varibles.
44928
44929
44930
44931 ac_delim='%!_!# '
44932 for ac_last_try in false false false false false :; do
44933   cat >conf$$subs.sed <<_ACEOF
44934 SHELL!$SHELL$ac_delim
44935 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
44936 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
44937 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
44938 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
44939 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
44940 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
44941 exec_prefix!$exec_prefix$ac_delim
44942 prefix!$prefix$ac_delim
44943 program_transform_name!$program_transform_name$ac_delim
44944 bindir!$bindir$ac_delim
44945 sbindir!$sbindir$ac_delim
44946 libexecdir!$libexecdir$ac_delim
44947 datarootdir!$datarootdir$ac_delim
44948 datadir!$datadir$ac_delim
44949 sysconfdir!$sysconfdir$ac_delim
44950 sharedstatedir!$sharedstatedir$ac_delim
44951 localstatedir!$localstatedir$ac_delim
44952 includedir!$includedir$ac_delim
44953 oldincludedir!$oldincludedir$ac_delim
44954 docdir!$docdir$ac_delim
44955 infodir!$infodir$ac_delim
44956 htmldir!$htmldir$ac_delim
44957 dvidir!$dvidir$ac_delim
44958 pdfdir!$pdfdir$ac_delim
44959 psdir!$psdir$ac_delim
44960 libdir!$libdir$ac_delim
44961 localedir!$localedir$ac_delim
44962 mandir!$mandir$ac_delim
44963 DEFS!$DEFS$ac_delim
44964 ECHO_C!$ECHO_C$ac_delim
44965 ECHO_N!$ECHO_N$ac_delim
44966 ECHO_T!$ECHO_T$ac_delim
44967 LIBS!$LIBS$ac_delim
44968 build_alias!$build_alias$ac_delim
44969 host_alias!$host_alias$ac_delim
44970 target_alias!$target_alias$ac_delim
44971 BUILD_DIR!$BUILD_DIR$ac_delim
44972 TOP_DIR!$TOP_DIR$ac_delim
44973 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
44974 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
44975 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
44976 TRUEPRG!$TRUEPRG$ac_delim
44977 FALSEPRG!$FALSEPRG$ac_delim
44978 VERSION!$VERSION$ac_delim
44979 DATE!$DATE$ac_delim
44980 LSMDATE!$LSMDATE$ac_delim
44981 BACULA!$BACULA$ac_delim
44982 post_host!$post_host$ac_delim
44983 CC!$CC$ac_delim
44984 CFLAGS!$CFLAGS$ac_delim
44985 LDFLAGS!$LDFLAGS$ac_delim
44986 CPPFLAGS!$CPPFLAGS$ac_delim
44987 ac_ct_CC!$ac_ct_CC$ac_delim
44988 EXEEXT!$EXEEXT$ac_delim
44989 OBJEXT!$OBJEXT$ac_delim
44990 CXX!$CXX$ac_delim
44991 CXXFLAGS!$CXXFLAGS$ac_delim
44992 ac_ct_CXX!$ac_ct_CXX$ac_delim
44993 CPP!$CPP$ac_delim
44994 GREP!$GREP$ac_delim
44995 EGREP!$EGREP$ac_delim
44996 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
44997 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
44998 INSTALL_DATA!$INSTALL_DATA$ac_delim
44999 MV!$MV$ac_delim
45000 REMOVE!$REMOVE$ac_delim
45001 CP!$CP$ac_delim
45002 SED!$SED$ac_delim
45003 ECHO!$ECHO$ac_delim
45004 CMP!$CMP$ac_delim
45005 TBL!$TBL$ac_delim
45006 AR!$AR$ac_delim
45007 OPENSSL!$OPENSSL$ac_delim
45008 MTX!$MTX$ac_delim
45009 DD!$DD$ac_delim
45010 MKISOFS!$MKISOFS$ac_delim
45011 PYTHON!$PYTHON$ac_delim
45012 GROWISOFS!$GROWISOFS$ac_delim
45013 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
45014 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
45015 PKGCONFIG!$PKGCONFIG$ac_delim
45016 QMAKE!$QMAKE$ac_delim
45017 QMAKEQT4!$QMAKEQT4$ac_delim
45018 GMAKE!$GMAKE$ac_delim
45019 WXCONFIG!$WXCONFIG$ac_delim
45020 WXFLAGS!$WXFLAGS$ac_delim
45021 CDRECORD!$CDRECORD$ac_delim
45022 PIDOF!$PIDOF$ac_delim
45023 AWK!$AWK$ac_delim
45024 ARFLAGS!$ARFLAGS$ac_delim
45025 MAKE_SHELL!$MAKE_SHELL$ac_delim
45026 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
45027 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
45028 _ACEOF
45029
45030   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
45031     break
45032   elif $ac_last_try; then
45033     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45034 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45035    { (exit 1); exit 1; }; }
45036   else
45037     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45038   fi
45039 done
45040
45041 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45042 if test -n "$ac_eof"; then
45043   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45044   ac_eof=`expr $ac_eof + 1`
45045 fi
45046
45047 cat >>$CONFIG_STATUS <<_ACEOF
45048 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
45049 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45050 /^[      ]*@MCOMMON@[    ]*$/{
45051 r $MCOMMON
45052 d
45053 }
45054 _ACEOF
45055 sed '
45056 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45057 s/^/s,@/; s/!/@,|#_!!_#|/
45058 :n
45059 t n
45060 s/'"$ac_delim"'$/,g/; t
45061 s/$/\\/; p
45062 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45063 ' >>$CONFIG_STATUS <conf$$subs.sed
45064 rm -f conf$$subs.sed
45065 cat >>$CONFIG_STATUS <<_ACEOF
45066 CEOF$ac_eof
45067 _ACEOF
45068
45069
45070 ac_delim='%!_!# '
45071 for ac_last_try in false false false false false :; do
45072   cat >conf$$subs.sed <<_ACEOF
45073 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
45074 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
45075 LIBTOOL!$LIBTOOL$ac_delim
45076 build!$build$ac_delim
45077 build_cpu!$build_cpu$ac_delim
45078 build_vendor!$build_vendor$ac_delim
45079 build_os!$build_os$ac_delim
45080 host!$host$ac_delim
45081 host_cpu!$host_cpu$ac_delim
45082 host_vendor!$host_vendor$ac_delim
45083 host_os!$host_os$ac_delim
45084 FGREP!$FGREP$ac_delim
45085 LD!$LD$ac_delim
45086 DUMPBIN!$DUMPBIN$ac_delim
45087 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
45088 NM!$NM$ac_delim
45089 LN_S!$LN_S$ac_delim
45090 OBJDUMP!$OBJDUMP$ac_delim
45091 STRIP!$STRIP$ac_delim
45092 RANLIB!$RANLIB$ac_delim
45093 lt_ECHO!$lt_ECHO$ac_delim
45094 DSYMUTIL!$DSYMUTIL$ac_delim
45095 NMEDIT!$NMEDIT$ac_delim
45096 LIPO!$LIPO$ac_delim
45097 OTOOL!$OTOOL$ac_delim
45098 OTOOL64!$OTOOL64$ac_delim
45099 CXXCPP!$CXXCPP$ac_delim
45100 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
45101 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
45102 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
45103 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
45104 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
45105 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
45106 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
45107 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
45108 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
45109 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
45110 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
45111 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
45112 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
45113 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
45114 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
45115 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
45116 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
45117 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
45118 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
45119 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
45120 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
45121 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
45122 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
45123 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
45124 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
45125 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
45126 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
45127 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
45128 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
45129 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
45130 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
45131 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
45132 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
45133 SET_MAKE!$SET_MAKE$ac_delim
45134 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
45135 USE_NLS!$USE_NLS$ac_delim
45136 MSGFMT!$MSGFMT$ac_delim
45137 GMSGFMT!$GMSGFMT$ac_delim
45138 XGETTEXT!$XGETTEXT$ac_delim
45139 MSGMERGE!$MSGMERGE$ac_delim
45140 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
45141 LIBICONV!$LIBICONV$ac_delim
45142 LTLIBICONV!$LTLIBICONV$ac_delim
45143 INTLLIBS!$INTLLIBS$ac_delim
45144 LIBINTL!$LIBINTL$ac_delim
45145 LTLIBINTL!$LTLIBINTL$ac_delim
45146 POSUB!$POSUB$ac_delim
45147 GLIBC2!$GLIBC2$ac_delim
45148 ALLOCA!$ALLOCA$ac_delim
45149 GLIBC21!$GLIBC21$ac_delim
45150 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
45151 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
45152 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
45153 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
45154 INTLBISON!$INTLBISON$ac_delim
45155 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
45156 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
45157 CATOBJEXT!$CATOBJEXT$ac_delim
45158 DATADIRNAME!$DATADIRNAME$ac_delim
45159 INSTOBJEXT!$INSTOBJEXT$ac_delim
45160 GENCAT!$GENCAT$ac_delim
45161 INTLOBJS!$INTLOBJS$ac_delim
45162 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
45163 BAT_DIR!$BAT_DIR$ac_delim
45164 QWT_INC!$QWT_INC$ac_delim
45165 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
45166 QWT_LIB!$QWT_LIB$ac_delim
45167 QWT!$QWT$ac_delim
45168 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
45169 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
45170 _ACEOF
45171
45172   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45173     break
45174   elif $ac_last_try; then
45175     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45176 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45177    { (exit 1); exit 1; }; }
45178   else
45179     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45180   fi
45181 done
45182
45183 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45184 if test -n "$ac_eof"; then
45185   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45186   ac_eof=`expr $ac_eof + 1`
45187 fi
45188
45189 cat >>$CONFIG_STATUS <<_ACEOF
45190 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
45191 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45192 _ACEOF
45193 sed '
45194 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45195 s/^/s,@/; s/!/@,|#_!!_#|/
45196 :n
45197 t n
45198 s/'"$ac_delim"'$/,g/; t
45199 s/$/\\/; p
45200 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45201 ' >>$CONFIG_STATUS <conf$$subs.sed
45202 rm -f conf$$subs.sed
45203 cat >>$CONFIG_STATUS <<_ACEOF
45204 CEOF$ac_eof
45205 _ACEOF
45206
45207
45208 ac_delim='%!_!# '
45209 for ac_last_try in false false false false false :; do
45210   cat >conf$$subs.sed <<_ACEOF
45211 WX_DIR!$WX_DIR$ac_delim
45212 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
45213 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
45214 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
45215 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
45216 STATIC_FD!$STATIC_FD$ac_delim
45217 STATIC_SD!$STATIC_SD$ac_delim
45218 STATIC_DIR!$STATIC_DIR$ac_delim
45219 STATIC_CONS!$STATIC_CONS$ac_delim
45220 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
45221 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
45222 ALL_DIRS!$ALL_DIRS$ac_delim
45223 DIRD_DIR!$DIRD_DIR$ac_delim
45224 DIR_TOOLS!$DIR_TOOLS$ac_delim
45225 STORED_DIR!$STORED_DIR$ac_delim
45226 CONS_INC!$CONS_INC$ac_delim
45227 CONS_OBJ!$CONS_OBJ$ac_delim
45228 CONS_SRC!$CONS_SRC$ac_delim
45229 CONS_LIBS!$CONS_LIBS$ac_delim
45230 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
45231 READLINE_SRC!$READLINE_SRC$ac_delim
45232 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
45233 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
45234 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
45235 OPENSSL_INC!$OPENSSL_INC$ac_delim
45236 working_dir!$working_dir$ac_delim
45237 archivedir!$archivedir$ac_delim
45238 basename!$basename$ac_delim
45239 hostname!$hostname$ac_delim
45240 scriptdir!$scriptdir$ac_delim
45241 bsrdir!$bsrdir$ac_delim
45242 logdir!$logdir$ac_delim
45243 plugindir!$plugindir$ac_delim
45244 dump_email!$dump_email$ac_delim
45245 job_email!$job_email$ac_delim
45246 smtp_host!$smtp_host$ac_delim
45247 piddir!$piddir$ac_delim
45248 subsysdir!$subsysdir$ac_delim
45249 baseport!$baseport$ac_delim
45250 dir_port!$dir_port$ac_delim
45251 fd_port!$fd_port$ac_delim
45252 sd_port!$sd_port$ac_delim
45253 dir_password!$dir_password$ac_delim
45254 fd_password!$fd_password$ac_delim
45255 sd_password!$sd_password$ac_delim
45256 mon_dir_password!$mon_dir_password$ac_delim
45257 mon_fd_password!$mon_fd_password$ac_delim
45258 mon_sd_password!$mon_sd_password$ac_delim
45259 db_name!$db_name$ac_delim
45260 db_user!$db_user$ac_delim
45261 db_password!$db_password$ac_delim
45262 db_port!$db_port$ac_delim
45263 dir_user!$dir_user$ac_delim
45264 dir_group!$dir_group$ac_delim
45265 sd_user!$sd_user$ac_delim
45266 sd_group!$sd_group$ac_delim
45267 fd_user!$fd_user$ac_delim
45268 fd_group!$fd_group$ac_delim
45269 SBINPERM!$SBINPERM$ac_delim
45270 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
45271 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
45272 SQL_BINDIR!$SQL_BINDIR$ac_delim
45273 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
45274 uncomment_dbi!$uncomment_dbi$ac_delim
45275 DB_PROG!$DB_PROG$ac_delim
45276 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
45277 cats!$cats$ac_delim
45278 DB_TYPE!$DB_TYPE$ac_delim
45279 GETCONF!$GETCONF$ac_delim
45280 XMKMF!$XMKMF$ac_delim
45281 X_CFLAGS!$X_CFLAGS$ac_delim
45282 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
45283 X_LIBS!$X_LIBS$ac_delim
45284 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
45285 LIBOBJS!$LIBOBJS$ac_delim
45286 CAP_LIBS!$CAP_LIBS$ac_delim
45287 FDLIBS!$FDLIBS$ac_delim
45288 DEBUG!$DEBUG$ac_delim
45289 DINCLUDE!$DINCLUDE$ac_delim
45290 DLIB!$DLIB$ac_delim
45291 DB_LIBS!$DB_LIBS$ac_delim
45292 WCFLAGS!$WCFLAGS$ac_delim
45293 WLDFLAGS!$WLDFLAGS$ac_delim
45294 WRAPLIBS!$WRAPLIBS$ac_delim
45295 OBJLIST!$OBJLIST$ac_delim
45296 TAPEDRIVE!$TAPEDRIVE$ac_delim
45297 PSCMD!$PSCMD$ac_delim
45298 WIN32!$WIN32$ac_delim
45299 MACOSX!$MACOSX$ac_delim
45300 DISTNAME!$DISTNAME$ac_delim
45301 DISTVER!$DISTVER$ac_delim
45302 LTLIBOBJS!$LTLIBOBJS$ac_delim
45303 _ACEOF
45304
45305   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
45306     break
45307   elif $ac_last_try; then
45308     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45309 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45310    { (exit 1); exit 1; }; }
45311   else
45312     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45313   fi
45314 done
45315
45316 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45317 if test -n "$ac_eof"; then
45318   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45319   ac_eof=`expr $ac_eof + 1`
45320 fi
45321
45322 cat >>$CONFIG_STATUS <<_ACEOF
45323 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
45324 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
45325 _ACEOF
45326 sed '
45327 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45328 s/^/s,@/; s/!/@,|#_!!_#|/
45329 :n
45330 t n
45331 s/'"$ac_delim"'$/,g/; t
45332 s/$/\\/; p
45333 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45334 ' >>$CONFIG_STATUS <conf$$subs.sed
45335 rm -f conf$$subs.sed
45336 cat >>$CONFIG_STATUS <<_ACEOF
45337 :end
45338 s/|#_!!_#|//g
45339 CEOF$ac_eof
45340 _ACEOF
45341
45342
45343 # VPATH may cause trouble with some makes, so we remove $(srcdir),
45344 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45345 # trailing colons and then remove the whole line if VPATH becomes empty
45346 # (actually we leave an empty line to preserve line numbers).
45347 if test "x$srcdir" = x.; then
45348   ac_vpsub='/^[  ]*VPATH[        ]*=/{
45349 s/:*\$(srcdir):*/:/
45350 s/:*\${srcdir}:*/:/
45351 s/:*@srcdir@:*/:/
45352 s/^\([^=]*=[     ]*\):*/\1/
45353 s/:*$//
45354 s/^[^=]*=[       ]*$//
45355 }'
45356 fi
45357
45358 cat >>$CONFIG_STATUS <<\_ACEOF
45359 fi # test -n "$CONFIG_FILES"
45360
45361
45362 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
45363 do
45364   case $ac_tag in
45365   :[FHLC]) ac_mode=$ac_tag; continue;;
45366   esac
45367   case $ac_mode$ac_tag in
45368   :[FHL]*:*);;
45369   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
45370 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
45371    { (exit 1); exit 1; }; };;
45372   :[FH]-) ac_tag=-:-;;
45373   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
45374   esac
45375   ac_save_IFS=$IFS
45376   IFS=:
45377   set x $ac_tag
45378   IFS=$ac_save_IFS
45379   shift
45380   ac_file=$1
45381   shift
45382
45383   case $ac_mode in
45384   :L) ac_source=$1;;
45385   :[FH])
45386     ac_file_inputs=
45387     for ac_f
45388     do
45389       case $ac_f in
45390       -) ac_f="$tmp/stdin";;
45391       *) # Look for the file first in the build tree, then in the source tree
45392          # (if the path is not absolute).  The absolute path cannot be DOS-style,
45393          # because $ac_f cannot contain `:'.
45394          test -f "$ac_f" ||
45395            case $ac_f in
45396            [\\/$]*) false;;
45397            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
45398            esac ||
45399            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
45400 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
45401    { (exit 1); exit 1; }; };;
45402       esac
45403       ac_file_inputs="$ac_file_inputs $ac_f"
45404     done
45405
45406     # Let's still pretend it is `configure' which instantiates (i.e., don't
45407     # use $as_me), people would be surprised to read:
45408     #    /* config.h.  Generated by config.status.  */
45409     configure_input="Generated from "`IFS=:
45410           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
45411     if test x"$ac_file" != x-; then
45412       configure_input="$ac_file.  $configure_input"
45413       { echo "$as_me:$LINENO: creating $ac_file" >&5
45414 echo "$as_me: creating $ac_file" >&6;}
45415     fi
45416
45417     case $ac_tag in
45418     *:-:* | *:-) cat >"$tmp/stdin";;
45419     esac
45420     ;;
45421   esac
45422
45423   ac_dir=`$as_dirname -- "$ac_file" ||
45424 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45425          X"$ac_file" : 'X\(//\)[^/]' \| \
45426          X"$ac_file" : 'X\(//\)$' \| \
45427          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
45428 echo X"$ac_file" |
45429     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45430             s//\1/
45431             q
45432           }
45433           /^X\(\/\/\)[^/].*/{
45434             s//\1/
45435             q
45436           }
45437           /^X\(\/\/\)$/{
45438             s//\1/
45439             q
45440           }
45441           /^X\(\/\).*/{
45442             s//\1/
45443             q
45444           }
45445           s/.*/./; q'`
45446   { as_dir="$ac_dir"
45447   case $as_dir in #(
45448   -*) as_dir=./$as_dir;;
45449   esac
45450   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
45451     as_dirs=
45452     while :; do
45453       case $as_dir in #(
45454       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
45455       *) as_qdir=$as_dir;;
45456       esac
45457       as_dirs="'$as_qdir' $as_dirs"
45458       as_dir=`$as_dirname -- "$as_dir" ||
45459 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45460          X"$as_dir" : 'X\(//\)[^/]' \| \
45461          X"$as_dir" : 'X\(//\)$' \| \
45462          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45463 echo X"$as_dir" |
45464     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45465             s//\1/
45466             q
45467           }
45468           /^X\(\/\/\)[^/].*/{
45469             s//\1/
45470             q
45471           }
45472           /^X\(\/\/\)$/{
45473             s//\1/
45474             q
45475           }
45476           /^X\(\/\).*/{
45477             s//\1/
45478             q
45479           }
45480           s/.*/./; q'`
45481       test -d "$as_dir" && break
45482     done
45483     test -z "$as_dirs" || eval "mkdir $as_dirs"
45484   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
45485 echo "$as_me: error: cannot create directory $as_dir" >&2;}
45486    { (exit 1); exit 1; }; }; }
45487   ac_builddir=.
45488
45489 case "$ac_dir" in
45490 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
45491 *)
45492   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45493   # A ".." for each directory in $ac_dir_suffix.
45494   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
45495   case $ac_top_builddir_sub in
45496   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
45497   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
45498   esac ;;
45499 esac
45500 ac_abs_top_builddir=$ac_pwd
45501 ac_abs_builddir=$ac_pwd$ac_dir_suffix
45502 # for backward compatibility:
45503 ac_top_builddir=$ac_top_build_prefix
45504
45505 case $srcdir in
45506   .)  # We are building in place.
45507     ac_srcdir=.
45508     ac_top_srcdir=$ac_top_builddir_sub
45509     ac_abs_top_srcdir=$ac_pwd ;;
45510   [\\/]* | ?:[\\/]* )  # Absolute name.
45511     ac_srcdir=$srcdir$ac_dir_suffix;
45512     ac_top_srcdir=$srcdir
45513     ac_abs_top_srcdir=$srcdir ;;
45514   *) # Relative name.
45515     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
45516     ac_top_srcdir=$ac_top_build_prefix$srcdir
45517     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
45518 esac
45519 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
45520
45521
45522   case $ac_mode in
45523   :F)
45524   #
45525   # CONFIG_FILE
45526   #
45527
45528   case $INSTALL in
45529   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45530   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
45531   esac
45532 _ACEOF
45533
45534 cat >>$CONFIG_STATUS <<\_ACEOF
45535 # If the template does not know about datarootdir, expand it.
45536 # FIXME: This hack should be removed a few years after 2.60.
45537 ac_datarootdir_hack=; ac_datarootdir_seen=
45538
45539 case `sed -n '/datarootdir/ {
45540   p
45541   q
45542 }
45543 /@datadir@/p
45544 /@docdir@/p
45545 /@infodir@/p
45546 /@localedir@/p
45547 /@mandir@/p
45548 ' $ac_file_inputs` in
45549 *datarootdir*) ac_datarootdir_seen=yes;;
45550 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
45551   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
45552 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
45553 _ACEOF
45554 cat >>$CONFIG_STATUS <<_ACEOF
45555   ac_datarootdir_hack='
45556   s&@datadir@&$datadir&g
45557   s&@docdir@&$docdir&g
45558   s&@infodir@&$infodir&g
45559   s&@localedir@&$localedir&g
45560   s&@mandir@&$mandir&g
45561     s&\\\${datarootdir}&$datarootdir&g' ;;
45562 esac
45563 _ACEOF
45564
45565 # Neutralize VPATH when `$srcdir' = `.'.
45566 # Shell code in configure.ac might set extrasub.
45567 # FIXME: do we really want to maintain this feature?
45568 cat >>$CONFIG_STATUS <<_ACEOF
45569   sed "$ac_vpsub
45570 $extrasub
45571 _ACEOF
45572 cat >>$CONFIG_STATUS <<\_ACEOF
45573 :t
45574 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45575 s&@configure_input@&$configure_input&;t t
45576 s&@top_builddir@&$ac_top_builddir_sub&;t t
45577 s&@srcdir@&$ac_srcdir&;t t
45578 s&@abs_srcdir@&$ac_abs_srcdir&;t t
45579 s&@top_srcdir@&$ac_top_srcdir&;t t
45580 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
45581 s&@builddir@&$ac_builddir&;t t
45582 s&@abs_builddir@&$ac_abs_builddir&;t t
45583 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
45584 s&@INSTALL@&$ac_INSTALL&;t t
45585 $ac_datarootdir_hack
45586 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
45587
45588 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
45589   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
45590   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
45591   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45592 which seems to be undefined.  Please make sure it is defined." >&5
45593 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45594 which seems to be undefined.  Please make sure it is defined." >&2;}
45595
45596   rm -f "$tmp/stdin"
45597   case $ac_file in
45598   -) cat "$tmp/out"; rm -f "$tmp/out";;
45599   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
45600   esac
45601  ;;
45602   :H)
45603   #
45604   # CONFIG_HEADER
45605   #
45606 _ACEOF
45607
45608 # Transform confdefs.h into a sed script `conftest.defines', that
45609 # substitutes the proper values into config.h.in to produce config.h.
45610 rm -f conftest.defines conftest.tail
45611 # First, append a space to every undef/define line, to ease matching.
45612 echo 's/$/ /' >conftest.defines
45613 # Then, protect against being on the right side of a sed subst, or in
45614 # an unquoted here document, in config.status.  If some macros were
45615 # called several times there might be several #defines for the same
45616 # symbol, which is useless.  But do not sort them, since the last
45617 # AC_DEFINE must be honored.
45618 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
45619 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
45620 # NAME is the cpp macro being defined, VALUE is the value it is being given.
45621 # PARAMS is the parameter list in the macro definition--in most cases, it's
45622 # just an empty string.
45623 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
45624 ac_dB='\\)[      (].*,\\1define\\2'
45625 ac_dC=' '
45626 ac_dD=' ,'
45627
45628 uniq confdefs.h |
45629   sed -n '
45630         t rset
45631         :rset
45632         s/^[     ]*#[    ]*define[       ][      ]*//
45633         t ok
45634         d
45635         :ok
45636         s/[\\&,]/\\&/g
45637         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
45638         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
45639   ' >>conftest.defines
45640
45641 # Remove the space that was appended to ease matching.
45642 # Then replace #undef with comments.  This is necessary, for
45643 # example, in the case of _POSIX_SOURCE, which is predefined and required
45644 # on some systems where configure will not decide to define it.
45645 # (The regexp can be short, since the line contains either #define or #undef.)
45646 echo 's/ $//
45647 s,^[     #]*u.*,/* & */,' >>conftest.defines
45648
45649 # Break up conftest.defines:
45650 ac_max_sed_lines=50
45651
45652 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
45653 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
45654 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
45655 # et cetera.
45656 ac_in='$ac_file_inputs'
45657 ac_out='"$tmp/out1"'
45658 ac_nxt='"$tmp/out2"'
45659
45660 while :
45661 do
45662   # Write a here document:
45663     cat >>$CONFIG_STATUS <<_ACEOF
45664     # First, check the format of the line:
45665     cat >"\$tmp/defines.sed" <<\\CEOF
45666 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
45667 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
45668 b
45669 :def
45670 _ACEOF
45671   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
45672   echo 'CEOF
45673     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
45674   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
45675   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
45676   grep . conftest.tail >/dev/null || break
45677   rm -f conftest.defines
45678   mv conftest.tail conftest.defines
45679 done
45680 rm -f conftest.defines conftest.tail
45681
45682 echo "ac_result=$ac_in" >>$CONFIG_STATUS
45683 cat >>$CONFIG_STATUS <<\_ACEOF
45684   if test x"$ac_file" != x-; then
45685     echo "/* $configure_input  */" >"$tmp/config.h"
45686     cat "$ac_result" >>"$tmp/config.h"
45687     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
45688       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45689 echo "$as_me: $ac_file is unchanged" >&6;}
45690     else
45691       rm -f $ac_file
45692       mv "$tmp/config.h" $ac_file
45693     fi
45694   else
45695     echo "/* $configure_input  */"
45696     cat "$ac_result"
45697   fi
45698   rm -f "$tmp/out12"
45699  ;;
45700
45701   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
45702 echo "$as_me: executing $ac_file commands" >&6;}
45703  ;;
45704   esac
45705
45706
45707   case $ac_file$ac_mode in
45708     "libtool":C)
45709
45710     # See if we are running on zsh, and set the options which allow our
45711     # commands through without removal of \ escapes.
45712     if test -n "${ZSH_VERSION+set}" ; then
45713       setopt NO_GLOB_SUBST
45714     fi
45715
45716     cfgfile="${ofile}T"
45717     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
45718     $RM "$cfgfile"
45719
45720     cat <<_LT_EOF >> "$cfgfile"
45721 #! $SHELL
45722
45723 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
45724 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
45725 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
45726 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
45727 #
45728 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
45729 #                 2006, 2007, 2008 Free Software Foundation, Inc.
45730 #   Written by Gordon Matzigkeit, 1996
45731 #
45732 #   This file is part of GNU Libtool.
45733 #
45734 # GNU Libtool is free software; you can redistribute it and/or
45735 # modify it under the terms of the GNU General Public License as
45736 # published by the Free Software Foundation; either version 2 of
45737 # the License, or (at your option) any later version.
45738 #
45739 # As a special exception to the GNU General Public License,
45740 # if you distribute this file as part of a program or library that
45741 # is built using GNU Libtool, you may include this file under the
45742 # same distribution terms that you use for the rest of that program.
45743 #
45744 # GNU Libtool is distributed in the hope that it will be useful,
45745 # but WITHOUT ANY WARRANTY; without even the implied warranty of
45746 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
45747 # GNU General Public License for more details.
45748 #
45749 # You should have received a copy of the GNU General Public License
45750 # along with GNU Libtool; see the file COPYING.  If not, a copy
45751 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
45752 # obtained by writing to the Free Software Foundation, Inc.,
45753 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
45754
45755
45756 # The names of the tagged configurations supported by this script.
45757 available_tags="CXX "
45758
45759 # ### BEGIN LIBTOOL CONFIG
45760
45761 # Which release of libtool.m4 was used?
45762 macro_version=$macro_version
45763 macro_revision=$macro_revision
45764
45765 # Whether or not to build shared libraries.
45766 build_libtool_libs=$enable_shared
45767
45768 # Whether or not to build static libraries.
45769 build_old_libs=$enable_static
45770
45771 # What type of objects to build.
45772 pic_mode=$pic_mode
45773
45774 # Whether or not to optimize for fast installation.
45775 fast_install=$enable_fast_install
45776
45777 # The host system.
45778 host_alias=$host_alias
45779 host=$host
45780 host_os=$host_os
45781
45782 # The build system.
45783 build_alias=$build_alias
45784 build=$build
45785 build_os=$build_os
45786
45787 # A sed program that does not truncate output.
45788 SED=$lt_SED
45789
45790 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
45791 Xsed="\$SED -e 1s/^X//"
45792
45793 # A grep program that handles long lines.
45794 GREP=$lt_GREP
45795
45796 # An ERE matcher.
45797 EGREP=$lt_EGREP
45798
45799 # A literal string matcher.
45800 FGREP=$lt_FGREP
45801
45802 # A BSD- or MS-compatible name lister.
45803 NM=$lt_NM
45804
45805 # Whether we need soft or hard links.
45806 LN_S=$lt_LN_S
45807
45808 # What is the maximum length of a command?
45809 max_cmd_len=$max_cmd_len
45810
45811 # Object file suffix (normally "o").
45812 objext=$ac_objext
45813
45814 # Executable file suffix (normally "").
45815 exeext=$exeext
45816
45817 # whether the shell understands "unset".
45818 lt_unset=$lt_unset
45819
45820 # turn spaces into newlines.
45821 SP2NL=$lt_lt_SP2NL
45822
45823 # turn newlines into spaces.
45824 NL2SP=$lt_lt_NL2SP
45825
45826 # How to create reloadable object files.
45827 reload_flag=$lt_reload_flag
45828 reload_cmds=$lt_reload_cmds
45829
45830 # An object symbol dumper.
45831 OBJDUMP=$lt_OBJDUMP
45832
45833 # Method to check whether dependent libraries are shared objects.
45834 deplibs_check_method=$lt_deplibs_check_method
45835
45836 # Command to use when deplibs_check_method == "file_magic".
45837 file_magic_cmd=$lt_file_magic_cmd
45838
45839 # The archiver.
45840 AR=$lt_AR
45841 AR_FLAGS=$lt_AR_FLAGS
45842
45843 # A symbol stripping program.
45844 STRIP=$lt_STRIP
45845
45846 # Commands used to install an old-style archive.
45847 RANLIB=$lt_RANLIB
45848 old_postinstall_cmds=$lt_old_postinstall_cmds
45849 old_postuninstall_cmds=$lt_old_postuninstall_cmds
45850
45851 # A C compiler.
45852 LTCC=$lt_CC
45853
45854 # LTCC compiler flags.
45855 LTCFLAGS=$lt_CFLAGS
45856
45857 # Take the output of nm and produce a listing of raw symbols and C names.
45858 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
45859
45860 # Transform the output of nm in a proper C declaration.
45861 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
45862
45863 # Transform the output of nm in a C name address pair.
45864 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
45865
45866 # Transform the output of nm in a C name address pair when lib prefix is needed.
45867 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
45868
45869 # The name of the directory that contains temporary libtool files.
45870 objdir=$objdir
45871
45872 # Shell to use when invoking shell scripts.
45873 SHELL=$lt_SHELL
45874
45875 # An echo program that does not interpret backslashes.
45876 ECHO=$lt_ECHO
45877
45878 # Used to examine libraries when file_magic_cmd begins with "file".
45879 MAGIC_CMD=$MAGIC_CMD
45880
45881 # Must we lock files when doing compilation?
45882 need_locks=$lt_need_locks
45883
45884 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
45885 DSYMUTIL=$lt_DSYMUTIL
45886
45887 # Tool to change global to local symbols on Mac OS X.
45888 NMEDIT=$lt_NMEDIT
45889
45890 # Tool to manipulate fat objects and archives on Mac OS X.
45891 LIPO=$lt_LIPO
45892
45893 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
45894 OTOOL=$lt_OTOOL
45895
45896 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
45897 OTOOL64=$lt_OTOOL64
45898
45899 # Old archive suffix (normally "a").
45900 libext=$libext
45901
45902 # Shared library suffix (normally ".so").
45903 shrext_cmds=$lt_shrext_cmds
45904
45905 # The commands to extract the exported symbol list from a shared archive.
45906 extract_expsyms_cmds=$lt_extract_expsyms_cmds
45907
45908 # Variables whose values should be saved in libtool wrapper scripts and
45909 # restored at link time.
45910 variables_saved_for_relink=$lt_variables_saved_for_relink
45911
45912 # Do we need the "lib" prefix for modules?
45913 need_lib_prefix=$need_lib_prefix
45914
45915 # Do we need a version for libraries?
45916 need_version=$need_version
45917
45918 # Library versioning type.
45919 version_type=$version_type
45920
45921 # Shared library runtime path variable.
45922 runpath_var=$runpath_var
45923
45924 # Shared library path variable.
45925 shlibpath_var=$shlibpath_var
45926
45927 # Is shlibpath searched before the hard-coded library search path?
45928 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
45929
45930 # Format of library name prefix.
45931 libname_spec=$lt_libname_spec
45932
45933 # List of archive names.  First name is the real one, the rest are links.
45934 # The last name is the one that the linker finds with -lNAME
45935 library_names_spec=$lt_library_names_spec
45936
45937 # The coded name of the library, if different from the real name.
45938 soname_spec=$lt_soname_spec
45939
45940 # Command to use after installation of a shared archive.
45941 postinstall_cmds=$lt_postinstall_cmds
45942
45943 # Command to use after uninstallation of a shared archive.
45944 postuninstall_cmds=$lt_postuninstall_cmds
45945
45946 # Commands used to finish a libtool library installation in a directory.
45947 finish_cmds=$lt_finish_cmds
45948
45949 # As "finish_cmds", except a single script fragment to be evaled but
45950 # not shown.
45951 finish_eval=$lt_finish_eval
45952
45953 # Whether we should hardcode library paths into libraries.
45954 hardcode_into_libs=$hardcode_into_libs
45955
45956 # Compile-time system search path for libraries.
45957 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
45958
45959 # Run-time system search path for libraries.
45960 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
45961
45962 # Whether dlopen is supported.
45963 dlopen_support=$enable_dlopen
45964
45965 # Whether dlopen of programs is supported.
45966 dlopen_self=$enable_dlopen_self
45967
45968 # Whether dlopen of statically linked programs is supported.
45969 dlopen_self_static=$enable_dlopen_self_static
45970
45971 # Commands to strip libraries.
45972 old_striplib=$lt_old_striplib
45973 striplib=$lt_striplib
45974
45975
45976 # The linker used to build libraries.
45977 LD=$lt_LD
45978
45979 # Commands used to build an old-style archive.
45980 old_archive_cmds=$lt_old_archive_cmds
45981
45982 # A language specific compiler.
45983 CC=$lt_compiler
45984
45985 # Is the compiler the GNU compiler?
45986 with_gcc=$GCC
45987
45988 # Compiler flag to turn off builtin functions.
45989 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
45990
45991 # How to pass a linker flag through the compiler.
45992 wl=$lt_lt_prog_compiler_wl
45993
45994 # Additional compiler flags for building library objects.
45995 pic_flag=$lt_lt_prog_compiler_pic
45996
45997 # Compiler flag to prevent dynamic linking.
45998 link_static_flag=$lt_lt_prog_compiler_static
45999
46000 # Does compiler simultaneously support -c and -o options?
46001 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
46002
46003 # Whether or not to add -lc for building shared libraries.
46004 build_libtool_need_lc=$archive_cmds_need_lc
46005
46006 # Whether or not to disallow shared libs when runtime libs are static.
46007 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
46008
46009 # Compiler flag to allow reflexive dlopens.
46010 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
46011
46012 # Compiler flag to generate shared objects directly from archives.
46013 whole_archive_flag_spec=$lt_whole_archive_flag_spec
46014
46015 # Whether the compiler copes with passing no objects directly.
46016 compiler_needs_object=$lt_compiler_needs_object
46017
46018 # Create an old-style archive from a shared archive.
46019 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
46020
46021 # Create a temporary old-style archive to link instead of a shared archive.
46022 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
46023
46024 # Commands used to build a shared archive.
46025 archive_cmds=$lt_archive_cmds
46026 archive_expsym_cmds=$lt_archive_expsym_cmds
46027
46028 # Commands used to build a loadable module if different from building
46029 # a shared archive.
46030 module_cmds=$lt_module_cmds
46031 module_expsym_cmds=$lt_module_expsym_cmds
46032
46033 # Whether we are building with GNU ld or not.
46034 with_gnu_ld=$lt_with_gnu_ld
46035
46036 # Flag that allows shared libraries with undefined symbols to be built.
46037 allow_undefined_flag=$lt_allow_undefined_flag
46038
46039 # Flag that enforces no undefined symbols.
46040 no_undefined_flag=$lt_no_undefined_flag
46041
46042 # Flag to hardcode \$libdir into a binary during linking.
46043 # This must work even if \$libdir does not exist
46044 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
46045
46046 # If ld is used when linking, flag to hardcode \$libdir into a binary
46047 # during linking.  This must work even if \$libdir does not exist.
46048 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
46049
46050 # Whether we need a single "-rpath" flag with a separated argument.
46051 hardcode_libdir_separator=$lt_hardcode_libdir_separator
46052
46053 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46054 # DIR into the resulting binary.
46055 hardcode_direct=$hardcode_direct
46056
46057 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46058 # DIR into the resulting binary and the resulting library dependency is
46059 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46060 # library is relocated.
46061 hardcode_direct_absolute=$hardcode_direct_absolute
46062
46063 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46064 # into the resulting binary.
46065 hardcode_minus_L=$hardcode_minus_L
46066
46067 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46068 # into the resulting binary.
46069 hardcode_shlibpath_var=$hardcode_shlibpath_var
46070
46071 # Set to "yes" if building a shared library automatically hardcodes DIR
46072 # into the library and all subsequent libraries and executables linked
46073 # against it.
46074 hardcode_automatic=$hardcode_automatic
46075
46076 # Set to yes if linker adds runtime paths of dependent libraries
46077 # to runtime path list.
46078 inherit_rpath=$inherit_rpath
46079
46080 # Whether libtool must link a program against all its dependency libraries.
46081 link_all_deplibs=$link_all_deplibs
46082
46083 # Fix the shell variable \$srcfile for the compiler.
46084 fix_srcfile_path=$lt_fix_srcfile_path
46085
46086 # Set to "yes" if exported symbols are required.
46087 always_export_symbols=$always_export_symbols
46088
46089 # The commands to list exported symbols.
46090 export_symbols_cmds=$lt_export_symbols_cmds
46091
46092 # Symbols that should not be listed in the preloaded symbols.
46093 exclude_expsyms=$lt_exclude_expsyms
46094
46095 # Symbols that must always be exported.
46096 include_expsyms=$lt_include_expsyms
46097
46098 # Commands necessary for linking programs (against libraries) with templates.
46099 prelink_cmds=$lt_prelink_cmds
46100
46101 # Specify filename containing input files.
46102 file_list_spec=$lt_file_list_spec
46103
46104 # How to hardcode a shared library path into an executable.
46105 hardcode_action=$hardcode_action
46106
46107 # The directories searched by this compiler when creating a shared library.
46108 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
46109
46110 # Dependencies to place before and after the objects being linked to
46111 # create a shared library.
46112 predep_objects=$lt_predep_objects
46113 postdep_objects=$lt_postdep_objects
46114 predeps=$lt_predeps
46115 postdeps=$lt_postdeps
46116
46117 # The library search path used internally by the compiler when linking
46118 # a shared library.
46119 compiler_lib_search_path=$lt_compiler_lib_search_path
46120
46121 # ### END LIBTOOL CONFIG
46122
46123 _LT_EOF
46124
46125   case $host_os in
46126   aix3*)
46127     cat <<\_LT_EOF >> "$cfgfile"
46128 # AIX sometimes has problems with the GCC collect2 program.  For some
46129 # reason, if we set the COLLECT_NAMES environment variable, the problems
46130 # vanish in a puff of smoke.
46131 if test "X${COLLECT_NAMES+set}" != Xset; then
46132   COLLECT_NAMES=
46133   export COLLECT_NAMES
46134 fi
46135 _LT_EOF
46136     ;;
46137   esac
46138
46139
46140 ltmain="$ac_aux_dir/ltmain.sh"
46141
46142
46143   # We use sed instead of cat because bash on DJGPP gets confused if
46144   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
46145   # text mode, it properly converts lines to CR/LF.  This bash problem
46146   # is reportedly fixed, but why not run on old versions too?
46147   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
46148     || (rm -f "$cfgfile"; exit 1)
46149
46150   case $xsi_shell in
46151   yes)
46152     cat << \_LT_EOF >> "$cfgfile"
46153
46154 # func_dirname file append nondir_replacement
46155 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
46156 # otherwise set result to NONDIR_REPLACEMENT.
46157 func_dirname ()
46158 {
46159   case ${1} in
46160     */*) func_dirname_result="${1%/*}${2}" ;;
46161     *  ) func_dirname_result="${3}" ;;
46162   esac
46163 }
46164
46165 # func_basename file
46166 func_basename ()
46167 {
46168   func_basename_result="${1##*/}"
46169 }
46170
46171 # func_dirname_and_basename file append nondir_replacement
46172 # perform func_basename and func_dirname in a single function
46173 # call:
46174 #   dirname:  Compute the dirname of FILE.  If nonempty,
46175 #             add APPEND to the result, otherwise set result
46176 #             to NONDIR_REPLACEMENT.
46177 #             value returned in "$func_dirname_result"
46178 #   basename: Compute filename of FILE.
46179 #             value retuned in "$func_basename_result"
46180 # Implementation must be kept synchronized with func_dirname
46181 # and func_basename. For efficiency, we do not delegate to
46182 # those functions but instead duplicate the functionality here.
46183 func_dirname_and_basename ()
46184 {
46185   case ${1} in
46186     */*) func_dirname_result="${1%/*}${2}" ;;
46187     *  ) func_dirname_result="${3}" ;;
46188   esac
46189   func_basename_result="${1##*/}"
46190 }
46191
46192 # func_stripname prefix suffix name
46193 # strip PREFIX and SUFFIX off of NAME.
46194 # PREFIX and SUFFIX must not contain globbing or regex special
46195 # characters, hashes, percent signs, but SUFFIX may contain a leading
46196 # dot (in which case that matches only a dot).
46197 func_stripname ()
46198 {
46199   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
46200   # positional parameters, so assign one to ordinary parameter first.
46201   func_stripname_result=${3}
46202   func_stripname_result=${func_stripname_result#"${1}"}
46203   func_stripname_result=${func_stripname_result%"${2}"}
46204 }
46205
46206 # func_opt_split
46207 func_opt_split ()
46208 {
46209   func_opt_split_opt=${1%%=*}
46210   func_opt_split_arg=${1#*=}
46211 }
46212
46213 # func_lo2o object
46214 func_lo2o ()
46215 {
46216   case ${1} in
46217     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
46218     *)    func_lo2o_result=${1} ;;
46219   esac
46220 }
46221
46222 # func_xform libobj-or-source
46223 func_xform ()
46224 {
46225   func_xform_result=${1%.*}.lo
46226 }
46227
46228 # func_arith arithmetic-term...
46229 func_arith ()
46230 {
46231   func_arith_result=$(( $* ))
46232 }
46233
46234 # func_len string
46235 # STRING may not start with a hyphen.
46236 func_len ()
46237 {
46238   func_len_result=${#1}
46239 }
46240
46241 _LT_EOF
46242     ;;
46243   *) # Bourne compatible functions.
46244     cat << \_LT_EOF >> "$cfgfile"
46245
46246 # func_dirname file append nondir_replacement
46247 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
46248 # otherwise set result to NONDIR_REPLACEMENT.
46249 func_dirname ()
46250 {
46251   # Extract subdirectory from the argument.
46252   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
46253   if test "X$func_dirname_result" = "X${1}"; then
46254     func_dirname_result="${3}"
46255   else
46256     func_dirname_result="$func_dirname_result${2}"
46257   fi
46258 }
46259
46260 # func_basename file
46261 func_basename ()
46262 {
46263   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
46264 }
46265
46266
46267 # func_stripname prefix suffix name
46268 # strip PREFIX and SUFFIX off of NAME.
46269 # PREFIX and SUFFIX must not contain globbing or regex special
46270 # characters, hashes, percent signs, but SUFFIX may contain a leading
46271 # dot (in which case that matches only a dot).
46272 # func_strip_suffix prefix name
46273 func_stripname ()
46274 {
46275   case ${2} in
46276     .*) func_stripname_result=`$ECHO "X${3}" \
46277            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
46278     *)  func_stripname_result=`$ECHO "X${3}" \
46279            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
46280   esac
46281 }
46282
46283 # sed scripts:
46284 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
46285 my_sed_long_arg='1s/^-[^=]*=//'
46286
46287 # func_opt_split
46288 func_opt_split ()
46289 {
46290   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
46291   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
46292 }
46293
46294 # func_lo2o object
46295 func_lo2o ()
46296 {
46297   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
46298 }
46299
46300 # func_xform libobj-or-source
46301 func_xform ()
46302 {
46303   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
46304 }
46305
46306 # func_arith arithmetic-term...
46307 func_arith ()
46308 {
46309   func_arith_result=`expr "$@"`
46310 }
46311
46312 # func_len string
46313 # STRING may not start with a hyphen.
46314 func_len ()
46315 {
46316   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
46317 }
46318
46319 _LT_EOF
46320 esac
46321
46322 case $lt_shell_append in
46323   yes)
46324     cat << \_LT_EOF >> "$cfgfile"
46325
46326 # func_append var value
46327 # Append VALUE to the end of shell variable VAR.
46328 func_append ()
46329 {
46330   eval "$1+=\$2"
46331 }
46332 _LT_EOF
46333     ;;
46334   *)
46335     cat << \_LT_EOF >> "$cfgfile"
46336
46337 # func_append var value
46338 # Append VALUE to the end of shell variable VAR.
46339 func_append ()
46340 {
46341   eval "$1=\$$1\$2"
46342 }
46343
46344 _LT_EOF
46345     ;;
46346   esac
46347
46348
46349   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
46350     || (rm -f "$cfgfile"; exit 1)
46351
46352   mv -f "$cfgfile" "$ofile" ||
46353     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
46354   chmod +x "$ofile"
46355
46356
46357     cat <<_LT_EOF >> "$ofile"
46358
46359 # ### BEGIN LIBTOOL TAG CONFIG: CXX
46360
46361 # The linker used to build libraries.
46362 LD=$lt_LD_CXX
46363
46364 # Commands used to build an old-style archive.
46365 old_archive_cmds=$lt_old_archive_cmds_CXX
46366
46367 # A language specific compiler.
46368 CC=$lt_compiler_CXX
46369
46370 # Is the compiler the GNU compiler?
46371 with_gcc=$GCC_CXX
46372
46373 # Compiler flag to turn off builtin functions.
46374 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
46375
46376 # How to pass a linker flag through the compiler.
46377 wl=$lt_lt_prog_compiler_wl_CXX
46378
46379 # Additional compiler flags for building library objects.
46380 pic_flag=$lt_lt_prog_compiler_pic_CXX
46381
46382 # Compiler flag to prevent dynamic linking.
46383 link_static_flag=$lt_lt_prog_compiler_static_CXX
46384
46385 # Does compiler simultaneously support -c and -o options?
46386 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
46387
46388 # Whether or not to add -lc for building shared libraries.
46389 build_libtool_need_lc=$archive_cmds_need_lc_CXX
46390
46391 # Whether or not to disallow shared libs when runtime libs are static.
46392 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
46393
46394 # Compiler flag to allow reflexive dlopens.
46395 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
46396
46397 # Compiler flag to generate shared objects directly from archives.
46398 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
46399
46400 # Whether the compiler copes with passing no objects directly.
46401 compiler_needs_object=$lt_compiler_needs_object_CXX
46402
46403 # Create an old-style archive from a shared archive.
46404 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
46405
46406 # Create a temporary old-style archive to link instead of a shared archive.
46407 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
46408
46409 # Commands used to build a shared archive.
46410 archive_cmds=$lt_archive_cmds_CXX
46411 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
46412
46413 # Commands used to build a loadable module if different from building
46414 # a shared archive.
46415 module_cmds=$lt_module_cmds_CXX
46416 module_expsym_cmds=$lt_module_expsym_cmds_CXX
46417
46418 # Whether we are building with GNU ld or not.
46419 with_gnu_ld=$lt_with_gnu_ld_CXX
46420
46421 # Flag that allows shared libraries with undefined symbols to be built.
46422 allow_undefined_flag=$lt_allow_undefined_flag_CXX
46423
46424 # Flag that enforces no undefined symbols.
46425 no_undefined_flag=$lt_no_undefined_flag_CXX
46426
46427 # Flag to hardcode \$libdir into a binary during linking.
46428 # This must work even if \$libdir does not exist
46429 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
46430
46431 # If ld is used when linking, flag to hardcode \$libdir into a binary
46432 # during linking.  This must work even if \$libdir does not exist.
46433 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
46434
46435 # Whether we need a single "-rpath" flag with a separated argument.
46436 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
46437
46438 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46439 # DIR into the resulting binary.
46440 hardcode_direct=$hardcode_direct_CXX
46441
46442 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46443 # DIR into the resulting binary and the resulting library dependency is
46444 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46445 # library is relocated.
46446 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
46447
46448 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46449 # into the resulting binary.
46450 hardcode_minus_L=$hardcode_minus_L_CXX
46451
46452 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46453 # into the resulting binary.
46454 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
46455
46456 # Set to "yes" if building a shared library automatically hardcodes DIR
46457 # into the library and all subsequent libraries and executables linked
46458 # against it.
46459 hardcode_automatic=$hardcode_automatic_CXX
46460
46461 # Set to yes if linker adds runtime paths of dependent libraries
46462 # to runtime path list.
46463 inherit_rpath=$inherit_rpath_CXX
46464
46465 # Whether libtool must link a program against all its dependency libraries.
46466 link_all_deplibs=$link_all_deplibs_CXX
46467
46468 # Fix the shell variable \$srcfile for the compiler.
46469 fix_srcfile_path=$lt_fix_srcfile_path_CXX
46470
46471 # Set to "yes" if exported symbols are required.
46472 always_export_symbols=$always_export_symbols_CXX
46473
46474 # The commands to list exported symbols.
46475 export_symbols_cmds=$lt_export_symbols_cmds_CXX
46476
46477 # Symbols that should not be listed in the preloaded symbols.
46478 exclude_expsyms=$lt_exclude_expsyms_CXX
46479
46480 # Symbols that must always be exported.
46481 include_expsyms=$lt_include_expsyms_CXX
46482
46483 # Commands necessary for linking programs (against libraries) with templates.
46484 prelink_cmds=$lt_prelink_cmds_CXX
46485
46486 # Specify filename containing input files.
46487 file_list_spec=$lt_file_list_spec_CXX
46488
46489 # How to hardcode a shared library path into an executable.
46490 hardcode_action=$hardcode_action_CXX
46491
46492 # The directories searched by this compiler when creating a shared library.
46493 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
46494
46495 # Dependencies to place before and after the objects being linked to
46496 # create a shared library.
46497 predep_objects=$lt_predep_objects_CXX
46498 postdep_objects=$lt_postdep_objects_CXX
46499 predeps=$lt_predeps_CXX
46500 postdeps=$lt_postdeps_CXX
46501
46502 # The library search path used internally by the compiler when linking
46503 # a shared library.
46504 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
46505
46506 # ### END LIBTOOL TAG CONFIG: CXX
46507 _LT_EOF
46508
46509  ;;
46510     "default-1":C)
46511     for ac_file in $CONFIG_FILES; do
46512       # Support "outfile[:infile[:infile...]]"
46513       case "$ac_file" in
46514         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
46515       esac
46516       # PO directories have a Makefile.in generated from Makefile.in.in.
46517       case "$ac_file" in */Makefile.in)
46518         # Adjust a relative srcdir.
46519         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
46520         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
46521         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
46522         # In autoconf-2.13 it is called $ac_given_srcdir.
46523         # In autoconf-2.50 it is called $srcdir.
46524         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
46525         case "$ac_given_srcdir" in
46526           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
46527           /*) top_srcdir="$ac_given_srcdir" ;;
46528           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
46529         esac
46530         # Treat a directory as a PO directory if and only if it has a
46531         # POTFILES.in file. This allows packages to have multiple PO
46532         # directories under different names or in different locations.
46533         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
46534           rm -f "$ac_dir/POTFILES"
46535           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
46536           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
46537           POMAKEFILEDEPS="POTFILES.in"
46538           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
46539           # on $ac_dir but don't depend on user-specified configuration
46540           # parameters.
46541           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
46542             # The LINGUAS file contains the set of available languages.
46543             if test -n "$OBSOLETE_ALL_LINGUAS"; then
46544               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
46545             fi
46546             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
46547             # Hide the ALL_LINGUAS assigment from automake.
46548             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
46549             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
46550           else
46551             # The set of available languages was given in configure.in.
46552             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
46553           fi
46554           # Compute POFILES
46555           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
46556           # Compute UPDATEPOFILES
46557           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
46558           # Compute DUMMYPOFILES
46559           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
46560           # Compute GMOFILES
46561           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
46562           case "$ac_given_srcdir" in
46563             .) srcdirpre= ;;
46564             *) srcdirpre='$(srcdir)/' ;;
46565           esac
46566           POFILES=
46567           UPDATEPOFILES=
46568           DUMMYPOFILES=
46569           GMOFILES=
46570           for lang in $ALL_LINGUAS; do
46571             POFILES="$POFILES $srcdirpre$lang.po"
46572             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
46573             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
46574             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
46575           done
46576           # CATALOGS depends on both $ac_dir and the user's LINGUAS
46577           # environment variable.
46578           INST_LINGUAS=
46579           if test -n "$ALL_LINGUAS"; then
46580             for presentlang in $ALL_LINGUAS; do
46581               useit=no
46582               if test "%UNSET%" != "$LINGUAS"; then
46583                 desiredlanguages="$LINGUAS"
46584               else
46585                 desiredlanguages="$ALL_LINGUAS"
46586               fi
46587               for desiredlang in $desiredlanguages; do
46588                 # Use the presentlang catalog if desiredlang is
46589                 #   a. equal to presentlang, or
46590                 #   b. a variant of presentlang (because in this case,
46591                 #      presentlang can be used as a fallback for messages
46592                 #      which are not translated in the desiredlang catalog).
46593                 case "$desiredlang" in
46594                   "$presentlang"*) useit=yes;;
46595                 esac
46596               done
46597               if test $useit = yes; then
46598                 INST_LINGUAS="$INST_LINGUAS $presentlang"
46599               fi
46600             done
46601           fi
46602           CATALOGS=
46603           if test -n "$INST_LINGUAS"; then
46604             for lang in $INST_LINGUAS; do
46605               CATALOGS="$CATALOGS $lang.gmo"
46606             done
46607           fi
46608           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
46609           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"
46610           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
46611             if test -f "$f"; then
46612               case "$f" in
46613                 *.orig | *.bak | *~) ;;
46614                 *) cat "$f" >> "$ac_dir/Makefile" ;;
46615               esac
46616             fi
46617           done
46618         fi
46619         ;;
46620       esac
46621     done ;;
46622     "default":C)
46623  ;;
46624
46625   esac
46626 done # for ac_tag
46627
46628
46629 { (exit 0); exit 0; }
46630 _ACEOF
46631 chmod +x $CONFIG_STATUS
46632 ac_clean_files=$ac_clean_files_save
46633
46634
46635 # configure is writing to config.log, and then calls config.status.
46636 # config.status does its own redirection, appending to config.log.
46637 # Unfortunately, on DOS this fails, as config.log is still kept open
46638 # by configure, so config.status won't be able to write to it; its
46639 # output is simply discarded.  So we exec the FD to /dev/null,
46640 # effectively closing config.log, so it can be properly (re)opened and
46641 # appended to by config.status.  When coming back to configure, we
46642 # need to make the FD available again.
46643 if test "$no_create" != yes; then
46644   ac_cs_success=:
46645   ac_config_status_args=
46646   test "$silent" = yes &&
46647     ac_config_status_args="$ac_config_status_args --quiet"
46648   exec 5>/dev/null
46649   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46650   exec 5>>config.log
46651   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46652   # would make configure fail if this is the last instruction.
46653   $ac_cs_success || { (exit 1); exit 1; }
46654 fi
46655
46656
46657 if test "${support_bat}" = "yes" ; then
46658    if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
46659       { { echo "$as_me:$LINENO: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&5
46660 echo "$as_me: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&2;}
46661    { (exit 1); exit 1; }; }
46662    fi
46663
46664    QMAKEBIN="qmake"
46665
46666    if test "x$QMAKEQT4" != "xnone"; then
46667        QMAKEBIN=qmake-qt4
46668    fi
46669
46670    cd src/qt-console
46671    echo "Creating bat Makefile"
46672    touch bat
46673    chmod 755 bat
46674    $QMAKEBIN
46675    ${MAKE:-make} clean
46676    cd ${BUILD_DIR}
46677 fi
46678
46679 if test X"$GCC" = "Xyes" ; then
46680   echo "Doing make of dependencies"
46681   ${MAKE:-make} depend
46682 fi
46683
46684 cd src/qt-console
46685 chmod 755 install_conf_file build-depkgs-qt-console
46686 cd ${BUILD_DIR}
46687
46688 cd scripts
46689 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
46690 chmod 755 dvd-handler dvd-simulator
46691 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
46692 cd ..
46693
46694 c=updatedb
46695 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
46696 chmod 755 $c/update_postgresql_tables_10_to_11   $c/update_sqlite_tables_10_to_11
46697
46698 c=src/cats
46699
46700 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
46701 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
46702
46703 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
46704 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
46705
46706 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
46707 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
46708
46709 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
46710 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
46711
46712 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
46713 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
46714
46715 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
46716 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
46717
46718 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
46719 chmod 755 $c/sqlite
46720 chmod 755 $c/mysql
46721
46722 chmod 755 src/win32/build-depkgs-mingw32
46723
46724 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
46725    largefile_support="yes"
46726 fi
46727
46728 if test X"$GCC" = "Xyes" ; then
46729                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
46730    if test "x${CCVERSION}" = "x" ; then
46731       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
46732    fi
46733    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
46734    if test x"${CXXVERSION}" = x ; then
46735       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
46736    fi
46737 fi
46738
46739 # clean up any old junk
46740 echo " "
46741 echo "Cleaning up"
46742 echo " "
46743 ${MAKE:-make} clean
46744
46745 if test "x${db_type}" = "xInternal" ; then
46746    echo " "
46747    echo " "
46748    echo "You have not specified either --enable-client-only or one of the"
46749    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
46750    echo "  This is not permitted. Please reconfigure."
46751    echo " "
46752    echo "Aborting the configuration ..."
46753    echo " "
46754    echo " "
46755    exit 1
46756 fi
46757
46758 echo "
46759 Configuration on `date`:
46760
46761    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
46762    Bacula version:          ${BACULA} ${VERSION} (${DATE})
46763    Source code location:    ${srcdir}
46764    Install binaries:        ${sbindir}
46765    Install libraries:       ${libdir}
46766    Install config files:    ${sysconfdir}
46767    Scripts directory:       ${scriptdir}
46768    Archive directory:       ${archivedir}
46769    Working directory:       ${working_dir}
46770    PID directory:           ${piddir}
46771    Subsys directory:        ${subsysdir}
46772    Man directory:           ${mandir}
46773    Data directory:          ${datarootdir}
46774    Plugin directory:        ${plugindir}
46775    C Compiler:              ${CC} ${CCVERSION}
46776    C++ Compiler:            ${CXX} ${CXXVERSION}
46777    Compiler flags:          ${WCFLAGS} ${CFLAGS}
46778    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
46779    Libraries:               ${LIBS}
46780    Statically Linked Tools: ${support_static_tools}
46781    Statically Linked FD:    ${support_static_fd}
46782    Statically Linked SD:    ${support_static_sd}
46783    Statically Linked DIR:   ${support_static_dir}
46784    Statically Linked CONS:  ${support_static_cons}
46785    Database type:           ${db_type}
46786    Database port:           ${db_port}
46787    Database lib:            ${DB_LIBS}
46788    Database name:           ${db_name}
46789    Database user:           ${db_user}
46790
46791    Job Output Email:        ${job_email}
46792    Traceback Email:         ${dump_email}
46793    SMTP Host Address:       ${smtp_host}
46794
46795    Director Port:           ${dir_port}
46796    File daemon Port:        ${fd_port}
46797    Storage daemon Port:     ${sd_port}
46798
46799    Director User:           ${dir_user}
46800    Director Group:          ${dir_group}
46801    Storage Daemon User:     ${sd_user}
46802    Storage DaemonGroup:     ${sd_group}
46803    File Daemon User:        ${fd_user}
46804    File Daemon Group:       ${fd_group}
46805
46806    SQL binaries Directory   ${SQL_BINDIR}
46807
46808    Large file support:      $largefile_support
46809    Bacula conio support:    ${got_conio} ${CONS_LIBS}
46810    readline support:        ${got_readline} ${PRTREADLINE_SRC}
46811    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
46812    TLS support:             ${support_tls}
46813    Encryption support:      ${support_crypto}
46814    ZLIB support:            ${have_zlib}
46815    enable-smartalloc:       ${support_smartalloc}
46816    enable-lockmgr:          ${support_lockmgr}
46817    bat support:             ${support_bat} ${QWT_LDFLAGS}
46818    enable-gnome:            ${support_gnome} ${gnome_version}
46819    enable-bwx-console:      ${support_wx_console} ${wx_version}
46820    enable-tray-monitor:     ${support_tray_monitor}
46821    client-only:             ${build_client_only}
46822    build-dird:              ${build_dird}
46823    build-stored:            ${build_stored}
46824    ACL support:             ${have_acl}
46825    XATTR support:           ${have_xattr}
46826    Python support:          ${support_python} ${PYTHON_LIBS}
46827    Batch insert enabled:    ${support_batch_insert}
46828
46829   " > config.out
46830
46831 cat config.out