]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Fix bug #1481 -- bat consumes all console file descriptors
[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 GMAKE
849 WXCONFIG
850 WXFLAGS
851 CDRECORD
852 PIDOF
853 AWK
854 ARFLAGS
855 MAKE_SHELL
856 LOCAL_LIBS
857 LOCAL_CFLAGS
858 LOCAL_LDFLAGS
859 LOCAL_DEFS
860 LIBTOOL
861 build
862 build_cpu
863 build_vendor
864 build_os
865 host
866 host_cpu
867 host_vendor
868 host_os
869 FGREP
870 LD
871 DUMPBIN
872 ac_ct_DUMPBIN
873 NM
874 LN_S
875 OBJDUMP
876 STRIP
877 RANLIB
878 lt_ECHO
879 DSYMUTIL
880 NMEDIT
881 LIPO
882 OTOOL
883 OTOOL64
884 CXXCPP
885 DEFAULT_OBJECT_TYPE
886 DEFAULT_ARCHIVE_TYPE
887 DEFAULT_SHARED_OBJECT_TYPE
888 LIBTOOL_INSTALL_TARGET
889 LIBTOOL_UNINSTALL_TARGET
890 LIBTOOL_CLEAN_TARGET
891 QMAKE_LIBTOOL
892 FD_PLUGIN_DIR
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-readline[=DIR]   specify readline library directory
1687   --with-python[=DIR]     Include Python support. DIR is the Python base
1688                           install directory, default is to search through a
1689                           number of common places for the Python files.
1690   --with-tcp-wrappers[=DIR]
1691                           enable tcpwrappers support
1692   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1693   --with-working-dir=PATH specify path of Bacula working directory
1694   --with-archivedir=PATH  specify path of SD archive directory
1695   --with-basename=RESNAME specify base resource name for daemons
1696   --with-hostname=RESNAME specify host name for daemons
1697   --with-scriptdir=PATH   specify path of Bacula scripts directory
1698   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1699   --with-logdir=PATH      specify path of Bacula logs directory
1700   --with-plugindir=PATH   specify path of Bacula plugins directory
1701   --with-dump-email=EMAIL dump email address
1702   --with-job-email=EMAIL  job output email address
1703   --with-smtp-host=HOST   SMTP mail host address
1704   --with-pid-dir=PATH     specify location of Bacula pid files
1705   --with-subsys-dir=PATH  specify location of Bacula subsys file
1706   --with-baseport=PORT    specify base port address for daemons
1707   --with-dir-password=PASSWORD
1708                           specify Director's password
1709   --with-fd-password=PASSWORD
1710                           specify Client's password
1711   --with-sd-password=PASSWORD
1712                           specify Storage daemon's password
1713   --with-mon-dir-password=PASSWORD
1714                           specify Director's password used by the monitor
1715   --with-mon-fd-password=PASSWORD
1716                           specify Client's password used by the monitor
1717   --with-mon-sd-password=PASSWORD
1718                           specify Storage daemon's password used by the
1719                           monitor
1720   --with-db-name=DBNAME   specify database name [default=bacula]
1721   --with-db-user=UNAME    specify database user [default=bacula]
1722   --with-db-password=PWD  specify database password [default=*none*]
1723   --with-db-port=DBPORT   specify a database port [default=null]
1724   --with-dir-user=USER    specify user for Director daemon
1725   --with-dir-group=GROUP  specify group for Director daemon
1726   --with-sd-user=USER     specify user for Storage daemon
1727   --with-sd-group=GROUP   specify group for Storage daemon
1728   --with-fd-user=USER     specify user for File daemon
1729   --with-fd-group=GROUP   specify group for File daemon
1730   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0754]
1731   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1732                           base install directory, [default=/usr/local/pgsql]
1733   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1734                           directory, default is to search through a number of
1735                           common places for the MySQL files.
1736   --with-embedded-mysql[=DIR]
1737                           Include MySQL support. DIR is the MySQL base install
1738                           directory, default is to search through a number of
1739                           common places for the MySQL files.
1740   --with-ingres[=DIR]     Include Ingres support. DIR is the Ingres base
1741                           install directory, default is to search through a
1742                           number of common places for the Ingres files.
1743   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1744                           install directory, default is to search through a
1745                           number of common places for the SQLite3 files.
1746   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1747                           directory, default is to search through a number of
1748                           common places for the DBI files.
1749   --with-dbi-driver[=DRIVER]
1750                           Suport for DBI driver. DRIVER is the one DBI driver
1751                           like Mysql, Postgresql, others. Default is to not
1752                           configure any driver.
1753   --with-x                use the X Window System
1754
1755 Some influential environment variables:
1756   CC          C compiler command
1757   CFLAGS      C compiler flags
1758   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1759               nonstandard directory <lib dir>
1760   LIBS        libraries to pass to the linker, e.g. -l<library>
1761   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1762               you have headers in a nonstandard directory <include dir>
1763   CXX         C++ compiler command
1764   CXXFLAGS    C++ compiler flags
1765   CPP         C preprocessor
1766   WXCONFIG    wx-config command. On some systems, you must set it to
1767               wx-config-2.6 to use wxWidgets 2.6.
1768   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1769   CXXCPP      C++ preprocessor
1770   XMKMF       Path to xmkmf, Makefile generator for X Window System
1771
1772 Use these variables to override the choices made by `configure' or to help
1773 it to find libraries and programs with nonstandard names/locations.
1774
1775 _ACEOF
1776 ac_status=$?
1777 fi
1778
1779 if test "$ac_init_help" = "recursive"; then
1780   # If there are subdirs, report their specific --help.
1781   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1782     test -d "$ac_dir" || continue
1783     ac_builddir=.
1784
1785 case "$ac_dir" in
1786 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1787 *)
1788   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1789   # A ".." for each directory in $ac_dir_suffix.
1790   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1791   case $ac_top_builddir_sub in
1792   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1793   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1794   esac ;;
1795 esac
1796 ac_abs_top_builddir=$ac_pwd
1797 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1798 # for backward compatibility:
1799 ac_top_builddir=$ac_top_build_prefix
1800
1801 case $srcdir in
1802   .)  # We are building in place.
1803     ac_srcdir=.
1804     ac_top_srcdir=$ac_top_builddir_sub
1805     ac_abs_top_srcdir=$ac_pwd ;;
1806   [\\/]* | ?:[\\/]* )  # Absolute name.
1807     ac_srcdir=$srcdir$ac_dir_suffix;
1808     ac_top_srcdir=$srcdir
1809     ac_abs_top_srcdir=$srcdir ;;
1810   *) # Relative name.
1811     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1812     ac_top_srcdir=$ac_top_build_prefix$srcdir
1813     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1814 esac
1815 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1816
1817     cd "$ac_dir" || { ac_status=$?; continue; }
1818     # Check for guested configure.
1819     if test -f "$ac_srcdir/configure.gnu"; then
1820       echo &&
1821       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1822     elif test -f "$ac_srcdir/configure"; then
1823       echo &&
1824       $SHELL "$ac_srcdir/configure" --help=recursive
1825     else
1826       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1827     fi || ac_status=$?
1828     cd "$ac_pwd" || { ac_status=$?; break; }
1829   done
1830 fi
1831
1832 test -n "$ac_init_help" && exit $ac_status
1833 if $ac_init_version; then
1834   cat <<\_ACEOF
1835 configure
1836 generated by GNU Autoconf 2.61
1837
1838 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1839 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1840 This configure script is free software; the Free Software Foundation
1841 gives unlimited permission to copy, distribute and modify it.
1842 _ACEOF
1843   exit
1844 fi
1845 cat >config.log <<_ACEOF
1846 This file contains any messages produced by compilers while
1847 running configure, to aid debugging if configure makes a mistake.
1848
1849 It was created by $as_me, which was
1850 generated by GNU Autoconf 2.61.  Invocation command line was
1851
1852   $ $0 $@
1853
1854 _ACEOF
1855 exec 5>>config.log
1856 {
1857 cat <<_ASUNAME
1858 ## --------- ##
1859 ## Platform. ##
1860 ## --------- ##
1861
1862 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1863 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1864 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1865 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1866 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1867
1868 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1869 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1870
1871 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1872 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1873 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1874 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1875 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1876 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1877 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1878
1879 _ASUNAME
1880
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 for as_dir in $PATH
1883 do
1884   IFS=$as_save_IFS
1885   test -z "$as_dir" && as_dir=.
1886   echo "PATH: $as_dir"
1887 done
1888 IFS=$as_save_IFS
1889
1890 } >&5
1891
1892 cat >&5 <<_ACEOF
1893
1894
1895 ## ----------- ##
1896 ## Core tests. ##
1897 ## ----------- ##
1898
1899 _ACEOF
1900
1901
1902 # Keep a trace of the command line.
1903 # Strip out --no-create and --no-recursion so they do not pile up.
1904 # Strip out --silent because we don't want to record it for future runs.
1905 # Also quote any args containing shell meta-characters.
1906 # Make two passes to allow for proper duplicate-argument suppression.
1907 ac_configure_args=
1908 ac_configure_args0=
1909 ac_configure_args1=
1910 ac_must_keep_next=false
1911 for ac_pass in 1 2
1912 do
1913   for ac_arg
1914   do
1915     case $ac_arg in
1916     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1917     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1918     | -silent | --silent | --silen | --sile | --sil)
1919       continue ;;
1920     *\'*)
1921       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1922     esac
1923     case $ac_pass in
1924     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1925     2)
1926       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1927       if test $ac_must_keep_next = true; then
1928         ac_must_keep_next=false # Got value, back to normal.
1929       else
1930         case $ac_arg in
1931           *=* | --config-cache | -C | -disable-* | --disable-* \
1932           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1933           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1934           | -with-* | --with-* | -without-* | --without-* | --x)
1935             case "$ac_configure_args0 " in
1936               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1937             esac
1938             ;;
1939           -* ) ac_must_keep_next=true ;;
1940         esac
1941       fi
1942       ac_configure_args="$ac_configure_args '$ac_arg'"
1943       ;;
1944     esac
1945   done
1946 done
1947 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1948 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1949
1950 # When interrupted or exit'd, cleanup temporary files, and complete
1951 # config.log.  We remove comments because anyway the quotes in there
1952 # would cause problems or look ugly.
1953 # WARNING: Use '\'' to represent an apostrophe within the trap.
1954 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1955 trap 'exit_status=$?
1956   # Save into config.log some information that might help in debugging.
1957   {
1958     echo
1959
1960     cat <<\_ASBOX
1961 ## ---------------- ##
1962 ## Cache variables. ##
1963 ## ---------------- ##
1964 _ASBOX
1965     echo
1966     # The following way of writing the cache mishandles newlines in values,
1967 (
1968   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1969     eval ac_val=\$$ac_var
1970     case $ac_val in #(
1971     *${as_nl}*)
1972       case $ac_var in #(
1973       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1974 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1975       esac
1976       case $ac_var in #(
1977       _ | IFS | as_nl) ;; #(
1978       *) $as_unset $ac_var ;;
1979       esac ;;
1980     esac
1981   done
1982   (set) 2>&1 |
1983     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1984     *${as_nl}ac_space=\ *)
1985       sed -n \
1986         "s/'\''/'\''\\\\'\'''\''/g;
1987           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1988       ;; #(
1989     *)
1990       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1991       ;;
1992     esac |
1993     sort
1994 )
1995     echo
1996
1997     cat <<\_ASBOX
1998 ## ----------------- ##
1999 ## Output variables. ##
2000 ## ----------------- ##
2001 _ASBOX
2002     echo
2003     for ac_var in $ac_subst_vars
2004     do
2005       eval ac_val=\$$ac_var
2006       case $ac_val in
2007       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2008       esac
2009       echo "$ac_var='\''$ac_val'\''"
2010     done | sort
2011     echo
2012
2013     if test -n "$ac_subst_files"; then
2014       cat <<\_ASBOX
2015 ## ------------------- ##
2016 ## File substitutions. ##
2017 ## ------------------- ##
2018 _ASBOX
2019       echo
2020       for ac_var in $ac_subst_files
2021       do
2022         eval ac_val=\$$ac_var
2023         case $ac_val in
2024         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2025         esac
2026         echo "$ac_var='\''$ac_val'\''"
2027       done | sort
2028       echo
2029     fi
2030
2031     if test -s confdefs.h; then
2032       cat <<\_ASBOX
2033 ## ----------- ##
2034 ## confdefs.h. ##
2035 ## ----------- ##
2036 _ASBOX
2037       echo
2038       cat confdefs.h
2039       echo
2040     fi
2041     test "$ac_signal" != 0 &&
2042       echo "$as_me: caught signal $ac_signal"
2043     echo "$as_me: exit $exit_status"
2044   } >&5
2045   rm -f core *.core core.conftest.* &&
2046     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2047     exit $exit_status
2048 ' 0
2049 for ac_signal in 1 2 13 15; do
2050   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2051 done
2052 ac_signal=0
2053
2054 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2055 rm -f -r conftest* confdefs.h
2056
2057 # Predefined preprocessor variables.
2058
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_NAME "$PACKAGE_NAME"
2061 _ACEOF
2062
2063
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2066 _ACEOF
2067
2068
2069 cat >>confdefs.h <<_ACEOF
2070 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2071 _ACEOF
2072
2073
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_STRING "$PACKAGE_STRING"
2076 _ACEOF
2077
2078
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2081 _ACEOF
2082
2083
2084 # Let the site file select an alternate cache file if it wants to.
2085 # Prefer explicitly selected file to automatically selected ones.
2086 if test -n "$CONFIG_SITE"; then
2087   set x "$CONFIG_SITE"
2088 elif test "x$prefix" != xNONE; then
2089   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2090 else
2091   set x "$ac_default_prefix/share/config.site" \
2092         "$ac_default_prefix/etc/config.site"
2093 fi
2094 shift
2095 for ac_site_file
2096 do
2097   if test -r "$ac_site_file"; then
2098     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2099 echo "$as_me: loading site script $ac_site_file" >&6;}
2100     sed 's/^/| /' "$ac_site_file" >&5
2101     . "$ac_site_file"
2102   fi
2103 done
2104
2105 if test -r "$cache_file"; then
2106   # Some versions of bash will fail to source /dev/null (special
2107   # files actually), so we avoid doing that.
2108   if test -f "$cache_file"; then
2109     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2110 echo "$as_me: loading cache $cache_file" >&6;}
2111     case $cache_file in
2112       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2113       *)                      . "./$cache_file";;
2114     esac
2115   fi
2116 else
2117   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2118 echo "$as_me: creating cache $cache_file" >&6;}
2119   >$cache_file
2120 fi
2121
2122 # Check that the precious variables saved in the cache have kept the same
2123 # value.
2124 ac_cache_corrupted=false
2125 for ac_var in $ac_precious_vars; do
2126   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2127   eval ac_new_set=\$ac_env_${ac_var}_set
2128   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2129   eval ac_new_val=\$ac_env_${ac_var}_value
2130   case $ac_old_set,$ac_new_set in
2131     set,)
2132       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2133 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2134       ac_cache_corrupted=: ;;
2135     ,set)
2136       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2137 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2138       ac_cache_corrupted=: ;;
2139     ,);;
2140     *)
2141       if test "x$ac_old_val" != "x$ac_new_val"; then
2142         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2143 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2144         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2145 echo "$as_me:   former value:  $ac_old_val" >&2;}
2146         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2147 echo "$as_me:   current value: $ac_new_val" >&2;}
2148         ac_cache_corrupted=:
2149       fi;;
2150   esac
2151   # Pass precious variables to config.status.
2152   if test "$ac_new_set" = set; then
2153     case $ac_new_val in
2154     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2155     *) ac_arg=$ac_var=$ac_new_val ;;
2156     esac
2157     case " $ac_configure_args " in
2158       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2159       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2160     esac
2161   fi
2162 done
2163 if $ac_cache_corrupted; then
2164   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2165 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2166   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2167 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2168    { (exit 1); exit 1; }; }
2169 fi
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187 ac_ext=c
2188 ac_cpp='$CPP $CPPFLAGS'
2189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2192
2193
2194 BUILD_DIR=`pwd`
2195 cd ..
2196 TOP_DIR=`pwd`
2197 cd ${BUILD_DIR}
2198
2199
2200 ac_aux_dir=
2201 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2202   if test -f "$ac_dir/install-sh"; then
2203     ac_aux_dir=$ac_dir
2204     ac_install_sh="$ac_aux_dir/install-sh -c"
2205     break
2206   elif test -f "$ac_dir/install.sh"; then
2207     ac_aux_dir=$ac_dir
2208     ac_install_sh="$ac_aux_dir/install.sh -c"
2209     break
2210   elif test -f "$ac_dir/shtool"; then
2211     ac_aux_dir=$ac_dir
2212     ac_install_sh="$ac_aux_dir/shtool install -c"
2213     break
2214   fi
2215 done
2216 if test -z "$ac_aux_dir"; then
2217   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2218 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2219    { (exit 1); exit 1; }; }
2220 fi
2221
2222 # These three variables are undocumented and unsupported,
2223 # and are intended to be withdrawn in a future Autoconf release.
2224 # They can cause serious problems if a builder's source tree is in a directory
2225 # whose full name contains unusual characters.
2226 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2227 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2228 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2229
2230
2231 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2232
2233
2234 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2235 WIN32MAINDIR=${BUILD_DIR}
2236 WIN32TOPDIR=${TOP_DIR}
2237
2238
2239
2240
2241 for ac_prog in true
2242 do
2243   # Extract the first word of "$ac_prog", so it can be a program name with args.
2244 set dummy $ac_prog; ac_word=$2
2245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2247 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2248   echo $ECHO_N "(cached) $ECHO_C" >&6
2249 else
2250   case $TRUEPRG in
2251   [\\/]* | ?:[\\/]*)
2252   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2253   ;;
2254   *)
2255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256 for as_dir in $PATH
2257 do
2258   IFS=$as_save_IFS
2259   test -z "$as_dir" && as_dir=.
2260   for ac_exec_ext in '' $ac_executable_extensions; do
2261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2262     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2264     break 2
2265   fi
2266 done
2267 done
2268 IFS=$as_save_IFS
2269
2270   ;;
2271 esac
2272 fi
2273 TRUEPRG=$ac_cv_path_TRUEPRG
2274 if test -n "$TRUEPRG"; then
2275   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2276 echo "${ECHO_T}$TRUEPRG" >&6; }
2277 else
2278   { echo "$as_me:$LINENO: result: no" >&5
2279 echo "${ECHO_T}no" >&6; }
2280 fi
2281
2282
2283   test -n "$TRUEPRG" && break
2284 done
2285 test -n "$TRUEPRG" || TRUEPRG=":"
2286
2287 for ac_prog in false
2288 do
2289   # Extract the first word of "$ac_prog", so it can be a program name with args.
2290 set dummy $ac_prog; ac_word=$2
2291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2293 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2294   echo $ECHO_N "(cached) $ECHO_C" >&6
2295 else
2296   case $FALSEPRG in
2297   [\\/]* | ?:[\\/]*)
2298   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2299   ;;
2300   *)
2301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 for as_dir in $PATH
2303 do
2304   IFS=$as_save_IFS
2305   test -z "$as_dir" && as_dir=.
2306   for ac_exec_ext in '' $ac_executable_extensions; do
2307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2308     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2310     break 2
2311   fi
2312 done
2313 done
2314 IFS=$as_save_IFS
2315
2316   ;;
2317 esac
2318 fi
2319 FALSEPRG=$ac_cv_path_FALSEPRG
2320 if test -n "$FALSEPRG"; then
2321   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2322 echo "${ECHO_T}$FALSEPRG" >&6; }
2323 else
2324   { echo "$as_me:$LINENO: result: no" >&5
2325 echo "${ECHO_T}no" >&6; }
2326 fi
2327
2328
2329   test -n "$FALSEPRG" && break
2330 done
2331 test -n "$FALSEPRG" || FALSEPRG=":"
2332
2333
2334
2335 post_host=
2336 if test "x$BACULA" != x; then
2337    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2338 fi
2339 BACULA=${BACULA:-Bacula}
2340 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2341 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2342 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2343 echo "configuring for ${BACULA} $VERSION ($DATE)"
2344
2345
2346 ac_ext=c
2347 ac_cpp='$CPP $CPPFLAGS'
2348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2351 if test -n "$ac_tool_prefix"; then
2352   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2353 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2356 if test "${ac_cv_prog_CC+set}" = set; then
2357   echo $ECHO_N "(cached) $ECHO_C" >&6
2358 else
2359   if test -n "$CC"; then
2360   ac_cv_prog_CC="$CC" # Let the user override the test.
2361 else
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 for as_dir in $PATH
2364 do
2365   IFS=$as_save_IFS
2366   test -z "$as_dir" && as_dir=.
2367   for ac_exec_ext in '' $ac_executable_extensions; do
2368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2369     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371     break 2
2372   fi
2373 done
2374 done
2375 IFS=$as_save_IFS
2376
2377 fi
2378 fi
2379 CC=$ac_cv_prog_CC
2380 if test -n "$CC"; then
2381   { echo "$as_me:$LINENO: result: $CC" >&5
2382 echo "${ECHO_T}$CC" >&6; }
2383 else
2384   { echo "$as_me:$LINENO: result: no" >&5
2385 echo "${ECHO_T}no" >&6; }
2386 fi
2387
2388
2389 fi
2390 if test -z "$ac_cv_prog_CC"; then
2391   ac_ct_CC=$CC
2392   # Extract the first word of "gcc", so it can be a program name with args.
2393 set dummy gcc; ac_word=$2
2394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2396 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2397   echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399   if test -n "$ac_ct_CC"; then
2400   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2401 else
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 for as_dir in $PATH
2404 do
2405   IFS=$as_save_IFS
2406   test -z "$as_dir" && as_dir=.
2407   for ac_exec_ext in '' $ac_executable_extensions; do
2408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2409     ac_cv_prog_ac_ct_CC="gcc"
2410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411     break 2
2412   fi
2413 done
2414 done
2415 IFS=$as_save_IFS
2416
2417 fi
2418 fi
2419 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2420 if test -n "$ac_ct_CC"; then
2421   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2422 echo "${ECHO_T}$ac_ct_CC" >&6; }
2423 else
2424   { echo "$as_me:$LINENO: result: no" >&5
2425 echo "${ECHO_T}no" >&6; }
2426 fi
2427
2428   if test "x$ac_ct_CC" = x; then
2429     CC=""
2430   else
2431     case $cross_compiling:$ac_tool_warned in
2432 yes:)
2433 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2434 whose name does not start with the host triplet.  If you think this
2435 configuration is useful to you, please write to autoconf@gnu.org." >&5
2436 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2437 whose name does not start with the host triplet.  If you think this
2438 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2439 ac_tool_warned=yes ;;
2440 esac
2441     CC=$ac_ct_CC
2442   fi
2443 else
2444   CC="$ac_cv_prog_CC"
2445 fi
2446
2447 if test -z "$CC"; then
2448           if test -n "$ac_tool_prefix"; then
2449     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2450 set dummy ${ac_tool_prefix}cc; ac_word=$2
2451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2453 if test "${ac_cv_prog_CC+set}" = set; then
2454   echo $ECHO_N "(cached) $ECHO_C" >&6
2455 else
2456   if test -n "$CC"; then
2457   ac_cv_prog_CC="$CC" # Let the user override the test.
2458 else
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 for as_dir in $PATH
2461 do
2462   IFS=$as_save_IFS
2463   test -z "$as_dir" && as_dir=.
2464   for ac_exec_ext in '' $ac_executable_extensions; do
2465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2466     ac_cv_prog_CC="${ac_tool_prefix}cc"
2467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2468     break 2
2469   fi
2470 done
2471 done
2472 IFS=$as_save_IFS
2473
2474 fi
2475 fi
2476 CC=$ac_cv_prog_CC
2477 if test -n "$CC"; then
2478   { echo "$as_me:$LINENO: result: $CC" >&5
2479 echo "${ECHO_T}$CC" >&6; }
2480 else
2481   { echo "$as_me:$LINENO: result: no" >&5
2482 echo "${ECHO_T}no" >&6; }
2483 fi
2484
2485
2486   fi
2487 fi
2488 if test -z "$CC"; then
2489   # Extract the first word of "cc", so it can be a program name with args.
2490 set dummy cc; ac_word=$2
2491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2493 if test "${ac_cv_prog_CC+set}" = set; then
2494   echo $ECHO_N "(cached) $ECHO_C" >&6
2495 else
2496   if test -n "$CC"; then
2497   ac_cv_prog_CC="$CC" # Let the user override the test.
2498 else
2499   ac_prog_rejected=no
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2502 do
2503   IFS=$as_save_IFS
2504   test -z "$as_dir" && as_dir=.
2505   for ac_exec_ext in '' $ac_executable_extensions; do
2506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2507     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2508        ac_prog_rejected=yes
2509        continue
2510      fi
2511     ac_cv_prog_CC="cc"
2512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2513     break 2
2514   fi
2515 done
2516 done
2517 IFS=$as_save_IFS
2518
2519 if test $ac_prog_rejected = yes; then
2520   # We found a bogon in the path, so make sure we never use it.
2521   set dummy $ac_cv_prog_CC
2522   shift
2523   if test $# != 0; then
2524     # We chose a different compiler from the bogus one.
2525     # However, it has the same basename, so the bogon will be chosen
2526     # first if we set CC to just the basename; use the full file name.
2527     shift
2528     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2529   fi
2530 fi
2531 fi
2532 fi
2533 CC=$ac_cv_prog_CC
2534 if test -n "$CC"; then
2535   { echo "$as_me:$LINENO: result: $CC" >&5
2536 echo "${ECHO_T}$CC" >&6; }
2537 else
2538   { echo "$as_me:$LINENO: result: no" >&5
2539 echo "${ECHO_T}no" >&6; }
2540 fi
2541
2542
2543 fi
2544 if test -z "$CC"; then
2545   if test -n "$ac_tool_prefix"; then
2546   for ac_prog in cl.exe
2547   do
2548     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2549 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2552 if test "${ac_cv_prog_CC+set}" = set; then
2553   echo $ECHO_N "(cached) $ECHO_C" >&6
2554 else
2555   if test -n "$CC"; then
2556   ac_cv_prog_CC="$CC" # Let the user override the test.
2557 else
2558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 for as_dir in $PATH
2560 do
2561   IFS=$as_save_IFS
2562   test -z "$as_dir" && as_dir=.
2563   for ac_exec_ext in '' $ac_executable_extensions; do
2564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2565     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2567     break 2
2568   fi
2569 done
2570 done
2571 IFS=$as_save_IFS
2572
2573 fi
2574 fi
2575 CC=$ac_cv_prog_CC
2576 if test -n "$CC"; then
2577   { echo "$as_me:$LINENO: result: $CC" >&5
2578 echo "${ECHO_T}$CC" >&6; }
2579 else
2580   { echo "$as_me:$LINENO: result: no" >&5
2581 echo "${ECHO_T}no" >&6; }
2582 fi
2583
2584
2585     test -n "$CC" && break
2586   done
2587 fi
2588 if test -z "$CC"; then
2589   ac_ct_CC=$CC
2590   for ac_prog in cl.exe
2591 do
2592   # Extract the first word of "$ac_prog", so it can be a program name with args.
2593 set dummy $ac_prog; ac_word=$2
2594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2597   echo $ECHO_N "(cached) $ECHO_C" >&6
2598 else
2599   if test -n "$ac_ct_CC"; then
2600   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2601 else
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 for as_dir in $PATH
2604 do
2605   IFS=$as_save_IFS
2606   test -z "$as_dir" && as_dir=.
2607   for ac_exec_ext in '' $ac_executable_extensions; do
2608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2609     ac_cv_prog_ac_ct_CC="$ac_prog"
2610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611     break 2
2612   fi
2613 done
2614 done
2615 IFS=$as_save_IFS
2616
2617 fi
2618 fi
2619 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2620 if test -n "$ac_ct_CC"; then
2621   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2622 echo "${ECHO_T}$ac_ct_CC" >&6; }
2623 else
2624   { echo "$as_me:$LINENO: result: no" >&5
2625 echo "${ECHO_T}no" >&6; }
2626 fi
2627
2628
2629   test -n "$ac_ct_CC" && break
2630 done
2631
2632   if test "x$ac_ct_CC" = x; then
2633     CC=""
2634   else
2635     case $cross_compiling:$ac_tool_warned in
2636 yes:)
2637 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2638 whose name does not start with the host triplet.  If you think this
2639 configuration is useful to you, please write to autoconf@gnu.org." >&5
2640 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2641 whose name does not start with the host triplet.  If you think this
2642 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2643 ac_tool_warned=yes ;;
2644 esac
2645     CC=$ac_ct_CC
2646   fi
2647 fi
2648
2649 fi
2650
2651
2652 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2653 See \`config.log' for more details." >&5
2654 echo "$as_me: error: no acceptable C compiler found in \$PATH
2655 See \`config.log' for more details." >&2;}
2656    { (exit 1); exit 1; }; }
2657
2658 # Provide some information about the compiler.
2659 echo "$as_me:$LINENO: checking for C compiler version" >&5
2660 ac_compiler=`set X $ac_compile; echo $2`
2661 { (ac_try="$ac_compiler --version >&5"
2662 case "(($ac_try" in
2663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664   *) ac_try_echo=$ac_try;;
2665 esac
2666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2667   (eval "$ac_compiler --version >&5") 2>&5
2668   ac_status=$?
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); }
2671 { (ac_try="$ac_compiler -v >&5"
2672 case "(($ac_try" in
2673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674   *) ac_try_echo=$ac_try;;
2675 esac
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677   (eval "$ac_compiler -v >&5") 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }
2681 { (ac_try="$ac_compiler -V >&5"
2682 case "(($ac_try" in
2683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684   *) ac_try_echo=$ac_try;;
2685 esac
2686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2687   (eval "$ac_compiler -V >&5") 2>&5
2688   ac_status=$?
2689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690   (exit $ac_status); }
2691
2692 cat >conftest.$ac_ext <<_ACEOF
2693 /* confdefs.h.  */
2694 _ACEOF
2695 cat confdefs.h >>conftest.$ac_ext
2696 cat >>conftest.$ac_ext <<_ACEOF
2697 /* end confdefs.h.  */
2698
2699 int
2700 main ()
2701 {
2702
2703   ;
2704   return 0;
2705 }
2706 _ACEOF
2707 ac_clean_files_save=$ac_clean_files
2708 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2709 # Try to create an executable without -o first, disregard a.out.
2710 # It will help us diagnose broken compilers, and finding out an intuition
2711 # of exeext.
2712 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2713 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2714 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2715 #
2716 # List of possible output files, starting from the most likely.
2717 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2718 # only as a last resort.  b.out is created by i960 compilers.
2719 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2720 #
2721 # The IRIX 6 linker writes into existing files which may not be
2722 # executable, retaining their permissions.  Remove them first so a
2723 # subsequent execution test works.
2724 ac_rmfiles=
2725 for ac_file in $ac_files
2726 do
2727   case $ac_file in
2728     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2729     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2730   esac
2731 done
2732 rm -f $ac_rmfiles
2733
2734 if { (ac_try="$ac_link_default"
2735 case "(($ac_try" in
2736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737   *) ac_try_echo=$ac_try;;
2738 esac
2739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740   (eval "$ac_link_default") 2>&5
2741   ac_status=$?
2742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743   (exit $ac_status); }; then
2744   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2745 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2746 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2747 # so that the user can short-circuit this test for compilers unknown to
2748 # Autoconf.
2749 for ac_file in $ac_files ''
2750 do
2751   test -f "$ac_file" || continue
2752   case $ac_file in
2753     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2754         ;;
2755     [ab].out )
2756         # We found the default executable, but exeext='' is most
2757         # certainly right.
2758         break;;
2759     *.* )
2760         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2761         then :; else
2762            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2763         fi
2764         # We set ac_cv_exeext here because the later test for it is not
2765         # safe: cross compilers may not add the suffix if given an `-o'
2766         # argument, so we may need to know it at that point already.
2767         # Even if this section looks crufty: it has the advantage of
2768         # actually working.
2769         break;;
2770     * )
2771         break;;
2772   esac
2773 done
2774 test "$ac_cv_exeext" = no && ac_cv_exeext=
2775
2776 else
2777   ac_file=''
2778 fi
2779
2780 { echo "$as_me:$LINENO: result: $ac_file" >&5
2781 echo "${ECHO_T}$ac_file" >&6; }
2782 if test -z "$ac_file"; then
2783   echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2785
2786 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2787 See \`config.log' for more details." >&5
2788 echo "$as_me: error: C compiler cannot create executables
2789 See \`config.log' for more details." >&2;}
2790    { (exit 77); exit 77; }; }
2791 fi
2792
2793 ac_exeext=$ac_cv_exeext
2794
2795 # Check that the compiler produces executables we can run.  If not, either
2796 # the compiler is broken, or we cross compile.
2797 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2798 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2799 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2800 # If not cross compiling, check that we can run a simple program.
2801 if test "$cross_compiling" != yes; then
2802   if { ac_try='./$ac_file'
2803   { (case "(($ac_try" in
2804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805   *) ac_try_echo=$ac_try;;
2806 esac
2807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808   (eval "$ac_try") 2>&5
2809   ac_status=$?
2810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811   (exit $ac_status); }; }; then
2812     cross_compiling=no
2813   else
2814     if test "$cross_compiling" = maybe; then
2815         cross_compiling=yes
2816     else
2817         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2818 If you meant to cross compile, use \`--host'.
2819 See \`config.log' for more details." >&5
2820 echo "$as_me: error: cannot run C compiled programs.
2821 If you meant to cross compile, use \`--host'.
2822 See \`config.log' for more details." >&2;}
2823    { (exit 1); exit 1; }; }
2824     fi
2825   fi
2826 fi
2827 { echo "$as_me:$LINENO: result: yes" >&5
2828 echo "${ECHO_T}yes" >&6; }
2829
2830 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2831 ac_clean_files=$ac_clean_files_save
2832 # Check that the compiler produces executables we can run.  If not, either
2833 # the compiler is broken, or we cross compile.
2834 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2835 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2836 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2837 echo "${ECHO_T}$cross_compiling" >&6; }
2838
2839 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2840 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2841 if { (ac_try="$ac_link"
2842 case "(($ac_try" in
2843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844   *) ac_try_echo=$ac_try;;
2845 esac
2846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847   (eval "$ac_link") 2>&5
2848   ac_status=$?
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); }; then
2851   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2852 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2853 # work properly (i.e., refer to `conftest.exe'), while it won't with
2854 # `rm'.
2855 for ac_file in conftest.exe conftest conftest.*; do
2856   test -f "$ac_file" || continue
2857   case $ac_file in
2858     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2859     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2860           break;;
2861     * ) break;;
2862   esac
2863 done
2864 else
2865   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2866 See \`config.log' for more details." >&5
2867 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2868 See \`config.log' for more details." >&2;}
2869    { (exit 1); exit 1; }; }
2870 fi
2871
2872 rm -f conftest$ac_cv_exeext
2873 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2874 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2875
2876 rm -f conftest.$ac_ext
2877 EXEEXT=$ac_cv_exeext
2878 ac_exeext=$EXEEXT
2879 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2880 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2881 if test "${ac_cv_objext+set}" = set; then
2882   echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884   cat >conftest.$ac_ext <<_ACEOF
2885 /* confdefs.h.  */
2886 _ACEOF
2887 cat confdefs.h >>conftest.$ac_ext
2888 cat >>conftest.$ac_ext <<_ACEOF
2889 /* end confdefs.h.  */
2890
2891 int
2892 main ()
2893 {
2894
2895   ;
2896   return 0;
2897 }
2898 _ACEOF
2899 rm -f conftest.o conftest.obj
2900 if { (ac_try="$ac_compile"
2901 case "(($ac_try" in
2902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903   *) ac_try_echo=$ac_try;;
2904 esac
2905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906   (eval "$ac_compile") 2>&5
2907   ac_status=$?
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); }; then
2910   for ac_file in conftest.o conftest.obj conftest.*; do
2911   test -f "$ac_file" || continue;
2912   case $ac_file in
2913     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2914     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2915        break;;
2916   esac
2917 done
2918 else
2919   echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2921
2922 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2923 See \`config.log' for more details." >&5
2924 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2925 See \`config.log' for more details." >&2;}
2926    { (exit 1); exit 1; }; }
2927 fi
2928
2929 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2930 fi
2931 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2932 echo "${ECHO_T}$ac_cv_objext" >&6; }
2933 OBJEXT=$ac_cv_objext
2934 ac_objext=$OBJEXT
2935 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2936 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2937 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2938   echo $ECHO_N "(cached) $ECHO_C" >&6
2939 else
2940   cat >conftest.$ac_ext <<_ACEOF
2941 /* confdefs.h.  */
2942 _ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h.  */
2946
2947 int
2948 main ()
2949 {
2950 #ifndef __GNUC__
2951        choke me
2952 #endif
2953
2954   ;
2955   return 0;
2956 }
2957 _ACEOF
2958 rm -f conftest.$ac_objext
2959 if { (ac_try="$ac_compile"
2960 case "(($ac_try" in
2961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962   *) ac_try_echo=$ac_try;;
2963 esac
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965   (eval "$ac_compile") 2>conftest.er1
2966   ac_status=$?
2967   grep -v '^ *+' conftest.er1 >conftest.err
2968   rm -f conftest.er1
2969   cat conftest.err >&5
2970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971   (exit $ac_status); } && {
2972          test -z "$ac_c_werror_flag" ||
2973          test ! -s conftest.err
2974        } && test -s conftest.$ac_objext; then
2975   ac_compiler_gnu=yes
2976 else
2977   echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2979
2980         ac_compiler_gnu=no
2981 fi
2982
2983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2984 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2985
2986 fi
2987 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2988 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2989 GCC=`test $ac_compiler_gnu = yes && echo yes`
2990 ac_test_CFLAGS=${CFLAGS+set}
2991 ac_save_CFLAGS=$CFLAGS
2992 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2993 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2994 if test "${ac_cv_prog_cc_g+set}" = set; then
2995   echo $ECHO_N "(cached) $ECHO_C" >&6
2996 else
2997   ac_save_c_werror_flag=$ac_c_werror_flag
2998    ac_c_werror_flag=yes
2999    ac_cv_prog_cc_g=no
3000    CFLAGS="-g"
3001    cat >conftest.$ac_ext <<_ACEOF
3002 /* confdefs.h.  */
3003 _ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h.  */
3007
3008 int
3009 main ()
3010 {
3011
3012   ;
3013   return 0;
3014 }
3015 _ACEOF
3016 rm -f conftest.$ac_objext
3017 if { (ac_try="$ac_compile"
3018 case "(($ac_try" in
3019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020   *) ac_try_echo=$ac_try;;
3021 esac
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023   (eval "$ac_compile") 2>conftest.er1
3024   ac_status=$?
3025   grep -v '^ *+' conftest.er1 >conftest.err
3026   rm -f conftest.er1
3027   cat conftest.err >&5
3028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029   (exit $ac_status); } && {
3030          test -z "$ac_c_werror_flag" ||
3031          test ! -s conftest.err
3032        } && test -s conftest.$ac_objext; then
3033   ac_cv_prog_cc_g=yes
3034 else
3035   echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3037
3038         CFLAGS=""
3039       cat >conftest.$ac_ext <<_ACEOF
3040 /* confdefs.h.  */
3041 _ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h.  */
3045
3046 int
3047 main ()
3048 {
3049
3050   ;
3051   return 0;
3052 }
3053 _ACEOF
3054 rm -f conftest.$ac_objext
3055 if { (ac_try="$ac_compile"
3056 case "(($ac_try" in
3057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058   *) ac_try_echo=$ac_try;;
3059 esac
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061   (eval "$ac_compile") 2>conftest.er1
3062   ac_status=$?
3063   grep -v '^ *+' conftest.er1 >conftest.err
3064   rm -f conftest.er1
3065   cat conftest.err >&5
3066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); } && {
3068          test -z "$ac_c_werror_flag" ||
3069          test ! -s conftest.err
3070        } && test -s conftest.$ac_objext; then
3071   :
3072 else
3073   echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3075
3076         ac_c_werror_flag=$ac_save_c_werror_flag
3077          CFLAGS="-g"
3078          cat >conftest.$ac_ext <<_ACEOF
3079 /* confdefs.h.  */
3080 _ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h.  */
3084
3085 int
3086 main ()
3087 {
3088
3089   ;
3090   return 0;
3091 }
3092 _ACEOF
3093 rm -f conftest.$ac_objext
3094 if { (ac_try="$ac_compile"
3095 case "(($ac_try" in
3096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097   *) ac_try_echo=$ac_try;;
3098 esac
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100   (eval "$ac_compile") 2>conftest.er1
3101   ac_status=$?
3102   grep -v '^ *+' conftest.er1 >conftest.err
3103   rm -f conftest.er1
3104   cat conftest.err >&5
3105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106   (exit $ac_status); } && {
3107          test -z "$ac_c_werror_flag" ||
3108          test ! -s conftest.err
3109        } && test -s conftest.$ac_objext; then
3110   ac_cv_prog_cc_g=yes
3111 else
3112   echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3114
3115
3116 fi
3117
3118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3119 fi
3120
3121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3122 fi
3123
3124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3125    ac_c_werror_flag=$ac_save_c_werror_flag
3126 fi
3127 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3128 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3129 if test "$ac_test_CFLAGS" = set; then
3130   CFLAGS=$ac_save_CFLAGS
3131 elif test $ac_cv_prog_cc_g = yes; then
3132   if test "$GCC" = yes; then
3133     CFLAGS="-g -O2"
3134   else
3135     CFLAGS="-g"
3136   fi
3137 else
3138   if test "$GCC" = yes; then
3139     CFLAGS="-O2"
3140   else
3141     CFLAGS=
3142   fi
3143 fi
3144 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3145 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3146 if test "${ac_cv_prog_cc_c89+set}" = set; then
3147   echo $ECHO_N "(cached) $ECHO_C" >&6
3148 else
3149   ac_cv_prog_cc_c89=no
3150 ac_save_CC=$CC
3151 cat >conftest.$ac_ext <<_ACEOF
3152 /* confdefs.h.  */
3153 _ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h.  */
3157 #include <stdarg.h>
3158 #include <stdio.h>
3159 #include <sys/types.h>
3160 #include <sys/stat.h>
3161 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3162 struct buf { int x; };
3163 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3164 static char *e (p, i)
3165      char **p;
3166      int i;
3167 {
3168   return p[i];
3169 }
3170 static char *f (char * (*g) (char **, int), char **p, ...)
3171 {
3172   char *s;
3173   va_list v;
3174   va_start (v,p);
3175   s = g (p, va_arg (v,int));
3176   va_end (v);
3177   return s;
3178 }
3179
3180 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3181    function prototypes and stuff, but not '\xHH' hex character constants.
3182    These don't provoke an error unfortunately, instead are silently treated
3183    as 'x'.  The following induces an error, until -std is added to get
3184    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3185    array size at least.  It's necessary to write '\x00'==0 to get something
3186    that's true only with -std.  */
3187 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3188
3189 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3190    inside strings and character constants.  */
3191 #define FOO(x) 'x'
3192 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3193
3194 int test (int i, double x);
3195 struct s1 {int (*f) (int a);};
3196 struct s2 {int (*f) (double a);};
3197 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3198 int argc;
3199 char **argv;
3200 int
3201 main ()
3202 {
3203 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3204   ;
3205   return 0;
3206 }
3207 _ACEOF
3208 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3209         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3210 do
3211   CC="$ac_save_CC $ac_arg"
3212   rm -f conftest.$ac_objext
3213 if { (ac_try="$ac_compile"
3214 case "(($ac_try" in
3215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216   *) ac_try_echo=$ac_try;;
3217 esac
3218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3219   (eval "$ac_compile") 2>conftest.er1
3220   ac_status=$?
3221   grep -v '^ *+' conftest.er1 >conftest.err
3222   rm -f conftest.er1
3223   cat conftest.err >&5
3224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225   (exit $ac_status); } && {
3226          test -z "$ac_c_werror_flag" ||
3227          test ! -s conftest.err
3228        } && test -s conftest.$ac_objext; then
3229   ac_cv_prog_cc_c89=$ac_arg
3230 else
3231   echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3233
3234
3235 fi
3236
3237 rm -f core conftest.err conftest.$ac_objext
3238   test "x$ac_cv_prog_cc_c89" != "xno" && break
3239 done
3240 rm -f conftest.$ac_ext
3241 CC=$ac_save_CC
3242
3243 fi
3244 # AC_CACHE_VAL
3245 case "x$ac_cv_prog_cc_c89" in
3246   x)
3247     { echo "$as_me:$LINENO: result: none needed" >&5
3248 echo "${ECHO_T}none needed" >&6; } ;;
3249   xno)
3250     { echo "$as_me:$LINENO: result: unsupported" >&5
3251 echo "${ECHO_T}unsupported" >&6; } ;;
3252   *)
3253     CC="$CC $ac_cv_prog_cc_c89"
3254     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3255 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3256 esac
3257
3258
3259 ac_ext=c
3260 ac_cpp='$CPP $CPPFLAGS'
3261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3264
3265 ac_ext=cpp
3266 ac_cpp='$CXXCPP $CPPFLAGS'
3267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3270 if test -z "$CXX"; then
3271   if test -n "$CCC"; then
3272     CXX=$CCC
3273   else
3274     if test -n "$ac_tool_prefix"; then
3275   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3276   do
3277     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3278 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3281 if test "${ac_cv_prog_CXX+set}" = set; then
3282   echo $ECHO_N "(cached) $ECHO_C" >&6
3283 else
3284   if test -n "$CXX"; then
3285   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3286 else
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH
3289 do
3290   IFS=$as_save_IFS
3291   test -z "$as_dir" && as_dir=.
3292   for ac_exec_ext in '' $ac_executable_extensions; do
3293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3294     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3296     break 2
3297   fi
3298 done
3299 done
3300 IFS=$as_save_IFS
3301
3302 fi
3303 fi
3304 CXX=$ac_cv_prog_CXX
3305 if test -n "$CXX"; then
3306   { echo "$as_me:$LINENO: result: $CXX" >&5
3307 echo "${ECHO_T}$CXX" >&6; }
3308 else
3309   { echo "$as_me:$LINENO: result: no" >&5
3310 echo "${ECHO_T}no" >&6; }
3311 fi
3312
3313
3314     test -n "$CXX" && break
3315   done
3316 fi
3317 if test -z "$CXX"; then
3318   ac_ct_CXX=$CXX
3319   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3320 do
3321   # Extract the first word of "$ac_prog", so it can be a program name with args.
3322 set dummy $ac_prog; ac_word=$2
3323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3325 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3326   echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328   if test -n "$ac_ct_CXX"; then
3329   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3330 else
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 for as_dir in $PATH
3333 do
3334   IFS=$as_save_IFS
3335   test -z "$as_dir" && as_dir=.
3336   for ac_exec_ext in '' $ac_executable_extensions; do
3337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3338     ac_cv_prog_ac_ct_CXX="$ac_prog"
3339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3340     break 2
3341   fi
3342 done
3343 done
3344 IFS=$as_save_IFS
3345
3346 fi
3347 fi
3348 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3349 if test -n "$ac_ct_CXX"; then
3350   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3351 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3352 else
3353   { echo "$as_me:$LINENO: result: no" >&5
3354 echo "${ECHO_T}no" >&6; }
3355 fi
3356
3357
3358   test -n "$ac_ct_CXX" && break
3359 done
3360
3361   if test "x$ac_ct_CXX" = x; then
3362     CXX="g++"
3363   else
3364     case $cross_compiling:$ac_tool_warned in
3365 yes:)
3366 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3367 whose name does not start with the host triplet.  If you think this
3368 configuration is useful to you, please write to autoconf@gnu.org." >&5
3369 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3370 whose name does not start with the host triplet.  If you think this
3371 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3372 ac_tool_warned=yes ;;
3373 esac
3374     CXX=$ac_ct_CXX
3375   fi
3376 fi
3377
3378   fi
3379 fi
3380 # Provide some information about the compiler.
3381 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3382 ac_compiler=`set X $ac_compile; echo $2`
3383 { (ac_try="$ac_compiler --version >&5"
3384 case "(($ac_try" in
3385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386   *) ac_try_echo=$ac_try;;
3387 esac
3388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3389   (eval "$ac_compiler --version >&5") 2>&5
3390   ac_status=$?
3391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392   (exit $ac_status); }
3393 { (ac_try="$ac_compiler -v >&5"
3394 case "(($ac_try" in
3395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396   *) ac_try_echo=$ac_try;;
3397 esac
3398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399   (eval "$ac_compiler -v >&5") 2>&5
3400   ac_status=$?
3401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402   (exit $ac_status); }
3403 { (ac_try="$ac_compiler -V >&5"
3404 case "(($ac_try" in
3405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406   *) ac_try_echo=$ac_try;;
3407 esac
3408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3409   (eval "$ac_compiler -V >&5") 2>&5
3410   ac_status=$?
3411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412   (exit $ac_status); }
3413
3414 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3415 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3416 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3417   echo $ECHO_N "(cached) $ECHO_C" >&6
3418 else
3419   cat >conftest.$ac_ext <<_ACEOF
3420 /* confdefs.h.  */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h.  */
3425
3426 int
3427 main ()
3428 {
3429 #ifndef __GNUC__
3430        choke me
3431 #endif
3432
3433   ;
3434   return 0;
3435 }
3436 _ACEOF
3437 rm -f conftest.$ac_objext
3438 if { (ac_try="$ac_compile"
3439 case "(($ac_try" in
3440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441   *) ac_try_echo=$ac_try;;
3442 esac
3443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3444   (eval "$ac_compile") 2>conftest.er1
3445   ac_status=$?
3446   grep -v '^ *+' conftest.er1 >conftest.err
3447   rm -f conftest.er1
3448   cat conftest.err >&5
3449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450   (exit $ac_status); } && {
3451          test -z "$ac_cxx_werror_flag" ||
3452          test ! -s conftest.err
3453        } && test -s conftest.$ac_objext; then
3454   ac_compiler_gnu=yes
3455 else
3456   echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3458
3459         ac_compiler_gnu=no
3460 fi
3461
3462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3463 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3464
3465 fi
3466 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3467 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3468 GXX=`test $ac_compiler_gnu = yes && echo yes`
3469 ac_test_CXXFLAGS=${CXXFLAGS+set}
3470 ac_save_CXXFLAGS=$CXXFLAGS
3471 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3472 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3473 if test "${ac_cv_prog_cxx_g+set}" = set; then
3474   echo $ECHO_N "(cached) $ECHO_C" >&6
3475 else
3476   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3477    ac_cxx_werror_flag=yes
3478    ac_cv_prog_cxx_g=no
3479    CXXFLAGS="-g"
3480    cat >conftest.$ac_ext <<_ACEOF
3481 /* confdefs.h.  */
3482 _ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h.  */
3486
3487 int
3488 main ()
3489 {
3490
3491   ;
3492   return 0;
3493 }
3494 _ACEOF
3495 rm -f conftest.$ac_objext
3496 if { (ac_try="$ac_compile"
3497 case "(($ac_try" in
3498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499   *) ac_try_echo=$ac_try;;
3500 esac
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502   (eval "$ac_compile") 2>conftest.er1
3503   ac_status=$?
3504   grep -v '^ *+' conftest.er1 >conftest.err
3505   rm -f conftest.er1
3506   cat conftest.err >&5
3507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508   (exit $ac_status); } && {
3509          test -z "$ac_cxx_werror_flag" ||
3510          test ! -s conftest.err
3511        } && test -s conftest.$ac_objext; then
3512   ac_cv_prog_cxx_g=yes
3513 else
3514   echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3516
3517         CXXFLAGS=""
3518       cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h.  */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h.  */
3524
3525 int
3526 main ()
3527 {
3528
3529   ;
3530   return 0;
3531 }
3532 _ACEOF
3533 rm -f conftest.$ac_objext
3534 if { (ac_try="$ac_compile"
3535 case "(($ac_try" in
3536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537   *) ac_try_echo=$ac_try;;
3538 esac
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540   (eval "$ac_compile") 2>conftest.er1
3541   ac_status=$?
3542   grep -v '^ *+' conftest.er1 >conftest.err
3543   rm -f conftest.er1
3544   cat conftest.err >&5
3545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546   (exit $ac_status); } && {
3547          test -z "$ac_cxx_werror_flag" ||
3548          test ! -s conftest.err
3549        } && test -s conftest.$ac_objext; then
3550   :
3551 else
3552   echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3554
3555         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3556          CXXFLAGS="-g"
3557          cat >conftest.$ac_ext <<_ACEOF
3558 /* confdefs.h.  */
3559 _ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h.  */
3563
3564 int
3565 main ()
3566 {
3567
3568   ;
3569   return 0;
3570 }
3571 _ACEOF
3572 rm -f conftest.$ac_objext
3573 if { (ac_try="$ac_compile"
3574 case "(($ac_try" in
3575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576   *) ac_try_echo=$ac_try;;
3577 esac
3578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579   (eval "$ac_compile") 2>conftest.er1
3580   ac_status=$?
3581   grep -v '^ *+' conftest.er1 >conftest.err
3582   rm -f conftest.er1
3583   cat conftest.err >&5
3584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585   (exit $ac_status); } && {
3586          test -z "$ac_cxx_werror_flag" ||
3587          test ! -s conftest.err
3588        } && test -s conftest.$ac_objext; then
3589   ac_cv_prog_cxx_g=yes
3590 else
3591   echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3593
3594
3595 fi
3596
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 fi
3599
3600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601 fi
3602
3603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3605 fi
3606 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3607 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3608 if test "$ac_test_CXXFLAGS" = set; then
3609   CXXFLAGS=$ac_save_CXXFLAGS
3610 elif test $ac_cv_prog_cxx_g = yes; then
3611   if test "$GXX" = yes; then
3612     CXXFLAGS="-g -O2"
3613   else
3614     CXXFLAGS="-g"
3615   fi
3616 else
3617   if test "$GXX" = yes; then
3618     CXXFLAGS="-O2"
3619   else
3620     CXXFLAGS=
3621   fi
3622 fi
3623 ac_ext=c
3624 ac_cpp='$CPP $CPPFLAGS'
3625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3628
3629 if test "x$CC" != xcc; then
3630   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3631 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3632 else
3633   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3634 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3635 fi
3636 set dummy $CC; ac_cc=`echo $2 |
3637                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3638 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3639   echo $ECHO_N "(cached) $ECHO_C" >&6
3640 else
3641   cat >conftest.$ac_ext <<_ACEOF
3642 /* confdefs.h.  */
3643 _ACEOF
3644 cat confdefs.h >>conftest.$ac_ext
3645 cat >>conftest.$ac_ext <<_ACEOF
3646 /* end confdefs.h.  */
3647
3648 int
3649 main ()
3650 {
3651
3652   ;
3653   return 0;
3654 }
3655 _ACEOF
3656 # Make sure it works both with $CC and with simple cc.
3657 # We do the test twice because some compilers refuse to overwrite an
3658 # existing .o file with -o, though they will create one.
3659 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3660 rm -f conftest2.*
3661 if { (case "(($ac_try" in
3662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663   *) ac_try_echo=$ac_try;;
3664 esac
3665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3666   (eval "$ac_try") 2>&5
3667   ac_status=$?
3668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669   (exit $ac_status); } &&
3670    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672   *) ac_try_echo=$ac_try;;
3673 esac
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675   (eval "$ac_try") 2>&5
3676   ac_status=$?
3677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678   (exit $ac_status); };
3679 then
3680   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3681   if test "x$CC" != xcc; then
3682     # Test first that cc exists at all.
3683     if { ac_try='cc -c conftest.$ac_ext >&5'
3684   { (case "(($ac_try" in
3685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686   *) ac_try_echo=$ac_try;;
3687 esac
3688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3689   (eval "$ac_try") 2>&5
3690   ac_status=$?
3691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692   (exit $ac_status); }; }; then
3693       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3694       rm -f conftest2.*
3695       if { (case "(($ac_try" in
3696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697   *) ac_try_echo=$ac_try;;
3698 esac
3699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3700   (eval "$ac_try") 2>&5
3701   ac_status=$?
3702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703   (exit $ac_status); } &&
3704          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706   *) ac_try_echo=$ac_try;;
3707 esac
3708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3709   (eval "$ac_try") 2>&5
3710   ac_status=$?
3711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712   (exit $ac_status); };
3713       then
3714         # cc works too.
3715         :
3716       else
3717         # cc exists but doesn't like -o.
3718         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3719       fi
3720     fi
3721   fi
3722 else
3723   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3724 fi
3725 rm -f core conftest*
3726
3727 fi
3728 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3729   { echo "$as_me:$LINENO: result: yes" >&5
3730 echo "${ECHO_T}yes" >&6; }
3731 else
3732   { echo "$as_me:$LINENO: result: no" >&5
3733 echo "${ECHO_T}no" >&6; }
3734
3735 cat >>confdefs.h <<\_ACEOF
3736 #define NO_MINUS_C_MINUS_O 1
3737 _ACEOF
3738
3739 fi
3740
3741 ac_ext=c
3742 ac_cpp='$CPP $CPPFLAGS'
3743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3747 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3748 # On Suns, sometimes $CPP names a directory.
3749 if test -n "$CPP" && test -d "$CPP"; then
3750   CPP=
3751 fi
3752 if test -z "$CPP"; then
3753   if test "${ac_cv_prog_CPP+set}" = set; then
3754   echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756       # Double quotes because CPP needs to be expanded
3757     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3758     do
3759       ac_preproc_ok=false
3760 for ac_c_preproc_warn_flag in '' yes
3761 do
3762   # Use a header file that comes with gcc, so configuring glibc
3763   # with a fresh cross-compiler works.
3764   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3765   # <limits.h> exists even on freestanding compilers.
3766   # On the NeXT, cc -E runs the code through the compiler's parser,
3767   # not just through cpp. "Syntax error" is here to catch this case.
3768   cat >conftest.$ac_ext <<_ACEOF
3769 /* confdefs.h.  */
3770 _ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h.  */
3774 #ifdef __STDC__
3775 # include <limits.h>
3776 #else
3777 # include <assert.h>
3778 #endif
3779                      Syntax error
3780 _ACEOF
3781 if { (ac_try="$ac_cpp conftest.$ac_ext"
3782 case "(($ac_try" in
3783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784   *) ac_try_echo=$ac_try;;
3785 esac
3786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3787   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3788   ac_status=$?
3789   grep -v '^ *+' conftest.er1 >conftest.err
3790   rm -f conftest.er1
3791   cat conftest.err >&5
3792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793   (exit $ac_status); } >/dev/null && {
3794          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3795          test ! -s conftest.err
3796        }; then
3797   :
3798 else
3799   echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3801
3802   # Broken: fails on valid input.
3803 continue
3804 fi
3805
3806 rm -f conftest.err conftest.$ac_ext
3807
3808   # OK, works on sane cases.  Now check whether nonexistent headers
3809   # can be detected and how.
3810   cat >conftest.$ac_ext <<_ACEOF
3811 /* confdefs.h.  */
3812 _ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h.  */
3816 #include <ac_nonexistent.h>
3817 _ACEOF
3818 if { (ac_try="$ac_cpp conftest.$ac_ext"
3819 case "(($ac_try" in
3820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821   *) ac_try_echo=$ac_try;;
3822 esac
3823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3824   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3825   ac_status=$?
3826   grep -v '^ *+' conftest.er1 >conftest.err
3827   rm -f conftest.er1
3828   cat conftest.err >&5
3829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830   (exit $ac_status); } >/dev/null && {
3831          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3832          test ! -s conftest.err
3833        }; then
3834   # Broken: success on invalid input.
3835 continue
3836 else
3837   echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3839
3840   # Passes both tests.
3841 ac_preproc_ok=:
3842 break
3843 fi
3844
3845 rm -f conftest.err conftest.$ac_ext
3846
3847 done
3848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3849 rm -f conftest.err conftest.$ac_ext
3850 if $ac_preproc_ok; then
3851   break
3852 fi
3853
3854     done
3855     ac_cv_prog_CPP=$CPP
3856
3857 fi
3858   CPP=$ac_cv_prog_CPP
3859 else
3860   ac_cv_prog_CPP=$CPP
3861 fi
3862 { echo "$as_me:$LINENO: result: $CPP" >&5
3863 echo "${ECHO_T}$CPP" >&6; }
3864 ac_preproc_ok=false
3865 for ac_c_preproc_warn_flag in '' yes
3866 do
3867   # Use a header file that comes with gcc, so configuring glibc
3868   # with a fresh cross-compiler works.
3869   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3870   # <limits.h> exists even on freestanding compilers.
3871   # On the NeXT, cc -E runs the code through the compiler's parser,
3872   # not just through cpp. "Syntax error" is here to catch this case.
3873   cat >conftest.$ac_ext <<_ACEOF
3874 /* confdefs.h.  */
3875 _ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h.  */
3879 #ifdef __STDC__
3880 # include <limits.h>
3881 #else
3882 # include <assert.h>
3883 #endif
3884                      Syntax error
3885 _ACEOF
3886 if { (ac_try="$ac_cpp conftest.$ac_ext"
3887 case "(($ac_try" in
3888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889   *) ac_try_echo=$ac_try;;
3890 esac
3891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3892   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3893   ac_status=$?
3894   grep -v '^ *+' conftest.er1 >conftest.err
3895   rm -f conftest.er1
3896   cat conftest.err >&5
3897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898   (exit $ac_status); } >/dev/null && {
3899          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3900          test ! -s conftest.err
3901        }; then
3902   :
3903 else
3904   echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3906
3907   # Broken: fails on valid input.
3908 continue
3909 fi
3910
3911 rm -f conftest.err conftest.$ac_ext
3912
3913   # OK, works on sane cases.  Now check whether nonexistent headers
3914   # can be detected and how.
3915   cat >conftest.$ac_ext <<_ACEOF
3916 /* confdefs.h.  */
3917 _ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h.  */
3921 #include <ac_nonexistent.h>
3922 _ACEOF
3923 if { (ac_try="$ac_cpp conftest.$ac_ext"
3924 case "(($ac_try" in
3925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926   *) ac_try_echo=$ac_try;;
3927 esac
3928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3929   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3930   ac_status=$?
3931   grep -v '^ *+' conftest.er1 >conftest.err
3932   rm -f conftest.er1
3933   cat conftest.err >&5
3934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935   (exit $ac_status); } >/dev/null && {
3936          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3937          test ! -s conftest.err
3938        }; then
3939   # Broken: success on invalid input.
3940 continue
3941 else
3942   echo "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3944
3945   # Passes both tests.
3946 ac_preproc_ok=:
3947 break
3948 fi
3949
3950 rm -f conftest.err conftest.$ac_ext
3951
3952 done
3953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3954 rm -f conftest.err conftest.$ac_ext
3955 if $ac_preproc_ok; then
3956   :
3957 else
3958   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3959 See \`config.log' for more details." >&5
3960 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3961 See \`config.log' for more details." >&2;}
3962    { (exit 1); exit 1; }; }
3963 fi
3964
3965 ac_ext=c
3966 ac_cpp='$CPP $CPPFLAGS'
3967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3970
3971
3972 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3973 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3974 if test "${ac_cv_path_GREP+set}" = set; then
3975   echo $ECHO_N "(cached) $ECHO_C" >&6
3976 else
3977   # Extract the first word of "grep ggrep" to use in msg output
3978 if test -z "$GREP"; then
3979 set dummy grep ggrep; ac_prog_name=$2
3980 if test "${ac_cv_path_GREP+set}" = set; then
3981   echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983   ac_path_GREP_found=false
3984 # Loop through the user's path and test for each of PROGNAME-LIST
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3987 do
3988   IFS=$as_save_IFS
3989   test -z "$as_dir" && as_dir=.
3990   for ac_prog in grep ggrep; do
3991   for ac_exec_ext in '' $ac_executable_extensions; do
3992     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3993     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3994     # Check for GNU ac_path_GREP and select it if it is found.
3995   # Check for GNU $ac_path_GREP
3996 case `"$ac_path_GREP" --version 2>&1` in
3997 *GNU*)
3998   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3999 *)
4000   ac_count=0
4001   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4002   while :
4003   do
4004     cat "conftest.in" "conftest.in" >"conftest.tmp"
4005     mv "conftest.tmp" "conftest.in"
4006     cp "conftest.in" "conftest.nl"
4007     echo 'GREP' >> "conftest.nl"
4008     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4009     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4010     ac_count=`expr $ac_count + 1`
4011     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4012       # Best one so far, save it but keep looking for a better one
4013       ac_cv_path_GREP="$ac_path_GREP"
4014       ac_path_GREP_max=$ac_count
4015     fi
4016     # 10*(2^10) chars as input seems more than enough
4017     test $ac_count -gt 10 && break
4018   done
4019   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4020 esac
4021
4022
4023     $ac_path_GREP_found && break 3
4024   done
4025 done
4026
4027 done
4028 IFS=$as_save_IFS
4029
4030
4031 fi
4032
4033 GREP="$ac_cv_path_GREP"
4034 if test -z "$GREP"; then
4035   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4036 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4037    { (exit 1); exit 1; }; }
4038 fi
4039
4040 else
4041   ac_cv_path_GREP=$GREP
4042 fi
4043
4044
4045 fi
4046 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4047 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4048  GREP="$ac_cv_path_GREP"
4049
4050
4051 { echo "$as_me:$LINENO: checking for egrep" >&5
4052 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4053 if test "${ac_cv_path_EGREP+set}" = set; then
4054   echo $ECHO_N "(cached) $ECHO_C" >&6
4055 else
4056   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4057    then ac_cv_path_EGREP="$GREP -E"
4058    else
4059      # Extract the first word of "egrep" to use in msg output
4060 if test -z "$EGREP"; then
4061 set dummy egrep; ac_prog_name=$2
4062 if test "${ac_cv_path_EGREP+set}" = set; then
4063   echo $ECHO_N "(cached) $ECHO_C" >&6
4064 else
4065   ac_path_EGREP_found=false
4066 # Loop through the user's path and test for each of PROGNAME-LIST
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4069 do
4070   IFS=$as_save_IFS
4071   test -z "$as_dir" && as_dir=.
4072   for ac_prog in egrep; do
4073   for ac_exec_ext in '' $ac_executable_extensions; do
4074     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4075     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4076     # Check for GNU ac_path_EGREP and select it if it is found.
4077   # Check for GNU $ac_path_EGREP
4078 case `"$ac_path_EGREP" --version 2>&1` in
4079 *GNU*)
4080   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4081 *)
4082   ac_count=0
4083   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4084   while :
4085   do
4086     cat "conftest.in" "conftest.in" >"conftest.tmp"
4087     mv "conftest.tmp" "conftest.in"
4088     cp "conftest.in" "conftest.nl"
4089     echo 'EGREP' >> "conftest.nl"
4090     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4091     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4092     ac_count=`expr $ac_count + 1`
4093     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4094       # Best one so far, save it but keep looking for a better one
4095       ac_cv_path_EGREP="$ac_path_EGREP"
4096       ac_path_EGREP_max=$ac_count
4097     fi
4098     # 10*(2^10) chars as input seems more than enough
4099     test $ac_count -gt 10 && break
4100   done
4101   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4102 esac
4103
4104
4105     $ac_path_EGREP_found && break 3
4106   done
4107 done
4108
4109 done
4110 IFS=$as_save_IFS
4111
4112
4113 fi
4114
4115 EGREP="$ac_cv_path_EGREP"
4116 if test -z "$EGREP"; then
4117   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4118 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4119    { (exit 1); exit 1; }; }
4120 fi
4121
4122 else
4123   ac_cv_path_EGREP=$EGREP
4124 fi
4125
4126
4127    fi
4128 fi
4129 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4130 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4131  EGREP="$ac_cv_path_EGREP"
4132
4133
4134 if test $ac_cv_c_compiler_gnu = yes; then
4135     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4136 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4137 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4138   echo $ECHO_N "(cached) $ECHO_C" >&6
4139 else
4140     ac_pattern="Autoconf.*'x'"
4141   cat >conftest.$ac_ext <<_ACEOF
4142 /* confdefs.h.  */
4143 _ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h.  */
4147 #include <sgtty.h>
4148 Autoconf TIOCGETP
4149 _ACEOF
4150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4151   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4152   ac_cv_prog_gcc_traditional=yes
4153 else
4154   ac_cv_prog_gcc_traditional=no
4155 fi
4156 rm -f conftest*
4157
4158
4159   if test $ac_cv_prog_gcc_traditional = no; then
4160     cat >conftest.$ac_ext <<_ACEOF
4161 /* confdefs.h.  */
4162 _ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h.  */
4166 #include <termio.h>
4167 Autoconf TCGETA
4168 _ACEOF
4169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4170   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4171   ac_cv_prog_gcc_traditional=yes
4172 fi
4173 rm -f conftest*
4174
4175   fi
4176 fi
4177 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4178 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4179   if test $ac_cv_prog_gcc_traditional = yes; then
4180     CC="$CC -traditional"
4181   fi
4182 fi
4183
4184 BASECC=`basename $CC`
4185 have_gcc=no
4186 if test "x$BASECC" = xgcc; then
4187    cat >>confdefs.h <<\_ACEOF
4188 #define HAVE_GCC 1
4189 _ACEOF
4190
4191    have_gcc=yes
4192 fi
4193 # Extract the first word of "$CXX", so it can be a program name with args.
4194 set dummy $CXX; ac_word=$2
4195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4197 if test "${ac_cv_path_CXX+set}" = set; then
4198   echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200   case $CXX in
4201   [\\/]* | ?:[\\/]*)
4202   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4203   ;;
4204   *)
4205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH
4207 do
4208   IFS=$as_save_IFS
4209   test -z "$as_dir" && as_dir=.
4210   for ac_exec_ext in '' $ac_executable_extensions; do
4211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4212     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4214     break 2
4215   fi
4216 done
4217 done
4218 IFS=$as_save_IFS
4219
4220   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4221   ;;
4222 esac
4223 fi
4224 CXX=$ac_cv_path_CXX
4225 if test -n "$CXX"; then
4226   { echo "$as_me:$LINENO: result: $CXX" >&5
4227 echo "${ECHO_T}$CXX" >&6; }
4228 else
4229   { echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6; }
4231 fi
4232
4233
4234 if test ! -e $CXX; then
4235    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4236 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4237    { (exit 1); exit 1; }; }
4238 fi
4239
4240 # Find a good install program.  We prefer a C program (faster),
4241 # so one script is as good as another.  But avoid the broken or
4242 # incompatible versions:
4243 # SysV /etc/install, /usr/sbin/install
4244 # SunOS /usr/etc/install
4245 # IRIX /sbin/install
4246 # AIX /bin/install
4247 # AmigaOS /C/install, which installs bootblocks on floppy discs
4248 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4249 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4250 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4251 # OS/2's system install, which has a completely different semantic
4252 # ./install, which can be erroneously created by make from ./install.sh.
4253 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4254 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4255 if test -z "$INSTALL"; then
4256 if test "${ac_cv_path_install+set}" = set; then
4257   echo $ECHO_N "(cached) $ECHO_C" >&6
4258 else
4259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 for as_dir in $PATH
4261 do
4262   IFS=$as_save_IFS
4263   test -z "$as_dir" && as_dir=.
4264   # Account for people who put trailing slashes in PATH elements.
4265 case $as_dir/ in
4266   ./ | .// | /cC/* | \
4267   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4268   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4269   /usr/ucb/* ) ;;
4270   *)
4271     # OSF1 and SCO ODT 3.0 have their own names for install.
4272     # Don't use installbsd from OSF since it installs stuff as root
4273     # by default.
4274     for ac_prog in ginstall scoinst install; do
4275       for ac_exec_ext in '' $ac_executable_extensions; do
4276         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4277           if test $ac_prog = install &&
4278             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4279             # AIX install.  It has an incompatible calling convention.
4280             :
4281           elif test $ac_prog = install &&
4282             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4283             # program-specific install script used by HP pwplus--don't use.
4284             :
4285           else
4286             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4287             break 3
4288           fi
4289         fi
4290       done
4291     done
4292     ;;
4293 esac
4294 done
4295 IFS=$as_save_IFS
4296
4297
4298 fi
4299   if test "${ac_cv_path_install+set}" = set; then
4300     INSTALL=$ac_cv_path_install
4301   else
4302     # As a last resort, use the slow shell script.  Don't cache a
4303     # value for INSTALL within a source directory, because that will
4304     # break other packages using the cache if that directory is
4305     # removed, or if the value is a relative name.
4306     INSTALL=$ac_install_sh
4307   fi
4308 fi
4309 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4310 echo "${ECHO_T}$INSTALL" >&6; }
4311
4312 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4313 # It thinks the first close brace ends the variable substitution.
4314 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4315
4316 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4317
4318 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4319
4320 # Extract the first word of "mv", so it can be a program name with args.
4321 set dummy mv; ac_word=$2
4322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4324 if test "${ac_cv_path_MV+set}" = set; then
4325   echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327   case $MV in
4328   [\\/]* | ?:[\\/]*)
4329   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4330   ;;
4331   *)
4332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 for as_dir in $PATH
4334 do
4335   IFS=$as_save_IFS
4336   test -z "$as_dir" && as_dir=.
4337   for ac_exec_ext in '' $ac_executable_extensions; do
4338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4339     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4341     break 2
4342   fi
4343 done
4344 done
4345 IFS=$as_save_IFS
4346
4347   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4348   ;;
4349 esac
4350 fi
4351 MV=$ac_cv_path_MV
4352 if test -n "$MV"; then
4353   { echo "$as_me:$LINENO: result: $MV" >&5
4354 echo "${ECHO_T}$MV" >&6; }
4355 else
4356   { echo "$as_me:$LINENO: result: no" >&5
4357 echo "${ECHO_T}no" >&6; }
4358 fi
4359
4360
4361 # Extract the first word of "rm", so it can be a program name with args.
4362 set dummy rm; ac_word=$2
4363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4365 if test "${ac_cv_path_REMOVE+set}" = set; then
4366   echo $ECHO_N "(cached) $ECHO_C" >&6
4367 else
4368   case $REMOVE in
4369   [\\/]* | ?:[\\/]*)
4370   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4371   ;;
4372   *)
4373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374 for as_dir in $PATH
4375 do
4376   IFS=$as_save_IFS
4377   test -z "$as_dir" && as_dir=.
4378   for ac_exec_ext in '' $ac_executable_extensions; do
4379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4380     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4382     break 2
4383   fi
4384 done
4385 done
4386 IFS=$as_save_IFS
4387
4388   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4389   ;;
4390 esac
4391 fi
4392 REMOVE=$ac_cv_path_REMOVE
4393 if test -n "$REMOVE"; then
4394   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4395 echo "${ECHO_T}$REMOVE" >&6; }
4396 else
4397   { echo "$as_me:$LINENO: result: no" >&5
4398 echo "${ECHO_T}no" >&6; }
4399 fi
4400
4401
4402 # Extract the first word of "cp", so it can be a program name with args.
4403 set dummy cp; ac_word=$2
4404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4406 if test "${ac_cv_path_CP+set}" = set; then
4407   echo $ECHO_N "(cached) $ECHO_C" >&6
4408 else
4409   case $CP in
4410   [\\/]* | ?:[\\/]*)
4411   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4412   ;;
4413   *)
4414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 for as_dir in $PATH
4416 do
4417   IFS=$as_save_IFS
4418   test -z "$as_dir" && as_dir=.
4419   for ac_exec_ext in '' $ac_executable_extensions; do
4420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4421     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4423     break 2
4424   fi
4425 done
4426 done
4427 IFS=$as_save_IFS
4428
4429   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4430   ;;
4431 esac
4432 fi
4433 CP=$ac_cv_path_CP
4434 if test -n "$CP"; then
4435   { echo "$as_me:$LINENO: result: $CP" >&5
4436 echo "${ECHO_T}$CP" >&6; }
4437 else
4438   { echo "$as_me:$LINENO: result: no" >&5
4439 echo "${ECHO_T}no" >&6; }
4440 fi
4441
4442
4443 # Extract the first word of "sed", so it can be a program name with args.
4444 set dummy sed; ac_word=$2
4445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4447 if test "${ac_cv_path_SED+set}" = set; then
4448   echo $ECHO_N "(cached) $ECHO_C" >&6
4449 else
4450   case $SED in
4451   [\\/]* | ?:[\\/]*)
4452   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4453   ;;
4454   *)
4455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH
4457 do
4458   IFS=$as_save_IFS
4459   test -z "$as_dir" && as_dir=.
4460   for ac_exec_ext in '' $ac_executable_extensions; do
4461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4462     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4464     break 2
4465   fi
4466 done
4467 done
4468 IFS=$as_save_IFS
4469
4470   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4471   ;;
4472 esac
4473 fi
4474 SED=$ac_cv_path_SED
4475 if test -n "$SED"; then
4476   { echo "$as_me:$LINENO: result: $SED" >&5
4477 echo "${ECHO_T}$SED" >&6; }
4478 else
4479   { echo "$as_me:$LINENO: result: no" >&5
4480 echo "${ECHO_T}no" >&6; }
4481 fi
4482
4483
4484 # Extract the first word of "echo", so it can be a program name with args.
4485 set dummy echo; ac_word=$2
4486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4488 if test "${ac_cv_path_ECHO+set}" = set; then
4489   echo $ECHO_N "(cached) $ECHO_C" >&6
4490 else
4491   case $ECHO in
4492   [\\/]* | ?:[\\/]*)
4493   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4494   ;;
4495   *)
4496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH
4498 do
4499   IFS=$as_save_IFS
4500   test -z "$as_dir" && as_dir=.
4501   for ac_exec_ext in '' $ac_executable_extensions; do
4502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4503     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4505     break 2
4506   fi
4507 done
4508 done
4509 IFS=$as_save_IFS
4510
4511   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4512   ;;
4513 esac
4514 fi
4515 ECHO=$ac_cv_path_ECHO
4516 if test -n "$ECHO"; then
4517   { echo "$as_me:$LINENO: result: $ECHO" >&5
4518 echo "${ECHO_T}$ECHO" >&6; }
4519 else
4520   { echo "$as_me:$LINENO: result: no" >&5
4521 echo "${ECHO_T}no" >&6; }
4522 fi
4523
4524
4525 # Extract the first word of "cmp", so it can be a program name with args.
4526 set dummy cmp; ac_word=$2
4527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4529 if test "${ac_cv_path_CMP+set}" = set; then
4530   echo $ECHO_N "(cached) $ECHO_C" >&6
4531 else
4532   case $CMP in
4533   [\\/]* | ?:[\\/]*)
4534   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4535   ;;
4536   *)
4537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH
4539 do
4540   IFS=$as_save_IFS
4541   test -z "$as_dir" && as_dir=.
4542   for ac_exec_ext in '' $ac_executable_extensions; do
4543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4544     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4546     break 2
4547   fi
4548 done
4549 done
4550 IFS=$as_save_IFS
4551
4552   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4553   ;;
4554 esac
4555 fi
4556 CMP=$ac_cv_path_CMP
4557 if test -n "$CMP"; then
4558   { echo "$as_me:$LINENO: result: $CMP" >&5
4559 echo "${ECHO_T}$CMP" >&6; }
4560 else
4561   { echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6; }
4563 fi
4564
4565
4566 # Extract the first word of "tbl", so it can be a program name with args.
4567 set dummy tbl; ac_word=$2
4568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4570 if test "${ac_cv_path_TBL+set}" = set; then
4571   echo $ECHO_N "(cached) $ECHO_C" >&6
4572 else
4573   case $TBL in
4574   [\\/]* | ?:[\\/]*)
4575   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4576   ;;
4577   *)
4578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH
4580 do
4581   IFS=$as_save_IFS
4582   test -z "$as_dir" && as_dir=.
4583   for ac_exec_ext in '' $ac_executable_extensions; do
4584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4585     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587     break 2
4588   fi
4589 done
4590 done
4591 IFS=$as_save_IFS
4592
4593   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4594   ;;
4595 esac
4596 fi
4597 TBL=$ac_cv_path_TBL
4598 if test -n "$TBL"; then
4599   { echo "$as_me:$LINENO: result: $TBL" >&5
4600 echo "${ECHO_T}$TBL" >&6; }
4601 else
4602   { echo "$as_me:$LINENO: result: no" >&5
4603 echo "${ECHO_T}no" >&6; }
4604 fi
4605
4606
4607 # Extract the first word of "ar", so it can be a program name with args.
4608 set dummy ar; ac_word=$2
4609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4611 if test "${ac_cv_path_AR+set}" = set; then
4612   echo $ECHO_N "(cached) $ECHO_C" >&6
4613 else
4614   case $AR in
4615   [\\/]* | ?:[\\/]*)
4616   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4617   ;;
4618   *)
4619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 for as_dir in $PATH
4621 do
4622   IFS=$as_save_IFS
4623   test -z "$as_dir" && as_dir=.
4624   for ac_exec_ext in '' $ac_executable_extensions; do
4625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4626     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628     break 2
4629   fi
4630 done
4631 done
4632 IFS=$as_save_IFS
4633
4634   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4635   ;;
4636 esac
4637 fi
4638 AR=$ac_cv_path_AR
4639 if test -n "$AR"; then
4640   { echo "$as_me:$LINENO: result: $AR" >&5
4641 echo "${ECHO_T}$AR" >&6; }
4642 else
4643   { echo "$as_me:$LINENO: result: no" >&5
4644 echo "${ECHO_T}no" >&6; }
4645 fi
4646
4647
4648 # Extract the first word of "openssl", so it can be a program name with args.
4649 set dummy openssl; ac_word=$2
4650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652 if test "${ac_cv_path_OPENSSL+set}" = set; then
4653   echo $ECHO_N "(cached) $ECHO_C" >&6
4654 else
4655   case $OPENSSL in
4656   [\\/]* | ?:[\\/]*)
4657   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4658   ;;
4659   *)
4660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH
4662 do
4663   IFS=$as_save_IFS
4664   test -z "$as_dir" && as_dir=.
4665   for ac_exec_ext in '' $ac_executable_extensions; do
4666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669     break 2
4670   fi
4671 done
4672 done
4673 IFS=$as_save_IFS
4674
4675   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4676   ;;
4677 esac
4678 fi
4679 OPENSSL=$ac_cv_path_OPENSSL
4680 if test -n "$OPENSSL"; then
4681   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4682 echo "${ECHO_T}$OPENSSL" >&6; }
4683 else
4684   { echo "$as_me:$LINENO: result: no" >&5
4685 echo "${ECHO_T}no" >&6; }
4686 fi
4687
4688
4689 # Extract the first word of "mtx", so it can be a program name with args.
4690 set dummy mtx; ac_word=$2
4691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4693 if test "${ac_cv_path_MTX+set}" = set; then
4694   echo $ECHO_N "(cached) $ECHO_C" >&6
4695 else
4696   case $MTX in
4697   [\\/]* | ?:[\\/]*)
4698   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4699   ;;
4700   *)
4701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4703 do
4704   IFS=$as_save_IFS
4705   test -z "$as_dir" && as_dir=.
4706   for ac_exec_ext in '' $ac_executable_extensions; do
4707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710     break 2
4711   fi
4712 done
4713 done
4714 IFS=$as_save_IFS
4715
4716   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4717   ;;
4718 esac
4719 fi
4720 MTX=$ac_cv_path_MTX
4721 if test -n "$MTX"; then
4722   { echo "$as_me:$LINENO: result: $MTX" >&5
4723 echo "${ECHO_T}$MTX" >&6; }
4724 else
4725   { echo "$as_me:$LINENO: result: no" >&5
4726 echo "${ECHO_T}no" >&6; }
4727 fi
4728
4729
4730 # Extract the first word of "dd", so it can be a program name with args.
4731 set dummy dd; ac_word=$2
4732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4734 if test "${ac_cv_path_DD+set}" = set; then
4735   echo $ECHO_N "(cached) $ECHO_C" >&6
4736 else
4737   case $DD in
4738   [\\/]* | ?:[\\/]*)
4739   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4740   ;;
4741   *)
4742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 for as_dir in $PATH
4744 do
4745   IFS=$as_save_IFS
4746   test -z "$as_dir" && as_dir=.
4747   for ac_exec_ext in '' $ac_executable_extensions; do
4748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4749     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4751     break 2
4752   fi
4753 done
4754 done
4755 IFS=$as_save_IFS
4756
4757   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4758   ;;
4759 esac
4760 fi
4761 DD=$ac_cv_path_DD
4762 if test -n "$DD"; then
4763   { echo "$as_me:$LINENO: result: $DD" >&5
4764 echo "${ECHO_T}$DD" >&6; }
4765 else
4766   { echo "$as_me:$LINENO: result: no" >&5
4767 echo "${ECHO_T}no" >&6; }
4768 fi
4769
4770
4771 # Extract the first word of "mkisofs", so it can be a program name with args.
4772 set dummy mkisofs; ac_word=$2
4773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4775 if test "${ac_cv_path_MKISOFS+set}" = set; then
4776   echo $ECHO_N "(cached) $ECHO_C" >&6
4777 else
4778   case $MKISOFS in
4779   [\\/]* | ?:[\\/]*)
4780   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4781   ;;
4782   *)
4783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 for as_dir in $PATH
4785 do
4786   IFS=$as_save_IFS
4787   test -z "$as_dir" && as_dir=.
4788   for ac_exec_ext in '' $ac_executable_extensions; do
4789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4790     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4792     break 2
4793   fi
4794 done
4795 done
4796 IFS=$as_save_IFS
4797
4798   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4799   ;;
4800 esac
4801 fi
4802 MKISOFS=$ac_cv_path_MKISOFS
4803 if test -n "$MKISOFS"; then
4804   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4805 echo "${ECHO_T}$MKISOFS" >&6; }
4806 else
4807   { echo "$as_me:$LINENO: result: no" >&5
4808 echo "${ECHO_T}no" >&6; }
4809 fi
4810
4811
4812 # Extract the first word of "python", so it can be a program name with args.
4813 set dummy python; ac_word=$2
4814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4816 if test "${ac_cv_path_PYTHON+set}" = set; then
4817   echo $ECHO_N "(cached) $ECHO_C" >&6
4818 else
4819   case $PYTHON in
4820   [\\/]* | ?:[\\/]*)
4821   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4822   ;;
4823   *)
4824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4826 do
4827   IFS=$as_save_IFS
4828   test -z "$as_dir" && as_dir=.
4829   for ac_exec_ext in '' $ac_executable_extensions; do
4830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4833     break 2
4834   fi
4835 done
4836 done
4837 IFS=$as_save_IFS
4838
4839   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4840   ;;
4841 esac
4842 fi
4843 PYTHON=$ac_cv_path_PYTHON
4844 if test -n "$PYTHON"; then
4845   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4846 echo "${ECHO_T}$PYTHON" >&6; }
4847 else
4848   { echo "$as_me:$LINENO: result: no" >&5
4849 echo "${ECHO_T}no" >&6; }
4850 fi
4851
4852
4853 # Extract the first word of "growisofs", so it can be a program name with args.
4854 set dummy growisofs; ac_word=$2
4855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4858   echo $ECHO_N "(cached) $ECHO_C" >&6
4859 else
4860   case $GROWISOFS in
4861   [\\/]* | ?:[\\/]*)
4862   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4863   ;;
4864   *)
4865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4867 do
4868   IFS=$as_save_IFS
4869   test -z "$as_dir" && as_dir=.
4870   for ac_exec_ext in '' $ac_executable_extensions; do
4871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4874     break 2
4875   fi
4876 done
4877 done
4878 IFS=$as_save_IFS
4879
4880   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4881   ;;
4882 esac
4883 fi
4884 GROWISOFS=$ac_cv_path_GROWISOFS
4885 if test -n "$GROWISOFS"; then
4886   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4887 echo "${ECHO_T}$GROWISOFS" >&6; }
4888 else
4889   { echo "$as_me:$LINENO: result: no" >&5
4890 echo "${ECHO_T}no" >&6; }
4891 fi
4892
4893
4894 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4895 set dummy dvd+rw-mediainfo; ac_word=$2
4896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4898 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4899   echo $ECHO_N "(cached) $ECHO_C" >&6
4900 else
4901   case $DVDRWMEDIAINFO in
4902   [\\/]* | ?:[\\/]*)
4903   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4904   ;;
4905   *)
4906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4908 do
4909   IFS=$as_save_IFS
4910   test -z "$as_dir" && as_dir=.
4911   for ac_exec_ext in '' $ac_executable_extensions; do
4912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4913     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915     break 2
4916   fi
4917 done
4918 done
4919 IFS=$as_save_IFS
4920
4921   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4922   ;;
4923 esac
4924 fi
4925 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4926 if test -n "$DVDRWMEDIAINFO"; then
4927   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4928 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4929 else
4930   { echo "$as_me:$LINENO: result: no" >&5
4931 echo "${ECHO_T}no" >&6; }
4932 fi
4933
4934
4935 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4936 set dummy dvd+rw-format; ac_word=$2
4937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4939 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4940   echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942   case $DVDRWFORMAT in
4943   [\\/]* | ?:[\\/]*)
4944   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4945   ;;
4946   *)
4947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4949 do
4950   IFS=$as_save_IFS
4951   test -z "$as_dir" && as_dir=.
4952   for ac_exec_ext in '' $ac_executable_extensions; do
4953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4954     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4956     break 2
4957   fi
4958 done
4959 done
4960 IFS=$as_save_IFS
4961
4962   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4963   ;;
4964 esac
4965 fi
4966 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4967 if test -n "$DVDRWFORMAT"; then
4968   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4969 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4970 else
4971   { echo "$as_me:$LINENO: result: no" >&5
4972 echo "${ECHO_T}no" >&6; }
4973 fi
4974
4975
4976 # Extract the first word of "pkg-config", so it can be a program name with args.
4977 set dummy pkg-config; ac_word=$2
4978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4980 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4981   echo $ECHO_N "(cached) $ECHO_C" >&6
4982 else
4983   case $PKGCONFIG in
4984   [\\/]* | ?:[\\/]*)
4985   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4986   ;;
4987   *)
4988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH
4990 do
4991   IFS=$as_save_IFS
4992   test -z "$as_dir" && as_dir=.
4993   for ac_exec_ext in '' $ac_executable_extensions; do
4994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4997     break 2
4998   fi
4999 done
5000 done
5001 IFS=$as_save_IFS
5002
5003   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5004   ;;
5005 esac
5006 fi
5007 PKGCONFIG=$ac_cv_path_PKGCONFIG
5008 if test -n "$PKGCONFIG"; then
5009   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5010 echo "${ECHO_T}$PKGCONFIG" >&6; }
5011 else
5012   { echo "$as_me:$LINENO: result: no" >&5
5013 echo "${ECHO_T}no" >&6; }
5014 fi
5015
5016
5017 # Extract the first word of "qmake", so it can be a program name with args.
5018 set dummy qmake; ac_word=$2
5019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5021 if test "${ac_cv_path_QMAKE+set}" = set; then
5022   echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024   case $QMAKE in
5025   [\\/]* | ?:[\\/]*)
5026   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5027   ;;
5028   *)
5029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5031 do
5032   IFS=$as_save_IFS
5033   test -z "$as_dir" && as_dir=.
5034   for ac_exec_ext in '' $ac_executable_extensions; do
5035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5036     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5038     break 2
5039   fi
5040 done
5041 done
5042 IFS=$as_save_IFS
5043
5044   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5045   ;;
5046 esac
5047 fi
5048 QMAKE=$ac_cv_path_QMAKE
5049 if test -n "$QMAKE"; then
5050   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5051 echo "${ECHO_T}$QMAKE" >&6; }
5052 else
5053   { echo "$as_me:$LINENO: result: no" >&5
5054 echo "${ECHO_T}no" >&6; }
5055 fi
5056
5057
5058 # Extract the first word of "gmake", so it can be a program name with args.
5059 set dummy gmake; ac_word=$2
5060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5062 if test "${ac_cv_path_GMAKE+set}" = set; then
5063   echo $ECHO_N "(cached) $ECHO_C" >&6
5064 else
5065   case $GMAKE in
5066   [\\/]* | ?:[\\/]*)
5067   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5068   ;;
5069   *)
5070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5072 do
5073   IFS=$as_save_IFS
5074   test -z "$as_dir" && as_dir=.
5075   for ac_exec_ext in '' $ac_executable_extensions; do
5076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079     break 2
5080   fi
5081 done
5082 done
5083 IFS=$as_save_IFS
5084
5085   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5086   ;;
5087 esac
5088 fi
5089 GMAKE=$ac_cv_path_GMAKE
5090 if test -n "$GMAKE"; then
5091   { echo "$as_me:$LINENO: result: $GMAKE" >&5
5092 echo "${ECHO_T}$GMAKE" >&6; }
5093 else
5094   { echo "$as_me:$LINENO: result: no" >&5
5095 echo "${ECHO_T}no" >&6; }
5096 fi
5097
5098
5099
5100 if test "x$WXCONFIG" = x; then
5101    WXCONFIG=wx-config
5102 fi
5103 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5104 set dummy ${WXCONFIG}; 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_WXCONFIG+set}" = set; then
5108   echo $ECHO_N "(cached) $ECHO_C" >&6
5109 else
5110   case $WXCONFIG in
5111   [\\/]* | ?:[\\/]*)
5112   ac_cv_path_WXCONFIG="$WXCONFIG" # 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_WXCONFIG="$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_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5131   ;;
5132 esac
5133 fi
5134 WXCONFIG=$ac_cv_path_WXCONFIG
5135 if test -n "$WXCONFIG"; then
5136   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5137 echo "${ECHO_T}$WXCONFIG" >&6; }
5138 else
5139   { echo "$as_me:$LINENO: result: no" >&5
5140 echo "${ECHO_T}no" >&6; }
5141 fi
5142
5143
5144
5145 # Extract the first word of "cdrecord", so it can be a program name with args.
5146 set dummy cdrecord; ac_word=$2
5147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5149 if test "${ac_cv_path_CDRECORD+set}" = set; then
5150   echo $ECHO_N "(cached) $ECHO_C" >&6
5151 else
5152   case $CDRECORD in
5153   [\\/]* | ?:[\\/]*)
5154   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5155   ;;
5156   *)
5157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in $PATH
5159 do
5160   IFS=$as_save_IFS
5161   test -z "$as_dir" && as_dir=.
5162   for ac_exec_ext in '' $ac_executable_extensions; do
5163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5164     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5166     break 2
5167   fi
5168 done
5169 done
5170 IFS=$as_save_IFS
5171
5172   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5173   ;;
5174 esac
5175 fi
5176 CDRECORD=$ac_cv_path_CDRECORD
5177 if test -n "$CDRECORD"; then
5178   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5179 echo "${ECHO_T}$CDRECORD" >&6; }
5180 else
5181   { echo "$as_me:$LINENO: result: no" >&5
5182 echo "${ECHO_T}no" >&6; }
5183 fi
5184
5185
5186 # Extract the first word of "pidof", so it can be a program name with args.
5187 set dummy pidof; ac_word=$2
5188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5190 if test "${ac_cv_path_PIDOF+set}" = set; then
5191   echo $ECHO_N "(cached) $ECHO_C" >&6
5192 else
5193   case $PIDOF in
5194   [\\/]* | ?:[\\/]*)
5195   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5196   ;;
5197   *)
5198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH
5200 do
5201   IFS=$as_save_IFS
5202   test -z "$as_dir" && as_dir=.
5203   for ac_exec_ext in '' $ac_executable_extensions; do
5204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5205     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5207     break 2
5208   fi
5209 done
5210 done
5211 IFS=$as_save_IFS
5212
5213   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5214   ;;
5215 esac
5216 fi
5217 PIDOF=$ac_cv_path_PIDOF
5218 if test -n "$PIDOF"; then
5219   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5220 echo "${ECHO_T}$PIDOF" >&6; }
5221 else
5222   { echo "$as_me:$LINENO: result: no" >&5
5223 echo "${ECHO_T}no" >&6; }
5224 fi
5225
5226
5227 for ac_prog in gawk mawk nawk awk
5228 do
5229   # Extract the first word of "$ac_prog", so it can be a program name with args.
5230 set dummy $ac_prog; ac_word=$2
5231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5233 if test "${ac_cv_prog_AWK+set}" = set; then
5234   echo $ECHO_N "(cached) $ECHO_C" >&6
5235 else
5236   if test -n "$AWK"; then
5237   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5238 else
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH
5241 do
5242   IFS=$as_save_IFS
5243   test -z "$as_dir" && as_dir=.
5244   for ac_exec_ext in '' $ac_executable_extensions; do
5245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5246     ac_cv_prog_AWK="$ac_prog"
5247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5248     break 2
5249   fi
5250 done
5251 done
5252 IFS=$as_save_IFS
5253
5254 fi
5255 fi
5256 AWK=$ac_cv_prog_AWK
5257 if test -n "$AWK"; then
5258   { echo "$as_me:$LINENO: result: $AWK" >&5
5259 echo "${ECHO_T}$AWK" >&6; }
5260 else
5261   { echo "$as_me:$LINENO: result: no" >&5
5262 echo "${ECHO_T}no" >&6; }
5263 fi
5264
5265
5266   test -n "$AWK" && break
5267 done
5268
5269 # Some AWK programs fail, so test it and warn the user
5270 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5271       { if ((prog == $2) || (("(" prog ")") == $2) ||
5272       (("" prog "") == $2) ||
5273       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5274 else
5275   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5276    The regex engine of $AWK is too broken to be used you
5277    might want to install GNU AWK.
5278    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5279 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5280    The regex engine of $AWK is too broken to be used you
5281    might want to install GNU AWK.
5282    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5283    { (exit 1); exit 1; }; }
5284 fi
5285 THE_AWK=$AWK
5286 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5287 set dummy $THE_AWK; ac_word=$2
5288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5290 if test "${ac_cv_path_AWK+set}" = set; then
5291   echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293   case $AWK in
5294   [\\/]* | ?:[\\/]*)
5295   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5296   ;;
5297   *)
5298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 for as_dir in $PATH
5300 do
5301   IFS=$as_save_IFS
5302   test -z "$as_dir" && as_dir=.
5303   for ac_exec_ext in '' $ac_executable_extensions; do
5304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5305     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5307     break 2
5308   fi
5309 done
5310 done
5311 IFS=$as_save_IFS
5312
5313   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5314   ;;
5315 esac
5316 fi
5317 AWK=$ac_cv_path_AWK
5318 if test -n "$AWK"; then
5319   { echo "$as_me:$LINENO: result: $AWK" >&5
5320 echo "${ECHO_T}$AWK" >&6; }
5321 else
5322   { echo "$as_me:$LINENO: result: no" >&5
5323 echo "${ECHO_T}no" >&6; }
5324 fi
5325
5326
5327
5328
5329 test -n "$ARFLAG" || ARFLAGS="cr"
5330
5331
5332 MAKE_SHELL=/bin/sh
5333
5334
5335
5336
5337
5338
5339
5340 use_libtool=yes
5341 # Check whether --enable-libtool was given.
5342 if test "${enable_libtool+set}" = set; then
5343   enableval=$enable_libtool;
5344        if test x$enableval = xno; then
5345           use_libtool=no
5346        fi
5347
5348
5349 fi
5350
5351 case `pwd` in
5352   *\ * | *\     *)
5353     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5354 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5355 esac
5356
5357
5358
5359 macro_version='2.2.6'
5360 macro_revision='1.3012'
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374 ltmain="$ac_aux_dir/ltmain.sh"
5375
5376 # Make sure we can run config.sub.
5377 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5378   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5379 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5380    { (exit 1); exit 1; }; }
5381
5382 { echo "$as_me:$LINENO: checking build system type" >&5
5383 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5384 if test "${ac_cv_build+set}" = set; then
5385   echo $ECHO_N "(cached) $ECHO_C" >&6
5386 else
5387   ac_build_alias=$build_alias
5388 test "x$ac_build_alias" = x &&
5389   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5390 test "x$ac_build_alias" = x &&
5391   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5392 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5393    { (exit 1); exit 1; }; }
5394 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5395   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5396 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5397    { (exit 1); exit 1; }; }
5398
5399 fi
5400 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5401 echo "${ECHO_T}$ac_cv_build" >&6; }
5402 case $ac_cv_build in
5403 *-*-*) ;;
5404 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5405 echo "$as_me: error: invalid value of canonical build" >&2;}
5406    { (exit 1); exit 1; }; };;
5407 esac
5408 build=$ac_cv_build
5409 ac_save_IFS=$IFS; IFS='-'
5410 set x $ac_cv_build
5411 shift
5412 build_cpu=$1
5413 build_vendor=$2
5414 shift; shift
5415 # Remember, the first character of IFS is used to create $*,
5416 # except with old shells:
5417 build_os=$*
5418 IFS=$ac_save_IFS
5419 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5420
5421
5422 { echo "$as_me:$LINENO: checking host system type" >&5
5423 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5424 if test "${ac_cv_host+set}" = set; then
5425   echo $ECHO_N "(cached) $ECHO_C" >&6
5426 else
5427   if test "x$host_alias" = x; then
5428   ac_cv_host=$ac_cv_build
5429 else
5430   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5431     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5432 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5433    { (exit 1); exit 1; }; }
5434 fi
5435
5436 fi
5437 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5438 echo "${ECHO_T}$ac_cv_host" >&6; }
5439 case $ac_cv_host in
5440 *-*-*) ;;
5441 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5442 echo "$as_me: error: invalid value of canonical host" >&2;}
5443    { (exit 1); exit 1; }; };;
5444 esac
5445 host=$ac_cv_host
5446 ac_save_IFS=$IFS; IFS='-'
5447 set x $ac_cv_host
5448 shift
5449 host_cpu=$1
5450 host_vendor=$2
5451 shift; shift
5452 # Remember, the first character of IFS is used to create $*,
5453 # except with old shells:
5454 host_os=$*
5455 IFS=$ac_save_IFS
5456 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5457
5458
5459 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5460 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5461 if test "${ac_cv_path_SED+set}" = set; then
5462   echo $ECHO_N "(cached) $ECHO_C" >&6
5463 else
5464             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5465      for ac_i in 1 2 3 4 5 6 7; do
5466        ac_script="$ac_script$as_nl$ac_script"
5467      done
5468      echo "$ac_script" | sed 99q >conftest.sed
5469      $as_unset ac_script || ac_script=
5470      # Extract the first word of "sed gsed" to use in msg output
5471 if test -z "$SED"; then
5472 set dummy sed gsed; ac_prog_name=$2
5473 if test "${ac_cv_path_SED+set}" = set; then
5474   echo $ECHO_N "(cached) $ECHO_C" >&6
5475 else
5476   ac_path_SED_found=false
5477 # Loop through the user's path and test for each of PROGNAME-LIST
5478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479 for as_dir in $PATH
5480 do
5481   IFS=$as_save_IFS
5482   test -z "$as_dir" && as_dir=.
5483   for ac_prog in sed gsed; do
5484   for ac_exec_ext in '' $ac_executable_extensions; do
5485     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5486     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5487     # Check for GNU ac_path_SED and select it if it is found.
5488   # Check for GNU $ac_path_SED
5489 case `"$ac_path_SED" --version 2>&1` in
5490 *GNU*)
5491   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5492 *)
5493   ac_count=0
5494   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5495   while :
5496   do
5497     cat "conftest.in" "conftest.in" >"conftest.tmp"
5498     mv "conftest.tmp" "conftest.in"
5499     cp "conftest.in" "conftest.nl"
5500     echo '' >> "conftest.nl"
5501     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5502     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5503     ac_count=`expr $ac_count + 1`
5504     if test $ac_count -gt ${ac_path_SED_max-0}; then
5505       # Best one so far, save it but keep looking for a better one
5506       ac_cv_path_SED="$ac_path_SED"
5507       ac_path_SED_max=$ac_count
5508     fi
5509     # 10*(2^10) chars as input seems more than enough
5510     test $ac_count -gt 10 && break
5511   done
5512   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5513 esac
5514
5515
5516     $ac_path_SED_found && break 3
5517   done
5518 done
5519
5520 done
5521 IFS=$as_save_IFS
5522
5523
5524 fi
5525
5526 SED="$ac_cv_path_SED"
5527 if test -z "$SED"; then
5528   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5529 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5530    { (exit 1); exit 1; }; }
5531 fi
5532
5533 else
5534   ac_cv_path_SED=$SED
5535 fi
5536
5537 fi
5538 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5539 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5540  SED="$ac_cv_path_SED"
5541   rm -f conftest.sed
5542
5543 test -z "$SED" && SED=sed
5544 Xsed="$SED -e 1s/^X//"
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556 { echo "$as_me:$LINENO: checking for fgrep" >&5
5557 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5558 if test "${ac_cv_path_FGREP+set}" = set; then
5559   echo $ECHO_N "(cached) $ECHO_C" >&6
5560 else
5561   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5562    then ac_cv_path_FGREP="$GREP -F"
5563    else
5564      # Extract the first word of "fgrep" to use in msg output
5565 if test -z "$FGREP"; then
5566 set dummy fgrep; ac_prog_name=$2
5567 if test "${ac_cv_path_FGREP+set}" = set; then
5568   echo $ECHO_N "(cached) $ECHO_C" >&6
5569 else
5570   ac_path_FGREP_found=false
5571 # Loop through the user's path and test for each of PROGNAME-LIST
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5574 do
5575   IFS=$as_save_IFS
5576   test -z "$as_dir" && as_dir=.
5577   for ac_prog in fgrep; do
5578   for ac_exec_ext in '' $ac_executable_extensions; do
5579     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5580     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5581     # Check for GNU ac_path_FGREP and select it if it is found.
5582   # Check for GNU $ac_path_FGREP
5583 case `"$ac_path_FGREP" --version 2>&1` in
5584 *GNU*)
5585   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5586 *)
5587   ac_count=0
5588   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5589   while :
5590   do
5591     cat "conftest.in" "conftest.in" >"conftest.tmp"
5592     mv "conftest.tmp" "conftest.in"
5593     cp "conftest.in" "conftest.nl"
5594     echo 'FGREP' >> "conftest.nl"
5595     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5596     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5597     ac_count=`expr $ac_count + 1`
5598     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5599       # Best one so far, save it but keep looking for a better one
5600       ac_cv_path_FGREP="$ac_path_FGREP"
5601       ac_path_FGREP_max=$ac_count
5602     fi
5603     # 10*(2^10) chars as input seems more than enough
5604     test $ac_count -gt 10 && break
5605   done
5606   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5607 esac
5608
5609
5610     $ac_path_FGREP_found && break 3
5611   done
5612 done
5613
5614 done
5615 IFS=$as_save_IFS
5616
5617
5618 fi
5619
5620 FGREP="$ac_cv_path_FGREP"
5621 if test -z "$FGREP"; then
5622   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5623 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5624    { (exit 1); exit 1; }; }
5625 fi
5626
5627 else
5628   ac_cv_path_FGREP=$FGREP
5629 fi
5630
5631
5632    fi
5633 fi
5634 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5635 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5636  FGREP="$ac_cv_path_FGREP"
5637
5638
5639 test -z "$GREP" && GREP=grep
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659 # Check whether --with-gnu-ld was given.
5660 if test "${with_gnu_ld+set}" = set; then
5661   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5662 else
5663   with_gnu_ld=no
5664 fi
5665
5666 ac_prog=ld
5667 if test "$GCC" = yes; then
5668   # Check if gcc -print-prog-name=ld gives a path.
5669   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5670 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5671   case $host in
5672   *-*-mingw*)
5673     # gcc leaves a trailing carriage return which upsets mingw
5674     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5675   *)
5676     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5677   esac
5678   case $ac_prog in
5679     # Accept absolute paths.
5680     [\\/]* | ?:[\\/]*)
5681       re_direlt='/[^/][^/]*/\.\./'
5682       # Canonicalize the pathname of ld
5683       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5684       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5685         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5686       done
5687       test -z "$LD" && LD="$ac_prog"
5688       ;;
5689   "")
5690     # If it fails, then pretend we aren't using GCC.
5691     ac_prog=ld
5692     ;;
5693   *)
5694     # If it is relative, then search for the first ld in PATH.
5695     with_gnu_ld=unknown
5696     ;;
5697   esac
5698 elif test "$with_gnu_ld" = yes; then
5699   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5700 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5701 else
5702   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5703 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5704 fi
5705 if test "${lt_cv_path_LD+set}" = set; then
5706   echo $ECHO_N "(cached) $ECHO_C" >&6
5707 else
5708   if test -z "$LD"; then
5709   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5710   for ac_dir in $PATH; do
5711     IFS="$lt_save_ifs"
5712     test -z "$ac_dir" && ac_dir=.
5713     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5714       lt_cv_path_LD="$ac_dir/$ac_prog"
5715       # Check to see if the program is GNU ld.  I'd rather use --version,
5716       # but apparently some variants of GNU ld only accept -v.
5717       # Break only if it was the GNU/non-GNU ld that we prefer.
5718       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5719       *GNU* | *'with BFD'*)
5720         test "$with_gnu_ld" != no && break
5721         ;;
5722       *)
5723         test "$with_gnu_ld" != yes && break
5724         ;;
5725       esac
5726     fi
5727   done
5728   IFS="$lt_save_ifs"
5729 else
5730   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5731 fi
5732 fi
5733
5734 LD="$lt_cv_path_LD"
5735 if test -n "$LD"; then
5736   { echo "$as_me:$LINENO: result: $LD" >&5
5737 echo "${ECHO_T}$LD" >&6; }
5738 else
5739   { echo "$as_me:$LINENO: result: no" >&5
5740 echo "${ECHO_T}no" >&6; }
5741 fi
5742 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5743 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5744    { (exit 1); exit 1; }; }
5745 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5746 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5747 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5748   echo $ECHO_N "(cached) $ECHO_C" >&6
5749 else
5750   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5751 case `$LD -v 2>&1 </dev/null` in
5752 *GNU* | *'with BFD'*)
5753   lt_cv_prog_gnu_ld=yes
5754   ;;
5755 *)
5756   lt_cv_prog_gnu_ld=no
5757   ;;
5758 esac
5759 fi
5760 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5761 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5762 with_gnu_ld=$lt_cv_prog_gnu_ld
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5773 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5774 if test "${lt_cv_path_NM+set}" = set; then
5775   echo $ECHO_N "(cached) $ECHO_C" >&6
5776 else
5777   if test -n "$NM"; then
5778   # Let the user override the test.
5779   lt_cv_path_NM="$NM"
5780 else
5781   lt_nm_to_check="${ac_tool_prefix}nm"
5782   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5783     lt_nm_to_check="$lt_nm_to_check nm"
5784   fi
5785   for lt_tmp_nm in $lt_nm_to_check; do
5786     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5787     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5788       IFS="$lt_save_ifs"
5789       test -z "$ac_dir" && ac_dir=.
5790       tmp_nm="$ac_dir/$lt_tmp_nm"
5791       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5792         # Check to see if the nm accepts a BSD-compat flag.
5793         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5794         #   nm: unknown option "B" ignored
5795         # Tru64's nm complains that /dev/null is an invalid object file
5796         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5797         */dev/null* | *'Invalid file or object type'*)
5798           lt_cv_path_NM="$tmp_nm -B"
5799           break
5800           ;;
5801         *)
5802           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5803           */dev/null*)
5804             lt_cv_path_NM="$tmp_nm -p"
5805             break
5806             ;;
5807           *)
5808             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5809             continue # so that we can try to find one that supports BSD flags
5810             ;;
5811           esac
5812           ;;
5813         esac
5814       fi
5815     done
5816     IFS="$lt_save_ifs"
5817   done
5818   : ${lt_cv_path_NM=no}
5819 fi
5820 fi
5821 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5822 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5823 if test "$lt_cv_path_NM" != "no"; then
5824   NM="$lt_cv_path_NM"
5825 else
5826   # Didn't find any BSD compatible name lister, look for dumpbin.
5827   if test -n "$ac_tool_prefix"; then
5828   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5829   do
5830     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5831 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5834 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5835   echo $ECHO_N "(cached) $ECHO_C" >&6
5836 else
5837   if test -n "$DUMPBIN"; then
5838   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5839 else
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 for as_dir in $PATH
5842 do
5843   IFS=$as_save_IFS
5844   test -z "$as_dir" && as_dir=.
5845   for ac_exec_ext in '' $ac_executable_extensions; do
5846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5847     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5849     break 2
5850   fi
5851 done
5852 done
5853 IFS=$as_save_IFS
5854
5855 fi
5856 fi
5857 DUMPBIN=$ac_cv_prog_DUMPBIN
5858 if test -n "$DUMPBIN"; then
5859   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5860 echo "${ECHO_T}$DUMPBIN" >&6; }
5861 else
5862   { echo "$as_me:$LINENO: result: no" >&5
5863 echo "${ECHO_T}no" >&6; }
5864 fi
5865
5866
5867     test -n "$DUMPBIN" && break
5868   done
5869 fi
5870 if test -z "$DUMPBIN"; then
5871   ac_ct_DUMPBIN=$DUMPBIN
5872   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5873 do
5874   # Extract the first word of "$ac_prog", so it can be a program name with args.
5875 set dummy $ac_prog; ac_word=$2
5876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5878 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5879   echo $ECHO_N "(cached) $ECHO_C" >&6
5880 else
5881   if test -n "$ac_ct_DUMPBIN"; then
5882   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5883 else
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 for as_dir in $PATH
5886 do
5887   IFS=$as_save_IFS
5888   test -z "$as_dir" && as_dir=.
5889   for ac_exec_ext in '' $ac_executable_extensions; do
5890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5891     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5893     break 2
5894   fi
5895 done
5896 done
5897 IFS=$as_save_IFS
5898
5899 fi
5900 fi
5901 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5902 if test -n "$ac_ct_DUMPBIN"; then
5903   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5904 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5905 else
5906   { echo "$as_me:$LINENO: result: no" >&5
5907 echo "${ECHO_T}no" >&6; }
5908 fi
5909
5910
5911   test -n "$ac_ct_DUMPBIN" && break
5912 done
5913
5914   if test "x$ac_ct_DUMPBIN" = x; then
5915     DUMPBIN=":"
5916   else
5917     case $cross_compiling:$ac_tool_warned in
5918 yes:)
5919 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5920 whose name does not start with the host triplet.  If you think this
5921 configuration is useful to you, please write to autoconf@gnu.org." >&5
5922 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5923 whose name does not start with the host triplet.  If you think this
5924 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5925 ac_tool_warned=yes ;;
5926 esac
5927     DUMPBIN=$ac_ct_DUMPBIN
5928   fi
5929 fi
5930
5931
5932   if test "$DUMPBIN" != ":"; then
5933     NM="$DUMPBIN"
5934   fi
5935 fi
5936 test -z "$NM" && NM=nm
5937
5938
5939
5940
5941
5942
5943 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5944 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5945 if test "${lt_cv_nm_interface+set}" = set; then
5946   echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948   lt_cv_nm_interface="BSD nm"
5949   echo "int some_variable = 0;" > conftest.$ac_ext
5950   (eval echo "\"\$as_me:5950: $ac_compile\"" >&5)
5951   (eval "$ac_compile" 2>conftest.err)
5952   cat conftest.err >&5
5953   (eval echo "\"\$as_me:5953: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5954   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5955   cat conftest.err >&5
5956   (eval echo "\"\$as_me:5956: output\"" >&5)
5957   cat conftest.out >&5
5958   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5959     lt_cv_nm_interface="MS dumpbin"
5960   fi
5961   rm -f conftest*
5962 fi
5963 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5964 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5965
5966 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5967 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5968 LN_S=$as_ln_s
5969 if test "$LN_S" = "ln -s"; then
5970   { echo "$as_me:$LINENO: result: yes" >&5
5971 echo "${ECHO_T}yes" >&6; }
5972 else
5973   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5974 echo "${ECHO_T}no, using $LN_S" >&6; }
5975 fi
5976
5977 # find the maximum length of command line arguments
5978 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5979 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5980 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5981   echo $ECHO_N "(cached) $ECHO_C" >&6
5982 else
5983     i=0
5984   teststring="ABCD"
5985
5986   case $build_os in
5987   msdosdjgpp*)
5988     # On DJGPP, this test can blow up pretty badly due to problems in libc
5989     # (any single argument exceeding 2000 bytes causes a buffer overrun
5990     # during glob expansion).  Even if it were fixed, the result of this
5991     # check would be larger than it should be.
5992     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5993     ;;
5994
5995   gnu*)
5996     # Under GNU Hurd, this test is not required because there is
5997     # no limit to the length of command line arguments.
5998     # Libtool will interpret -1 as no limit whatsoever
5999     lt_cv_sys_max_cmd_len=-1;
6000     ;;
6001
6002   cygwin* | mingw* | cegcc*)
6003     # On Win9x/ME, this test blows up -- it succeeds, but takes
6004     # about 5 minutes as the teststring grows exponentially.
6005     # Worse, since 9x/ME are not pre-emptively multitasking,
6006     # you end up with a "frozen" computer, even though with patience
6007     # the test eventually succeeds (with a max line length of 256k).
6008     # Instead, let's just punt: use the minimum linelength reported by
6009     # all of the supported platforms: 8192 (on NT/2K/XP).
6010     lt_cv_sys_max_cmd_len=8192;
6011     ;;
6012
6013   amigaos*)
6014     # On AmigaOS with pdksh, this test takes hours, literally.
6015     # So we just punt and use a minimum line length of 8192.
6016     lt_cv_sys_max_cmd_len=8192;
6017     ;;
6018
6019   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6020     # This has been around since 386BSD, at least.  Likely further.
6021     if test -x /sbin/sysctl; then
6022       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6023     elif test -x /usr/sbin/sysctl; then
6024       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6025     else
6026       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6027     fi
6028     # And add a safety zone
6029     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6030     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6031     ;;
6032
6033   interix*)
6034     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6035     lt_cv_sys_max_cmd_len=196608
6036     ;;
6037
6038   osf*)
6039     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6040     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6041     # nice to cause kernel panics so lets avoid the loop below.
6042     # First set a reasonable default.
6043     lt_cv_sys_max_cmd_len=16384
6044     #
6045     if test -x /sbin/sysconfig; then
6046       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6047         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6048       esac
6049     fi
6050     ;;
6051   sco3.2v5*)
6052     lt_cv_sys_max_cmd_len=102400
6053     ;;
6054   sysv5* | sco5v6* | sysv4.2uw2*)
6055     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6056     if test -n "$kargmax"; then
6057       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6058     else
6059       lt_cv_sys_max_cmd_len=32768
6060     fi
6061     ;;
6062   *)
6063     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6064     if test -n "$lt_cv_sys_max_cmd_len"; then
6065       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6066       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6067     else
6068       # Make teststring a little bigger before we do anything with it.
6069       # a 1K string should be a reasonable start.
6070       for i in 1 2 3 4 5 6 7 8 ; do
6071         teststring=$teststring$teststring
6072       done
6073       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6074       # If test is not a shell built-in, we'll probably end up computing a
6075       # maximum length that is only half of the actual maximum length, but
6076       # we can't tell.
6077       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6078                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6079               test $i != 17 # 1/2 MB should be enough
6080       do
6081         i=`expr $i + 1`
6082         teststring=$teststring$teststring
6083       done
6084       # Only check the string length outside the loop.
6085       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6086       teststring=
6087       # Add a significant safety factor because C++ compilers can tack on
6088       # massive amounts of additional arguments before passing them to the
6089       # linker.  It appears as though 1/2 is a usable value.
6090       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6091     fi
6092     ;;
6093   esac
6094
6095 fi
6096
6097 if test -n $lt_cv_sys_max_cmd_len ; then
6098   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6099 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6100 else
6101   { echo "$as_me:$LINENO: result: none" >&5
6102 echo "${ECHO_T}none" >&6; }
6103 fi
6104 max_cmd_len=$lt_cv_sys_max_cmd_len
6105
6106
6107
6108
6109
6110
6111 : ${CP="cp -f"}
6112 : ${MV="mv -f"}
6113 : ${RM="rm -f"}
6114
6115 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6116 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6117 # Try some XSI features
6118 xsi_shell=no
6119 ( _lt_dummy="a/b/c"
6120   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6121       = c,a/b,, \
6122     && eval 'test $(( 1 + 1 )) -eq 2 \
6123     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6124   && xsi_shell=yes
6125 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6126 echo "${ECHO_T}$xsi_shell" >&6; }
6127
6128
6129 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6130 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6131 lt_shell_append=no
6132 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6133     >/dev/null 2>&1 \
6134   && lt_shell_append=yes
6135 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6136 echo "${ECHO_T}$lt_shell_append" >&6; }
6137
6138
6139 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6140   lt_unset=unset
6141 else
6142   lt_unset=false
6143 fi
6144
6145
6146
6147
6148
6149 # test EBCDIC or ASCII
6150 case `echo X|tr X '\101'` in
6151  A) # ASCII based system
6152     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6153   lt_SP2NL='tr \040 \012'
6154   lt_NL2SP='tr \015\012 \040\040'
6155   ;;
6156  *) # EBCDIC based system
6157   lt_SP2NL='tr \100 \n'
6158   lt_NL2SP='tr \r\n \100\100'
6159   ;;
6160 esac
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6171 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6172 if test "${lt_cv_ld_reload_flag+set}" = set; then
6173   echo $ECHO_N "(cached) $ECHO_C" >&6
6174 else
6175   lt_cv_ld_reload_flag='-r'
6176 fi
6177 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6178 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6179 reload_flag=$lt_cv_ld_reload_flag
6180 case $reload_flag in
6181 "" | " "*) ;;
6182 *) reload_flag=" $reload_flag" ;;
6183 esac
6184 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6185 case $host_os in
6186   darwin*)
6187     if test "$GCC" = yes; then
6188       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6189     else
6190       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6191     fi
6192     ;;
6193 esac
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203 if test -n "$ac_tool_prefix"; then
6204   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6205 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6208 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6209   echo $ECHO_N "(cached) $ECHO_C" >&6
6210 else
6211   if test -n "$OBJDUMP"; then
6212   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6213 else
6214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 for as_dir in $PATH
6216 do
6217   IFS=$as_save_IFS
6218   test -z "$as_dir" && as_dir=.
6219   for ac_exec_ext in '' $ac_executable_extensions; do
6220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6221     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6223     break 2
6224   fi
6225 done
6226 done
6227 IFS=$as_save_IFS
6228
6229 fi
6230 fi
6231 OBJDUMP=$ac_cv_prog_OBJDUMP
6232 if test -n "$OBJDUMP"; then
6233   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6234 echo "${ECHO_T}$OBJDUMP" >&6; }
6235 else
6236   { echo "$as_me:$LINENO: result: no" >&5
6237 echo "${ECHO_T}no" >&6; }
6238 fi
6239
6240
6241 fi
6242 if test -z "$ac_cv_prog_OBJDUMP"; then
6243   ac_ct_OBJDUMP=$OBJDUMP
6244   # Extract the first word of "objdump", so it can be a program name with args.
6245 set dummy objdump; ac_word=$2
6246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6248 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6249   echo $ECHO_N "(cached) $ECHO_C" >&6
6250 else
6251   if test -n "$ac_ct_OBJDUMP"; then
6252   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6253 else
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 for as_dir in $PATH
6256 do
6257   IFS=$as_save_IFS
6258   test -z "$as_dir" && as_dir=.
6259   for ac_exec_ext in '' $ac_executable_extensions; do
6260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6261     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6263     break 2
6264   fi
6265 done
6266 done
6267 IFS=$as_save_IFS
6268
6269 fi
6270 fi
6271 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6272 if test -n "$ac_ct_OBJDUMP"; then
6273   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6274 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6275 else
6276   { echo "$as_me:$LINENO: result: no" >&5
6277 echo "${ECHO_T}no" >&6; }
6278 fi
6279
6280   if test "x$ac_ct_OBJDUMP" = x; then
6281     OBJDUMP="false"
6282   else
6283     case $cross_compiling:$ac_tool_warned in
6284 yes:)
6285 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6286 whose name does not start with the host triplet.  If you think this
6287 configuration is useful to you, please write to autoconf@gnu.org." >&5
6288 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6289 whose name does not start with the host triplet.  If you think this
6290 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6291 ac_tool_warned=yes ;;
6292 esac
6293     OBJDUMP=$ac_ct_OBJDUMP
6294   fi
6295 else
6296   OBJDUMP="$ac_cv_prog_OBJDUMP"
6297 fi
6298
6299 test -z "$OBJDUMP" && OBJDUMP=objdump
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6310 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6311 if test "${lt_cv_deplibs_check_method+set}" = set; then
6312   echo $ECHO_N "(cached) $ECHO_C" >&6
6313 else
6314   lt_cv_file_magic_cmd='$MAGIC_CMD'
6315 lt_cv_file_magic_test_file=
6316 lt_cv_deplibs_check_method='unknown'
6317 # Need to set the preceding variable on all platforms that support
6318 # interlibrary dependencies.
6319 # 'none' -- dependencies not supported.
6320 # `unknown' -- same as none, but documents that we really don't know.
6321 # 'pass_all' -- all dependencies passed with no checks.
6322 # 'test_compile' -- check by making test program.
6323 # 'file_magic [[regex]]' -- check by looking for files in library path
6324 # which responds to the $file_magic_cmd with a given extended regex.
6325 # If you have `file' or equivalent on your system and you're not sure
6326 # whether `pass_all' will *always* work, you probably want this one.
6327
6328 case $host_os in
6329 aix[4-9]*)
6330   lt_cv_deplibs_check_method=pass_all
6331   ;;
6332
6333 beos*)
6334   lt_cv_deplibs_check_method=pass_all
6335   ;;
6336
6337 bsdi[45]*)
6338   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6339   lt_cv_file_magic_cmd='/usr/bin/file -L'
6340   lt_cv_file_magic_test_file=/shlib/libc.so
6341   ;;
6342
6343 cygwin*)
6344   # func_win32_libid is a shell function defined in ltmain.sh
6345   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6346   lt_cv_file_magic_cmd='func_win32_libid'
6347   ;;
6348
6349 mingw* | pw32*)
6350   # Base MSYS/MinGW do not provide the 'file' command needed by
6351   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6352   # unless we find 'file', for example because we are cross-compiling.
6353   if ( file / ) >/dev/null 2>&1; then
6354     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6355     lt_cv_file_magic_cmd='func_win32_libid'
6356   else
6357     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6358     lt_cv_file_magic_cmd='$OBJDUMP -f'
6359   fi
6360   ;;
6361
6362 cegcc)
6363   # use the weaker test based on 'objdump'. See mingw*.
6364   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6365   lt_cv_file_magic_cmd='$OBJDUMP -f'
6366   ;;
6367
6368 darwin* | rhapsody*)
6369   lt_cv_deplibs_check_method=pass_all
6370   ;;
6371
6372 freebsd* | dragonfly*)
6373   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6374     case $host_cpu in
6375     i*86 )
6376       # Not sure whether the presence of OpenBSD here was a mistake.
6377       # Let's accept both of them until this is cleared up.
6378       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6379       lt_cv_file_magic_cmd=/usr/bin/file
6380       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6381       ;;
6382     esac
6383   else
6384     lt_cv_deplibs_check_method=pass_all
6385   fi
6386   ;;
6387
6388 gnu*)
6389   lt_cv_deplibs_check_method=pass_all
6390   ;;
6391
6392 hpux10.20* | hpux11*)
6393   lt_cv_file_magic_cmd=/usr/bin/file
6394   case $host_cpu in
6395   ia64*)
6396     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6397     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6398     ;;
6399   hppa*64*)
6400     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]'
6401     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6402     ;;
6403   *)
6404     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6405     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6406     ;;
6407   esac
6408   ;;
6409
6410 interix[3-9]*)
6411   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6412   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6413   ;;
6414
6415 irix5* | irix6* | nonstopux*)
6416   case $LD in
6417   *-32|*"-32 ") libmagic=32-bit;;
6418   *-n32|*"-n32 ") libmagic=N32;;
6419   *-64|*"-64 ") libmagic=64-bit;;
6420   *) libmagic=never-match;;
6421   esac
6422   lt_cv_deplibs_check_method=pass_all
6423   ;;
6424
6425 # This must be Linux ELF.
6426 linux* | k*bsd*-gnu)
6427   lt_cv_deplibs_check_method=pass_all
6428   ;;
6429
6430 netbsd*)
6431   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6432     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6433   else
6434     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6435   fi
6436   ;;
6437
6438 newos6*)
6439   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6440   lt_cv_file_magic_cmd=/usr/bin/file
6441   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6442   ;;
6443
6444 *nto* | *qnx*)
6445   lt_cv_deplibs_check_method=pass_all
6446   ;;
6447
6448 openbsd*)
6449   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6450     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6451   else
6452     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6453   fi
6454   ;;
6455
6456 osf3* | osf4* | osf5*)
6457   lt_cv_deplibs_check_method=pass_all
6458   ;;
6459
6460 rdos*)
6461   lt_cv_deplibs_check_method=pass_all
6462   ;;
6463
6464 solaris*)
6465   lt_cv_deplibs_check_method=pass_all
6466   ;;
6467
6468 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6469   lt_cv_deplibs_check_method=pass_all
6470   ;;
6471
6472 sysv4 | sysv4.3*)
6473   case $host_vendor in
6474   motorola)
6475     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]'
6476     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6477     ;;
6478   ncr)
6479     lt_cv_deplibs_check_method=pass_all
6480     ;;
6481   sequent)
6482     lt_cv_file_magic_cmd='/bin/file'
6483     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6484     ;;
6485   sni)
6486     lt_cv_file_magic_cmd='/bin/file'
6487     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6488     lt_cv_file_magic_test_file=/lib/libc.so
6489     ;;
6490   siemens)
6491     lt_cv_deplibs_check_method=pass_all
6492     ;;
6493   pc)
6494     lt_cv_deplibs_check_method=pass_all
6495     ;;
6496   esac
6497   ;;
6498
6499 tpf*)
6500   lt_cv_deplibs_check_method=pass_all
6501   ;;
6502 esac
6503
6504 fi
6505 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6506 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6507 file_magic_cmd=$lt_cv_file_magic_cmd
6508 deplibs_check_method=$lt_cv_deplibs_check_method
6509 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522 if test -n "$ac_tool_prefix"; then
6523   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6524 set dummy ${ac_tool_prefix}ar; ac_word=$2
6525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6527 if test "${ac_cv_prog_AR+set}" = set; then
6528   echo $ECHO_N "(cached) $ECHO_C" >&6
6529 else
6530   if test -n "$AR"; then
6531   ac_cv_prog_AR="$AR" # Let the user override the test.
6532 else
6533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534 for as_dir in $PATH
6535 do
6536   IFS=$as_save_IFS
6537   test -z "$as_dir" && as_dir=.
6538   for ac_exec_ext in '' $ac_executable_extensions; do
6539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6540     ac_cv_prog_AR="${ac_tool_prefix}ar"
6541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6542     break 2
6543   fi
6544 done
6545 done
6546 IFS=$as_save_IFS
6547
6548 fi
6549 fi
6550 AR=$ac_cv_prog_AR
6551 if test -n "$AR"; then
6552   { echo "$as_me:$LINENO: result: $AR" >&5
6553 echo "${ECHO_T}$AR" >&6; }
6554 else
6555   { echo "$as_me:$LINENO: result: no" >&5
6556 echo "${ECHO_T}no" >&6; }
6557 fi
6558
6559
6560 fi
6561 if test -z "$ac_cv_prog_AR"; then
6562   ac_ct_AR=$AR
6563   # Extract the first word of "ar", so it can be a program name with args.
6564 set dummy ar; ac_word=$2
6565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6567 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6568   echo $ECHO_N "(cached) $ECHO_C" >&6
6569 else
6570   if test -n "$ac_ct_AR"; then
6571   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6572 else
6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 for as_dir in $PATH
6575 do
6576   IFS=$as_save_IFS
6577   test -z "$as_dir" && as_dir=.
6578   for ac_exec_ext in '' $ac_executable_extensions; do
6579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6580     ac_cv_prog_ac_ct_AR="ar"
6581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6582     break 2
6583   fi
6584 done
6585 done
6586 IFS=$as_save_IFS
6587
6588 fi
6589 fi
6590 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6591 if test -n "$ac_ct_AR"; then
6592   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6593 echo "${ECHO_T}$ac_ct_AR" >&6; }
6594 else
6595   { echo "$as_me:$LINENO: result: no" >&5
6596 echo "${ECHO_T}no" >&6; }
6597 fi
6598
6599   if test "x$ac_ct_AR" = x; then
6600     AR="false"
6601   else
6602     case $cross_compiling:$ac_tool_warned in
6603 yes:)
6604 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6605 whose name does not start with the host triplet.  If you think this
6606 configuration is useful to you, please write to autoconf@gnu.org." >&5
6607 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6608 whose name does not start with the host triplet.  If you think this
6609 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6610 ac_tool_warned=yes ;;
6611 esac
6612     AR=$ac_ct_AR
6613   fi
6614 else
6615   AR="$ac_cv_prog_AR"
6616 fi
6617
6618 test -z "$AR" && AR=ar
6619 test -z "$AR_FLAGS" && AR_FLAGS=cru
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631 if test -n "$ac_tool_prefix"; then
6632   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6633 set dummy ${ac_tool_prefix}strip; ac_word=$2
6634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6636 if test "${ac_cv_prog_STRIP+set}" = set; then
6637   echo $ECHO_N "(cached) $ECHO_C" >&6
6638 else
6639   if test -n "$STRIP"; then
6640   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6641 else
6642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 for as_dir in $PATH
6644 do
6645   IFS=$as_save_IFS
6646   test -z "$as_dir" && as_dir=.
6647   for ac_exec_ext in '' $ac_executable_extensions; do
6648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6649     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6651     break 2
6652   fi
6653 done
6654 done
6655 IFS=$as_save_IFS
6656
6657 fi
6658 fi
6659 STRIP=$ac_cv_prog_STRIP
6660 if test -n "$STRIP"; then
6661   { echo "$as_me:$LINENO: result: $STRIP" >&5
6662 echo "${ECHO_T}$STRIP" >&6; }
6663 else
6664   { echo "$as_me:$LINENO: result: no" >&5
6665 echo "${ECHO_T}no" >&6; }
6666 fi
6667
6668
6669 fi
6670 if test -z "$ac_cv_prog_STRIP"; then
6671   ac_ct_STRIP=$STRIP
6672   # Extract the first word of "strip", so it can be a program name with args.
6673 set dummy strip; ac_word=$2
6674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6676 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6677   echo $ECHO_N "(cached) $ECHO_C" >&6
6678 else
6679   if test -n "$ac_ct_STRIP"; then
6680   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6681 else
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 for as_dir in $PATH
6684 do
6685   IFS=$as_save_IFS
6686   test -z "$as_dir" && as_dir=.
6687   for ac_exec_ext in '' $ac_executable_extensions; do
6688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6689     ac_cv_prog_ac_ct_STRIP="strip"
6690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6691     break 2
6692   fi
6693 done
6694 done
6695 IFS=$as_save_IFS
6696
6697 fi
6698 fi
6699 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6700 if test -n "$ac_ct_STRIP"; then
6701   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6702 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6703 else
6704   { echo "$as_me:$LINENO: result: no" >&5
6705 echo "${ECHO_T}no" >&6; }
6706 fi
6707
6708   if test "x$ac_ct_STRIP" = x; then
6709     STRIP=":"
6710   else
6711     case $cross_compiling:$ac_tool_warned in
6712 yes:)
6713 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6714 whose name does not start with the host triplet.  If you think this
6715 configuration is useful to you, please write to autoconf@gnu.org." >&5
6716 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6717 whose name does not start with the host triplet.  If you think this
6718 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6719 ac_tool_warned=yes ;;
6720 esac
6721     STRIP=$ac_ct_STRIP
6722   fi
6723 else
6724   STRIP="$ac_cv_prog_STRIP"
6725 fi
6726
6727 test -z "$STRIP" && STRIP=:
6728
6729
6730
6731
6732
6733
6734 if test -n "$ac_tool_prefix"; then
6735   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6736 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6739 if test "${ac_cv_prog_RANLIB+set}" = set; then
6740   echo $ECHO_N "(cached) $ECHO_C" >&6
6741 else
6742   if test -n "$RANLIB"; then
6743   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6744 else
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 for as_dir in $PATH
6747 do
6748   IFS=$as_save_IFS
6749   test -z "$as_dir" && as_dir=.
6750   for ac_exec_ext in '' $ac_executable_extensions; do
6751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6752     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6754     break 2
6755   fi
6756 done
6757 done
6758 IFS=$as_save_IFS
6759
6760 fi
6761 fi
6762 RANLIB=$ac_cv_prog_RANLIB
6763 if test -n "$RANLIB"; then
6764   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6765 echo "${ECHO_T}$RANLIB" >&6; }
6766 else
6767   { echo "$as_me:$LINENO: result: no" >&5
6768 echo "${ECHO_T}no" >&6; }
6769 fi
6770
6771
6772 fi
6773 if test -z "$ac_cv_prog_RANLIB"; then
6774   ac_ct_RANLIB=$RANLIB
6775   # Extract the first word of "ranlib", so it can be a program name with args.
6776 set dummy ranlib; ac_word=$2
6777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6779 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6780   echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6782   if test -n "$ac_ct_RANLIB"; then
6783   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6784 else
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786 for as_dir in $PATH
6787 do
6788   IFS=$as_save_IFS
6789   test -z "$as_dir" && as_dir=.
6790   for ac_exec_ext in '' $ac_executable_extensions; do
6791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6792     ac_cv_prog_ac_ct_RANLIB="ranlib"
6793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6794     break 2
6795   fi
6796 done
6797 done
6798 IFS=$as_save_IFS
6799
6800 fi
6801 fi
6802 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6803 if test -n "$ac_ct_RANLIB"; then
6804   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6805 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6806 else
6807   { echo "$as_me:$LINENO: result: no" >&5
6808 echo "${ECHO_T}no" >&6; }
6809 fi
6810
6811   if test "x$ac_ct_RANLIB" = x; then
6812     RANLIB=":"
6813   else
6814     case $cross_compiling:$ac_tool_warned in
6815 yes:)
6816 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6817 whose name does not start with the host triplet.  If you think this
6818 configuration is useful to you, please write to autoconf@gnu.org." >&5
6819 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6820 whose name does not start with the host triplet.  If you think this
6821 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6822 ac_tool_warned=yes ;;
6823 esac
6824     RANLIB=$ac_ct_RANLIB
6825   fi
6826 else
6827   RANLIB="$ac_cv_prog_RANLIB"
6828 fi
6829
6830 test -z "$RANLIB" && RANLIB=:
6831
6832
6833
6834
6835
6836
6837 # Determine commands to create old-style static archives.
6838 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6839 old_postinstall_cmds='chmod 644 $oldlib'
6840 old_postuninstall_cmds=
6841
6842 if test -n "$RANLIB"; then
6843   case $host_os in
6844   openbsd*)
6845     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6846     ;;
6847   *)
6848     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6849     ;;
6850   esac
6851   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6852 fi
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887 # If no C compiler was specified, use CC.
6888 LTCC=${LTCC-"$CC"}
6889
6890 # If no C compiler flags were specified, use CFLAGS.
6891 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6892
6893 # Allow CC to be a program name with arguments.
6894 compiler=$CC
6895
6896
6897 # Check for command to grab the raw symbol name followed by C symbol from nm.
6898 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6899 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6900 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6901   echo $ECHO_N "(cached) $ECHO_C" >&6
6902 else
6903
6904 # These are sane defaults that work on at least a few old systems.
6905 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6906
6907 # Character class describing NM global symbol codes.
6908 symcode='[BCDEGRST]'
6909
6910 # Regexp to match symbols that can be accessed directly from C.
6911 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6912
6913 # Define system-specific variables.
6914 case $host_os in
6915 aix*)
6916   symcode='[BCDT]'
6917   ;;
6918 cygwin* | mingw* | pw32* | cegcc*)
6919   symcode='[ABCDGISTW]'
6920   ;;
6921 hpux*)
6922   if test "$host_cpu" = ia64; then
6923     symcode='[ABCDEGRST]'
6924   fi
6925   ;;
6926 irix* | nonstopux*)
6927   symcode='[BCDEGRST]'
6928   ;;
6929 osf*)
6930   symcode='[BCDEGQRST]'
6931   ;;
6932 solaris*)
6933   symcode='[BDRT]'
6934   ;;
6935 sco3.2v5*)
6936   symcode='[DT]'
6937   ;;
6938 sysv4.2uw2*)
6939   symcode='[DT]'
6940   ;;
6941 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6942   symcode='[ABDT]'
6943   ;;
6944 sysv4)
6945   symcode='[DFNSTU]'
6946   ;;
6947 esac
6948
6949 # If we're using GNU nm, then use its standard symbol codes.
6950 case `$NM -V 2>&1` in
6951 *GNU* | *'with BFD'*)
6952   symcode='[ABCDGIRSTW]' ;;
6953 esac
6954
6955 # Transform an extracted symbol line into a proper C declaration.
6956 # Some systems (esp. on ia64) link data and code symbols differently,
6957 # so use this general approach.
6958 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6959
6960 # Transform an extracted symbol line into symbol name and symbol address
6961 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6962 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'"
6963
6964 # Handle CRLF in mingw tool chain
6965 opt_cr=
6966 case $build_os in
6967 mingw*)
6968   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6969   ;;
6970 esac
6971
6972 # Try without a prefix underscore, then with it.
6973 for ac_symprfx in "" "_"; do
6974
6975   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6976   symxfrm="\\1 $ac_symprfx\\2 \\2"
6977
6978   # Write the raw and C identifiers.
6979   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6980     # Fake it for dumpbin and say T for any non-static function
6981     # and D for any global variable.
6982     # Also find C++ and __fastcall symbols from MSVC++,
6983     # which start with @ or ?.
6984     lt_cv_sys_global_symbol_pipe="$AWK '"\
6985 "     {last_section=section; section=\$ 3};"\
6986 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6987 "     \$ 0!~/External *\|/{next};"\
6988 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6989 "     {if(hide[section]) next};"\
6990 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6991 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6992 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6993 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6994 "     ' prfx=^$ac_symprfx"
6995   else
6996     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6997   fi
6998
6999   # Check to see that the pipe works correctly.
7000   pipe_works=no
7001
7002   rm -f conftest*
7003   cat > conftest.$ac_ext <<_LT_EOF
7004 #ifdef __cplusplus
7005 extern "C" {
7006 #endif
7007 char nm_test_var;
7008 void nm_test_func(void);
7009 void nm_test_func(void){}
7010 #ifdef __cplusplus
7011 }
7012 #endif
7013 int main(){nm_test_var='a';nm_test_func();return(0);}
7014 _LT_EOF
7015
7016   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7017   (eval $ac_compile) 2>&5
7018   ac_status=$?
7019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020   (exit $ac_status); }; then
7021     # Now try to grab the symbols.
7022     nlist=conftest.nm
7023     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7024   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7025   ac_status=$?
7026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027   (exit $ac_status); } && test -s "$nlist"; then
7028       # Try sorting and uniquifying the output.
7029       if sort "$nlist" | uniq > "$nlist"T; then
7030         mv -f "$nlist"T "$nlist"
7031       else
7032         rm -f "$nlist"T
7033       fi
7034
7035       # Make sure that we snagged all the symbols we need.
7036       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7037         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7038           cat <<_LT_EOF > conftest.$ac_ext
7039 #ifdef __cplusplus
7040 extern "C" {
7041 #endif
7042
7043 _LT_EOF
7044           # Now generate the symbol file.
7045           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7046
7047           cat <<_LT_EOF >> conftest.$ac_ext
7048
7049 /* The mapping between symbol names and symbols.  */
7050 const struct {
7051   const char *name;
7052   void       *address;
7053 }
7054 lt__PROGRAM__LTX_preloaded_symbols[] =
7055 {
7056   { "@PROGRAM@", (void *) 0 },
7057 _LT_EOF
7058           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7059           cat <<\_LT_EOF >> conftest.$ac_ext
7060   {0, (void *) 0}
7061 };
7062
7063 /* This works around a problem in FreeBSD linker */
7064 #ifdef FREEBSD_WORKAROUND
7065 static const void *lt_preloaded_setup() {
7066   return lt__PROGRAM__LTX_preloaded_symbols;
7067 }
7068 #endif
7069
7070 #ifdef __cplusplus
7071 }
7072 #endif
7073 _LT_EOF
7074           # Now try linking the two files.
7075           mv conftest.$ac_objext conftstm.$ac_objext
7076           lt_save_LIBS="$LIBS"
7077           lt_save_CFLAGS="$CFLAGS"
7078           LIBS="conftstm.$ac_objext"
7079           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7080           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7081   (eval $ac_link) 2>&5
7082   ac_status=$?
7083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7085             pipe_works=yes
7086           fi
7087           LIBS="$lt_save_LIBS"
7088           CFLAGS="$lt_save_CFLAGS"
7089         else
7090           echo "cannot find nm_test_func in $nlist" >&5
7091         fi
7092       else
7093         echo "cannot find nm_test_var in $nlist" >&5
7094       fi
7095     else
7096       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7097     fi
7098   else
7099     echo "$progname: failed program was:" >&5
7100     cat conftest.$ac_ext >&5
7101   fi
7102   rm -rf conftest* conftst*
7103
7104   # Do not use the global_symbol_pipe unless it works.
7105   if test "$pipe_works" = yes; then
7106     break
7107   else
7108     lt_cv_sys_global_symbol_pipe=
7109   fi
7110 done
7111
7112 fi
7113
7114 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7115   lt_cv_sys_global_symbol_to_cdecl=
7116 fi
7117 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7118   { echo "$as_me:$LINENO: result: failed" >&5
7119 echo "${ECHO_T}failed" >&6; }
7120 else
7121   { echo "$as_me:$LINENO: result: ok" >&5
7122 echo "${ECHO_T}ok" >&6; }
7123 fi
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146 # Check whether --enable-libtool-lock was given.
7147 if test "${enable_libtool_lock+set}" = set; then
7148   enableval=$enable_libtool_lock;
7149 fi
7150
7151 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7152
7153 # Some flags need to be propagated to the compiler or linker for good
7154 # libtool support.
7155 case $host in
7156 ia64-*-hpux*)
7157   # Find out which ABI we are using.
7158   echo 'int i;' > conftest.$ac_ext
7159   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7160   (eval $ac_compile) 2>&5
7161   ac_status=$?
7162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163   (exit $ac_status); }; then
7164     case `/usr/bin/file conftest.$ac_objext` in
7165       *ELF-32*)
7166         HPUX_IA64_MODE="32"
7167         ;;
7168       *ELF-64*)
7169         HPUX_IA64_MODE="64"
7170         ;;
7171     esac
7172   fi
7173   rm -rf conftest*
7174   ;;
7175 *-*-irix6*)
7176   # Find out which ABI we are using.
7177   echo '#line 7177 "configure"' > conftest.$ac_ext
7178   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7179   (eval $ac_compile) 2>&5
7180   ac_status=$?
7181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182   (exit $ac_status); }; then
7183     if test "$lt_cv_prog_gnu_ld" = yes; then
7184       case `/usr/bin/file conftest.$ac_objext` in
7185         *32-bit*)
7186           LD="${LD-ld} -melf32bsmip"
7187           ;;
7188         *N32*)
7189           LD="${LD-ld} -melf32bmipn32"
7190           ;;
7191         *64-bit*)
7192           LD="${LD-ld} -melf64bmip"
7193         ;;
7194       esac
7195     else
7196       case `/usr/bin/file conftest.$ac_objext` in
7197         *32-bit*)
7198           LD="${LD-ld} -32"
7199           ;;
7200         *N32*)
7201           LD="${LD-ld} -n32"
7202           ;;
7203         *64-bit*)
7204           LD="${LD-ld} -64"
7205           ;;
7206       esac
7207     fi
7208   fi
7209   rm -rf conftest*
7210   ;;
7211
7212 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7213 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7214   # Find out which ABI we are using.
7215   echo 'int i;' > conftest.$ac_ext
7216   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7217   (eval $ac_compile) 2>&5
7218   ac_status=$?
7219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220   (exit $ac_status); }; then
7221     case `/usr/bin/file conftest.o` in
7222       *32-bit*)
7223         case $host in
7224           x86_64-*kfreebsd*-gnu)
7225             LD="${LD-ld} -m elf_i386_fbsd"
7226             ;;
7227           x86_64-*linux*)
7228             LD="${LD-ld} -m elf_i386"
7229             ;;
7230           ppc64-*linux*|powerpc64-*linux*)
7231             LD="${LD-ld} -m elf32ppclinux"
7232             ;;
7233           s390x-*linux*)
7234             LD="${LD-ld} -m elf_s390"
7235             ;;
7236           sparc64-*linux*)
7237             LD="${LD-ld} -m elf32_sparc"
7238             ;;
7239         esac
7240         ;;
7241       *64-bit*)
7242         case $host in
7243           x86_64-*kfreebsd*-gnu)
7244             LD="${LD-ld} -m elf_x86_64_fbsd"
7245             ;;
7246           x86_64-*linux*)
7247             LD="${LD-ld} -m elf_x86_64"
7248             ;;
7249           ppc*-*linux*|powerpc*-*linux*)
7250             LD="${LD-ld} -m elf64ppc"
7251             ;;
7252           s390*-*linux*|s390*-*tpf*)
7253             LD="${LD-ld} -m elf64_s390"
7254             ;;
7255           sparc*-*linux*)
7256             LD="${LD-ld} -m elf64_sparc"
7257             ;;
7258         esac
7259         ;;
7260     esac
7261   fi
7262   rm -rf conftest*
7263   ;;
7264
7265 *-*-sco3.2v5*)
7266   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7267   SAVE_CFLAGS="$CFLAGS"
7268   CFLAGS="$CFLAGS -belf"
7269   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7270 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7271 if test "${lt_cv_cc_needs_belf+set}" = set; then
7272   echo $ECHO_N "(cached) $ECHO_C" >&6
7273 else
7274   ac_ext=c
7275 ac_cpp='$CPP $CPPFLAGS'
7276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7279
7280      cat >conftest.$ac_ext <<_ACEOF
7281 /* confdefs.h.  */
7282 _ACEOF
7283 cat confdefs.h >>conftest.$ac_ext
7284 cat >>conftest.$ac_ext <<_ACEOF
7285 /* end confdefs.h.  */
7286
7287 int
7288 main ()
7289 {
7290
7291   ;
7292   return 0;
7293 }
7294 _ACEOF
7295 rm -f conftest.$ac_objext conftest$ac_exeext
7296 if { (ac_try="$ac_link"
7297 case "(($ac_try" in
7298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7299   *) ac_try_echo=$ac_try;;
7300 esac
7301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7302   (eval "$ac_link") 2>conftest.er1
7303   ac_status=$?
7304   grep -v '^ *+' conftest.er1 >conftest.err
7305   rm -f conftest.er1
7306   cat conftest.err >&5
7307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308   (exit $ac_status); } && {
7309          test -z "$ac_c_werror_flag" ||
7310          test ! -s conftest.err
7311        } && test -s conftest$ac_exeext &&
7312        $as_test_x conftest$ac_exeext; then
7313   lt_cv_cc_needs_belf=yes
7314 else
7315   echo "$as_me: failed program was:" >&5
7316 sed 's/^/| /' conftest.$ac_ext >&5
7317
7318         lt_cv_cc_needs_belf=no
7319 fi
7320
7321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7322       conftest$ac_exeext conftest.$ac_ext
7323      ac_ext=c
7324 ac_cpp='$CPP $CPPFLAGS'
7325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7328
7329 fi
7330 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7331 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7332   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7333     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7334     CFLAGS="$SAVE_CFLAGS"
7335   fi
7336   ;;
7337 sparc*-*solaris*)
7338   # Find out which ABI we are using.
7339   echo 'int i;' > conftest.$ac_ext
7340   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7341   (eval $ac_compile) 2>&5
7342   ac_status=$?
7343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344   (exit $ac_status); }; then
7345     case `/usr/bin/file conftest.o` in
7346     *64-bit*)
7347       case $lt_cv_prog_gnu_ld in
7348       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7349       *)
7350         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7351           LD="${LD-ld} -64"
7352         fi
7353         ;;
7354       esac
7355       ;;
7356     esac
7357   fi
7358   rm -rf conftest*
7359   ;;
7360 esac
7361
7362 need_locks="$enable_libtool_lock"
7363
7364
7365   case $host_os in
7366     rhapsody* | darwin*)
7367     if test -n "$ac_tool_prefix"; then
7368   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7369 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7372 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7373   echo $ECHO_N "(cached) $ECHO_C" >&6
7374 else
7375   if test -n "$DSYMUTIL"; then
7376   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7377 else
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 for as_dir in $PATH
7380 do
7381   IFS=$as_save_IFS
7382   test -z "$as_dir" && as_dir=.
7383   for ac_exec_ext in '' $ac_executable_extensions; do
7384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7385     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7387     break 2
7388   fi
7389 done
7390 done
7391 IFS=$as_save_IFS
7392
7393 fi
7394 fi
7395 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7396 if test -n "$DSYMUTIL"; then
7397   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7398 echo "${ECHO_T}$DSYMUTIL" >&6; }
7399 else
7400   { echo "$as_me:$LINENO: result: no" >&5
7401 echo "${ECHO_T}no" >&6; }
7402 fi
7403
7404
7405 fi
7406 if test -z "$ac_cv_prog_DSYMUTIL"; then
7407   ac_ct_DSYMUTIL=$DSYMUTIL
7408   # Extract the first word of "dsymutil", so it can be a program name with args.
7409 set dummy dsymutil; ac_word=$2
7410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7412 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7413   echo $ECHO_N "(cached) $ECHO_C" >&6
7414 else
7415   if test -n "$ac_ct_DSYMUTIL"; then
7416   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7417 else
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 for as_dir in $PATH
7420 do
7421   IFS=$as_save_IFS
7422   test -z "$as_dir" && as_dir=.
7423   for ac_exec_ext in '' $ac_executable_extensions; do
7424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7425     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7427     break 2
7428   fi
7429 done
7430 done
7431 IFS=$as_save_IFS
7432
7433 fi
7434 fi
7435 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7436 if test -n "$ac_ct_DSYMUTIL"; then
7437   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7438 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7439 else
7440   { echo "$as_me:$LINENO: result: no" >&5
7441 echo "${ECHO_T}no" >&6; }
7442 fi
7443
7444   if test "x$ac_ct_DSYMUTIL" = x; then
7445     DSYMUTIL=":"
7446   else
7447     case $cross_compiling:$ac_tool_warned in
7448 yes:)
7449 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7450 whose name does not start with the host triplet.  If you think this
7451 configuration is useful to you, please write to autoconf@gnu.org." >&5
7452 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7453 whose name does not start with the host triplet.  If you think this
7454 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7455 ac_tool_warned=yes ;;
7456 esac
7457     DSYMUTIL=$ac_ct_DSYMUTIL
7458   fi
7459 else
7460   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7461 fi
7462
7463     if test -n "$ac_tool_prefix"; then
7464   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7465 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7468 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7469   echo $ECHO_N "(cached) $ECHO_C" >&6
7470 else
7471   if test -n "$NMEDIT"; then
7472   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7473 else
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 for as_dir in $PATH
7476 do
7477   IFS=$as_save_IFS
7478   test -z "$as_dir" && as_dir=.
7479   for ac_exec_ext in '' $ac_executable_extensions; do
7480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7481     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483     break 2
7484   fi
7485 done
7486 done
7487 IFS=$as_save_IFS
7488
7489 fi
7490 fi
7491 NMEDIT=$ac_cv_prog_NMEDIT
7492 if test -n "$NMEDIT"; then
7493   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7494 echo "${ECHO_T}$NMEDIT" >&6; }
7495 else
7496   { echo "$as_me:$LINENO: result: no" >&5
7497 echo "${ECHO_T}no" >&6; }
7498 fi
7499
7500
7501 fi
7502 if test -z "$ac_cv_prog_NMEDIT"; then
7503   ac_ct_NMEDIT=$NMEDIT
7504   # Extract the first word of "nmedit", so it can be a program name with args.
7505 set dummy nmedit; ac_word=$2
7506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7508 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7509   echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511   if test -n "$ac_ct_NMEDIT"; then
7512   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7513 else
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 for as_dir in $PATH
7516 do
7517   IFS=$as_save_IFS
7518   test -z "$as_dir" && as_dir=.
7519   for ac_exec_ext in '' $ac_executable_extensions; do
7520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7521     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7523     break 2
7524   fi
7525 done
7526 done
7527 IFS=$as_save_IFS
7528
7529 fi
7530 fi
7531 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7532 if test -n "$ac_ct_NMEDIT"; then
7533   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7534 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7535 else
7536   { echo "$as_me:$LINENO: result: no" >&5
7537 echo "${ECHO_T}no" >&6; }
7538 fi
7539
7540   if test "x$ac_ct_NMEDIT" = x; then
7541     NMEDIT=":"
7542   else
7543     case $cross_compiling:$ac_tool_warned in
7544 yes:)
7545 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7546 whose name does not start with the host triplet.  If you think this
7547 configuration is useful to you, please write to autoconf@gnu.org." >&5
7548 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7549 whose name does not start with the host triplet.  If you think this
7550 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7551 ac_tool_warned=yes ;;
7552 esac
7553     NMEDIT=$ac_ct_NMEDIT
7554   fi
7555 else
7556   NMEDIT="$ac_cv_prog_NMEDIT"
7557 fi
7558
7559     if test -n "$ac_tool_prefix"; then
7560   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7561 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7564 if test "${ac_cv_prog_LIPO+set}" = set; then
7565   echo $ECHO_N "(cached) $ECHO_C" >&6
7566 else
7567   if test -n "$LIPO"; then
7568   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7569 else
7570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571 for as_dir in $PATH
7572 do
7573   IFS=$as_save_IFS
7574   test -z "$as_dir" && as_dir=.
7575   for ac_exec_ext in '' $ac_executable_extensions; do
7576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7577     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7579     break 2
7580   fi
7581 done
7582 done
7583 IFS=$as_save_IFS
7584
7585 fi
7586 fi
7587 LIPO=$ac_cv_prog_LIPO
7588 if test -n "$LIPO"; then
7589   { echo "$as_me:$LINENO: result: $LIPO" >&5
7590 echo "${ECHO_T}$LIPO" >&6; }
7591 else
7592   { echo "$as_me:$LINENO: result: no" >&5
7593 echo "${ECHO_T}no" >&6; }
7594 fi
7595
7596
7597 fi
7598 if test -z "$ac_cv_prog_LIPO"; then
7599   ac_ct_LIPO=$LIPO
7600   # Extract the first word of "lipo", so it can be a program name with args.
7601 set dummy lipo; ac_word=$2
7602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7604 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7605   echo $ECHO_N "(cached) $ECHO_C" >&6
7606 else
7607   if test -n "$ac_ct_LIPO"; then
7608   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7609 else
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 for as_dir in $PATH
7612 do
7613   IFS=$as_save_IFS
7614   test -z "$as_dir" && as_dir=.
7615   for ac_exec_ext in '' $ac_executable_extensions; do
7616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7617     ac_cv_prog_ac_ct_LIPO="lipo"
7618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7619     break 2
7620   fi
7621 done
7622 done
7623 IFS=$as_save_IFS
7624
7625 fi
7626 fi
7627 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7628 if test -n "$ac_ct_LIPO"; then
7629   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7630 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7631 else
7632   { echo "$as_me:$LINENO: result: no" >&5
7633 echo "${ECHO_T}no" >&6; }
7634 fi
7635
7636   if test "x$ac_ct_LIPO" = x; then
7637     LIPO=":"
7638   else
7639     case $cross_compiling:$ac_tool_warned in
7640 yes:)
7641 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7642 whose name does not start with the host triplet.  If you think this
7643 configuration is useful to you, please write to autoconf@gnu.org." >&5
7644 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7645 whose name does not start with the host triplet.  If you think this
7646 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7647 ac_tool_warned=yes ;;
7648 esac
7649     LIPO=$ac_ct_LIPO
7650   fi
7651 else
7652   LIPO="$ac_cv_prog_LIPO"
7653 fi
7654
7655     if test -n "$ac_tool_prefix"; then
7656   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7657 set dummy ${ac_tool_prefix}otool; ac_word=$2
7658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7660 if test "${ac_cv_prog_OTOOL+set}" = set; then
7661   echo $ECHO_N "(cached) $ECHO_C" >&6
7662 else
7663   if test -n "$OTOOL"; then
7664   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7665 else
7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667 for as_dir in $PATH
7668 do
7669   IFS=$as_save_IFS
7670   test -z "$as_dir" && as_dir=.
7671   for ac_exec_ext in '' $ac_executable_extensions; do
7672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7673     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7675     break 2
7676   fi
7677 done
7678 done
7679 IFS=$as_save_IFS
7680
7681 fi
7682 fi
7683 OTOOL=$ac_cv_prog_OTOOL
7684 if test -n "$OTOOL"; then
7685   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7686 echo "${ECHO_T}$OTOOL" >&6; }
7687 else
7688   { echo "$as_me:$LINENO: result: no" >&5
7689 echo "${ECHO_T}no" >&6; }
7690 fi
7691
7692
7693 fi
7694 if test -z "$ac_cv_prog_OTOOL"; then
7695   ac_ct_OTOOL=$OTOOL
7696   # Extract the first word of "otool", so it can be a program name with args.
7697 set dummy otool; ac_word=$2
7698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7700 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7701   echo $ECHO_N "(cached) $ECHO_C" >&6
7702 else
7703   if test -n "$ac_ct_OTOOL"; then
7704   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7705 else
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707 for as_dir in $PATH
7708 do
7709   IFS=$as_save_IFS
7710   test -z "$as_dir" && as_dir=.
7711   for ac_exec_ext in '' $ac_executable_extensions; do
7712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7713     ac_cv_prog_ac_ct_OTOOL="otool"
7714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7715     break 2
7716   fi
7717 done
7718 done
7719 IFS=$as_save_IFS
7720
7721 fi
7722 fi
7723 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7724 if test -n "$ac_ct_OTOOL"; then
7725   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7726 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7727 else
7728   { echo "$as_me:$LINENO: result: no" >&5
7729 echo "${ECHO_T}no" >&6; }
7730 fi
7731
7732   if test "x$ac_ct_OTOOL" = x; then
7733     OTOOL=":"
7734   else
7735     case $cross_compiling:$ac_tool_warned in
7736 yes:)
7737 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7738 whose name does not start with the host triplet.  If you think this
7739 configuration is useful to you, please write to autoconf@gnu.org." >&5
7740 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7741 whose name does not start with the host triplet.  If you think this
7742 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7743 ac_tool_warned=yes ;;
7744 esac
7745     OTOOL=$ac_ct_OTOOL
7746   fi
7747 else
7748   OTOOL="$ac_cv_prog_OTOOL"
7749 fi
7750
7751     if test -n "$ac_tool_prefix"; then
7752   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7753 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7756 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7757   echo $ECHO_N "(cached) $ECHO_C" >&6
7758 else
7759   if test -n "$OTOOL64"; then
7760   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7761 else
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7764 do
7765   IFS=$as_save_IFS
7766   test -z "$as_dir" && as_dir=.
7767   for ac_exec_ext in '' $ac_executable_extensions; do
7768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7769     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7771     break 2
7772   fi
7773 done
7774 done
7775 IFS=$as_save_IFS
7776
7777 fi
7778 fi
7779 OTOOL64=$ac_cv_prog_OTOOL64
7780 if test -n "$OTOOL64"; then
7781   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7782 echo "${ECHO_T}$OTOOL64" >&6; }
7783 else
7784   { echo "$as_me:$LINENO: result: no" >&5
7785 echo "${ECHO_T}no" >&6; }
7786 fi
7787
7788
7789 fi
7790 if test -z "$ac_cv_prog_OTOOL64"; then
7791   ac_ct_OTOOL64=$OTOOL64
7792   # Extract the first word of "otool64", so it can be a program name with args.
7793 set dummy otool64; ac_word=$2
7794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7796 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7797   echo $ECHO_N "(cached) $ECHO_C" >&6
7798 else
7799   if test -n "$ac_ct_OTOOL64"; then
7800   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7801 else
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 for as_dir in $PATH
7804 do
7805   IFS=$as_save_IFS
7806   test -z "$as_dir" && as_dir=.
7807   for ac_exec_ext in '' $ac_executable_extensions; do
7808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7809     ac_cv_prog_ac_ct_OTOOL64="otool64"
7810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7811     break 2
7812   fi
7813 done
7814 done
7815 IFS=$as_save_IFS
7816
7817 fi
7818 fi
7819 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7820 if test -n "$ac_ct_OTOOL64"; then
7821   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7822 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7823 else
7824   { echo "$as_me:$LINENO: result: no" >&5
7825 echo "${ECHO_T}no" >&6; }
7826 fi
7827
7828   if test "x$ac_ct_OTOOL64" = x; then
7829     OTOOL64=":"
7830   else
7831     case $cross_compiling:$ac_tool_warned in
7832 yes:)
7833 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7834 whose name does not start with the host triplet.  If you think this
7835 configuration is useful to you, please write to autoconf@gnu.org." >&5
7836 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7837 whose name does not start with the host triplet.  If you think this
7838 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7839 ac_tool_warned=yes ;;
7840 esac
7841     OTOOL64=$ac_ct_OTOOL64
7842   fi
7843 else
7844   OTOOL64="$ac_cv_prog_OTOOL64"
7845 fi
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7874 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7875 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7876   echo $ECHO_N "(cached) $ECHO_C" >&6
7877 else
7878   lt_cv_apple_cc_single_mod=no
7879       if test -z "${LT_MULTI_MODULE}"; then
7880         # By default we will add the -single_module flag. You can override
7881         # by either setting the environment variable LT_MULTI_MODULE
7882         # non-empty at configure time, or by adding -multi_module to the
7883         # link flags.
7884         rm -rf libconftest.dylib*
7885         echo "int foo(void){return 1;}" > conftest.c
7886         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7887 -dynamiclib -Wl,-single_module conftest.c" >&5
7888         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7889           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7890         _lt_result=$?
7891         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7892           lt_cv_apple_cc_single_mod=yes
7893         else
7894           cat conftest.err >&5
7895         fi
7896         rm -rf libconftest.dylib*
7897         rm -f conftest.*
7898       fi
7899 fi
7900 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7901 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7902     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7903 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7904 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7905   echo $ECHO_N "(cached) $ECHO_C" >&6
7906 else
7907   lt_cv_ld_exported_symbols_list=no
7908       save_LDFLAGS=$LDFLAGS
7909       echo "_main" > conftest.sym
7910       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7911       cat >conftest.$ac_ext <<_ACEOF
7912 /* confdefs.h.  */
7913 _ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h.  */
7917
7918 int
7919 main ()
7920 {
7921
7922   ;
7923   return 0;
7924 }
7925 _ACEOF
7926 rm -f conftest.$ac_objext conftest$ac_exeext
7927 if { (ac_try="$ac_link"
7928 case "(($ac_try" in
7929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7930   *) ac_try_echo=$ac_try;;
7931 esac
7932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7933   (eval "$ac_link") 2>conftest.er1
7934   ac_status=$?
7935   grep -v '^ *+' conftest.er1 >conftest.err
7936   rm -f conftest.er1
7937   cat conftest.err >&5
7938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939   (exit $ac_status); } && {
7940          test -z "$ac_c_werror_flag" ||
7941          test ! -s conftest.err
7942        } && test -s conftest$ac_exeext &&
7943        $as_test_x conftest$ac_exeext; then
7944   lt_cv_ld_exported_symbols_list=yes
7945 else
7946   echo "$as_me: failed program was:" >&5
7947 sed 's/^/| /' conftest.$ac_ext >&5
7948
7949         lt_cv_ld_exported_symbols_list=no
7950 fi
7951
7952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7953       conftest$ac_exeext conftest.$ac_ext
7954         LDFLAGS="$save_LDFLAGS"
7955
7956 fi
7957 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7958 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7959     case $host_os in
7960     rhapsody* | darwin1.[012])
7961       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7962     darwin1.*)
7963       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7964     darwin*) # darwin 5.x on
7965       # if running on 10.5 or later, the deployment target defaults
7966       # to the OS version, if on x86, and 10.4, the deployment
7967       # target defaults to 10.4. Don't you love it?
7968       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7969         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7970           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7971         10.[012]*)
7972           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7973         10.*)
7974           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7975       esac
7976     ;;
7977   esac
7978     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7979       _lt_dar_single_mod='$single_module'
7980     fi
7981     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7982       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7983     else
7984       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7985     fi
7986     if test "$DSYMUTIL" != ":"; then
7987       _lt_dsymutil='~$DSYMUTIL $lib || :'
7988     else
7989       _lt_dsymutil=
7990     fi
7991     ;;
7992   esac
7993
7994 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7995 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7996 if test "${ac_cv_header_stdc+set}" = set; then
7997   echo $ECHO_N "(cached) $ECHO_C" >&6
7998 else
7999   cat >conftest.$ac_ext <<_ACEOF
8000 /* confdefs.h.  */
8001 _ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h.  */
8005 #include <stdlib.h>
8006 #include <stdarg.h>
8007 #include <string.h>
8008 #include <float.h>
8009
8010 int
8011 main ()
8012 {
8013
8014   ;
8015   return 0;
8016 }
8017 _ACEOF
8018 rm -f conftest.$ac_objext
8019 if { (ac_try="$ac_compile"
8020 case "(($ac_try" in
8021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8022   *) ac_try_echo=$ac_try;;
8023 esac
8024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8025   (eval "$ac_compile") 2>conftest.er1
8026   ac_status=$?
8027   grep -v '^ *+' conftest.er1 >conftest.err
8028   rm -f conftest.er1
8029   cat conftest.err >&5
8030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031   (exit $ac_status); } && {
8032          test -z "$ac_c_werror_flag" ||
8033          test ! -s conftest.err
8034        } && test -s conftest.$ac_objext; then
8035   ac_cv_header_stdc=yes
8036 else
8037   echo "$as_me: failed program was:" >&5
8038 sed 's/^/| /' conftest.$ac_ext >&5
8039
8040         ac_cv_header_stdc=no
8041 fi
8042
8043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8044
8045 if test $ac_cv_header_stdc = yes; then
8046   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8047   cat >conftest.$ac_ext <<_ACEOF
8048 /* confdefs.h.  */
8049 _ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h.  */
8053 #include <string.h>
8054
8055 _ACEOF
8056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8057   $EGREP "memchr" >/dev/null 2>&1; then
8058   :
8059 else
8060   ac_cv_header_stdc=no
8061 fi
8062 rm -f conftest*
8063
8064 fi
8065
8066 if test $ac_cv_header_stdc = yes; then
8067   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8068   cat >conftest.$ac_ext <<_ACEOF
8069 /* confdefs.h.  */
8070 _ACEOF
8071 cat confdefs.h >>conftest.$ac_ext
8072 cat >>conftest.$ac_ext <<_ACEOF
8073 /* end confdefs.h.  */
8074 #include <stdlib.h>
8075
8076 _ACEOF
8077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8078   $EGREP "free" >/dev/null 2>&1; then
8079   :
8080 else
8081   ac_cv_header_stdc=no
8082 fi
8083 rm -f conftest*
8084
8085 fi
8086
8087 if test $ac_cv_header_stdc = yes; then
8088   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8089   if test "$cross_compiling" = yes; then
8090   :
8091 else
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 <ctype.h>
8099 #include <stdlib.h>
8100 #if ((' ' & 0x0FF) == 0x020)
8101 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8102 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8103 #else
8104 # define ISLOWER(c) \
8105                    (('a' <= (c) && (c) <= 'i') \
8106                      || ('j' <= (c) && (c) <= 'r') \
8107                      || ('s' <= (c) && (c) <= 'z'))
8108 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8109 #endif
8110
8111 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8112 int
8113 main ()
8114 {
8115   int i;
8116   for (i = 0; i < 256; i++)
8117     if (XOR (islower (i), ISLOWER (i))
8118         || toupper (i) != TOUPPER (i))
8119       return 2;
8120   return 0;
8121 }
8122 _ACEOF
8123 rm -f conftest$ac_exeext
8124 if { (ac_try="$ac_link"
8125 case "(($ac_try" in
8126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8127   *) ac_try_echo=$ac_try;;
8128 esac
8129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8130   (eval "$ac_link") 2>&5
8131   ac_status=$?
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8134   { (case "(($ac_try" in
8135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8136   *) ac_try_echo=$ac_try;;
8137 esac
8138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8139   (eval "$ac_try") 2>&5
8140   ac_status=$?
8141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142   (exit $ac_status); }; }; then
8143   :
8144 else
8145   echo "$as_me: program exited with status $ac_status" >&5
8146 echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8148
8149 ( exit $ac_status )
8150 ac_cv_header_stdc=no
8151 fi
8152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8153 fi
8154
8155
8156 fi
8157 fi
8158 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8159 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8160 if test $ac_cv_header_stdc = yes; then
8161
8162 cat >>confdefs.h <<\_ACEOF
8163 #define STDC_HEADERS 1
8164 _ACEOF
8165
8166 fi
8167
8168 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8179                   inttypes.h stdint.h unistd.h
8180 do
8181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8185   echo $ECHO_N "(cached) $ECHO_C" >&6
8186 else
8187   cat >conftest.$ac_ext <<_ACEOF
8188 /* confdefs.h.  */
8189 _ACEOF
8190 cat confdefs.h >>conftest.$ac_ext
8191 cat >>conftest.$ac_ext <<_ACEOF
8192 /* end confdefs.h.  */
8193 $ac_includes_default
8194
8195 #include <$ac_header>
8196 _ACEOF
8197 rm -f conftest.$ac_objext
8198 if { (ac_try="$ac_compile"
8199 case "(($ac_try" in
8200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8201   *) ac_try_echo=$ac_try;;
8202 esac
8203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8204   (eval "$ac_compile") 2>conftest.er1
8205   ac_status=$?
8206   grep -v '^ *+' conftest.er1 >conftest.err
8207   rm -f conftest.er1
8208   cat conftest.err >&5
8209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210   (exit $ac_status); } && {
8211          test -z "$ac_c_werror_flag" ||
8212          test ! -s conftest.err
8213        } && test -s conftest.$ac_objext; then
8214   eval "$as_ac_Header=yes"
8215 else
8216   echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8218
8219         eval "$as_ac_Header=no"
8220 fi
8221
8222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223 fi
8224 ac_res=`eval echo '${'$as_ac_Header'}'`
8225                { echo "$as_me:$LINENO: result: $ac_res" >&5
8226 echo "${ECHO_T}$ac_res" >&6; }
8227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8228   cat >>confdefs.h <<_ACEOF
8229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8230 _ACEOF
8231
8232 fi
8233
8234 done
8235
8236
8237
8238 for ac_header in dlfcn.h
8239 do
8240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8244   echo $ECHO_N "(cached) $ECHO_C" >&6
8245 else
8246   cat >conftest.$ac_ext <<_ACEOF
8247 /* confdefs.h.  */
8248 _ACEOF
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h.  */
8252 $ac_includes_default
8253
8254 #include <$ac_header>
8255 _ACEOF
8256 rm -f conftest.$ac_objext
8257 if { (ac_try="$ac_compile"
8258 case "(($ac_try" in
8259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8260   *) ac_try_echo=$ac_try;;
8261 esac
8262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8263   (eval "$ac_compile") 2>conftest.er1
8264   ac_status=$?
8265   grep -v '^ *+' conftest.er1 >conftest.err
8266   rm -f conftest.er1
8267   cat conftest.err >&5
8268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269   (exit $ac_status); } && {
8270          test -z "$ac_c_werror_flag" ||
8271          test ! -s conftest.err
8272        } && test -s conftest.$ac_objext; then
8273   eval "$as_ac_Header=yes"
8274 else
8275   echo "$as_me: failed program was:" >&5
8276 sed 's/^/| /' conftest.$ac_ext >&5
8277
8278         eval "$as_ac_Header=no"
8279 fi
8280
8281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8282 fi
8283 ac_res=`eval echo '${'$as_ac_Header'}'`
8284                { echo "$as_me:$LINENO: result: $ac_res" >&5
8285 echo "${ECHO_T}$ac_res" >&6; }
8286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8287   cat >>confdefs.h <<_ACEOF
8288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8289 _ACEOF
8290
8291 fi
8292
8293 done
8294
8295
8296
8297 ac_ext=cpp
8298 ac_cpp='$CXXCPP $CPPFLAGS'
8299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8302 if test -z "$CXX"; then
8303   if test -n "$CCC"; then
8304     CXX=$CCC
8305   else
8306     if test -n "$ac_tool_prefix"; then
8307   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8308   do
8309     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8313 if test "${ac_cv_prog_CXX+set}" = set; then
8314   echo $ECHO_N "(cached) $ECHO_C" >&6
8315 else
8316   if test -n "$CXX"; then
8317   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8318 else
8319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320 for as_dir in $PATH
8321 do
8322   IFS=$as_save_IFS
8323   test -z "$as_dir" && as_dir=.
8324   for ac_exec_ext in '' $ac_executable_extensions; do
8325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8326     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8328     break 2
8329   fi
8330 done
8331 done
8332 IFS=$as_save_IFS
8333
8334 fi
8335 fi
8336 CXX=$ac_cv_prog_CXX
8337 if test -n "$CXX"; then
8338   { echo "$as_me:$LINENO: result: $CXX" >&5
8339 echo "${ECHO_T}$CXX" >&6; }
8340 else
8341   { echo "$as_me:$LINENO: result: no" >&5
8342 echo "${ECHO_T}no" >&6; }
8343 fi
8344
8345
8346     test -n "$CXX" && break
8347   done
8348 fi
8349 if test -z "$CXX"; then
8350   ac_ct_CXX=$CXX
8351   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8352 do
8353   # Extract the first word of "$ac_prog", so it can be a program name with args.
8354 set dummy $ac_prog; ac_word=$2
8355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8357 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8358   echo $ECHO_N "(cached) $ECHO_C" >&6
8359 else
8360   if test -n "$ac_ct_CXX"; then
8361   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8362 else
8363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364 for as_dir in $PATH
8365 do
8366   IFS=$as_save_IFS
8367   test -z "$as_dir" && as_dir=.
8368   for ac_exec_ext in '' $ac_executable_extensions; do
8369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8370     ac_cv_prog_ac_ct_CXX="$ac_prog"
8371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8372     break 2
8373   fi
8374 done
8375 done
8376 IFS=$as_save_IFS
8377
8378 fi
8379 fi
8380 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8381 if test -n "$ac_ct_CXX"; then
8382   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8383 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8384 else
8385   { echo "$as_me:$LINENO: result: no" >&5
8386 echo "${ECHO_T}no" >&6; }
8387 fi
8388
8389
8390   test -n "$ac_ct_CXX" && break
8391 done
8392
8393   if test "x$ac_ct_CXX" = x; then
8394     CXX="g++"
8395   else
8396     case $cross_compiling:$ac_tool_warned in
8397 yes:)
8398 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8399 whose name does not start with the host triplet.  If you think this
8400 configuration is useful to you, please write to autoconf@gnu.org." >&5
8401 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8402 whose name does not start with the host triplet.  If you think this
8403 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8404 ac_tool_warned=yes ;;
8405 esac
8406     CXX=$ac_ct_CXX
8407   fi
8408 fi
8409
8410   fi
8411 fi
8412 # Provide some information about the compiler.
8413 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8414 ac_compiler=`set X $ac_compile; echo $2`
8415 { (ac_try="$ac_compiler --version >&5"
8416 case "(($ac_try" in
8417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8418   *) ac_try_echo=$ac_try;;
8419 esac
8420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8421   (eval "$ac_compiler --version >&5") 2>&5
8422   ac_status=$?
8423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424   (exit $ac_status); }
8425 { (ac_try="$ac_compiler -v >&5"
8426 case "(($ac_try" in
8427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8428   *) ac_try_echo=$ac_try;;
8429 esac
8430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8431   (eval "$ac_compiler -v >&5") 2>&5
8432   ac_status=$?
8433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434   (exit $ac_status); }
8435 { (ac_try="$ac_compiler -V >&5"
8436 case "(($ac_try" in
8437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8438   *) ac_try_echo=$ac_try;;
8439 esac
8440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8441   (eval "$ac_compiler -V >&5") 2>&5
8442   ac_status=$?
8443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444   (exit $ac_status); }
8445
8446 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8447 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8448 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8449   echo $ECHO_N "(cached) $ECHO_C" >&6
8450 else
8451   cat >conftest.$ac_ext <<_ACEOF
8452 /* confdefs.h.  */
8453 _ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h.  */
8457
8458 int
8459 main ()
8460 {
8461 #ifndef __GNUC__
8462        choke me
8463 #endif
8464
8465   ;
8466   return 0;
8467 }
8468 _ACEOF
8469 rm -f conftest.$ac_objext
8470 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
8477   ac_status=$?
8478   grep -v '^ *+' conftest.er1 >conftest.err
8479   rm -f conftest.er1
8480   cat conftest.err >&5
8481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482   (exit $ac_status); } && {
8483          test -z "$ac_cxx_werror_flag" ||
8484          test ! -s conftest.err
8485        } && test -s conftest.$ac_objext; then
8486   ac_compiler_gnu=yes
8487 else
8488   echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8490
8491         ac_compiler_gnu=no
8492 fi
8493
8494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8495 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8496
8497 fi
8498 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8499 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8500 GXX=`test $ac_compiler_gnu = yes && echo yes`
8501 ac_test_CXXFLAGS=${CXXFLAGS+set}
8502 ac_save_CXXFLAGS=$CXXFLAGS
8503 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8504 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8505 if test "${ac_cv_prog_cxx_g+set}" = set; then
8506   echo $ECHO_N "(cached) $ECHO_C" >&6
8507 else
8508   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8509    ac_cxx_werror_flag=yes
8510    ac_cv_prog_cxx_g=no
8511    CXXFLAGS="-g"
8512    cat >conftest.$ac_ext <<_ACEOF
8513 /* confdefs.h.  */
8514 _ACEOF
8515 cat confdefs.h >>conftest.$ac_ext
8516 cat >>conftest.$ac_ext <<_ACEOF
8517 /* end confdefs.h.  */
8518
8519 int
8520 main ()
8521 {
8522
8523   ;
8524   return 0;
8525 }
8526 _ACEOF
8527 rm -f conftest.$ac_objext
8528 if { (ac_try="$ac_compile"
8529 case "(($ac_try" in
8530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531   *) ac_try_echo=$ac_try;;
8532 esac
8533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8534   (eval "$ac_compile") 2>conftest.er1
8535   ac_status=$?
8536   grep -v '^ *+' conftest.er1 >conftest.err
8537   rm -f conftest.er1
8538   cat conftest.err >&5
8539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540   (exit $ac_status); } && {
8541          test -z "$ac_cxx_werror_flag" ||
8542          test ! -s conftest.err
8543        } && test -s conftest.$ac_objext; then
8544   ac_cv_prog_cxx_g=yes
8545 else
8546   echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8548
8549         CXXFLAGS=""
8550       cat >conftest.$ac_ext <<_ACEOF
8551 /* confdefs.h.  */
8552 _ACEOF
8553 cat confdefs.h >>conftest.$ac_ext
8554 cat >>conftest.$ac_ext <<_ACEOF
8555 /* end confdefs.h.  */
8556
8557 int
8558 main ()
8559 {
8560
8561   ;
8562   return 0;
8563 }
8564 _ACEOF
8565 rm -f conftest.$ac_objext
8566 if { (ac_try="$ac_compile"
8567 case "(($ac_try" in
8568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8569   *) ac_try_echo=$ac_try;;
8570 esac
8571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8572   (eval "$ac_compile") 2>conftest.er1
8573   ac_status=$?
8574   grep -v '^ *+' conftest.er1 >conftest.err
8575   rm -f conftest.er1
8576   cat conftest.err >&5
8577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578   (exit $ac_status); } && {
8579          test -z "$ac_cxx_werror_flag" ||
8580          test ! -s conftest.err
8581        } && test -s conftest.$ac_objext; then
8582   :
8583 else
8584   echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8586
8587         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8588          CXXFLAGS="-g"
8589          cat >conftest.$ac_ext <<_ACEOF
8590 /* confdefs.h.  */
8591 _ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h.  */
8595
8596 int
8597 main ()
8598 {
8599
8600   ;
8601   return 0;
8602 }
8603 _ACEOF
8604 rm -f conftest.$ac_objext
8605 if { (ac_try="$ac_compile"
8606 case "(($ac_try" in
8607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8608   *) ac_try_echo=$ac_try;;
8609 esac
8610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8611   (eval "$ac_compile") 2>conftest.er1
8612   ac_status=$?
8613   grep -v '^ *+' conftest.er1 >conftest.err
8614   rm -f conftest.er1
8615   cat conftest.err >&5
8616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617   (exit $ac_status); } && {
8618          test -z "$ac_cxx_werror_flag" ||
8619          test ! -s conftest.err
8620        } && test -s conftest.$ac_objext; then
8621   ac_cv_prog_cxx_g=yes
8622 else
8623   echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8625
8626
8627 fi
8628
8629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8630 fi
8631
8632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8633 fi
8634
8635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8636    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8637 fi
8638 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8639 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8640 if test "$ac_test_CXXFLAGS" = set; then
8641   CXXFLAGS=$ac_save_CXXFLAGS
8642 elif test $ac_cv_prog_cxx_g = yes; then
8643   if test "$GXX" = yes; then
8644     CXXFLAGS="-g -O2"
8645   else
8646     CXXFLAGS="-g"
8647   fi
8648 else
8649   if test "$GXX" = yes; then
8650     CXXFLAGS="-O2"
8651   else
8652     CXXFLAGS=
8653   fi
8654 fi
8655 ac_ext=c
8656 ac_cpp='$CPP $CPPFLAGS'
8657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8660
8661 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8662     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8663     (test "X$CXX" != "Xg++"))) ; then
8664   ac_ext=cpp
8665 ac_cpp='$CXXCPP $CPPFLAGS'
8666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8669 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8670 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8671 if test -z "$CXXCPP"; then
8672   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8673   echo $ECHO_N "(cached) $ECHO_C" >&6
8674 else
8675       # Double quotes because CXXCPP needs to be expanded
8676     for CXXCPP in "$CXX -E" "/lib/cpp"
8677     do
8678       ac_preproc_ok=false
8679 for ac_cxx_preproc_warn_flag in '' yes
8680 do
8681   # Use a header file that comes with gcc, so configuring glibc
8682   # with a fresh cross-compiler works.
8683   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8684   # <limits.h> exists even on freestanding compilers.
8685   # On the NeXT, cc -E runs the code through the compiler's parser,
8686   # not just through cpp. "Syntax error" is here to catch this case.
8687   cat >conftest.$ac_ext <<_ACEOF
8688 /* confdefs.h.  */
8689 _ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h.  */
8693 #ifdef __STDC__
8694 # include <limits.h>
8695 #else
8696 # include <assert.h>
8697 #endif
8698                      Syntax error
8699 _ACEOF
8700 if { (ac_try="$ac_cpp conftest.$ac_ext"
8701 case "(($ac_try" in
8702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8703   *) ac_try_echo=$ac_try;;
8704 esac
8705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8706   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8707   ac_status=$?
8708   grep -v '^ *+' conftest.er1 >conftest.err
8709   rm -f conftest.er1
8710   cat conftest.err >&5
8711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712   (exit $ac_status); } >/dev/null && {
8713          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8714          test ! -s conftest.err
8715        }; then
8716   :
8717 else
8718   echo "$as_me: failed program was:" >&5
8719 sed 's/^/| /' conftest.$ac_ext >&5
8720
8721   # Broken: fails on valid input.
8722 continue
8723 fi
8724
8725 rm -f conftest.err conftest.$ac_ext
8726
8727   # OK, works on sane cases.  Now check whether nonexistent headers
8728   # can be detected and how.
8729   cat >conftest.$ac_ext <<_ACEOF
8730 /* confdefs.h.  */
8731 _ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h.  */
8735 #include <ac_nonexistent.h>
8736 _ACEOF
8737 if { (ac_try="$ac_cpp conftest.$ac_ext"
8738 case "(($ac_try" in
8739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8740   *) ac_try_echo=$ac_try;;
8741 esac
8742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8743   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8744   ac_status=$?
8745   grep -v '^ *+' conftest.er1 >conftest.err
8746   rm -f conftest.er1
8747   cat conftest.err >&5
8748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749   (exit $ac_status); } >/dev/null && {
8750          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8751          test ! -s conftest.err
8752        }; then
8753   # Broken: success on invalid input.
8754 continue
8755 else
8756   echo "$as_me: failed program was:" >&5
8757 sed 's/^/| /' conftest.$ac_ext >&5
8758
8759   # Passes both tests.
8760 ac_preproc_ok=:
8761 break
8762 fi
8763
8764 rm -f conftest.err conftest.$ac_ext
8765
8766 done
8767 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8768 rm -f conftest.err conftest.$ac_ext
8769 if $ac_preproc_ok; then
8770   break
8771 fi
8772
8773     done
8774     ac_cv_prog_CXXCPP=$CXXCPP
8775
8776 fi
8777   CXXCPP=$ac_cv_prog_CXXCPP
8778 else
8779   ac_cv_prog_CXXCPP=$CXXCPP
8780 fi
8781 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8782 echo "${ECHO_T}$CXXCPP" >&6; }
8783 ac_preproc_ok=false
8784 for ac_cxx_preproc_warn_flag in '' yes
8785 do
8786   # Use a header file that comes with gcc, so configuring glibc
8787   # with a fresh cross-compiler works.
8788   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8789   # <limits.h> exists even on freestanding compilers.
8790   # On the NeXT, cc -E runs the code through the compiler's parser,
8791   # not just through cpp. "Syntax error" is here to catch this case.
8792   cat >conftest.$ac_ext <<_ACEOF
8793 /* confdefs.h.  */
8794 _ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h.  */
8798 #ifdef __STDC__
8799 # include <limits.h>
8800 #else
8801 # include <assert.h>
8802 #endif
8803                      Syntax error
8804 _ACEOF
8805 if { (ac_try="$ac_cpp conftest.$ac_ext"
8806 case "(($ac_try" in
8807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8808   *) ac_try_echo=$ac_try;;
8809 esac
8810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8811   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8812   ac_status=$?
8813   grep -v '^ *+' conftest.er1 >conftest.err
8814   rm -f conftest.er1
8815   cat conftest.err >&5
8816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817   (exit $ac_status); } >/dev/null && {
8818          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8819          test ! -s conftest.err
8820        }; then
8821   :
8822 else
8823   echo "$as_me: failed program was:" >&5
8824 sed 's/^/| /' conftest.$ac_ext >&5
8825
8826   # Broken: fails on valid input.
8827 continue
8828 fi
8829
8830 rm -f conftest.err conftest.$ac_ext
8831
8832   # OK, works on sane cases.  Now check whether nonexistent headers
8833   # can be detected and how.
8834   cat >conftest.$ac_ext <<_ACEOF
8835 /* confdefs.h.  */
8836 _ACEOF
8837 cat confdefs.h >>conftest.$ac_ext
8838 cat >>conftest.$ac_ext <<_ACEOF
8839 /* end confdefs.h.  */
8840 #include <ac_nonexistent.h>
8841 _ACEOF
8842 if { (ac_try="$ac_cpp conftest.$ac_ext"
8843 case "(($ac_try" in
8844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8845   *) ac_try_echo=$ac_try;;
8846 esac
8847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8848   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8849   ac_status=$?
8850   grep -v '^ *+' conftest.er1 >conftest.err
8851   rm -f conftest.er1
8852   cat conftest.err >&5
8853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854   (exit $ac_status); } >/dev/null && {
8855          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8856          test ! -s conftest.err
8857        }; then
8858   # Broken: success on invalid input.
8859 continue
8860 else
8861   echo "$as_me: failed program was:" >&5
8862 sed 's/^/| /' conftest.$ac_ext >&5
8863
8864   # Passes both tests.
8865 ac_preproc_ok=:
8866 break
8867 fi
8868
8869 rm -f conftest.err conftest.$ac_ext
8870
8871 done
8872 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8873 rm -f conftest.err conftest.$ac_ext
8874 if $ac_preproc_ok; then
8875   :
8876 else
8877   _lt_caught_CXX_error=yes
8878 fi
8879
8880 ac_ext=c
8881 ac_cpp='$CPP $CPPFLAGS'
8882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8885
8886 else
8887   _lt_caught_CXX_error=yes
8888 fi
8889
8890
8891
8892
8893
8894 # Set options
8895 # Check whether --enable-shared was given.
8896 if test "${enable_shared+set}" = set; then
8897   enableval=$enable_shared; p=${PACKAGE-default}
8898     case $enableval in
8899     yes) enable_shared=yes ;;
8900     no) enable_shared=no ;;
8901     *)
8902       enable_shared=no
8903       # Look at the argument we got.  We use all the common list separators.
8904       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8905       for pkg in $enableval; do
8906         IFS="$lt_save_ifs"
8907         if test "X$pkg" = "X$p"; then
8908           enable_shared=yes
8909         fi
8910       done
8911       IFS="$lt_save_ifs"
8912       ;;
8913     esac
8914 else
8915   enable_shared=yes
8916 fi
8917
8918
8919
8920
8921
8922
8923
8924 # Check whether --enable-static was given.
8925 if test "${enable_static+set}" = set; then
8926   enableval=$enable_static; p=${PACKAGE-default}
8927     case $enableval in
8928     yes) enable_static=yes ;;
8929     no) enable_static=no ;;
8930     *)
8931      enable_static=no
8932       # Look at the argument we got.  We use all the common list separators.
8933       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8934       for pkg in $enableval; do
8935         IFS="$lt_save_ifs"
8936         if test "X$pkg" = "X$p"; then
8937           enable_static=yes
8938         fi
8939       done
8940       IFS="$lt_save_ifs"
8941       ;;
8942     esac
8943 else
8944   enable_static=no
8945 fi
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956         enable_dlopen=no
8957
8958
8959   enable_win32_dll=no
8960
8961
8962
8963
8964
8965 # Check whether --with-pic was given.
8966 if test "${with_pic+set}" = set; then
8967   withval=$with_pic; pic_mode="$withval"
8968 else
8969   pic_mode=default
8970 fi
8971
8972
8973 test -z "$pic_mode" && pic_mode=default
8974
8975
8976
8977
8978
8979
8980
8981   # Check whether --enable-fast-install was given.
8982 if test "${enable_fast_install+set}" = set; then
8983   enableval=$enable_fast_install; p=${PACKAGE-default}
8984     case $enableval in
8985     yes) enable_fast_install=yes ;;
8986     no) enable_fast_install=no ;;
8987     *)
8988       enable_fast_install=no
8989       # Look at the argument we got.  We use all the common list separators.
8990       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8991       for pkg in $enableval; do
8992         IFS="$lt_save_ifs"
8993         if test "X$pkg" = "X$p"; then
8994           enable_fast_install=yes
8995         fi
8996       done
8997       IFS="$lt_save_ifs"
8998       ;;
8999     esac
9000 else
9001   enable_fast_install=yes
9002 fi
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014 # This can be used to rebuild libtool when needed
9015 LIBTOOL_DEPS="$ltmain"
9016
9017 # Always use our own libtool.
9018 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044 test -z "$LN_S" && LN_S="ln -s"
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059 if test -n "${ZSH_VERSION+set}" ; then
9060    setopt NO_GLOB_SUBST
9061 fi
9062
9063 { echo "$as_me:$LINENO: checking for objdir" >&5
9064 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9065 if test "${lt_cv_objdir+set}" = set; then
9066   echo $ECHO_N "(cached) $ECHO_C" >&6
9067 else
9068   rm -f .libs 2>/dev/null
9069 mkdir .libs 2>/dev/null
9070 if test -d .libs; then
9071   lt_cv_objdir=.libs
9072 else
9073   # MS-DOS does not allow filenames that begin with a dot.
9074   lt_cv_objdir=_libs
9075 fi
9076 rmdir .libs 2>/dev/null
9077 fi
9078 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9079 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9080 objdir=$lt_cv_objdir
9081
9082
9083
9084
9085
9086 cat >>confdefs.h <<_ACEOF
9087 #define LT_OBJDIR "$lt_cv_objdir/"
9088 _ACEOF
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106 case $host_os in
9107 aix3*)
9108   # AIX sometimes has problems with the GCC collect2 program.  For some
9109   # reason, if we set the COLLECT_NAMES environment variable, the problems
9110   # vanish in a puff of smoke.
9111   if test "X${COLLECT_NAMES+set}" != Xset; then
9112     COLLECT_NAMES=
9113     export COLLECT_NAMES
9114   fi
9115   ;;
9116 esac
9117
9118 # Sed substitution that helps us do robust quoting.  It backslashifies
9119 # metacharacters that are still active within double-quoted strings.
9120 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9121
9122 # Same as above, but do not quote variable references.
9123 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9124
9125 # Sed substitution to delay expansion of an escaped shell variable in a
9126 # double_quote_subst'ed string.
9127 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9128
9129 # Sed substitution to delay expansion of an escaped single quote.
9130 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9131
9132 # Sed substitution to avoid accidental globbing in evaled expressions
9133 no_glob_subst='s/\*/\\\*/g'
9134
9135 # Global variables:
9136 ofile=libtool
9137 can_build_shared=yes
9138
9139 # All known linkers require a `.a' archive for static linking (except MSVC,
9140 # which needs '.lib').
9141 libext=a
9142
9143 with_gnu_ld="$lt_cv_prog_gnu_ld"
9144
9145 old_CC="$CC"
9146 old_CFLAGS="$CFLAGS"
9147
9148 # Set sane defaults for various variables
9149 test -z "$CC" && CC=cc
9150 test -z "$LTCC" && LTCC=$CC
9151 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9152 test -z "$LD" && LD=ld
9153 test -z "$ac_objext" && ac_objext=o
9154
9155 for cc_temp in $compiler""; do
9156   case $cc_temp in
9157     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9158     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9159     \-*) ;;
9160     *) break;;
9161   esac
9162 done
9163 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9164
9165
9166 # Only perform the check for file, if the check method requires it
9167 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9168 case $deplibs_check_method in
9169 file_magic*)
9170   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9171     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9172 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9173 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9174   echo $ECHO_N "(cached) $ECHO_C" >&6
9175 else
9176   case $MAGIC_CMD in
9177 [\\/*] |  ?:[\\/]*)
9178   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9179   ;;
9180 *)
9181   lt_save_MAGIC_CMD="$MAGIC_CMD"
9182   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9183   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9184   for ac_dir in $ac_dummy; do
9185     IFS="$lt_save_ifs"
9186     test -z "$ac_dir" && ac_dir=.
9187     if test -f $ac_dir/${ac_tool_prefix}file; then
9188       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9189       if test -n "$file_magic_test_file"; then
9190         case $deplibs_check_method in
9191         "file_magic "*)
9192           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9193           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9194           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9195             $EGREP "$file_magic_regex" > /dev/null; then
9196             :
9197           else
9198             cat <<_LT_EOF 1>&2
9199
9200 *** Warning: the command libtool uses to detect shared libraries,
9201 *** $file_magic_cmd, produces output that libtool cannot recognize.
9202 *** The result is that libtool may fail to recognize shared libraries
9203 *** as such.  This will affect the creation of libtool libraries that
9204 *** depend on shared libraries, but programs linked with such libtool
9205 *** libraries will work regardless of this problem.  Nevertheless, you
9206 *** may want to report the problem to your system manager and/or to
9207 *** bug-libtool@gnu.org
9208
9209 _LT_EOF
9210           fi ;;
9211         esac
9212       fi
9213       break
9214     fi
9215   done
9216   IFS="$lt_save_ifs"
9217   MAGIC_CMD="$lt_save_MAGIC_CMD"
9218   ;;
9219 esac
9220 fi
9221
9222 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9223 if test -n "$MAGIC_CMD"; then
9224   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9225 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9226 else
9227   { echo "$as_me:$LINENO: result: no" >&5
9228 echo "${ECHO_T}no" >&6; }
9229 fi
9230
9231
9232
9233
9234
9235 if test -z "$lt_cv_path_MAGIC_CMD"; then
9236   if test -n "$ac_tool_prefix"; then
9237     { echo "$as_me:$LINENO: checking for file" >&5
9238 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9239 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9240   echo $ECHO_N "(cached) $ECHO_C" >&6
9241 else
9242   case $MAGIC_CMD in
9243 [\\/*] |  ?:[\\/]*)
9244   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9245   ;;
9246 *)
9247   lt_save_MAGIC_CMD="$MAGIC_CMD"
9248   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9249   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9250   for ac_dir in $ac_dummy; do
9251     IFS="$lt_save_ifs"
9252     test -z "$ac_dir" && ac_dir=.
9253     if test -f $ac_dir/file; then
9254       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9255       if test -n "$file_magic_test_file"; then
9256         case $deplibs_check_method in
9257         "file_magic "*)
9258           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9259           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9260           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9261             $EGREP "$file_magic_regex" > /dev/null; then
9262             :
9263           else
9264             cat <<_LT_EOF 1>&2
9265
9266 *** Warning: the command libtool uses to detect shared libraries,
9267 *** $file_magic_cmd, produces output that libtool cannot recognize.
9268 *** The result is that libtool may fail to recognize shared libraries
9269 *** as such.  This will affect the creation of libtool libraries that
9270 *** depend on shared libraries, but programs linked with such libtool
9271 *** libraries will work regardless of this problem.  Nevertheless, you
9272 *** may want to report the problem to your system manager and/or to
9273 *** bug-libtool@gnu.org
9274
9275 _LT_EOF
9276           fi ;;
9277         esac
9278       fi
9279       break
9280     fi
9281   done
9282   IFS="$lt_save_ifs"
9283   MAGIC_CMD="$lt_save_MAGIC_CMD"
9284   ;;
9285 esac
9286 fi
9287
9288 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9289 if test -n "$MAGIC_CMD"; then
9290   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9291 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9292 else
9293   { echo "$as_me:$LINENO: result: no" >&5
9294 echo "${ECHO_T}no" >&6; }
9295 fi
9296
9297
9298   else
9299     MAGIC_CMD=:
9300   fi
9301 fi
9302
9303   fi
9304   ;;
9305 esac
9306
9307 # Use C for the default configuration in the libtool script
9308
9309 lt_save_CC="$CC"
9310 ac_ext=c
9311 ac_cpp='$CPP $CPPFLAGS'
9312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9315
9316
9317 # Source file extension for C test sources.
9318 ac_ext=c
9319
9320 # Object file extension for compiled C test sources.
9321 objext=o
9322 objext=$objext
9323
9324 # Code to be used in simple compile tests
9325 lt_simple_compile_test_code="int some_variable = 0;"
9326
9327 # Code to be used in simple link tests
9328 lt_simple_link_test_code='int main(){return(0);}'
9329
9330
9331
9332
9333
9334
9335
9336 # If no C compiler was specified, use CC.
9337 LTCC=${LTCC-"$CC"}
9338
9339 # If no C compiler flags were specified, use CFLAGS.
9340 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9341
9342 # Allow CC to be a program name with arguments.
9343 compiler=$CC
9344
9345 # Save the default compiler, since it gets overwritten when the other
9346 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9347 compiler_DEFAULT=$CC
9348
9349 # save warnings/boilerplate of simple test code
9350 ac_outfile=conftest.$ac_objext
9351 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9352 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9353 _lt_compiler_boilerplate=`cat conftest.err`
9354 $RM conftest*
9355
9356 ac_outfile=conftest.$ac_objext
9357 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9358 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9359 _lt_linker_boilerplate=`cat conftest.err`
9360 $RM -r conftest*
9361
9362
9363 ## CAVEAT EMPTOR:
9364 ## There is no encapsulation within the following macros, do not change
9365 ## the running order or otherwise move them around unless you know exactly
9366 ## what you are doing...
9367 if test -n "$compiler"; then
9368
9369 lt_prog_compiler_no_builtin_flag=
9370
9371 if test "$GCC" = yes; then
9372   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9373
9374   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9375 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9376 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9377   echo $ECHO_N "(cached) $ECHO_C" >&6
9378 else
9379   lt_cv_prog_compiler_rtti_exceptions=no
9380    ac_outfile=conftest.$ac_objext
9381    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9382    lt_compiler_flag="-fno-rtti -fno-exceptions"
9383    # Insert the option either (1) after the last *FLAGS variable, or
9384    # (2) before a word containing "conftest.", or (3) at the end.
9385    # Note that $ac_compile itself does not contain backslashes and begins
9386    # with a dollar sign (not a hyphen), so the echo should work correctly.
9387    # The option is referenced via a variable to avoid confusing sed.
9388    lt_compile=`echo "$ac_compile" | $SED \
9389    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9390    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9391    -e 's:$: $lt_compiler_flag:'`
9392    (eval echo "\"\$as_me:9392: $lt_compile\"" >&5)
9393    (eval "$lt_compile" 2>conftest.err)
9394    ac_status=$?
9395    cat conftest.err >&5
9396    echo "$as_me:9396: \$? = $ac_status" >&5
9397    if (exit $ac_status) && test -s "$ac_outfile"; then
9398      # The compiler can only warn and ignore the option if not recognized
9399      # So say no if there are warnings other than the usual output.
9400      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9401      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9402      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9403        lt_cv_prog_compiler_rtti_exceptions=yes
9404      fi
9405    fi
9406    $RM conftest*
9407
9408 fi
9409 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9410 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9411
9412 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9413     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9414 else
9415     :
9416 fi
9417
9418 fi
9419
9420
9421
9422
9423
9424
9425   lt_prog_compiler_wl=
9426 lt_prog_compiler_pic=
9427 lt_prog_compiler_static=
9428
9429 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9430 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9431
9432   if test "$GCC" = yes; then
9433     lt_prog_compiler_wl='-Wl,'
9434     lt_prog_compiler_static='-static'
9435
9436     case $host_os in
9437       aix*)
9438       # All AIX code is PIC.
9439       if test "$host_cpu" = ia64; then
9440         # AIX 5 now supports IA64 processor
9441         lt_prog_compiler_static='-Bstatic'
9442       fi
9443       ;;
9444
9445     amigaos*)
9446       case $host_cpu in
9447       powerpc)
9448             # see comment about AmigaOS4 .so support
9449             lt_prog_compiler_pic='-fPIC'
9450         ;;
9451       m68k)
9452             # FIXME: we need at least 68020 code to build shared libraries, but
9453             # adding the `-m68020' flag to GCC prevents building anything better,
9454             # like `-m68040'.
9455             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9456         ;;
9457       esac
9458       ;;
9459
9460     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9461       # PIC is the default for these OSes.
9462       ;;
9463
9464     mingw* | cygwin* | pw32* | os2* | cegcc*)
9465       # This hack is so that the source file can tell whether it is being
9466       # built for inclusion in a dll (and should export symbols for example).
9467       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9468       # (--disable-auto-import) libraries
9469       lt_prog_compiler_pic='-DDLL_EXPORT'
9470       ;;
9471
9472     darwin* | rhapsody*)
9473       # PIC is the default on this platform
9474       # Common symbols not allowed in MH_DYLIB files
9475       lt_prog_compiler_pic='-fno-common'
9476       ;;
9477
9478     hpux*)
9479       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9480       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9481       # sets the default TLS model and affects inlining.
9482       case $host_cpu in
9483       hppa*64*)
9484         # +Z the default
9485         ;;
9486       *)
9487         lt_prog_compiler_pic='-fPIC'
9488         ;;
9489       esac
9490       ;;
9491
9492     interix[3-9]*)
9493       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9494       # Instead, we relocate shared libraries at runtime.
9495       ;;
9496
9497     msdosdjgpp*)
9498       # Just because we use GCC doesn't mean we suddenly get shared libraries
9499       # on systems that don't support them.
9500       lt_prog_compiler_can_build_shared=no
9501       enable_shared=no
9502       ;;
9503
9504     *nto* | *qnx*)
9505       # QNX uses GNU C++, but need to define -shared option too, otherwise
9506       # it will coredump.
9507       lt_prog_compiler_pic='-fPIC -shared'
9508       ;;
9509
9510     sysv4*MP*)
9511       if test -d /usr/nec; then
9512         lt_prog_compiler_pic=-Kconform_pic
9513       fi
9514       ;;
9515
9516     *)
9517       lt_prog_compiler_pic='-fPIC'
9518       ;;
9519     esac
9520   else
9521     # PORTME Check for flag to pass linker flags through the system compiler.
9522     case $host_os in
9523     aix*)
9524       lt_prog_compiler_wl='-Wl,'
9525       if test "$host_cpu" = ia64; then
9526         # AIX 5 now supports IA64 processor
9527         lt_prog_compiler_static='-Bstatic'
9528       else
9529         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9530       fi
9531       ;;
9532
9533     mingw* | cygwin* | pw32* | os2* | cegcc*)
9534       # This hack is so that the source file can tell whether it is being
9535       # built for inclusion in a dll (and should export symbols for example).
9536       lt_prog_compiler_pic='-DDLL_EXPORT'
9537       ;;
9538
9539     hpux9* | hpux10* | hpux11*)
9540       lt_prog_compiler_wl='-Wl,'
9541       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9542       # not for PA HP-UX.
9543       case $host_cpu in
9544       hppa*64*|ia64*)
9545         # +Z the default
9546         ;;
9547       *)
9548         lt_prog_compiler_pic='+Z'
9549         ;;
9550       esac
9551       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9552       lt_prog_compiler_static='${wl}-a ${wl}archive'
9553       ;;
9554
9555     irix5* | irix6* | nonstopux*)
9556       lt_prog_compiler_wl='-Wl,'
9557       # PIC (with -KPIC) is the default.
9558       lt_prog_compiler_static='-non_shared'
9559       ;;
9560
9561     linux* | k*bsd*-gnu)
9562       case $cc_basename in
9563       # old Intel for x86_64 which still supported -KPIC.
9564       ecc*)
9565         lt_prog_compiler_wl='-Wl,'
9566         lt_prog_compiler_pic='-KPIC'
9567         lt_prog_compiler_static='-static'
9568         ;;
9569       # icc used to be incompatible with GCC.
9570       # ICC 10 doesn't accept -KPIC any more.
9571       icc* | ifort*)
9572         lt_prog_compiler_wl='-Wl,'
9573         lt_prog_compiler_pic='-fPIC'
9574         lt_prog_compiler_static='-static'
9575         ;;
9576       # Lahey Fortran 8.1.
9577       lf95*)
9578         lt_prog_compiler_wl='-Wl,'
9579         lt_prog_compiler_pic='--shared'
9580         lt_prog_compiler_static='--static'
9581         ;;
9582       pgcc* | pgf77* | pgf90* | pgf95*)
9583         # Portland Group compilers (*not* the Pentium gcc compiler,
9584         # which looks to be a dead project)
9585         lt_prog_compiler_wl='-Wl,'
9586         lt_prog_compiler_pic='-fpic'
9587         lt_prog_compiler_static='-Bstatic'
9588         ;;
9589       ccc*)
9590         lt_prog_compiler_wl='-Wl,'
9591         # All Alpha code is PIC.
9592         lt_prog_compiler_static='-non_shared'
9593         ;;
9594       xl*)
9595         # IBM XL C 8.0/Fortran 10.1 on PPC
9596         lt_prog_compiler_wl='-Wl,'
9597         lt_prog_compiler_pic='-qpic'
9598         lt_prog_compiler_static='-qstaticlink'
9599         ;;
9600       *)
9601         case `$CC -V 2>&1 | sed 5q` in
9602         *Sun\ C*)
9603           # Sun C 5.9
9604           lt_prog_compiler_pic='-KPIC'
9605           lt_prog_compiler_static='-Bstatic'
9606           lt_prog_compiler_wl='-Wl,'
9607           ;;
9608         *Sun\ F*)
9609           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9610           lt_prog_compiler_pic='-KPIC'
9611           lt_prog_compiler_static='-Bstatic'
9612           lt_prog_compiler_wl=''
9613           ;;
9614         esac
9615         ;;
9616       esac
9617       ;;
9618
9619     newsos6)
9620       lt_prog_compiler_pic='-KPIC'
9621       lt_prog_compiler_static='-Bstatic'
9622       ;;
9623
9624     *nto* | *qnx*)
9625       # QNX uses GNU C++, but need to define -shared option too, otherwise
9626       # it will coredump.
9627       lt_prog_compiler_pic='-fPIC -shared'
9628       ;;
9629
9630     osf3* | osf4* | osf5*)
9631       lt_prog_compiler_wl='-Wl,'
9632       # All OSF/1 code is PIC.
9633       lt_prog_compiler_static='-non_shared'
9634       ;;
9635
9636     rdos*)
9637       lt_prog_compiler_static='-non_shared'
9638       ;;
9639
9640     solaris*)
9641       lt_prog_compiler_pic='-KPIC'
9642       lt_prog_compiler_static='-Bstatic'
9643       case $cc_basename in
9644       f77* | f90* | f95*)
9645         lt_prog_compiler_wl='-Qoption ld ';;
9646       *)
9647         lt_prog_compiler_wl='-Wl,';;
9648       esac
9649       ;;
9650
9651     sunos4*)
9652       lt_prog_compiler_wl='-Qoption ld '
9653       lt_prog_compiler_pic='-PIC'
9654       lt_prog_compiler_static='-Bstatic'
9655       ;;
9656
9657     sysv4 | sysv4.2uw2* | sysv4.3*)
9658       lt_prog_compiler_wl='-Wl,'
9659       lt_prog_compiler_pic='-KPIC'
9660       lt_prog_compiler_static='-Bstatic'
9661       ;;
9662
9663     sysv4*MP*)
9664       if test -d /usr/nec ;then
9665         lt_prog_compiler_pic='-Kconform_pic'
9666         lt_prog_compiler_static='-Bstatic'
9667       fi
9668       ;;
9669
9670     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9671       lt_prog_compiler_wl='-Wl,'
9672       lt_prog_compiler_pic='-KPIC'
9673       lt_prog_compiler_static='-Bstatic'
9674       ;;
9675
9676     unicos*)
9677       lt_prog_compiler_wl='-Wl,'
9678       lt_prog_compiler_can_build_shared=no
9679       ;;
9680
9681     uts4*)
9682       lt_prog_compiler_pic='-pic'
9683       lt_prog_compiler_static='-Bstatic'
9684       ;;
9685
9686     *)
9687       lt_prog_compiler_can_build_shared=no
9688       ;;
9689     esac
9690   fi
9691
9692 case $host_os in
9693   # For platforms which do not support PIC, -DPIC is meaningless:
9694   *djgpp*)
9695     lt_prog_compiler_pic=
9696     ;;
9697   *)
9698     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9699     ;;
9700 esac
9701 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9702 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9703
9704
9705
9706
9707
9708
9709 #
9710 # Check to make sure the PIC flag actually works.
9711 #
9712 if test -n "$lt_prog_compiler_pic"; then
9713   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9714 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9715 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9716   echo $ECHO_N "(cached) $ECHO_C" >&6
9717 else
9718   lt_cv_prog_compiler_pic_works=no
9719    ac_outfile=conftest.$ac_objext
9720    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9721    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9722    # Insert the option either (1) after the last *FLAGS variable, or
9723    # (2) before a word containing "conftest.", or (3) at the end.
9724    # Note that $ac_compile itself does not contain backslashes and begins
9725    # with a dollar sign (not a hyphen), so the echo should work correctly.
9726    # The option is referenced via a variable to avoid confusing sed.
9727    lt_compile=`echo "$ac_compile" | $SED \
9728    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9729    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9730    -e 's:$: $lt_compiler_flag:'`
9731    (eval echo "\"\$as_me:9731: $lt_compile\"" >&5)
9732    (eval "$lt_compile" 2>conftest.err)
9733    ac_status=$?
9734    cat conftest.err >&5
9735    echo "$as_me:9735: \$? = $ac_status" >&5
9736    if (exit $ac_status) && test -s "$ac_outfile"; then
9737      # The compiler can only warn and ignore the option if not recognized
9738      # So say no if there are warnings other than the usual output.
9739      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9740      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9741      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9742        lt_cv_prog_compiler_pic_works=yes
9743      fi
9744    fi
9745    $RM conftest*
9746
9747 fi
9748 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9749 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9750
9751 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9752     case $lt_prog_compiler_pic in
9753      "" | " "*) ;;
9754      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9755      esac
9756 else
9757     lt_prog_compiler_pic=
9758      lt_prog_compiler_can_build_shared=no
9759 fi
9760
9761 fi
9762
9763
9764
9765
9766
9767
9768 #
9769 # Check to make sure the static flag actually works.
9770 #
9771 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9772 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9773 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9774 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9775   echo $ECHO_N "(cached) $ECHO_C" >&6
9776 else
9777   lt_cv_prog_compiler_static_works=no
9778    save_LDFLAGS="$LDFLAGS"
9779    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9780    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9781    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9782      # The linker can only warn and ignore the option if not recognized
9783      # So say no if there are warnings
9784      if test -s conftest.err; then
9785        # Append any errors to the config.log.
9786        cat conftest.err 1>&5
9787        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9788        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9789        if diff conftest.exp conftest.er2 >/dev/null; then
9790          lt_cv_prog_compiler_static_works=yes
9791        fi
9792      else
9793        lt_cv_prog_compiler_static_works=yes
9794      fi
9795    fi
9796    $RM -r conftest*
9797    LDFLAGS="$save_LDFLAGS"
9798
9799 fi
9800 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9801 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9802
9803 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9804     :
9805 else
9806     lt_prog_compiler_static=
9807 fi
9808
9809
9810
9811
9812
9813
9814
9815   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9816 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9817 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9818   echo $ECHO_N "(cached) $ECHO_C" >&6
9819 else
9820   lt_cv_prog_compiler_c_o=no
9821    $RM -r conftest 2>/dev/null
9822    mkdir conftest
9823    cd conftest
9824    mkdir out
9825    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9826
9827    lt_compiler_flag="-o out/conftest2.$ac_objext"
9828    # Insert the option either (1) after the last *FLAGS variable, or
9829    # (2) before a word containing "conftest.", or (3) at the end.
9830    # Note that $ac_compile itself does not contain backslashes and begins
9831    # with a dollar sign (not a hyphen), so the echo should work correctly.
9832    lt_compile=`echo "$ac_compile" | $SED \
9833    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9834    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9835    -e 's:$: $lt_compiler_flag:'`
9836    (eval echo "\"\$as_me:9836: $lt_compile\"" >&5)
9837    (eval "$lt_compile" 2>out/conftest.err)
9838    ac_status=$?
9839    cat out/conftest.err >&5
9840    echo "$as_me:9840: \$? = $ac_status" >&5
9841    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9842    then
9843      # The compiler can only warn and ignore the option if not recognized
9844      # So say no if there are warnings
9845      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9846      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9847      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9848        lt_cv_prog_compiler_c_o=yes
9849      fi
9850    fi
9851    chmod u+w . 2>&5
9852    $RM conftest*
9853    # SGI C++ compiler will create directory out/ii_files/ for
9854    # template instantiation
9855    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9856    $RM out/* && rmdir out
9857    cd ..
9858    $RM -r conftest
9859    $RM conftest*
9860
9861 fi
9862 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9863 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9864
9865
9866
9867
9868
9869
9870   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9871 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9872 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9873   echo $ECHO_N "(cached) $ECHO_C" >&6
9874 else
9875   lt_cv_prog_compiler_c_o=no
9876    $RM -r conftest 2>/dev/null
9877    mkdir conftest
9878    cd conftest
9879    mkdir out
9880    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9881
9882    lt_compiler_flag="-o out/conftest2.$ac_objext"
9883    # Insert the option either (1) after the last *FLAGS variable, or
9884    # (2) before a word containing "conftest.", or (3) at the end.
9885    # Note that $ac_compile itself does not contain backslashes and begins
9886    # with a dollar sign (not a hyphen), so the echo should work correctly.
9887    lt_compile=`echo "$ac_compile" | $SED \
9888    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9889    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9890    -e 's:$: $lt_compiler_flag:'`
9891    (eval echo "\"\$as_me:9891: $lt_compile\"" >&5)
9892    (eval "$lt_compile" 2>out/conftest.err)
9893    ac_status=$?
9894    cat out/conftest.err >&5
9895    echo "$as_me:9895: \$? = $ac_status" >&5
9896    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9897    then
9898      # The compiler can only warn and ignore the option if not recognized
9899      # So say no if there are warnings
9900      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9901      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9902      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9903        lt_cv_prog_compiler_c_o=yes
9904      fi
9905    fi
9906    chmod u+w . 2>&5
9907    $RM conftest*
9908    # SGI C++ compiler will create directory out/ii_files/ for
9909    # template instantiation
9910    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9911    $RM out/* && rmdir out
9912    cd ..
9913    $RM -r conftest
9914    $RM conftest*
9915
9916 fi
9917 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9918 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9919
9920
9921
9922
9923 hard_links="nottested"
9924 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9925   # do not overwrite the value of need_locks provided by the user
9926   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9927 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9928   hard_links=yes
9929   $RM conftest*
9930   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9931   touch conftest.a
9932   ln conftest.a conftest.b 2>&5 || hard_links=no
9933   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9934   { echo "$as_me:$LINENO: result: $hard_links" >&5
9935 echo "${ECHO_T}$hard_links" >&6; }
9936   if test "$hard_links" = no; then
9937     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9938 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9939     need_locks=warn
9940   fi
9941 else
9942   need_locks=no
9943 fi
9944
9945
9946
9947
9948
9949
9950   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9951 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9952
9953   runpath_var=
9954   allow_undefined_flag=
9955   always_export_symbols=no
9956   archive_cmds=
9957   archive_expsym_cmds=
9958   compiler_needs_object=no
9959   enable_shared_with_static_runtimes=no
9960   export_dynamic_flag_spec=
9961   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9962   hardcode_automatic=no
9963   hardcode_direct=no
9964   hardcode_direct_absolute=no
9965   hardcode_libdir_flag_spec=
9966   hardcode_libdir_flag_spec_ld=
9967   hardcode_libdir_separator=
9968   hardcode_minus_L=no
9969   hardcode_shlibpath_var=unsupported
9970   inherit_rpath=no
9971   link_all_deplibs=unknown
9972   module_cmds=
9973   module_expsym_cmds=
9974   old_archive_from_new_cmds=
9975   old_archive_from_expsyms_cmds=
9976   thread_safe_flag_spec=
9977   whole_archive_flag_spec=
9978   # include_expsyms should be a list of space-separated symbols to be *always*
9979   # included in the symbol list
9980   include_expsyms=
9981   # exclude_expsyms can be an extended regexp of symbols to exclude
9982   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9983   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9984   # as well as any symbol that contains `d'.
9985   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9986   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9987   # platforms (ab)use it in PIC code, but their linkers get confused if
9988   # the symbol is explicitly referenced.  Since portable code cannot
9989   # rely on this symbol name, it's probably fine to never include it in
9990   # preloaded symbol tables.
9991   # Exclude shared library initialization/finalization symbols.
9992   extract_expsyms_cmds=
9993
9994   case $host_os in
9995   cygwin* | mingw* | pw32* | cegcc*)
9996     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9997     # When not using gcc, we currently assume that we are using
9998     # Microsoft Visual C++.
9999     if test "$GCC" != yes; then
10000       with_gnu_ld=no
10001     fi
10002     ;;
10003   interix*)
10004     # we just hope/assume this is gcc and not c89 (= MSVC++)
10005     with_gnu_ld=yes
10006     ;;
10007   openbsd*)
10008     with_gnu_ld=no
10009     ;;
10010   esac
10011
10012   ld_shlibs=yes
10013   if test "$with_gnu_ld" = yes; then
10014     # If archive_cmds runs LD, not CC, wlarc should be empty
10015     wlarc='${wl}'
10016
10017     # Set some defaults for GNU ld with shared library support. These
10018     # are reset later if shared libraries are not supported. Putting them
10019     # here allows them to be overridden if necessary.
10020     runpath_var=LD_RUN_PATH
10021     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10022     export_dynamic_flag_spec='${wl}--export-dynamic'
10023     # ancient GNU ld didn't support --whole-archive et. al.
10024     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10025       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10026     else
10027       whole_archive_flag_spec=
10028     fi
10029     supports_anon_versioning=no
10030     case `$LD -v 2>&1` in
10031       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10032       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10033       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10034       *\ 2.11.*) ;; # other 2.11 versions
10035       *) supports_anon_versioning=yes ;;
10036     esac
10037
10038     # See if GNU ld supports shared libraries.
10039     case $host_os in
10040     aix[3-9]*)
10041       # On AIX/PPC, the GNU linker is very broken
10042       if test "$host_cpu" != ia64; then
10043         ld_shlibs=no
10044         cat <<_LT_EOF 1>&2
10045
10046 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10047 *** to be unable to reliably create shared libraries on AIX.
10048 *** Therefore, libtool is disabling shared libraries support.  If you
10049 *** really care for shared libraries, you may want to modify your PATH
10050 *** so that a non-GNU linker is found, and then restart.
10051
10052 _LT_EOF
10053       fi
10054       ;;
10055
10056     amigaos*)
10057       case $host_cpu in
10058       powerpc)
10059             # see comment about AmigaOS4 .so support
10060             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10061             archive_expsym_cmds=''
10062         ;;
10063       m68k)
10064             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)'
10065             hardcode_libdir_flag_spec='-L$libdir'
10066             hardcode_minus_L=yes
10067         ;;
10068       esac
10069       ;;
10070
10071     beos*)
10072       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10073         allow_undefined_flag=unsupported
10074         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10075         # support --undefined.  This deserves some investigation.  FIXME
10076         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10077       else
10078         ld_shlibs=no
10079       fi
10080       ;;
10081
10082     cygwin* | mingw* | pw32* | cegcc*)
10083       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10084       # as there is no search path for DLLs.
10085       hardcode_libdir_flag_spec='-L$libdir'
10086       allow_undefined_flag=unsupported
10087       always_export_symbols=no
10088       enable_shared_with_static_runtimes=yes
10089       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10090
10091       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10092         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10093         # If the export-symbols file already is a .def file (1st line
10094         # is EXPORTS), use it as is; otherwise, prepend...
10095         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10096           cp $export_symbols $output_objdir/$soname.def;
10097         else
10098           echo EXPORTS > $output_objdir/$soname.def;
10099           cat $export_symbols >> $output_objdir/$soname.def;
10100         fi~
10101         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10102       else
10103         ld_shlibs=no
10104       fi
10105       ;;
10106
10107     interix[3-9]*)
10108       hardcode_direct=no
10109       hardcode_shlibpath_var=no
10110       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10111       export_dynamic_flag_spec='${wl}-E'
10112       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10113       # Instead, shared libraries are loaded at an image base (0x10000000 by
10114       # default) and relocated if they conflict, which is a slow very memory
10115       # consuming and fragmenting process.  To avoid this, we pick a random,
10116       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10117       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10118       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10119       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'
10120       ;;
10121
10122     gnu* | linux* | tpf* | k*bsd*-gnu)
10123       tmp_diet=no
10124       if test "$host_os" = linux-dietlibc; then
10125         case $cc_basename in
10126           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10127         esac
10128       fi
10129       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10130          && test "$tmp_diet" = no
10131       then
10132         tmp_addflag=
10133         tmp_sharedflag='-shared'
10134         case $cc_basename,$host_cpu in
10135         pgcc*)                          # Portland Group C compiler
10136           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'
10137           tmp_addflag=' $pic_flag'
10138           ;;
10139         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10140           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'
10141           tmp_addflag=' $pic_flag -Mnomain' ;;
10142         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10143           tmp_addflag=' -i_dynamic' ;;
10144         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10145           tmp_addflag=' -i_dynamic -nofor_main' ;;
10146         ifc* | ifort*)                  # Intel Fortran compiler
10147           tmp_addflag=' -nofor_main' ;;
10148         lf95*)                          # Lahey Fortran 8.1
10149           whole_archive_flag_spec=
10150           tmp_sharedflag='--shared' ;;
10151         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10152           tmp_sharedflag='-qmkshrobj'
10153           tmp_addflag= ;;
10154         esac
10155         case `$CC -V 2>&1 | sed 5q` in
10156         *Sun\ C*)                       # Sun C 5.9
10157           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'
10158           compiler_needs_object=yes
10159           tmp_sharedflag='-G' ;;
10160         *Sun\ F*)                       # Sun Fortran 8.3
10161           tmp_sharedflag='-G' ;;
10162         esac
10163         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10164
10165         if test "x$supports_anon_versioning" = xyes; then
10166           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10167             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10168             echo "local: *; };" >> $output_objdir/$libname.ver~
10169             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10170         fi
10171
10172         case $cc_basename in
10173         xlf*)
10174           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10175           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10176           hardcode_libdir_flag_spec=
10177           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10178           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10179           if test "x$supports_anon_versioning" = xyes; then
10180             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10181               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10182               echo "local: *; };" >> $output_objdir/$libname.ver~
10183               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10184           fi
10185           ;;
10186         esac
10187       else
10188         ld_shlibs=no
10189       fi
10190       ;;
10191
10192     netbsd*)
10193       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10194         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10195         wlarc=
10196       else
10197         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10198         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10199       fi
10200       ;;
10201
10202     solaris*)
10203       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10204         ld_shlibs=no
10205         cat <<_LT_EOF 1>&2
10206
10207 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10208 *** create shared libraries on Solaris systems.  Therefore, libtool
10209 *** is disabling shared libraries support.  We urge you to upgrade GNU
10210 *** binutils to release 2.9.1 or newer.  Another option is to modify
10211 *** your PATH or compiler configuration so that the native linker is
10212 *** used, and then restart.
10213
10214 _LT_EOF
10215       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10216         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10217         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10218       else
10219         ld_shlibs=no
10220       fi
10221       ;;
10222
10223     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10224       case `$LD -v 2>&1` in
10225         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10226         ld_shlibs=no
10227         cat <<_LT_EOF 1>&2
10228
10229 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10230 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10231 *** is disabling shared libraries support.  We urge you to upgrade GNU
10232 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10233 *** your PATH or compiler configuration so that the native linker is
10234 *** used, and then restart.
10235
10236 _LT_EOF
10237         ;;
10238         *)
10239           # For security reasons, it is highly recommended that you always
10240           # use absolute paths for naming shared libraries, and exclude the
10241           # DT_RUNPATH tag from executables and libraries.  But doing so
10242           # requires that you compile everything twice, which is a pain.
10243           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10244             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10245             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10246             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10247           else
10248             ld_shlibs=no
10249           fi
10250         ;;
10251       esac
10252       ;;
10253
10254     sunos4*)
10255       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10256       wlarc=
10257       hardcode_direct=yes
10258       hardcode_shlibpath_var=no
10259       ;;
10260
10261     *)
10262       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10263         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10264         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10265       else
10266         ld_shlibs=no
10267       fi
10268       ;;
10269     esac
10270
10271     if test "$ld_shlibs" = no; then
10272       runpath_var=
10273       hardcode_libdir_flag_spec=
10274       export_dynamic_flag_spec=
10275       whole_archive_flag_spec=
10276     fi
10277   else
10278     # PORTME fill in a description of your system's linker (not GNU ld)
10279     case $host_os in
10280     aix3*)
10281       allow_undefined_flag=unsupported
10282       always_export_symbols=yes
10283       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'
10284       # Note: this linker hardcodes the directories in LIBPATH if there
10285       # are no directories specified by -L.
10286       hardcode_minus_L=yes
10287       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10288         # Neither direct hardcoding nor static linking is supported with a
10289         # broken collect2.
10290         hardcode_direct=unsupported
10291       fi
10292       ;;
10293
10294     aix[4-9]*)
10295       if test "$host_cpu" = ia64; then
10296         # On IA64, the linker does run time linking by default, so we don't
10297         # have to do anything special.
10298         aix_use_runtimelinking=no
10299         exp_sym_flag='-Bexport'
10300         no_entry_flag=""
10301       else
10302         # If we're using GNU nm, then we don't want the "-C" option.
10303         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10304         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10305           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'
10306         else
10307           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'
10308         fi
10309         aix_use_runtimelinking=no
10310
10311         # Test if we are trying to use run time linking or normal
10312         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10313         # need to do runtime linking.
10314         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10315           for ld_flag in $LDFLAGS; do
10316           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10317             aix_use_runtimelinking=yes
10318             break
10319           fi
10320           done
10321           ;;
10322         esac
10323
10324         exp_sym_flag='-bexport'
10325         no_entry_flag='-bnoentry'
10326       fi
10327
10328       # When large executables or shared objects are built, AIX ld can
10329       # have problems creating the table of contents.  If linking a library
10330       # or program results in "error TOC overflow" add -mminimal-toc to
10331       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10332       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10333
10334       archive_cmds=''
10335       hardcode_direct=yes
10336       hardcode_direct_absolute=yes
10337       hardcode_libdir_separator=':'
10338       link_all_deplibs=yes
10339       file_list_spec='${wl}-f,'
10340
10341       if test "$GCC" = yes; then
10342         case $host_os in aix4.[012]|aix4.[012].*)
10343         # We only want to do this on AIX 4.2 and lower, the check
10344         # below for broken collect2 doesn't work under 4.3+
10345           collect2name=`${CC} -print-prog-name=collect2`
10346           if test -f "$collect2name" &&
10347            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10348           then
10349           # We have reworked collect2
10350           :
10351           else
10352           # We have old collect2
10353           hardcode_direct=unsupported
10354           # It fails to find uninstalled libraries when the uninstalled
10355           # path is not listed in the libpath.  Setting hardcode_minus_L
10356           # to unsupported forces relinking
10357           hardcode_minus_L=yes
10358           hardcode_libdir_flag_spec='-L$libdir'
10359           hardcode_libdir_separator=
10360           fi
10361           ;;
10362         esac
10363         shared_flag='-shared'
10364         if test "$aix_use_runtimelinking" = yes; then
10365           shared_flag="$shared_flag "'${wl}-G'
10366         fi
10367       else
10368         # not using gcc
10369         if test "$host_cpu" = ia64; then
10370         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10371         # chokes on -Wl,-G. The following line is correct:
10372           shared_flag='-G'
10373         else
10374           if test "$aix_use_runtimelinking" = yes; then
10375             shared_flag='${wl}-G'
10376           else
10377             shared_flag='${wl}-bM:SRE'
10378           fi
10379         fi
10380       fi
10381
10382       export_dynamic_flag_spec='${wl}-bexpall'
10383       # It seems that -bexpall does not export symbols beginning with
10384       # underscore (_), so it is better to generate a list of symbols to export.
10385       always_export_symbols=yes
10386       if test "$aix_use_runtimelinking" = yes; then
10387         # Warning - without using the other runtime loading flags (-brtl),
10388         # -berok will link without error, but may produce a broken library.
10389         allow_undefined_flag='-berok'
10390         # Determine the default libpath from the value encoded in an
10391         # empty executable.
10392         cat >conftest.$ac_ext <<_ACEOF
10393 /* confdefs.h.  */
10394 _ACEOF
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h.  */
10398
10399 int
10400 main ()
10401 {
10402
10403   ;
10404   return 0;
10405 }
10406 _ACEOF
10407 rm -f conftest.$ac_objext conftest$ac_exeext
10408 if { (ac_try="$ac_link"
10409 case "(($ac_try" in
10410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10411   *) ac_try_echo=$ac_try;;
10412 esac
10413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10414   (eval "$ac_link") 2>conftest.er1
10415   ac_status=$?
10416   grep -v '^ *+' conftest.er1 >conftest.err
10417   rm -f conftest.er1
10418   cat conftest.err >&5
10419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420   (exit $ac_status); } && {
10421          test -z "$ac_c_werror_flag" ||
10422          test ! -s conftest.err
10423        } && test -s conftest$ac_exeext &&
10424        $as_test_x conftest$ac_exeext; then
10425
10426 lt_aix_libpath_sed='
10427     /Import File Strings/,/^$/ {
10428         /^0/ {
10429             s/^0  *\(.*\)$/\1/
10430             p
10431         }
10432     }'
10433 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10434 # Check for a 64-bit object if we didn't find anything.
10435 if test -z "$aix_libpath"; then
10436   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10437 fi
10438 else
10439   echo "$as_me: failed program was:" >&5
10440 sed 's/^/| /' conftest.$ac_ext >&5
10441
10442
10443 fi
10444
10445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10446       conftest$ac_exeext conftest.$ac_ext
10447 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10448
10449         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10450         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"
10451       else
10452         if test "$host_cpu" = ia64; then
10453           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10454           allow_undefined_flag="-z nodefs"
10455           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"
10456         else
10457          # Determine the default libpath from the value encoded in an
10458          # empty executable.
10459          cat >conftest.$ac_ext <<_ACEOF
10460 /* confdefs.h.  */
10461 _ACEOF
10462 cat confdefs.h >>conftest.$ac_ext
10463 cat >>conftest.$ac_ext <<_ACEOF
10464 /* end confdefs.h.  */
10465
10466 int
10467 main ()
10468 {
10469
10470   ;
10471   return 0;
10472 }
10473 _ACEOF
10474 rm -f conftest.$ac_objext conftest$ac_exeext
10475 if { (ac_try="$ac_link"
10476 case "(($ac_try" in
10477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478   *) ac_try_echo=$ac_try;;
10479 esac
10480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10481   (eval "$ac_link") 2>conftest.er1
10482   ac_status=$?
10483   grep -v '^ *+' conftest.er1 >conftest.err
10484   rm -f conftest.er1
10485   cat conftest.err >&5
10486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487   (exit $ac_status); } && {
10488          test -z "$ac_c_werror_flag" ||
10489          test ! -s conftest.err
10490        } && test -s conftest$ac_exeext &&
10491        $as_test_x conftest$ac_exeext; then
10492
10493 lt_aix_libpath_sed='
10494     /Import File Strings/,/^$/ {
10495         /^0/ {
10496             s/^0  *\(.*\)$/\1/
10497             p
10498         }
10499     }'
10500 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10501 # Check for a 64-bit object if we didn't find anything.
10502 if test -z "$aix_libpath"; then
10503   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10504 fi
10505 else
10506   echo "$as_me: failed program was:" >&5
10507 sed 's/^/| /' conftest.$ac_ext >&5
10508
10509
10510 fi
10511
10512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10513       conftest$ac_exeext conftest.$ac_ext
10514 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10515
10516          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10517           # Warning - without using the other run time loading flags,
10518           # -berok will link without error, but may produce a broken library.
10519           no_undefined_flag=' ${wl}-bernotok'
10520           allow_undefined_flag=' ${wl}-berok'
10521           # Exported symbols can be pulled into shared objects from archives
10522           whole_archive_flag_spec='$convenience'
10523           archive_cmds_need_lc=yes
10524           # This is similar to how AIX traditionally builds its shared libraries.
10525           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'
10526         fi
10527       fi
10528       ;;
10529
10530     amigaos*)
10531       case $host_cpu in
10532       powerpc)
10533             # see comment about AmigaOS4 .so support
10534             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10535             archive_expsym_cmds=''
10536         ;;
10537       m68k)
10538             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)'
10539             hardcode_libdir_flag_spec='-L$libdir'
10540             hardcode_minus_L=yes
10541         ;;
10542       esac
10543       ;;
10544
10545     bsdi[45]*)
10546       export_dynamic_flag_spec=-rdynamic
10547       ;;
10548
10549     cygwin* | mingw* | pw32* | cegcc*)
10550       # When not using gcc, we currently assume that we are using
10551       # Microsoft Visual C++.
10552       # hardcode_libdir_flag_spec is actually meaningless, as there is
10553       # no search path for DLLs.
10554       hardcode_libdir_flag_spec=' '
10555       allow_undefined_flag=unsupported
10556       # Tell ltmain to make .lib files, not .a files.
10557       libext=lib
10558       # Tell ltmain to make .dll files, not .so files.
10559       shrext_cmds=".dll"
10560       # FIXME: Setting linknames here is a bad hack.
10561       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10562       # The linker will automatically build a .lib file if we build a DLL.
10563       old_archive_from_new_cmds='true'
10564       # FIXME: Should let the user specify the lib program.
10565       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10566       fix_srcfile_path='`cygpath -w "$srcfile"`'
10567       enable_shared_with_static_runtimes=yes
10568       ;;
10569
10570     darwin* | rhapsody*)
10571
10572
10573   archive_cmds_need_lc=no
10574   hardcode_direct=no
10575   hardcode_automatic=yes
10576   hardcode_shlibpath_var=unsupported
10577   whole_archive_flag_spec=''
10578   link_all_deplibs=yes
10579   allow_undefined_flag="$_lt_dar_allow_undefined"
10580   case $cc_basename in
10581      ifort*) _lt_dar_can_shared=yes ;;
10582      *) _lt_dar_can_shared=$GCC ;;
10583   esac
10584   if test "$_lt_dar_can_shared" = "yes"; then
10585     output_verbose_link_cmd=echo
10586     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10587     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10588     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}"
10589     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}"
10590
10591   else
10592   ld_shlibs=no
10593   fi
10594
10595       ;;
10596
10597     dgux*)
10598       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10599       hardcode_libdir_flag_spec='-L$libdir'
10600       hardcode_shlibpath_var=no
10601       ;;
10602
10603     freebsd1*)
10604       ld_shlibs=no
10605       ;;
10606
10607     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10608     # support.  Future versions do this automatically, but an explicit c++rt0.o
10609     # does not break anything, and helps significantly (at the cost of a little
10610     # extra space).
10611     freebsd2.2*)
10612       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10613       hardcode_libdir_flag_spec='-R$libdir'
10614       hardcode_direct=yes
10615       hardcode_shlibpath_var=no
10616       ;;
10617
10618     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10619     freebsd2*)
10620       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10621       hardcode_direct=yes
10622       hardcode_minus_L=yes
10623       hardcode_shlibpath_var=no
10624       ;;
10625
10626     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10627     freebsd* | dragonfly*)
10628       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10629       hardcode_libdir_flag_spec='-R$libdir'
10630       hardcode_direct=yes
10631       hardcode_shlibpath_var=no
10632       ;;
10633
10634     hpux9*)
10635       if test "$GCC" = yes; then
10636         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'
10637       else
10638         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'
10639       fi
10640       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10641       hardcode_libdir_separator=:
10642       hardcode_direct=yes
10643
10644       # hardcode_minus_L: Not really in the search PATH,
10645       # but as the default location of the library.
10646       hardcode_minus_L=yes
10647       export_dynamic_flag_spec='${wl}-E'
10648       ;;
10649
10650     hpux10*)
10651       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10652         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10653       else
10654         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10655       fi
10656       if test "$with_gnu_ld" = no; then
10657         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10658         hardcode_libdir_flag_spec_ld='+b $libdir'
10659         hardcode_libdir_separator=:
10660         hardcode_direct=yes
10661         hardcode_direct_absolute=yes
10662         export_dynamic_flag_spec='${wl}-E'
10663         # hardcode_minus_L: Not really in the search PATH,
10664         # but as the default location of the library.
10665         hardcode_minus_L=yes
10666       fi
10667       ;;
10668
10669     hpux11*)
10670       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10671         case $host_cpu in
10672         hppa*64*)
10673           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10674           ;;
10675         ia64*)
10676           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10677           ;;
10678         *)
10679           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10680           ;;
10681         esac
10682       else
10683         case $host_cpu in
10684         hppa*64*)
10685           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10686           ;;
10687         ia64*)
10688           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10689           ;;
10690         *)
10691           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10692           ;;
10693         esac
10694       fi
10695       if test "$with_gnu_ld" = no; then
10696         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10697         hardcode_libdir_separator=:
10698
10699         case $host_cpu in
10700         hppa*64*|ia64*)
10701           hardcode_direct=no
10702           hardcode_shlibpath_var=no
10703           ;;
10704         *)
10705           hardcode_direct=yes
10706           hardcode_direct_absolute=yes
10707           export_dynamic_flag_spec='${wl}-E'
10708
10709           # hardcode_minus_L: Not really in the search PATH,
10710           # but as the default location of the library.
10711           hardcode_minus_L=yes
10712           ;;
10713         esac
10714       fi
10715       ;;
10716
10717     irix5* | irix6* | nonstopux*)
10718       if test "$GCC" = yes; then
10719         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'
10720         # Try to use the -exported_symbol ld option, if it does not
10721         # work, assume that -exports_file does not work either and
10722         # implicitly export all symbols.
10723         save_LDFLAGS="$LDFLAGS"
10724         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10725         cat >conftest.$ac_ext <<_ACEOF
10726 int foo(void) {}
10727 _ACEOF
10728 rm -f conftest.$ac_objext conftest$ac_exeext
10729 if { (ac_try="$ac_link"
10730 case "(($ac_try" in
10731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732   *) ac_try_echo=$ac_try;;
10733 esac
10734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735   (eval "$ac_link") 2>conftest.er1
10736   ac_status=$?
10737   grep -v '^ *+' conftest.er1 >conftest.err
10738   rm -f conftest.er1
10739   cat conftest.err >&5
10740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741   (exit $ac_status); } && {
10742          test -z "$ac_c_werror_flag" ||
10743          test ! -s conftest.err
10744        } && test -s conftest$ac_exeext &&
10745        $as_test_x conftest$ac_exeext; then
10746   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'
10747
10748 else
10749   echo "$as_me: failed program was:" >&5
10750 sed 's/^/| /' conftest.$ac_ext >&5
10751
10752
10753 fi
10754
10755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10756       conftest$ac_exeext conftest.$ac_ext
10757         LDFLAGS="$save_LDFLAGS"
10758       else
10759         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'
10760         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'
10761       fi
10762       archive_cmds_need_lc='no'
10763       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10764       hardcode_libdir_separator=:
10765       inherit_rpath=yes
10766       link_all_deplibs=yes
10767       ;;
10768
10769     netbsd*)
10770       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10771         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10772       else
10773         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10774       fi
10775       hardcode_libdir_flag_spec='-R$libdir'
10776       hardcode_direct=yes
10777       hardcode_shlibpath_var=no
10778       ;;
10779
10780     newsos6)
10781       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10782       hardcode_direct=yes
10783       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10784       hardcode_libdir_separator=:
10785       hardcode_shlibpath_var=no
10786       ;;
10787
10788     *nto* | *qnx*)
10789       ;;
10790
10791     openbsd*)
10792       if test -f /usr/libexec/ld.so; then
10793         hardcode_direct=yes
10794         hardcode_shlibpath_var=no
10795         hardcode_direct_absolute=yes
10796         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10797           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10798           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10799           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10800           export_dynamic_flag_spec='${wl}-E'
10801         else
10802           case $host_os in
10803            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10804              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10805              hardcode_libdir_flag_spec='-R$libdir'
10806              ;;
10807            *)
10808              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10809              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10810              ;;
10811           esac
10812         fi
10813       else
10814         ld_shlibs=no
10815       fi
10816       ;;
10817
10818     os2*)
10819       hardcode_libdir_flag_spec='-L$libdir'
10820       hardcode_minus_L=yes
10821       allow_undefined_flag=unsupported
10822       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'
10823       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10824       ;;
10825
10826     osf3*)
10827       if test "$GCC" = yes; then
10828         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10829         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'
10830       else
10831         allow_undefined_flag=' -expect_unresolved \*'
10832         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'
10833       fi
10834       archive_cmds_need_lc='no'
10835       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10836       hardcode_libdir_separator=:
10837       ;;
10838
10839     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10840       if test "$GCC" = yes; then
10841         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10842         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'
10843         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10844       else
10845         allow_undefined_flag=' -expect_unresolved \*'
10846         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'
10847         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~
10848         $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'
10849
10850         # Both c and cxx compiler support -rpath directly
10851         hardcode_libdir_flag_spec='-rpath $libdir'
10852       fi
10853       archive_cmds_need_lc='no'
10854       hardcode_libdir_separator=:
10855       ;;
10856
10857     solaris*)
10858       no_undefined_flag=' -z defs'
10859       if test "$GCC" = yes; then
10860         wlarc='${wl}'
10861         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10862         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10863           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10864       else
10865         case `$CC -V 2>&1` in
10866         *"Compilers 5.0"*)
10867           wlarc=''
10868           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10869           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10870           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10871           ;;
10872         *)
10873           wlarc='${wl}'
10874           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10875           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10876           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10877           ;;
10878         esac
10879       fi
10880       hardcode_libdir_flag_spec='-R$libdir'
10881       hardcode_shlibpath_var=no
10882       case $host_os in
10883       solaris2.[0-5] | solaris2.[0-5].*) ;;
10884       *)
10885         # The compiler driver will combine and reorder linker options,
10886         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10887         # but is careful enough not to reorder.
10888         # Supported since Solaris 2.6 (maybe 2.5.1?)
10889         if test "$GCC" = yes; then
10890           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10891         else
10892           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10893         fi
10894         ;;
10895       esac
10896       link_all_deplibs=yes
10897       ;;
10898
10899     sunos4*)
10900       if test "x$host_vendor" = xsequent; then
10901         # Use $CC to link under sequent, because it throws in some extra .o
10902         # files that make .init and .fini sections work.
10903         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10904       else
10905         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10906       fi
10907       hardcode_libdir_flag_spec='-L$libdir'
10908       hardcode_direct=yes
10909       hardcode_minus_L=yes
10910       hardcode_shlibpath_var=no
10911       ;;
10912
10913     sysv4)
10914       case $host_vendor in
10915         sni)
10916           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10917           hardcode_direct=yes # is this really true???
10918         ;;
10919         siemens)
10920           ## LD is ld it makes a PLAMLIB
10921           ## CC just makes a GrossModule.
10922           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10923           reload_cmds='$CC -r -o $output$reload_objs'
10924           hardcode_direct=no
10925         ;;
10926         motorola)
10927           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10928           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10929         ;;
10930       esac
10931       runpath_var='LD_RUN_PATH'
10932       hardcode_shlibpath_var=no
10933       ;;
10934
10935     sysv4.3*)
10936       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10937       hardcode_shlibpath_var=no
10938       export_dynamic_flag_spec='-Bexport'
10939       ;;
10940
10941     sysv4*MP*)
10942       if test -d /usr/nec; then
10943         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10944         hardcode_shlibpath_var=no
10945         runpath_var=LD_RUN_PATH
10946         hardcode_runpath_var=yes
10947         ld_shlibs=yes
10948       fi
10949       ;;
10950
10951     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10952       no_undefined_flag='${wl}-z,text'
10953       archive_cmds_need_lc=no
10954       hardcode_shlibpath_var=no
10955       runpath_var='LD_RUN_PATH'
10956
10957       if test "$GCC" = yes; then
10958         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10959         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10960       else
10961         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10962         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10963       fi
10964       ;;
10965
10966     sysv5* | sco3.2v5* | sco5v6*)
10967       # Note: We can NOT use -z defs as we might desire, because we do not
10968       # link with -lc, and that would cause any symbols used from libc to
10969       # always be unresolved, which means just about no library would
10970       # ever link correctly.  If we're not using GNU ld we use -z text
10971       # though, which does catch some bad symbols but isn't as heavy-handed
10972       # as -z defs.
10973       no_undefined_flag='${wl}-z,text'
10974       allow_undefined_flag='${wl}-z,nodefs'
10975       archive_cmds_need_lc=no
10976       hardcode_shlibpath_var=no
10977       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10978       hardcode_libdir_separator=':'
10979       link_all_deplibs=yes
10980       export_dynamic_flag_spec='${wl}-Bexport'
10981       runpath_var='LD_RUN_PATH'
10982
10983       if test "$GCC" = yes; then
10984         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10985         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10986       else
10987         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10988         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10989       fi
10990       ;;
10991
10992     uts4*)
10993       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10994       hardcode_libdir_flag_spec='-L$libdir'
10995       hardcode_shlibpath_var=no
10996       ;;
10997
10998     *)
10999       ld_shlibs=no
11000       ;;
11001     esac
11002
11003     if test x$host_vendor = xsni; then
11004       case $host in
11005       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11006         export_dynamic_flag_spec='${wl}-Blargedynsym'
11007         ;;
11008       esac
11009     fi
11010   fi
11011
11012 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11013 echo "${ECHO_T}$ld_shlibs" >&6; }
11014 test "$ld_shlibs" = no && can_build_shared=no
11015
11016 with_gnu_ld=$with_gnu_ld
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032 #
11033 # Do we need to explicitly link libc?
11034 #
11035 case "x$archive_cmds_need_lc" in
11036 x|xyes)
11037   # Assume -lc should be added
11038   archive_cmds_need_lc=yes
11039
11040   if test "$enable_shared" = yes && test "$GCC" = yes; then
11041     case $archive_cmds in
11042     *'~'*)
11043       # FIXME: we may have to deal with multi-command sequences.
11044       ;;
11045     '$CC '*)
11046       # Test whether the compiler implicitly links with -lc since on some
11047       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11048       # to ld, don't add -lc before -lgcc.
11049       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11050 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11051       $RM conftest*
11052       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11053
11054       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11055   (eval $ac_compile) 2>&5
11056   ac_status=$?
11057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058   (exit $ac_status); } 2>conftest.err; then
11059         soname=conftest
11060         lib=conftest
11061         libobjs=conftest.$ac_objext
11062         deplibs=
11063         wl=$lt_prog_compiler_wl
11064         pic_flag=$lt_prog_compiler_pic
11065         compiler_flags=-v
11066         linker_flags=-v
11067         verstring=
11068         output_objdir=.
11069         libname=conftest
11070         lt_save_allow_undefined_flag=$allow_undefined_flag
11071         allow_undefined_flag=
11072         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11073   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11074   ac_status=$?
11075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076   (exit $ac_status); }
11077         then
11078           archive_cmds_need_lc=no
11079         else
11080           archive_cmds_need_lc=yes
11081         fi
11082         allow_undefined_flag=$lt_save_allow_undefined_flag
11083       else
11084         cat conftest.err 1>&5
11085       fi
11086       $RM conftest*
11087       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11088 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11089       ;;
11090     esac
11091   fi
11092   ;;
11093 esac
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11252 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11253
11254 if test "$GCC" = yes; then
11255   case $host_os in
11256     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11257     *) lt_awk_arg="/^libraries:/" ;;
11258   esac
11259   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11260   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11261     # if the path contains ";" then we assume it to be the separator
11262     # otherwise default to the standard path separator (i.e. ":") - it is
11263     # assumed that no part of a normal pathname contains ";" but that should
11264     # okay in the real world where ";" in dirpaths is itself problematic.
11265     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11266   else
11267     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11268   fi
11269   # Ok, now we have the path, separated by spaces, we can step through it
11270   # and add multilib dir if necessary.
11271   lt_tmp_lt_search_path_spec=
11272   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11273   for lt_sys_path in $lt_search_path_spec; do
11274     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11275       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11276     else
11277       test -d "$lt_sys_path" && \
11278         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11279     fi
11280   done
11281   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11282 BEGIN {RS=" "; FS="/|\n";} {
11283   lt_foo="";
11284   lt_count=0;
11285   for (lt_i = NF; lt_i > 0; lt_i--) {
11286     if ($lt_i != "" && $lt_i != ".") {
11287       if ($lt_i == "..") {
11288         lt_count++;
11289       } else {
11290         if (lt_count == 0) {
11291           lt_foo="/" $lt_i lt_foo;
11292         } else {
11293           lt_count--;
11294         }
11295       }
11296     }
11297   }
11298   if (lt_foo != "") { lt_freq[lt_foo]++; }
11299   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11300 }'`
11301   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11302 else
11303   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11304 fi
11305 library_names_spec=
11306 libname_spec='lib$name'
11307 soname_spec=
11308 shrext_cmds=".so"
11309 postinstall_cmds=
11310 postuninstall_cmds=
11311 finish_cmds=
11312 finish_eval=
11313 shlibpath_var=
11314 shlibpath_overrides_runpath=unknown
11315 version_type=none
11316 dynamic_linker="$host_os ld.so"
11317 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11318 need_lib_prefix=unknown
11319 hardcode_into_libs=no
11320
11321 # when you set need_version to no, make sure it does not cause -set_version
11322 # flags to be left without arguments
11323 need_version=unknown
11324
11325 case $host_os in
11326 aix3*)
11327   version_type=linux
11328   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11329   shlibpath_var=LIBPATH
11330
11331   # AIX 3 has no versioning support, so we append a major version to the name.
11332   soname_spec='${libname}${release}${shared_ext}$major'
11333   ;;
11334
11335 aix[4-9]*)
11336   version_type=linux
11337   need_lib_prefix=no
11338   need_version=no
11339   hardcode_into_libs=yes
11340   if test "$host_cpu" = ia64; then
11341     # AIX 5 supports IA64
11342     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11343     shlibpath_var=LD_LIBRARY_PATH
11344   else
11345     # With GCC up to 2.95.x, collect2 would create an import file
11346     # for dependence libraries.  The import file would start with
11347     # the line `#! .'.  This would cause the generated library to
11348     # depend on `.', always an invalid library.  This was fixed in
11349     # development snapshots of GCC prior to 3.0.
11350     case $host_os in
11351       aix4 | aix4.[01] | aix4.[01].*)
11352       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11353            echo ' yes '
11354            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11355         :
11356       else
11357         can_build_shared=no
11358       fi
11359       ;;
11360     esac
11361     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11362     # soname into executable. Probably we can add versioning support to
11363     # collect2, so additional links can be useful in future.
11364     if test "$aix_use_runtimelinking" = yes; then
11365       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11366       # instead of lib<name>.a to let people know that these are not
11367       # typical AIX shared libraries.
11368       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11369     else
11370       # We preserve .a as extension for shared libraries through AIX4.2
11371       # and later when we are not doing run time linking.
11372       library_names_spec='${libname}${release}.a $libname.a'
11373       soname_spec='${libname}${release}${shared_ext}$major'
11374     fi
11375     shlibpath_var=LIBPATH
11376   fi
11377   ;;
11378
11379 amigaos*)
11380   case $host_cpu in
11381   powerpc)
11382     # Since July 2007 AmigaOS4 officially supports .so libraries.
11383     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11384     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11385     ;;
11386   m68k)
11387     library_names_spec='$libname.ixlibrary $libname.a'
11388     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11389     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'
11390     ;;
11391   esac
11392   ;;
11393
11394 beos*)
11395   library_names_spec='${libname}${shared_ext}'
11396   dynamic_linker="$host_os ld.so"
11397   shlibpath_var=LIBRARY_PATH
11398   ;;
11399
11400 bsdi[45]*)
11401   version_type=linux
11402   need_version=no
11403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11404   soname_spec='${libname}${release}${shared_ext}$major'
11405   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11406   shlibpath_var=LD_LIBRARY_PATH
11407   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11408   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11409   # the default ld.so.conf also contains /usr/contrib/lib and
11410   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11411   # libtool to hard-code these into programs
11412   ;;
11413
11414 cygwin* | mingw* | pw32* | cegcc*)
11415   version_type=windows
11416   shrext_cmds=".dll"
11417   need_version=no
11418   need_lib_prefix=no
11419
11420   case $GCC,$host_os in
11421   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11422     library_names_spec='$libname.dll.a'
11423     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11424     postinstall_cmds='base_file=`basename \${file}`~
11425       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11426       dldir=$destdir/`dirname \$dlpath`~
11427       test -d \$dldir || mkdir -p \$dldir~
11428       $install_prog $dir/$dlname \$dldir/$dlname~
11429       chmod a+x \$dldir/$dlname~
11430       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11431         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11432       fi'
11433     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11434       dlpath=$dir/\$dldll~
11435        $RM \$dlpath'
11436     shlibpath_overrides_runpath=yes
11437
11438     case $host_os in
11439     cygwin*)
11440       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11441       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11442       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11443       ;;
11444     mingw* | cegcc*)
11445       # MinGW DLLs use traditional 'lib' prefix
11446       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11447       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11448       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11449         # It is most probably a Windows format PATH printed by
11450         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11451         # path with ; separators, and with drive letters. We can handle the
11452         # drive letters (cygwin fileutils understands them), so leave them,
11453         # especially as we might pass files found there to a mingw objdump,
11454         # which wouldn't understand a cygwinified path. Ahh.
11455         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11456       else
11457         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11458       fi
11459       ;;
11460     pw32*)
11461       # pw32 DLLs use 'pw' prefix rather than 'lib'
11462       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11463       ;;
11464     esac
11465     ;;
11466
11467   *)
11468     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11469     ;;
11470   esac
11471   dynamic_linker='Win32 ld.exe'
11472   # FIXME: first we should search . and the directory the executable is in
11473   shlibpath_var=PATH
11474   ;;
11475
11476 darwin* | rhapsody*)
11477   dynamic_linker="$host_os dyld"
11478   version_type=darwin
11479   need_lib_prefix=no
11480   need_version=no
11481   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11482   soname_spec='${libname}${release}${major}$shared_ext'
11483   shlibpath_overrides_runpath=yes
11484   shlibpath_var=DYLD_LIBRARY_PATH
11485   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11486
11487   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11488   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11489   ;;
11490
11491 dgux*)
11492   version_type=linux
11493   need_lib_prefix=no
11494   need_version=no
11495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11496   soname_spec='${libname}${release}${shared_ext}$major'
11497   shlibpath_var=LD_LIBRARY_PATH
11498   ;;
11499
11500 freebsd1*)
11501   dynamic_linker=no
11502   ;;
11503
11504 freebsd* | dragonfly*)
11505   # DragonFly does not have aout.  When/if they implement a new
11506   # versioning mechanism, adjust this.
11507   if test -x /usr/bin/objformat; then
11508     objformat=`/usr/bin/objformat`
11509   else
11510     case $host_os in
11511     freebsd[123]*) objformat=aout ;;
11512     *) objformat=elf ;;
11513     esac
11514   fi
11515   version_type=freebsd-$objformat
11516   case $version_type in
11517     freebsd-elf*)
11518       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11519       need_version=no
11520       need_lib_prefix=no
11521       ;;
11522     freebsd-*)
11523       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11524       need_version=yes
11525       ;;
11526   esac
11527   shlibpath_var=LD_LIBRARY_PATH
11528   case $host_os in
11529   freebsd2*)
11530     shlibpath_overrides_runpath=yes
11531     ;;
11532   freebsd3.[01]* | freebsdelf3.[01]*)
11533     shlibpath_overrides_runpath=yes
11534     hardcode_into_libs=yes
11535     ;;
11536   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11537   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11538     shlibpath_overrides_runpath=no
11539     hardcode_into_libs=yes
11540     ;;
11541   *) # from 4.6 on, and DragonFly
11542     shlibpath_overrides_runpath=yes
11543     hardcode_into_libs=yes
11544     ;;
11545   esac
11546   ;;
11547
11548 gnu*)
11549   version_type=linux
11550   need_lib_prefix=no
11551   need_version=no
11552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11553   soname_spec='${libname}${release}${shared_ext}$major'
11554   shlibpath_var=LD_LIBRARY_PATH
11555   hardcode_into_libs=yes
11556   ;;
11557
11558 hpux9* | hpux10* | hpux11*)
11559   # Give a soname corresponding to the major version so that dld.sl refuses to
11560   # link against other versions.
11561   version_type=sunos
11562   need_lib_prefix=no
11563   need_version=no
11564   case $host_cpu in
11565   ia64*)
11566     shrext_cmds='.so'
11567     hardcode_into_libs=yes
11568     dynamic_linker="$host_os dld.so"
11569     shlibpath_var=LD_LIBRARY_PATH
11570     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11571     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11572     soname_spec='${libname}${release}${shared_ext}$major'
11573     if test "X$HPUX_IA64_MODE" = X32; then
11574       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11575     else
11576       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11577     fi
11578     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11579     ;;
11580   hppa*64*)
11581     shrext_cmds='.sl'
11582     hardcode_into_libs=yes
11583     dynamic_linker="$host_os dld.sl"
11584     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11585     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11586     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11587     soname_spec='${libname}${release}${shared_ext}$major'
11588     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11589     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11590     ;;
11591   *)
11592     shrext_cmds='.sl'
11593     dynamic_linker="$host_os dld.sl"
11594     shlibpath_var=SHLIB_PATH
11595     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11596     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11597     soname_spec='${libname}${release}${shared_ext}$major'
11598     ;;
11599   esac
11600   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11601   postinstall_cmds='chmod 555 $lib'
11602   ;;
11603
11604 interix[3-9]*)
11605   version_type=linux
11606   need_lib_prefix=no
11607   need_version=no
11608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11609   soname_spec='${libname}${release}${shared_ext}$major'
11610   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11611   shlibpath_var=LD_LIBRARY_PATH
11612   shlibpath_overrides_runpath=no
11613   hardcode_into_libs=yes
11614   ;;
11615
11616 irix5* | irix6* | nonstopux*)
11617   case $host_os in
11618     nonstopux*) version_type=nonstopux ;;
11619     *)
11620         if test "$lt_cv_prog_gnu_ld" = yes; then
11621                 version_type=linux
11622         else
11623                 version_type=irix
11624         fi ;;
11625   esac
11626   need_lib_prefix=no
11627   need_version=no
11628   soname_spec='${libname}${release}${shared_ext}$major'
11629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11630   case $host_os in
11631   irix5* | nonstopux*)
11632     libsuff= shlibsuff=
11633     ;;
11634   *)
11635     case $LD in # libtool.m4 will add one of these switches to LD
11636     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11637       libsuff= shlibsuff= libmagic=32-bit;;
11638     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11639       libsuff=32 shlibsuff=N32 libmagic=N32;;
11640     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11641       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11642     *) libsuff= shlibsuff= libmagic=never-match;;
11643     esac
11644     ;;
11645   esac
11646   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11647   shlibpath_overrides_runpath=no
11648   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11649   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11650   hardcode_into_libs=yes
11651   ;;
11652
11653 # No shared lib support for Linux oldld, aout, or coff.
11654 linux*oldld* | linux*aout* | linux*coff*)
11655   dynamic_linker=no
11656   ;;
11657
11658 # This must be Linux ELF.
11659 linux* | k*bsd*-gnu)
11660   version_type=linux
11661   need_lib_prefix=no
11662   need_version=no
11663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11664   soname_spec='${libname}${release}${shared_ext}$major'
11665   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11666   shlibpath_var=LD_LIBRARY_PATH
11667   shlibpath_overrides_runpath=no
11668   # Some binutils ld are patched to set DT_RUNPATH
11669   save_LDFLAGS=$LDFLAGS
11670   save_libdir=$libdir
11671   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11672        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11673   cat >conftest.$ac_ext <<_ACEOF
11674 /* confdefs.h.  */
11675 _ACEOF
11676 cat confdefs.h >>conftest.$ac_ext
11677 cat >>conftest.$ac_ext <<_ACEOF
11678 /* end confdefs.h.  */
11679
11680 int
11681 main ()
11682 {
11683
11684   ;
11685   return 0;
11686 }
11687 _ACEOF
11688 rm -f conftest.$ac_objext conftest$ac_exeext
11689 if { (ac_try="$ac_link"
11690 case "(($ac_try" in
11691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692   *) ac_try_echo=$ac_try;;
11693 esac
11694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11695   (eval "$ac_link") 2>conftest.er1
11696   ac_status=$?
11697   grep -v '^ *+' conftest.er1 >conftest.err
11698   rm -f conftest.er1
11699   cat conftest.err >&5
11700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701   (exit $ac_status); } && {
11702          test -z "$ac_c_werror_flag" ||
11703          test ! -s conftest.err
11704        } && test -s conftest$ac_exeext &&
11705        $as_test_x conftest$ac_exeext; then
11706   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11707   shlibpath_overrides_runpath=yes
11708 fi
11709
11710 else
11711   echo "$as_me: failed program was:" >&5
11712 sed 's/^/| /' conftest.$ac_ext >&5
11713
11714
11715 fi
11716
11717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11718       conftest$ac_exeext conftest.$ac_ext
11719   LDFLAGS=$save_LDFLAGS
11720   libdir=$save_libdir
11721
11722   # This implies no fast_install, which is unacceptable.
11723   # Some rework will be needed to allow for fast_install
11724   # before this can be enabled.
11725   hardcode_into_libs=yes
11726
11727   # Append ld.so.conf contents to the search path
11728   if test -f /etc/ld.so.conf; then
11729     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' ' '`
11730     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11731   fi
11732
11733   # We used to test for /lib/ld.so.1 and disable shared libraries on
11734   # powerpc, because MkLinux only supported shared libraries with the
11735   # GNU dynamic linker.  Since this was broken with cross compilers,
11736   # most powerpc-linux boxes support dynamic linking these days and
11737   # people can always --disable-shared, the test was removed, and we
11738   # assume the GNU/Linux dynamic linker is in use.
11739   dynamic_linker='GNU/Linux ld.so'
11740   ;;
11741
11742 netbsd*)
11743   version_type=sunos
11744   need_lib_prefix=no
11745   need_version=no
11746   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11747     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11748     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11749     dynamic_linker='NetBSD (a.out) ld.so'
11750   else
11751     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11752     soname_spec='${libname}${release}${shared_ext}$major'
11753     dynamic_linker='NetBSD ld.elf_so'
11754   fi
11755   shlibpath_var=LD_LIBRARY_PATH
11756   shlibpath_overrides_runpath=yes
11757   hardcode_into_libs=yes
11758   ;;
11759
11760 newsos6)
11761   version_type=linux
11762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11763   shlibpath_var=LD_LIBRARY_PATH
11764   shlibpath_overrides_runpath=yes
11765   ;;
11766
11767 *nto* | *qnx*)
11768   version_type=qnx
11769   need_lib_prefix=no
11770   need_version=no
11771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11772   soname_spec='${libname}${release}${shared_ext}$major'
11773   shlibpath_var=LD_LIBRARY_PATH
11774   shlibpath_overrides_runpath=no
11775   hardcode_into_libs=yes
11776   dynamic_linker='ldqnx.so'
11777   ;;
11778
11779 openbsd*)
11780   version_type=sunos
11781   sys_lib_dlsearch_path_spec="/usr/lib"
11782   need_lib_prefix=no
11783   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11784   case $host_os in
11785     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11786     *)                          need_version=no  ;;
11787   esac
11788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11789   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11790   shlibpath_var=LD_LIBRARY_PATH
11791   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11792     case $host_os in
11793       openbsd2.[89] | openbsd2.[89].*)
11794         shlibpath_overrides_runpath=no
11795         ;;
11796       *)
11797         shlibpath_overrides_runpath=yes
11798         ;;
11799       esac
11800   else
11801     shlibpath_overrides_runpath=yes
11802   fi
11803   ;;
11804
11805 os2*)
11806   libname_spec='$name'
11807   shrext_cmds=".dll"
11808   need_lib_prefix=no
11809   library_names_spec='$libname${shared_ext} $libname.a'
11810   dynamic_linker='OS/2 ld.exe'
11811   shlibpath_var=LIBPATH
11812   ;;
11813
11814 osf3* | osf4* | osf5*)
11815   version_type=osf
11816   need_lib_prefix=no
11817   need_version=no
11818   soname_spec='${libname}${release}${shared_ext}$major'
11819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11820   shlibpath_var=LD_LIBRARY_PATH
11821   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11822   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11823   ;;
11824
11825 rdos*)
11826   dynamic_linker=no
11827   ;;
11828
11829 solaris*)
11830   version_type=linux
11831   need_lib_prefix=no
11832   need_version=no
11833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11834   soname_spec='${libname}${release}${shared_ext}$major'
11835   shlibpath_var=LD_LIBRARY_PATH
11836   shlibpath_overrides_runpath=yes
11837   hardcode_into_libs=yes
11838   # ldd complains unless libraries are executable
11839   postinstall_cmds='chmod +x $lib'
11840   ;;
11841
11842 sunos4*)
11843   version_type=sunos
11844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11845   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11846   shlibpath_var=LD_LIBRARY_PATH
11847   shlibpath_overrides_runpath=yes
11848   if test "$with_gnu_ld" = yes; then
11849     need_lib_prefix=no
11850   fi
11851   need_version=yes
11852   ;;
11853
11854 sysv4 | sysv4.3*)
11855   version_type=linux
11856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11857   soname_spec='${libname}${release}${shared_ext}$major'
11858   shlibpath_var=LD_LIBRARY_PATH
11859   case $host_vendor in
11860     sni)
11861       shlibpath_overrides_runpath=no
11862       need_lib_prefix=no
11863       runpath_var=LD_RUN_PATH
11864       ;;
11865     siemens)
11866       need_lib_prefix=no
11867       ;;
11868     motorola)
11869       need_lib_prefix=no
11870       need_version=no
11871       shlibpath_overrides_runpath=no
11872       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11873       ;;
11874   esac
11875   ;;
11876
11877 sysv4*MP*)
11878   if test -d /usr/nec ;then
11879     version_type=linux
11880     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11881     soname_spec='$libname${shared_ext}.$major'
11882     shlibpath_var=LD_LIBRARY_PATH
11883   fi
11884   ;;
11885
11886 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11887   version_type=freebsd-elf
11888   need_lib_prefix=no
11889   need_version=no
11890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11891   soname_spec='${libname}${release}${shared_ext}$major'
11892   shlibpath_var=LD_LIBRARY_PATH
11893   shlibpath_overrides_runpath=yes
11894   hardcode_into_libs=yes
11895   if test "$with_gnu_ld" = yes; then
11896     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11897   else
11898     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11899     case $host_os in
11900       sco3.2v5*)
11901         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11902         ;;
11903     esac
11904   fi
11905   sys_lib_dlsearch_path_spec='/usr/lib'
11906   ;;
11907
11908 tpf*)
11909   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11910   version_type=linux
11911   need_lib_prefix=no
11912   need_version=no
11913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11914   shlibpath_var=LD_LIBRARY_PATH
11915   shlibpath_overrides_runpath=no
11916   hardcode_into_libs=yes
11917   ;;
11918
11919 uts4*)
11920   version_type=linux
11921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11922   soname_spec='${libname}${release}${shared_ext}$major'
11923   shlibpath_var=LD_LIBRARY_PATH
11924   ;;
11925
11926 *)
11927   dynamic_linker=no
11928   ;;
11929 esac
11930 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11931 echo "${ECHO_T}$dynamic_linker" >&6; }
11932 test "$dynamic_linker" = no && can_build_shared=no
11933
11934 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11935 if test "$GCC" = yes; then
11936   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11937 fi
11938
11939 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11940   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11941 fi
11942 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11943   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11944 fi
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12033 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12034 hardcode_action=
12035 if test -n "$hardcode_libdir_flag_spec" ||
12036    test -n "$runpath_var" ||
12037    test "X$hardcode_automatic" = "Xyes" ; then
12038
12039   # We can hardcode non-existent directories.
12040   if test "$hardcode_direct" != no &&
12041      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12042      # have to relink, otherwise we might link with an installed library
12043      # when we should be linking with a yet-to-be-installed one
12044      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12045      test "$hardcode_minus_L" != no; then
12046     # Linking always hardcodes the temporary library directory.
12047     hardcode_action=relink
12048   else
12049     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12050     hardcode_action=immediate
12051   fi
12052 else
12053   # We cannot hardcode anything, or else we can only hardcode existing
12054   # directories.
12055   hardcode_action=unsupported
12056 fi
12057 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12058 echo "${ECHO_T}$hardcode_action" >&6; }
12059
12060 if test "$hardcode_action" = relink ||
12061    test "$inherit_rpath" = yes; then
12062   # Fast installation is not supported
12063   enable_fast_install=no
12064 elif test "$shlibpath_overrides_runpath" = yes ||
12065      test "$enable_shared" = no; then
12066   # Fast installation is not necessary
12067   enable_fast_install=needless
12068 fi
12069
12070
12071
12072
12073
12074
12075   if test "x$enable_dlopen" != xyes; then
12076   enable_dlopen=unknown
12077   enable_dlopen_self=unknown
12078   enable_dlopen_self_static=unknown
12079 else
12080   lt_cv_dlopen=no
12081   lt_cv_dlopen_libs=
12082
12083   case $host_os in
12084   beos*)
12085     lt_cv_dlopen="load_add_on"
12086     lt_cv_dlopen_libs=
12087     lt_cv_dlopen_self=yes
12088     ;;
12089
12090   mingw* | pw32* | cegcc*)
12091     lt_cv_dlopen="LoadLibrary"
12092     lt_cv_dlopen_libs=
12093     ;;
12094
12095   cygwin*)
12096     lt_cv_dlopen="dlopen"
12097     lt_cv_dlopen_libs=
12098     ;;
12099
12100   darwin*)
12101   # if libdl is installed we need to link against it
12102     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12103 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12104 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12105   echo $ECHO_N "(cached) $ECHO_C" >&6
12106 else
12107   ac_check_lib_save_LIBS=$LIBS
12108 LIBS="-ldl  $LIBS"
12109 cat >conftest.$ac_ext <<_ACEOF
12110 /* confdefs.h.  */
12111 _ACEOF
12112 cat confdefs.h >>conftest.$ac_ext
12113 cat >>conftest.$ac_ext <<_ACEOF
12114 /* end confdefs.h.  */
12115
12116 /* Override any GCC internal prototype to avoid an error.
12117    Use char because int might match the return type of a GCC
12118    builtin and then its argument prototype would still apply.  */
12119 #ifdef __cplusplus
12120 extern "C"
12121 #endif
12122 char dlopen ();
12123 int
12124 main ()
12125 {
12126 return dlopen ();
12127   ;
12128   return 0;
12129 }
12130 _ACEOF
12131 rm -f conftest.$ac_objext conftest$ac_exeext
12132 if { (ac_try="$ac_link"
12133 case "(($ac_try" in
12134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135   *) ac_try_echo=$ac_try;;
12136 esac
12137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138   (eval "$ac_link") 2>conftest.er1
12139   ac_status=$?
12140   grep -v '^ *+' conftest.er1 >conftest.err
12141   rm -f conftest.er1
12142   cat conftest.err >&5
12143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144   (exit $ac_status); } && {
12145          test -z "$ac_c_werror_flag" ||
12146          test ! -s conftest.err
12147        } && test -s conftest$ac_exeext &&
12148        $as_test_x conftest$ac_exeext; then
12149   ac_cv_lib_dl_dlopen=yes
12150 else
12151   echo "$as_me: failed program was:" >&5
12152 sed 's/^/| /' conftest.$ac_ext >&5
12153
12154         ac_cv_lib_dl_dlopen=no
12155 fi
12156
12157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12158       conftest$ac_exeext conftest.$ac_ext
12159 LIBS=$ac_check_lib_save_LIBS
12160 fi
12161 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12162 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12163 if test $ac_cv_lib_dl_dlopen = yes; then
12164   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12165 else
12166
12167     lt_cv_dlopen="dyld"
12168     lt_cv_dlopen_libs=
12169     lt_cv_dlopen_self=yes
12170
12171 fi
12172
12173     ;;
12174
12175   *)
12176     { echo "$as_me:$LINENO: checking for shl_load" >&5
12177 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12178 if test "${ac_cv_func_shl_load+set}" = set; then
12179   echo $ECHO_N "(cached) $ECHO_C" >&6
12180 else
12181   cat >conftest.$ac_ext <<_ACEOF
12182 /* confdefs.h.  */
12183 _ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h.  */
12187 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12188    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12189 #define shl_load innocuous_shl_load
12190
12191 /* System header to define __stub macros and hopefully few prototypes,
12192     which can conflict with char shl_load (); below.
12193     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12194     <limits.h> exists even on freestanding compilers.  */
12195
12196 #ifdef __STDC__
12197 # include <limits.h>
12198 #else
12199 # include <assert.h>
12200 #endif
12201
12202 #undef shl_load
12203
12204 /* Override any GCC internal prototype to avoid an error.
12205    Use char because int might match the return type of a GCC
12206    builtin and then its argument prototype would still apply.  */
12207 #ifdef __cplusplus
12208 extern "C"
12209 #endif
12210 char shl_load ();
12211 /* The GNU C library defines this for functions which it implements
12212     to always fail with ENOSYS.  Some functions are actually named
12213     something starting with __ and the normal name is an alias.  */
12214 #if defined __stub_shl_load || defined __stub___shl_load
12215 choke me
12216 #endif
12217
12218 int
12219 main ()
12220 {
12221 return shl_load ();
12222   ;
12223   return 0;
12224 }
12225 _ACEOF
12226 rm -f conftest.$ac_objext conftest$ac_exeext
12227 if { (ac_try="$ac_link"
12228 case "(($ac_try" in
12229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12230   *) ac_try_echo=$ac_try;;
12231 esac
12232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12233   (eval "$ac_link") 2>conftest.er1
12234   ac_status=$?
12235   grep -v '^ *+' conftest.er1 >conftest.err
12236   rm -f conftest.er1
12237   cat conftest.err >&5
12238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239   (exit $ac_status); } && {
12240          test -z "$ac_c_werror_flag" ||
12241          test ! -s conftest.err
12242        } && test -s conftest$ac_exeext &&
12243        $as_test_x conftest$ac_exeext; then
12244   ac_cv_func_shl_load=yes
12245 else
12246   echo "$as_me: failed program was:" >&5
12247 sed 's/^/| /' conftest.$ac_ext >&5
12248
12249         ac_cv_func_shl_load=no
12250 fi
12251
12252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12253       conftest$ac_exeext conftest.$ac_ext
12254 fi
12255 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12256 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12257 if test $ac_cv_func_shl_load = yes; then
12258   lt_cv_dlopen="shl_load"
12259 else
12260   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12261 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12262 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12263   echo $ECHO_N "(cached) $ECHO_C" >&6
12264 else
12265   ac_check_lib_save_LIBS=$LIBS
12266 LIBS="-ldld  $LIBS"
12267 cat >conftest.$ac_ext <<_ACEOF
12268 /* confdefs.h.  */
12269 _ACEOF
12270 cat confdefs.h >>conftest.$ac_ext
12271 cat >>conftest.$ac_ext <<_ACEOF
12272 /* end confdefs.h.  */
12273
12274 /* Override any GCC internal prototype to avoid an error.
12275    Use char because int might match the return type of a GCC
12276    builtin and then its argument prototype would still apply.  */
12277 #ifdef __cplusplus
12278 extern "C"
12279 #endif
12280 char shl_load ();
12281 int
12282 main ()
12283 {
12284 return shl_load ();
12285   ;
12286   return 0;
12287 }
12288 _ACEOF
12289 rm -f conftest.$ac_objext conftest$ac_exeext
12290 if { (ac_try="$ac_link"
12291 case "(($ac_try" in
12292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293   *) ac_try_echo=$ac_try;;
12294 esac
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296   (eval "$ac_link") 2>conftest.er1
12297   ac_status=$?
12298   grep -v '^ *+' conftest.er1 >conftest.err
12299   rm -f conftest.er1
12300   cat conftest.err >&5
12301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302   (exit $ac_status); } && {
12303          test -z "$ac_c_werror_flag" ||
12304          test ! -s conftest.err
12305        } && test -s conftest$ac_exeext &&
12306        $as_test_x conftest$ac_exeext; then
12307   ac_cv_lib_dld_shl_load=yes
12308 else
12309   echo "$as_me: failed program was:" >&5
12310 sed 's/^/| /' conftest.$ac_ext >&5
12311
12312         ac_cv_lib_dld_shl_load=no
12313 fi
12314
12315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12316       conftest$ac_exeext conftest.$ac_ext
12317 LIBS=$ac_check_lib_save_LIBS
12318 fi
12319 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12320 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12321 if test $ac_cv_lib_dld_shl_load = yes; then
12322   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12323 else
12324   { echo "$as_me:$LINENO: checking for dlopen" >&5
12325 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12326 if test "${ac_cv_func_dlopen+set}" = set; then
12327   echo $ECHO_N "(cached) $ECHO_C" >&6
12328 else
12329   cat >conftest.$ac_ext <<_ACEOF
12330 /* confdefs.h.  */
12331 _ACEOF
12332 cat confdefs.h >>conftest.$ac_ext
12333 cat >>conftest.$ac_ext <<_ACEOF
12334 /* end confdefs.h.  */
12335 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12336    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12337 #define dlopen innocuous_dlopen
12338
12339 /* System header to define __stub macros and hopefully few prototypes,
12340     which can conflict with char dlopen (); below.
12341     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12342     <limits.h> exists even on freestanding compilers.  */
12343
12344 #ifdef __STDC__
12345 # include <limits.h>
12346 #else
12347 # include <assert.h>
12348 #endif
12349
12350 #undef dlopen
12351
12352 /* Override any GCC internal prototype to avoid an error.
12353    Use char because int might match the return type of a GCC
12354    builtin and then its argument prototype would still apply.  */
12355 #ifdef __cplusplus
12356 extern "C"
12357 #endif
12358 char dlopen ();
12359 /* The GNU C library defines this for functions which it implements
12360     to always fail with ENOSYS.  Some functions are actually named
12361     something starting with __ and the normal name is an alias.  */
12362 #if defined __stub_dlopen || defined __stub___dlopen
12363 choke me
12364 #endif
12365
12366 int
12367 main ()
12368 {
12369 return dlopen ();
12370   ;
12371   return 0;
12372 }
12373 _ACEOF
12374 rm -f conftest.$ac_objext conftest$ac_exeext
12375 if { (ac_try="$ac_link"
12376 case "(($ac_try" in
12377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378   *) ac_try_echo=$ac_try;;
12379 esac
12380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381   (eval "$ac_link") 2>conftest.er1
12382   ac_status=$?
12383   grep -v '^ *+' conftest.er1 >conftest.err
12384   rm -f conftest.er1
12385   cat conftest.err >&5
12386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387   (exit $ac_status); } && {
12388          test -z "$ac_c_werror_flag" ||
12389          test ! -s conftest.err
12390        } && test -s conftest$ac_exeext &&
12391        $as_test_x conftest$ac_exeext; then
12392   ac_cv_func_dlopen=yes
12393 else
12394   echo "$as_me: failed program was:" >&5
12395 sed 's/^/| /' conftest.$ac_ext >&5
12396
12397         ac_cv_func_dlopen=no
12398 fi
12399
12400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12401       conftest$ac_exeext conftest.$ac_ext
12402 fi
12403 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12404 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12405 if test $ac_cv_func_dlopen = yes; then
12406   lt_cv_dlopen="dlopen"
12407 else
12408   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12409 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12410 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12411   echo $ECHO_N "(cached) $ECHO_C" >&6
12412 else
12413   ac_check_lib_save_LIBS=$LIBS
12414 LIBS="-ldl  $LIBS"
12415 cat >conftest.$ac_ext <<_ACEOF
12416 /* confdefs.h.  */
12417 _ACEOF
12418 cat confdefs.h >>conftest.$ac_ext
12419 cat >>conftest.$ac_ext <<_ACEOF
12420 /* end confdefs.h.  */
12421
12422 /* Override any GCC internal prototype to avoid an error.
12423    Use char because int might match the return type of a GCC
12424    builtin and then its argument prototype would still apply.  */
12425 #ifdef __cplusplus
12426 extern "C"
12427 #endif
12428 char dlopen ();
12429 int
12430 main ()
12431 {
12432 return dlopen ();
12433   ;
12434   return 0;
12435 }
12436 _ACEOF
12437 rm -f conftest.$ac_objext conftest$ac_exeext
12438 if { (ac_try="$ac_link"
12439 case "(($ac_try" in
12440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12441   *) ac_try_echo=$ac_try;;
12442 esac
12443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12444   (eval "$ac_link") 2>conftest.er1
12445   ac_status=$?
12446   grep -v '^ *+' conftest.er1 >conftest.err
12447   rm -f conftest.er1
12448   cat conftest.err >&5
12449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450   (exit $ac_status); } && {
12451          test -z "$ac_c_werror_flag" ||
12452          test ! -s conftest.err
12453        } && test -s conftest$ac_exeext &&
12454        $as_test_x conftest$ac_exeext; then
12455   ac_cv_lib_dl_dlopen=yes
12456 else
12457   echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12459
12460         ac_cv_lib_dl_dlopen=no
12461 fi
12462
12463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12464       conftest$ac_exeext conftest.$ac_ext
12465 LIBS=$ac_check_lib_save_LIBS
12466 fi
12467 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12468 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12469 if test $ac_cv_lib_dl_dlopen = yes; then
12470   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12471 else
12472   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12473 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12474 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12475   echo $ECHO_N "(cached) $ECHO_C" >&6
12476 else
12477   ac_check_lib_save_LIBS=$LIBS
12478 LIBS="-lsvld  $LIBS"
12479 cat >conftest.$ac_ext <<_ACEOF
12480 /* confdefs.h.  */
12481 _ACEOF
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h.  */
12485
12486 /* Override any GCC internal prototype to avoid an error.
12487    Use char because int might match the return type of a GCC
12488    builtin and then its argument prototype would still apply.  */
12489 #ifdef __cplusplus
12490 extern "C"
12491 #endif
12492 char dlopen ();
12493 int
12494 main ()
12495 {
12496 return dlopen ();
12497   ;
12498   return 0;
12499 }
12500 _ACEOF
12501 rm -f conftest.$ac_objext conftest$ac_exeext
12502 if { (ac_try="$ac_link"
12503 case "(($ac_try" in
12504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12505   *) ac_try_echo=$ac_try;;
12506 esac
12507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12508   (eval "$ac_link") 2>conftest.er1
12509   ac_status=$?
12510   grep -v '^ *+' conftest.er1 >conftest.err
12511   rm -f conftest.er1
12512   cat conftest.err >&5
12513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514   (exit $ac_status); } && {
12515          test -z "$ac_c_werror_flag" ||
12516          test ! -s conftest.err
12517        } && test -s conftest$ac_exeext &&
12518        $as_test_x conftest$ac_exeext; then
12519   ac_cv_lib_svld_dlopen=yes
12520 else
12521   echo "$as_me: failed program was:" >&5
12522 sed 's/^/| /' conftest.$ac_ext >&5
12523
12524         ac_cv_lib_svld_dlopen=no
12525 fi
12526
12527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12528       conftest$ac_exeext conftest.$ac_ext
12529 LIBS=$ac_check_lib_save_LIBS
12530 fi
12531 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12532 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12533 if test $ac_cv_lib_svld_dlopen = yes; then
12534   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12535 else
12536   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12537 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12538 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12539   echo $ECHO_N "(cached) $ECHO_C" >&6
12540 else
12541   ac_check_lib_save_LIBS=$LIBS
12542 LIBS="-ldld  $LIBS"
12543 cat >conftest.$ac_ext <<_ACEOF
12544 /* confdefs.h.  */
12545 _ACEOF
12546 cat confdefs.h >>conftest.$ac_ext
12547 cat >>conftest.$ac_ext <<_ACEOF
12548 /* end confdefs.h.  */
12549
12550 /* Override any GCC internal prototype to avoid an error.
12551    Use char because int might match the return type of a GCC
12552    builtin and then its argument prototype would still apply.  */
12553 #ifdef __cplusplus
12554 extern "C"
12555 #endif
12556 char dld_link ();
12557 int
12558 main ()
12559 {
12560 return dld_link ();
12561   ;
12562   return 0;
12563 }
12564 _ACEOF
12565 rm -f conftest.$ac_objext conftest$ac_exeext
12566 if { (ac_try="$ac_link"
12567 case "(($ac_try" in
12568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12569   *) ac_try_echo=$ac_try;;
12570 esac
12571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12572   (eval "$ac_link") 2>conftest.er1
12573   ac_status=$?
12574   grep -v '^ *+' conftest.er1 >conftest.err
12575   rm -f conftest.er1
12576   cat conftest.err >&5
12577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578   (exit $ac_status); } && {
12579          test -z "$ac_c_werror_flag" ||
12580          test ! -s conftest.err
12581        } && test -s conftest$ac_exeext &&
12582        $as_test_x conftest$ac_exeext; then
12583   ac_cv_lib_dld_dld_link=yes
12584 else
12585   echo "$as_me: failed program was:" >&5
12586 sed 's/^/| /' conftest.$ac_ext >&5
12587
12588         ac_cv_lib_dld_dld_link=no
12589 fi
12590
12591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12592       conftest$ac_exeext conftest.$ac_ext
12593 LIBS=$ac_check_lib_save_LIBS
12594 fi
12595 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12596 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12597 if test $ac_cv_lib_dld_dld_link = yes; then
12598   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12599 fi
12600
12601
12602 fi
12603
12604
12605 fi
12606
12607
12608 fi
12609
12610
12611 fi
12612
12613
12614 fi
12615
12616     ;;
12617   esac
12618
12619   if test "x$lt_cv_dlopen" != xno; then
12620     enable_dlopen=yes
12621   else
12622     enable_dlopen=no
12623   fi
12624
12625   case $lt_cv_dlopen in
12626   dlopen)
12627     save_CPPFLAGS="$CPPFLAGS"
12628     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12629
12630     save_LDFLAGS="$LDFLAGS"
12631     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12632
12633     save_LIBS="$LIBS"
12634     LIBS="$lt_cv_dlopen_libs $LIBS"
12635
12636     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12637 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12638 if test "${lt_cv_dlopen_self+set}" = set; then
12639   echo $ECHO_N "(cached) $ECHO_C" >&6
12640 else
12641           if test "$cross_compiling" = yes; then :
12642   lt_cv_dlopen_self=cross
12643 else
12644   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12645   lt_status=$lt_dlunknown
12646   cat > conftest.$ac_ext <<_LT_EOF
12647 #line 12647 "configure"
12648 #include "confdefs.h"
12649
12650 #if HAVE_DLFCN_H
12651 #include <dlfcn.h>
12652 #endif
12653
12654 #include <stdio.h>
12655
12656 #ifdef RTLD_GLOBAL
12657 #  define LT_DLGLOBAL           RTLD_GLOBAL
12658 #else
12659 #  ifdef DL_GLOBAL
12660 #    define LT_DLGLOBAL         DL_GLOBAL
12661 #  else
12662 #    define LT_DLGLOBAL         0
12663 #  endif
12664 #endif
12665
12666 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12667    find out it does not work in some platform. */
12668 #ifndef LT_DLLAZY_OR_NOW
12669 #  ifdef RTLD_LAZY
12670 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12671 #  else
12672 #    ifdef DL_LAZY
12673 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12674 #    else
12675 #      ifdef RTLD_NOW
12676 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12677 #      else
12678 #        ifdef DL_NOW
12679 #          define LT_DLLAZY_OR_NOW      DL_NOW
12680 #        else
12681 #          define LT_DLLAZY_OR_NOW      0
12682 #        endif
12683 #      endif
12684 #    endif
12685 #  endif
12686 #endif
12687
12688 void fnord() { int i=42;}
12689 int main ()
12690 {
12691   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12692   int status = $lt_dlunknown;
12693
12694   if (self)
12695     {
12696       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12697       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12698       /* dlclose (self); */
12699     }
12700   else
12701     puts (dlerror ());
12702
12703   return status;
12704 }
12705 _LT_EOF
12706   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12707   (eval $ac_link) 2>&5
12708   ac_status=$?
12709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12711     (./conftest; exit; ) >&5 2>/dev/null
12712     lt_status=$?
12713     case x$lt_status in
12714       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12715       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12716       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12717     esac
12718   else :
12719     # compilation failed
12720     lt_cv_dlopen_self=no
12721   fi
12722 fi
12723 rm -fr conftest*
12724
12725
12726 fi
12727 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12728 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12729
12730     if test "x$lt_cv_dlopen_self" = xyes; then
12731       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12732       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12733 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12734 if test "${lt_cv_dlopen_self_static+set}" = set; then
12735   echo $ECHO_N "(cached) $ECHO_C" >&6
12736 else
12737           if test "$cross_compiling" = yes; then :
12738   lt_cv_dlopen_self_static=cross
12739 else
12740   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12741   lt_status=$lt_dlunknown
12742   cat > conftest.$ac_ext <<_LT_EOF
12743 #line 12743 "configure"
12744 #include "confdefs.h"
12745
12746 #if HAVE_DLFCN_H
12747 #include <dlfcn.h>
12748 #endif
12749
12750 #include <stdio.h>
12751
12752 #ifdef RTLD_GLOBAL
12753 #  define LT_DLGLOBAL           RTLD_GLOBAL
12754 #else
12755 #  ifdef DL_GLOBAL
12756 #    define LT_DLGLOBAL         DL_GLOBAL
12757 #  else
12758 #    define LT_DLGLOBAL         0
12759 #  endif
12760 #endif
12761
12762 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12763    find out it does not work in some platform. */
12764 #ifndef LT_DLLAZY_OR_NOW
12765 #  ifdef RTLD_LAZY
12766 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12767 #  else
12768 #    ifdef DL_LAZY
12769 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12770 #    else
12771 #      ifdef RTLD_NOW
12772 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12773 #      else
12774 #        ifdef DL_NOW
12775 #          define LT_DLLAZY_OR_NOW      DL_NOW
12776 #        else
12777 #          define LT_DLLAZY_OR_NOW      0
12778 #        endif
12779 #      endif
12780 #    endif
12781 #  endif
12782 #endif
12783
12784 void fnord() { int i=42;}
12785 int main ()
12786 {
12787   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12788   int status = $lt_dlunknown;
12789
12790   if (self)
12791     {
12792       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12793       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12794       /* dlclose (self); */
12795     }
12796   else
12797     puts (dlerror ());
12798
12799   return status;
12800 }
12801 _LT_EOF
12802   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12803   (eval $ac_link) 2>&5
12804   ac_status=$?
12805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12807     (./conftest; exit; ) >&5 2>/dev/null
12808     lt_status=$?
12809     case x$lt_status in
12810       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12811       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12812       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12813     esac
12814   else :
12815     # compilation failed
12816     lt_cv_dlopen_self_static=no
12817   fi
12818 fi
12819 rm -fr conftest*
12820
12821
12822 fi
12823 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12824 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12825     fi
12826
12827     CPPFLAGS="$save_CPPFLAGS"
12828     LDFLAGS="$save_LDFLAGS"
12829     LIBS="$save_LIBS"
12830     ;;
12831   esac
12832
12833   case $lt_cv_dlopen_self in
12834   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12835   *) enable_dlopen_self=unknown ;;
12836   esac
12837
12838   case $lt_cv_dlopen_self_static in
12839   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12840   *) enable_dlopen_self_static=unknown ;;
12841   esac
12842 fi
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860 striplib=
12861 old_striplib=
12862 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12863 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12864 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12865   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12866   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12867   { echo "$as_me:$LINENO: result: yes" >&5
12868 echo "${ECHO_T}yes" >&6; }
12869 else
12870 # FIXME - insert some real tests, host_os isn't really good enough
12871   case $host_os in
12872   darwin*)
12873     if test -n "$STRIP" ; then
12874       striplib="$STRIP -x"
12875       old_striplib="$STRIP -S"
12876       { echo "$as_me:$LINENO: result: yes" >&5
12877 echo "${ECHO_T}yes" >&6; }
12878     else
12879       { echo "$as_me:$LINENO: result: no" >&5
12880 echo "${ECHO_T}no" >&6; }
12881     fi
12882     ;;
12883   *)
12884     { echo "$as_me:$LINENO: result: no" >&5
12885 echo "${ECHO_T}no" >&6; }
12886     ;;
12887   esac
12888 fi
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901   # Report which library types will actually be built
12902   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12903 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12904   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12905 echo "${ECHO_T}$can_build_shared" >&6; }
12906
12907   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12908 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12909   test "$can_build_shared" = "no" && enable_shared=no
12910
12911   # On AIX, shared libraries and static libraries use the same namespace, and
12912   # are all built from PIC.
12913   case $host_os in
12914   aix3*)
12915     test "$enable_shared" = yes && enable_static=no
12916     if test -n "$RANLIB"; then
12917       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12918       postinstall_cmds='$RANLIB $lib'
12919     fi
12920     ;;
12921
12922   aix[4-9]*)
12923     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12924       test "$enable_shared" = yes && enable_static=no
12925     fi
12926     ;;
12927   esac
12928   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12929 echo "${ECHO_T}$enable_shared" >&6; }
12930
12931   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12932 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12933   # Make sure either enable_shared or enable_static is yes.
12934   test "$enable_shared" = yes || enable_static=yes
12935   { echo "$as_me:$LINENO: result: $enable_static" >&5
12936 echo "${ECHO_T}$enable_static" >&6; }
12937
12938
12939
12940
12941 fi
12942 ac_ext=c
12943 ac_cpp='$CPP $CPPFLAGS'
12944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12947
12948 CC="$lt_save_CC"
12949
12950
12951 ac_ext=cpp
12952 ac_cpp='$CXXCPP $CPPFLAGS'
12953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12956
12957 archive_cmds_need_lc_CXX=no
12958 allow_undefined_flag_CXX=
12959 always_export_symbols_CXX=no
12960 archive_expsym_cmds_CXX=
12961 compiler_needs_object_CXX=no
12962 export_dynamic_flag_spec_CXX=
12963 hardcode_direct_CXX=no
12964 hardcode_direct_absolute_CXX=no
12965 hardcode_libdir_flag_spec_CXX=
12966 hardcode_libdir_flag_spec_ld_CXX=
12967 hardcode_libdir_separator_CXX=
12968 hardcode_minus_L_CXX=no
12969 hardcode_shlibpath_var_CXX=unsupported
12970 hardcode_automatic_CXX=no
12971 inherit_rpath_CXX=no
12972 module_cmds_CXX=
12973 module_expsym_cmds_CXX=
12974 link_all_deplibs_CXX=unknown
12975 old_archive_cmds_CXX=$old_archive_cmds
12976 no_undefined_flag_CXX=
12977 whole_archive_flag_spec_CXX=
12978 enable_shared_with_static_runtimes_CXX=no
12979
12980 # Source file extension for C++ test sources.
12981 ac_ext=cpp
12982
12983 # Object file extension for compiled C++ test sources.
12984 objext=o
12985 objext_CXX=$objext
12986
12987 # No sense in running all these tests if we already determined that
12988 # the CXX compiler isn't working.  Some variables (like enable_shared)
12989 # are currently assumed to apply to all compilers on this platform,
12990 # and will be corrupted by setting them based on a non-working compiler.
12991 if test "$_lt_caught_CXX_error" != yes; then
12992   # Code to be used in simple compile tests
12993   lt_simple_compile_test_code="int some_variable = 0;"
12994
12995   # Code to be used in simple link tests
12996   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12997
12998   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12999
13000
13001
13002
13003
13004
13005 # If no C compiler was specified, use CC.
13006 LTCC=${LTCC-"$CC"}
13007
13008 # If no C compiler flags were specified, use CFLAGS.
13009 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13010
13011 # Allow CC to be a program name with arguments.
13012 compiler=$CC
13013
13014
13015   # save warnings/boilerplate of simple test code
13016   ac_outfile=conftest.$ac_objext
13017 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13018 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13019 _lt_compiler_boilerplate=`cat conftest.err`
13020 $RM conftest*
13021
13022   ac_outfile=conftest.$ac_objext
13023 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13024 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13025 _lt_linker_boilerplate=`cat conftest.err`
13026 $RM -r conftest*
13027
13028
13029   # Allow CC to be a program name with arguments.
13030   lt_save_CC=$CC
13031   lt_save_LD=$LD
13032   lt_save_GCC=$GCC
13033   GCC=$GXX
13034   lt_save_with_gnu_ld=$with_gnu_ld
13035   lt_save_path_LD=$lt_cv_path_LD
13036   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13037     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13038   else
13039     $as_unset lt_cv_prog_gnu_ld
13040   fi
13041   if test -n "${lt_cv_path_LDCXX+set}"; then
13042     lt_cv_path_LD=$lt_cv_path_LDCXX
13043   else
13044     $as_unset lt_cv_path_LD
13045   fi
13046   test -z "${LDCXX+set}" || LD=$LDCXX
13047   CC=${CXX-"c++"}
13048   compiler=$CC
13049   compiler_CXX=$CC
13050   for cc_temp in $compiler""; do
13051   case $cc_temp in
13052     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13053     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13054     \-*) ;;
13055     *) break;;
13056   esac
13057 done
13058 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13059
13060
13061   if test -n "$compiler"; then
13062     # We don't want -fno-exception when compiling C++ code, so set the
13063     # no_builtin_flag separately
13064     if test "$GXX" = yes; then
13065       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13066     else
13067       lt_prog_compiler_no_builtin_flag_CXX=
13068     fi
13069
13070     if test "$GXX" = yes; then
13071       # Set up default GNU C++ configuration
13072
13073
13074
13075 # Check whether --with-gnu-ld was given.
13076 if test "${with_gnu_ld+set}" = set; then
13077   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13078 else
13079   with_gnu_ld=no
13080 fi
13081
13082 ac_prog=ld
13083 if test "$GCC" = yes; then
13084   # Check if gcc -print-prog-name=ld gives a path.
13085   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13086 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13087   case $host in
13088   *-*-mingw*)
13089     # gcc leaves a trailing carriage return which upsets mingw
13090     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13091   *)
13092     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13093   esac
13094   case $ac_prog in
13095     # Accept absolute paths.
13096     [\\/]* | ?:[\\/]*)
13097       re_direlt='/[^/][^/]*/\.\./'
13098       # Canonicalize the pathname of ld
13099       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13100       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13101         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13102       done
13103       test -z "$LD" && LD="$ac_prog"
13104       ;;
13105   "")
13106     # If it fails, then pretend we aren't using GCC.
13107     ac_prog=ld
13108     ;;
13109   *)
13110     # If it is relative, then search for the first ld in PATH.
13111     with_gnu_ld=unknown
13112     ;;
13113   esac
13114 elif test "$with_gnu_ld" = yes; then
13115   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13116 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13117 else
13118   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13119 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13120 fi
13121 if test "${lt_cv_path_LD+set}" = set; then
13122   echo $ECHO_N "(cached) $ECHO_C" >&6
13123 else
13124   if test -z "$LD"; then
13125   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13126   for ac_dir in $PATH; do
13127     IFS="$lt_save_ifs"
13128     test -z "$ac_dir" && ac_dir=.
13129     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13130       lt_cv_path_LD="$ac_dir/$ac_prog"
13131       # Check to see if the program is GNU ld.  I'd rather use --version,
13132       # but apparently some variants of GNU ld only accept -v.
13133       # Break only if it was the GNU/non-GNU ld that we prefer.
13134       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13135       *GNU* | *'with BFD'*)
13136         test "$with_gnu_ld" != no && break
13137         ;;
13138       *)
13139         test "$with_gnu_ld" != yes && break
13140         ;;
13141       esac
13142     fi
13143   done
13144   IFS="$lt_save_ifs"
13145 else
13146   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13147 fi
13148 fi
13149
13150 LD="$lt_cv_path_LD"
13151 if test -n "$LD"; then
13152   { echo "$as_me:$LINENO: result: $LD" >&5
13153 echo "${ECHO_T}$LD" >&6; }
13154 else
13155   { echo "$as_me:$LINENO: result: no" >&5
13156 echo "${ECHO_T}no" >&6; }
13157 fi
13158 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13159 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13160    { (exit 1); exit 1; }; }
13161 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13162 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13163 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13164   echo $ECHO_N "(cached) $ECHO_C" >&6
13165 else
13166   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13167 case `$LD -v 2>&1 </dev/null` in
13168 *GNU* | *'with BFD'*)
13169   lt_cv_prog_gnu_ld=yes
13170   ;;
13171 *)
13172   lt_cv_prog_gnu_ld=no
13173   ;;
13174 esac
13175 fi
13176 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13177 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13178 with_gnu_ld=$lt_cv_prog_gnu_ld
13179
13180
13181
13182
13183
13184
13185
13186       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13187       # archiving commands below assume that GNU ld is being used.
13188       if test "$with_gnu_ld" = yes; then
13189         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13190         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'
13191
13192         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13193         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13194
13195         # If archive_cmds runs LD, not CC, wlarc should be empty
13196         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13197         #     investigate it a little bit more. (MM)
13198         wlarc='${wl}'
13199
13200         # ancient GNU ld didn't support --whole-archive et. al.
13201         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13202           $GREP 'no-whole-archive' > /dev/null; then
13203           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13204         else
13205           whole_archive_flag_spec_CXX=
13206         fi
13207       else
13208         with_gnu_ld=no
13209         wlarc=
13210
13211         # A generic and very simple default shared library creation
13212         # command for GNU C++ for the case where it uses the native
13213         # linker, instead of GNU ld.  If possible, this setting should
13214         # overridden to take advantage of the native linker features on
13215         # the platform it is being used on.
13216         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13217       fi
13218
13219       # Commands to make compiler produce verbose output that lists
13220       # what "hidden" libraries, object files and flags are used when
13221       # linking a shared library.
13222       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13223
13224     else
13225       GXX=no
13226       with_gnu_ld=no
13227       wlarc=
13228     fi
13229
13230     # PORTME: fill in a description of your system's C++ link characteristics
13231     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13232 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13233     ld_shlibs_CXX=yes
13234     case $host_os in
13235       aix3*)
13236         # FIXME: insert proper C++ library support
13237         ld_shlibs_CXX=no
13238         ;;
13239       aix[4-9]*)
13240         if test "$host_cpu" = ia64; then
13241           # On IA64, the linker does run time linking by default, so we don't
13242           # have to do anything special.
13243           aix_use_runtimelinking=no
13244           exp_sym_flag='-Bexport'
13245           no_entry_flag=""
13246         else
13247           aix_use_runtimelinking=no
13248
13249           # Test if we are trying to use run time linking or normal
13250           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13251           # need to do runtime linking.
13252           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13253             for ld_flag in $LDFLAGS; do
13254               case $ld_flag in
13255               *-brtl*)
13256                 aix_use_runtimelinking=yes
13257                 break
13258                 ;;
13259               esac
13260             done
13261             ;;
13262           esac
13263
13264           exp_sym_flag='-bexport'
13265           no_entry_flag='-bnoentry'
13266         fi
13267
13268         # When large executables or shared objects are built, AIX ld can
13269         # have problems creating the table of contents.  If linking a library
13270         # or program results in "error TOC overflow" add -mminimal-toc to
13271         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13272         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13273
13274         archive_cmds_CXX=''
13275         hardcode_direct_CXX=yes
13276         hardcode_direct_absolute_CXX=yes
13277         hardcode_libdir_separator_CXX=':'
13278         link_all_deplibs_CXX=yes
13279         file_list_spec_CXX='${wl}-f,'
13280
13281         if test "$GXX" = yes; then
13282           case $host_os in aix4.[012]|aix4.[012].*)
13283           # We only want to do this on AIX 4.2 and lower, the check
13284           # below for broken collect2 doesn't work under 4.3+
13285           collect2name=`${CC} -print-prog-name=collect2`
13286           if test -f "$collect2name" &&
13287              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13288           then
13289             # We have reworked collect2
13290             :
13291           else
13292             # We have old collect2
13293             hardcode_direct_CXX=unsupported
13294             # It fails to find uninstalled libraries when the uninstalled
13295             # path is not listed in the libpath.  Setting hardcode_minus_L
13296             # to unsupported forces relinking
13297             hardcode_minus_L_CXX=yes
13298             hardcode_libdir_flag_spec_CXX='-L$libdir'
13299             hardcode_libdir_separator_CXX=
13300           fi
13301           esac
13302           shared_flag='-shared'
13303           if test "$aix_use_runtimelinking" = yes; then
13304             shared_flag="$shared_flag "'${wl}-G'
13305           fi
13306         else
13307           # not using gcc
13308           if test "$host_cpu" = ia64; then
13309           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13310           # chokes on -Wl,-G. The following line is correct:
13311           shared_flag='-G'
13312           else
13313             if test "$aix_use_runtimelinking" = yes; then
13314               shared_flag='${wl}-G'
13315             else
13316               shared_flag='${wl}-bM:SRE'
13317             fi
13318           fi
13319         fi
13320
13321         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13322         # It seems that -bexpall does not export symbols beginning with
13323         # underscore (_), so it is better to generate a list of symbols to
13324         # export.
13325         always_export_symbols_CXX=yes
13326         if test "$aix_use_runtimelinking" = yes; then
13327           # Warning - without using the other runtime loading flags (-brtl),
13328           # -berok will link without error, but may produce a broken library.
13329           allow_undefined_flag_CXX='-berok'
13330           # Determine the default libpath from the value encoded in an empty
13331           # executable.
13332           cat >conftest.$ac_ext <<_ACEOF
13333 /* confdefs.h.  */
13334 _ACEOF
13335 cat confdefs.h >>conftest.$ac_ext
13336 cat >>conftest.$ac_ext <<_ACEOF
13337 /* end confdefs.h.  */
13338
13339 int
13340 main ()
13341 {
13342
13343   ;
13344   return 0;
13345 }
13346 _ACEOF
13347 rm -f conftest.$ac_objext conftest$ac_exeext
13348 if { (ac_try="$ac_link"
13349 case "(($ac_try" in
13350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13351   *) ac_try_echo=$ac_try;;
13352 esac
13353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13354   (eval "$ac_link") 2>conftest.er1
13355   ac_status=$?
13356   grep -v '^ *+' conftest.er1 >conftest.err
13357   rm -f conftest.er1
13358   cat conftest.err >&5
13359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360   (exit $ac_status); } && {
13361          test -z "$ac_cxx_werror_flag" ||
13362          test ! -s conftest.err
13363        } && test -s conftest$ac_exeext &&
13364        $as_test_x conftest$ac_exeext; then
13365
13366 lt_aix_libpath_sed='
13367     /Import File Strings/,/^$/ {
13368         /^0/ {
13369             s/^0  *\(.*\)$/\1/
13370             p
13371         }
13372     }'
13373 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13374 # Check for a 64-bit object if we didn't find anything.
13375 if test -z "$aix_libpath"; then
13376   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13377 fi
13378 else
13379   echo "$as_me: failed program was:" >&5
13380 sed 's/^/| /' conftest.$ac_ext >&5
13381
13382
13383 fi
13384
13385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13386       conftest$ac_exeext conftest.$ac_ext
13387 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13388
13389           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13390
13391           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"
13392         else
13393           if test "$host_cpu" = ia64; then
13394             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13395             allow_undefined_flag_CXX="-z nodefs"
13396             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"
13397           else
13398             # Determine the default libpath from the value encoded in an
13399             # empty executable.
13400             cat >conftest.$ac_ext <<_ACEOF
13401 /* confdefs.h.  */
13402 _ACEOF
13403 cat confdefs.h >>conftest.$ac_ext
13404 cat >>conftest.$ac_ext <<_ACEOF
13405 /* end confdefs.h.  */
13406
13407 int
13408 main ()
13409 {
13410
13411   ;
13412   return 0;
13413 }
13414 _ACEOF
13415 rm -f conftest.$ac_objext conftest$ac_exeext
13416 if { (ac_try="$ac_link"
13417 case "(($ac_try" in
13418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419   *) ac_try_echo=$ac_try;;
13420 esac
13421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422   (eval "$ac_link") 2>conftest.er1
13423   ac_status=$?
13424   grep -v '^ *+' conftest.er1 >conftest.err
13425   rm -f conftest.er1
13426   cat conftest.err >&5
13427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428   (exit $ac_status); } && {
13429          test -z "$ac_cxx_werror_flag" ||
13430          test ! -s conftest.err
13431        } && test -s conftest$ac_exeext &&
13432        $as_test_x conftest$ac_exeext; then
13433
13434 lt_aix_libpath_sed='
13435     /Import File Strings/,/^$/ {
13436         /^0/ {
13437             s/^0  *\(.*\)$/\1/
13438             p
13439         }
13440     }'
13441 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13442 # Check for a 64-bit object if we didn't find anything.
13443 if test -z "$aix_libpath"; then
13444   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13445 fi
13446 else
13447   echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13449
13450
13451 fi
13452
13453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13454       conftest$ac_exeext conftest.$ac_ext
13455 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13456
13457             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13458             # Warning - without using the other run time loading flags,
13459             # -berok will link without error, but may produce a broken library.
13460             no_undefined_flag_CXX=' ${wl}-bernotok'
13461             allow_undefined_flag_CXX=' ${wl}-berok'
13462             # Exported symbols can be pulled into shared objects from archives
13463             whole_archive_flag_spec_CXX='$convenience'
13464             archive_cmds_need_lc_CXX=yes
13465             # This is similar to how AIX traditionally builds its shared
13466             # libraries.
13467             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'
13468           fi
13469         fi
13470         ;;
13471
13472       beos*)
13473         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13474           allow_undefined_flag_CXX=unsupported
13475           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13476           # support --undefined.  This deserves some investigation.  FIXME
13477           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13478         else
13479           ld_shlibs_CXX=no
13480         fi
13481         ;;
13482
13483       chorus*)
13484         case $cc_basename in
13485           *)
13486           # FIXME: insert proper C++ library support
13487           ld_shlibs_CXX=no
13488           ;;
13489         esac
13490         ;;
13491
13492       cygwin* | mingw* | pw32* | cegcc*)
13493         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13494         # as there is no search path for DLLs.
13495         hardcode_libdir_flag_spec_CXX='-L$libdir'
13496         allow_undefined_flag_CXX=unsupported
13497         always_export_symbols_CXX=no
13498         enable_shared_with_static_runtimes_CXX=yes
13499
13500         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13501           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'
13502           # If the export-symbols file already is a .def file (1st line
13503           # is EXPORTS), use it as is; otherwise, prepend...
13504           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13505             cp $export_symbols $output_objdir/$soname.def;
13506           else
13507             echo EXPORTS > $output_objdir/$soname.def;
13508             cat $export_symbols >> $output_objdir/$soname.def;
13509           fi~
13510           $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'
13511         else
13512           ld_shlibs_CXX=no
13513         fi
13514         ;;
13515       darwin* | rhapsody*)
13516
13517
13518   archive_cmds_need_lc_CXX=no
13519   hardcode_direct_CXX=no
13520   hardcode_automatic_CXX=yes
13521   hardcode_shlibpath_var_CXX=unsupported
13522   whole_archive_flag_spec_CXX=''
13523   link_all_deplibs_CXX=yes
13524   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13525   case $cc_basename in
13526      ifort*) _lt_dar_can_shared=yes ;;
13527      *) _lt_dar_can_shared=$GCC ;;
13528   esac
13529   if test "$_lt_dar_can_shared" = "yes"; then
13530     output_verbose_link_cmd=echo
13531     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}"
13532     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13533     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}"
13534     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}"
13535        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13536       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}"
13537       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}"
13538     fi
13539
13540   else
13541   ld_shlibs_CXX=no
13542   fi
13543
13544         ;;
13545
13546       dgux*)
13547         case $cc_basename in
13548           ec++*)
13549             # FIXME: insert proper C++ library support
13550             ld_shlibs_CXX=no
13551             ;;
13552           ghcx*)
13553             # Green Hills C++ Compiler
13554             # FIXME: insert proper C++ library support
13555             ld_shlibs_CXX=no
13556             ;;
13557           *)
13558             # FIXME: insert proper C++ library support
13559             ld_shlibs_CXX=no
13560             ;;
13561         esac
13562         ;;
13563
13564       freebsd[12]*)
13565         # C++ shared libraries reported to be fairly broken before
13566         # switch to ELF
13567         ld_shlibs_CXX=no
13568         ;;
13569
13570       freebsd-elf*)
13571         archive_cmds_need_lc_CXX=no
13572         ;;
13573
13574       freebsd* | dragonfly*)
13575         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13576         # conventions
13577         ld_shlibs_CXX=yes
13578         ;;
13579
13580       gnu*)
13581         ;;
13582
13583       hpux9*)
13584         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13585         hardcode_libdir_separator_CXX=:
13586         export_dynamic_flag_spec_CXX='${wl}-E'
13587         hardcode_direct_CXX=yes
13588         hardcode_minus_L_CXX=yes # Not in the search PATH,
13589                                              # but as the default
13590                                              # location of the library.
13591
13592         case $cc_basename in
13593           CC*)
13594             # FIXME: insert proper C++ library support
13595             ld_shlibs_CXX=no
13596             ;;
13597           aCC*)
13598             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'
13599             # Commands to make compiler produce verbose output that lists
13600             # what "hidden" libraries, object files and flags are used when
13601             # linking a shared library.
13602             #
13603             # There doesn't appear to be a way to prevent this compiler from
13604             # explicitly linking system object files so we need to strip them
13605             # from the output so that they don't get included in the library
13606             # dependencies.
13607             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'
13608             ;;
13609           *)
13610             if test "$GXX" = yes; then
13611               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'
13612             else
13613               # FIXME: insert proper C++ library support
13614               ld_shlibs_CXX=no
13615             fi
13616             ;;
13617         esac
13618         ;;
13619
13620       hpux10*|hpux11*)
13621         if test $with_gnu_ld = no; then
13622           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13623           hardcode_libdir_separator_CXX=:
13624
13625           case $host_cpu in
13626             hppa*64*|ia64*)
13627               ;;
13628             *)
13629               export_dynamic_flag_spec_CXX='${wl}-E'
13630               ;;
13631           esac
13632         fi
13633         case $host_cpu in
13634           hppa*64*|ia64*)
13635             hardcode_direct_CXX=no
13636             hardcode_shlibpath_var_CXX=no
13637             ;;
13638           *)
13639             hardcode_direct_CXX=yes
13640             hardcode_direct_absolute_CXX=yes
13641             hardcode_minus_L_CXX=yes # Not in the search PATH,
13642                                                  # but as the default
13643                                                  # location of the library.
13644             ;;
13645         esac
13646
13647         case $cc_basename in
13648           CC*)
13649             # FIXME: insert proper C++ library support
13650             ld_shlibs_CXX=no
13651             ;;
13652           aCC*)
13653             case $host_cpu in
13654               hppa*64*)
13655                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13656                 ;;
13657               ia64*)
13658                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13659                 ;;
13660               *)
13661                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13662                 ;;
13663             esac
13664             # Commands to make compiler produce verbose output that lists
13665             # what "hidden" libraries, object files and flags are used when
13666             # linking a shared library.
13667             #
13668             # There doesn't appear to be a way to prevent this compiler from
13669             # explicitly linking system object files so we need to strip them
13670             # from the output so that they don't get included in the library
13671             # dependencies.
13672             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'
13673             ;;
13674           *)
13675             if test "$GXX" = yes; then
13676               if test $with_gnu_ld = no; then
13677                 case $host_cpu in
13678                   hppa*64*)
13679                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13680                     ;;
13681                   ia64*)
13682                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13683                     ;;
13684                   *)
13685                     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'
13686                     ;;
13687                 esac
13688               fi
13689             else
13690               # FIXME: insert proper C++ library support
13691               ld_shlibs_CXX=no
13692             fi
13693             ;;
13694         esac
13695         ;;
13696
13697       interix[3-9]*)
13698         hardcode_direct_CXX=no
13699         hardcode_shlibpath_var_CXX=no
13700         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13701         export_dynamic_flag_spec_CXX='${wl}-E'
13702         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13703         # Instead, shared libraries are loaded at an image base (0x10000000 by
13704         # default) and relocated if they conflict, which is a slow very memory
13705         # consuming and fragmenting process.  To avoid this, we pick a random,
13706         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13707         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13708         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'
13709         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'
13710         ;;
13711       irix5* | irix6*)
13712         case $cc_basename in
13713           CC*)
13714             # SGI C++
13715             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'
13716
13717             # Archives containing C++ object files must be created using
13718             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13719             # necessary to make sure instantiated templates are included
13720             # in the archive.
13721             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13722             ;;
13723           *)
13724             if test "$GXX" = yes; then
13725               if test "$with_gnu_ld" = no; then
13726                 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'
13727               else
13728                 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'
13729               fi
13730             fi
13731             link_all_deplibs_CXX=yes
13732             ;;
13733         esac
13734         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13735         hardcode_libdir_separator_CXX=:
13736         inherit_rpath_CXX=yes
13737         ;;
13738
13739       linux* | k*bsd*-gnu)
13740         case $cc_basename in
13741           KCC*)
13742             # Kuck and Associates, Inc. (KAI) C++ Compiler
13743
13744             # KCC will only create a shared library if the output file
13745             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13746             # to its proper name (with version) after linking.
13747             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'
13748             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'
13749             # Commands to make compiler produce verbose output that lists
13750             # what "hidden" libraries, object files and flags are used when
13751             # linking a shared library.
13752             #
13753             # There doesn't appear to be a way to prevent this compiler from
13754             # explicitly linking system object files so we need to strip them
13755             # from the output so that they don't get included in the library
13756             # dependencies.
13757             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'
13758
13759             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13760             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13761
13762             # Archives containing C++ object files must be created using
13763             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13764             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13765             ;;
13766           icpc* | ecpc* )
13767             # Intel C++
13768             with_gnu_ld=yes
13769             # version 8.0 and above of icpc choke on multiply defined symbols
13770             # if we add $predep_objects and $postdep_objects, however 7.1 and
13771             # earlier do not add the objects themselves.
13772             case `$CC -V 2>&1` in
13773               *"Version 7."*)
13774                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13775                 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'
13776                 ;;
13777               *)  # Version 8.0 or newer
13778                 tmp_idyn=
13779                 case $host_cpu in
13780                   ia64*) tmp_idyn=' -i_dynamic';;
13781                 esac
13782                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13783                 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'
13784                 ;;
13785             esac
13786             archive_cmds_need_lc_CXX=no
13787             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13788             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13789             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13790             ;;
13791           pgCC* | pgcpp*)
13792             # Portland Group C++ compiler
13793             case `$CC -V` in
13794             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13795               prelink_cmds_CXX='tpldir=Template.dir~
13796                 rm -rf $tpldir~
13797                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13798                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13799               old_archive_cmds_CXX='tpldir=Template.dir~
13800                 rm -rf $tpldir~
13801                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13802                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13803                 $RANLIB $oldlib'
13804               archive_cmds_CXX='tpldir=Template.dir~
13805                 rm -rf $tpldir~
13806                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13807                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13808               archive_expsym_cmds_CXX='tpldir=Template.dir~
13809                 rm -rf $tpldir~
13810                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13811                 $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'
13812               ;;
13813             *) # Version 6 will use weak symbols
13814               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13815               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'
13816               ;;
13817             esac
13818
13819             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13820             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13821             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'
13822             ;;
13823           cxx*)
13824             # Compaq C++
13825             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13826             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13827
13828             runpath_var=LD_RUN_PATH
13829             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13830             hardcode_libdir_separator_CXX=:
13831
13832             # Commands to make compiler produce verbose output that lists
13833             # what "hidden" libraries, object files and flags are used when
13834             # linking a shared library.
13835             #
13836             # There doesn't appear to be a way to prevent this compiler from
13837             # explicitly linking system object files so we need to strip them
13838             # from the output so that they don't get included in the library
13839             # dependencies.
13840             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'
13841             ;;
13842           xl*)
13843             # IBM XL 8.0 on PPC, with GNU ld
13844             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13845             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13846             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13847             if test "x$supports_anon_versioning" = xyes; then
13848               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13849                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13850                 echo "local: *; };" >> $output_objdir/$libname.ver~
13851                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13852             fi
13853             ;;
13854           *)
13855             case `$CC -V 2>&1 | sed 5q` in
13856             *Sun\ C*)
13857               # Sun C++ 5.9
13858               no_undefined_flag_CXX=' -zdefs'
13859               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13860               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'
13861               hardcode_libdir_flag_spec_CXX='-R$libdir'
13862               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'
13863               compiler_needs_object_CXX=yes
13864
13865               # Not sure whether something based on
13866               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13867               # would be better.
13868               output_verbose_link_cmd='echo'
13869
13870               # Archives containing C++ object files must be created using
13871               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13872               # necessary to make sure instantiated templates are included
13873               # in the archive.
13874               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13875               ;;
13876             esac
13877             ;;
13878         esac
13879         ;;
13880
13881       lynxos*)
13882         # FIXME: insert proper C++ library support
13883         ld_shlibs_CXX=no
13884         ;;
13885
13886       m88k*)
13887         # FIXME: insert proper C++ library support
13888         ld_shlibs_CXX=no
13889         ;;
13890
13891       mvs*)
13892         case $cc_basename in
13893           cxx*)
13894             # FIXME: insert proper C++ library support
13895             ld_shlibs_CXX=no
13896             ;;
13897           *)
13898             # FIXME: insert proper C++ library support
13899             ld_shlibs_CXX=no
13900             ;;
13901         esac
13902         ;;
13903
13904       netbsd*)
13905         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13906           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13907           wlarc=
13908           hardcode_libdir_flag_spec_CXX='-R$libdir'
13909           hardcode_direct_CXX=yes
13910           hardcode_shlibpath_var_CXX=no
13911         fi
13912         # Workaround some broken pre-1.5 toolchains
13913         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13914         ;;
13915
13916       *nto* | *qnx*)
13917         ld_shlibs_CXX=yes
13918         ;;
13919
13920       openbsd2*)
13921         # C++ shared libraries are fairly broken
13922         ld_shlibs_CXX=no
13923         ;;
13924
13925       openbsd*)
13926         if test -f /usr/libexec/ld.so; then
13927           hardcode_direct_CXX=yes
13928           hardcode_shlibpath_var_CXX=no
13929           hardcode_direct_absolute_CXX=yes
13930           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13931           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13932           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13933             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13934             export_dynamic_flag_spec_CXX='${wl}-E'
13935             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13936           fi
13937           output_verbose_link_cmd=echo
13938         else
13939           ld_shlibs_CXX=no
13940         fi
13941         ;;
13942
13943       osf3* | osf4* | osf5*)
13944         case $cc_basename in
13945           KCC*)
13946             # Kuck and Associates, Inc. (KAI) C++ Compiler
13947
13948             # KCC will only create a shared library if the output file
13949             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13950             # to its proper name (with version) after linking.
13951             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'
13952
13953             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13954             hardcode_libdir_separator_CXX=:
13955
13956             # Archives containing C++ object files must be created using
13957             # the KAI C++ compiler.
13958             case $host in
13959               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13960               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13961             esac
13962             ;;
13963           RCC*)
13964             # Rational C++ 2.4.1
13965             # FIXME: insert proper C++ library support
13966             ld_shlibs_CXX=no
13967             ;;
13968           cxx*)
13969             case $host in
13970               osf3*)
13971                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13972                 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'
13973                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13974                 ;;
13975               *)
13976                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13977                 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'
13978                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13979                   echo "-hidden">> $lib.exp~
13980                   $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~
13981                   $RM $lib.exp'
13982                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13983                 ;;
13984             esac
13985
13986             hardcode_libdir_separator_CXX=:
13987
13988             # Commands to make compiler produce verbose output that lists
13989             # what "hidden" libraries, object files and flags are used when
13990             # linking a shared library.
13991             #
13992             # There doesn't appear to be a way to prevent this compiler from
13993             # explicitly linking system object files so we need to strip them
13994             # from the output so that they don't get included in the library
13995             # dependencies.
13996             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'
13997             ;;
13998           *)
13999             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14000               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14001               case $host in
14002                 osf3*)
14003                   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'
14004                   ;;
14005                 *)
14006                   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'
14007                   ;;
14008               esac
14009
14010               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14011               hardcode_libdir_separator_CXX=:
14012
14013               # Commands to make compiler produce verbose output that lists
14014               # what "hidden" libraries, object files and flags are used when
14015               # linking a shared library.
14016               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14017
14018             else
14019               # FIXME: insert proper C++ library support
14020               ld_shlibs_CXX=no
14021             fi
14022             ;;
14023         esac
14024         ;;
14025
14026       psos*)
14027         # FIXME: insert proper C++ library support
14028         ld_shlibs_CXX=no
14029         ;;
14030
14031       sunos4*)
14032         case $cc_basename in
14033           CC*)
14034             # Sun C++ 4.x
14035             # FIXME: insert proper C++ library support
14036             ld_shlibs_CXX=no
14037             ;;
14038           lcc*)
14039             # Lucid
14040             # FIXME: insert proper C++ library support
14041             ld_shlibs_CXX=no
14042             ;;
14043           *)
14044             # FIXME: insert proper C++ library support
14045             ld_shlibs_CXX=no
14046             ;;
14047         esac
14048         ;;
14049
14050       solaris*)
14051         case $cc_basename in
14052           CC*)
14053             # Sun C++ 4.2, 5.x and Centerline C++
14054             archive_cmds_need_lc_CXX=yes
14055             no_undefined_flag_CXX=' -zdefs'
14056             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14057             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14058               $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'
14059
14060             hardcode_libdir_flag_spec_CXX='-R$libdir'
14061             hardcode_shlibpath_var_CXX=no
14062             case $host_os in
14063               solaris2.[0-5] | solaris2.[0-5].*) ;;
14064               *)
14065                 # The compiler driver will combine and reorder linker options,
14066                 # but understands `-z linker_flag'.
14067                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14068                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14069                 ;;
14070             esac
14071             link_all_deplibs_CXX=yes
14072
14073             output_verbose_link_cmd='echo'
14074
14075             # Archives containing C++ object files must be created using
14076             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14077             # necessary to make sure instantiated templates are included
14078             # in the archive.
14079             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14080             ;;
14081           gcx*)
14082             # Green Hills C++ Compiler
14083             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14084
14085             # The C++ compiler must be used to create the archive.
14086             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14087             ;;
14088           *)
14089             # GNU C++ compiler with Solaris linker
14090             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14091               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14092               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14093                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14094                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14095                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14096
14097                 # Commands to make compiler produce verbose output that lists
14098                 # what "hidden" libraries, object files and flags are used when
14099                 # linking a shared library.
14100                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14101               else
14102                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14103                 # platform.
14104                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14105                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14106                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14107
14108                 # Commands to make compiler produce verbose output that lists
14109                 # what "hidden" libraries, object files and flags are used when
14110                 # linking a shared library.
14111                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14112               fi
14113
14114               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14115               case $host_os in
14116                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14117                 *)
14118                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14119                   ;;
14120               esac
14121             fi
14122             ;;
14123         esac
14124         ;;
14125
14126     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14127       no_undefined_flag_CXX='${wl}-z,text'
14128       archive_cmds_need_lc_CXX=no
14129       hardcode_shlibpath_var_CXX=no
14130       runpath_var='LD_RUN_PATH'
14131
14132       case $cc_basename in
14133         CC*)
14134           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14135           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14136           ;;
14137         *)
14138           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14139           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14140           ;;
14141       esac
14142       ;;
14143
14144       sysv5* | sco3.2v5* | sco5v6*)
14145         # Note: We can NOT use -z defs as we might desire, because we do not
14146         # link with -lc, and that would cause any symbols used from libc to
14147         # always be unresolved, which means just about no library would
14148         # ever link correctly.  If we're not using GNU ld we use -z text
14149         # though, which does catch some bad symbols but isn't as heavy-handed
14150         # as -z defs.
14151         no_undefined_flag_CXX='${wl}-z,text'
14152         allow_undefined_flag_CXX='${wl}-z,nodefs'
14153         archive_cmds_need_lc_CXX=no
14154         hardcode_shlibpath_var_CXX=no
14155         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14156         hardcode_libdir_separator_CXX=':'
14157         link_all_deplibs_CXX=yes
14158         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14159         runpath_var='LD_RUN_PATH'
14160
14161         case $cc_basename in
14162           CC*)
14163             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14164             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14165             ;;
14166           *)
14167             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14168             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14169             ;;
14170         esac
14171       ;;
14172
14173       tandem*)
14174         case $cc_basename in
14175           NCC*)
14176             # NonStop-UX NCC 3.20
14177             # FIXME: insert proper C++ library support
14178             ld_shlibs_CXX=no
14179             ;;
14180           *)
14181             # FIXME: insert proper C++ library support
14182             ld_shlibs_CXX=no
14183             ;;
14184         esac
14185         ;;
14186
14187       vxworks*)
14188         # FIXME: insert proper C++ library support
14189         ld_shlibs_CXX=no
14190         ;;
14191
14192       *)
14193         # FIXME: insert proper C++ library support
14194         ld_shlibs_CXX=no
14195         ;;
14196     esac
14197
14198     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14199 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14200     test "$ld_shlibs_CXX" = no && can_build_shared=no
14201
14202     GCC_CXX="$GXX"
14203     LD_CXX="$LD"
14204
14205     ## CAVEAT EMPTOR:
14206     ## There is no encapsulation within the following macros, do not change
14207     ## the running order or otherwise move them around unless you know exactly
14208     ## what you are doing...
14209     # Dependencies to place before and after the object being linked:
14210 predep_objects_CXX=
14211 postdep_objects_CXX=
14212 predeps_CXX=
14213 postdeps_CXX=
14214 compiler_lib_search_path_CXX=
14215
14216 cat > conftest.$ac_ext <<_LT_EOF
14217 class Foo
14218 {
14219 public:
14220   Foo (void) { a = 0; }
14221 private:
14222   int a;
14223 };
14224 _LT_EOF
14225
14226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14227   (eval $ac_compile) 2>&5
14228   ac_status=$?
14229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230   (exit $ac_status); }; then
14231   # Parse the compiler output and extract the necessary
14232   # objects, libraries and library flags.
14233
14234   # Sentinel used to keep track of whether or not we are before
14235   # the conftest object file.
14236   pre_test_object_deps_done=no
14237
14238   for p in `eval "$output_verbose_link_cmd"`; do
14239     case $p in
14240
14241     -L* | -R* | -l*)
14242        # Some compilers place space between "-{L,R}" and the path.
14243        # Remove the space.
14244        if test $p = "-L" ||
14245           test $p = "-R"; then
14246          prev=$p
14247          continue
14248        else
14249          prev=
14250        fi
14251
14252        if test "$pre_test_object_deps_done" = no; then
14253          case $p in
14254          -L* | -R*)
14255            # Internal compiler library paths should come after those
14256            # provided the user.  The postdeps already come after the
14257            # user supplied libs so there is no need to process them.
14258            if test -z "$compiler_lib_search_path_CXX"; then
14259              compiler_lib_search_path_CXX="${prev}${p}"
14260            else
14261              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14262            fi
14263            ;;
14264          # The "-l" case would never come before the object being
14265          # linked, so don't bother handling this case.
14266          esac
14267        else
14268          if test -z "$postdeps_CXX"; then
14269            postdeps_CXX="${prev}${p}"
14270          else
14271            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14272          fi
14273        fi
14274        ;;
14275
14276     *.$objext)
14277        # This assumes that the test object file only shows up
14278        # once in the compiler output.
14279        if test "$p" = "conftest.$objext"; then
14280          pre_test_object_deps_done=yes
14281          continue
14282        fi
14283
14284        if test "$pre_test_object_deps_done" = no; then
14285          if test -z "$predep_objects_CXX"; then
14286            predep_objects_CXX="$p"
14287          else
14288            predep_objects_CXX="$predep_objects_CXX $p"
14289          fi
14290        else
14291          if test -z "$postdep_objects_CXX"; then
14292            postdep_objects_CXX="$p"
14293          else
14294            postdep_objects_CXX="$postdep_objects_CXX $p"
14295          fi
14296        fi
14297        ;;
14298
14299     *) ;; # Ignore the rest.
14300
14301     esac
14302   done
14303
14304   # Clean up.
14305   rm -f a.out a.exe
14306 else
14307   echo "libtool.m4: error: problem compiling CXX test program"
14308 fi
14309
14310 $RM -f confest.$objext
14311
14312 # PORTME: override above test on systems where it is broken
14313 case $host_os in
14314 interix[3-9]*)
14315   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14316   # hack all around it, let's just trust "g++" to DTRT.
14317   predep_objects_CXX=
14318   postdep_objects_CXX=
14319   postdeps_CXX=
14320   ;;
14321
14322 linux*)
14323   case `$CC -V 2>&1 | sed 5q` in
14324   *Sun\ C*)
14325     # Sun C++ 5.9
14326
14327     # The more standards-conforming stlport4 library is
14328     # incompatible with the Cstd library. Avoid specifying
14329     # it if it's in CXXFLAGS. Ignore libCrun as
14330     # -library=stlport4 depends on it.
14331     case " $CXX $CXXFLAGS " in
14332     *" -library=stlport4 "*)
14333       solaris_use_stlport4=yes
14334       ;;
14335     esac
14336
14337     if test "$solaris_use_stlport4" != yes; then
14338       postdeps_CXX='-library=Cstd -library=Crun'
14339     fi
14340     ;;
14341   esac
14342   ;;
14343
14344 solaris*)
14345   case $cc_basename in
14346   CC*)
14347     # The more standards-conforming stlport4 library is
14348     # incompatible with the Cstd library. Avoid specifying
14349     # it if it's in CXXFLAGS. Ignore libCrun as
14350     # -library=stlport4 depends on it.
14351     case " $CXX $CXXFLAGS " in
14352     *" -library=stlport4 "*)
14353       solaris_use_stlport4=yes
14354       ;;
14355     esac
14356
14357     # Adding this requires a known-good setup of shared libraries for
14358     # Sun compiler versions before 5.6, else PIC objects from an old
14359     # archive will be linked into the output, leading to subtle bugs.
14360     if test "$solaris_use_stlport4" != yes; then
14361       postdeps_CXX='-library=Cstd -library=Crun'
14362     fi
14363     ;;
14364   esac
14365   ;;
14366 esac
14367
14368
14369 case " $postdeps_CXX " in
14370 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14371 esac
14372  compiler_lib_search_dirs_CXX=
14373 if test -n "${compiler_lib_search_path_CXX}"; then
14374  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14375 fi
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407     lt_prog_compiler_wl_CXX=
14408 lt_prog_compiler_pic_CXX=
14409 lt_prog_compiler_static_CXX=
14410
14411 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14412 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14413
14414   # C++ specific cases for pic, static, wl, etc.
14415   if test "$GXX" = yes; then
14416     lt_prog_compiler_wl_CXX='-Wl,'
14417     lt_prog_compiler_static_CXX='-static'
14418
14419     case $host_os in
14420     aix*)
14421       # All AIX code is PIC.
14422       if test "$host_cpu" = ia64; then
14423         # AIX 5 now supports IA64 processor
14424         lt_prog_compiler_static_CXX='-Bstatic'
14425       fi
14426       ;;
14427
14428     amigaos*)
14429       case $host_cpu in
14430       powerpc)
14431             # see comment about AmigaOS4 .so support
14432             lt_prog_compiler_pic_CXX='-fPIC'
14433         ;;
14434       m68k)
14435             # FIXME: we need at least 68020 code to build shared libraries, but
14436             # adding the `-m68020' flag to GCC prevents building anything better,
14437             # like `-m68040'.
14438             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14439         ;;
14440       esac
14441       ;;
14442
14443     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14444       # PIC is the default for these OSes.
14445       ;;
14446     mingw* | cygwin* | os2* | pw32* | cegcc*)
14447       # This hack is so that the source file can tell whether it is being
14448       # built for inclusion in a dll (and should export symbols for example).
14449       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14450       # (--disable-auto-import) libraries
14451       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14452       ;;
14453     darwin* | rhapsody*)
14454       # PIC is the default on this platform
14455       # Common symbols not allowed in MH_DYLIB files
14456       lt_prog_compiler_pic_CXX='-fno-common'
14457       ;;
14458     *djgpp*)
14459       # DJGPP does not support shared libraries at all
14460       lt_prog_compiler_pic_CXX=
14461       ;;
14462     interix[3-9]*)
14463       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14464       # Instead, we relocate shared libraries at runtime.
14465       ;;
14466     sysv4*MP*)
14467       if test -d /usr/nec; then
14468         lt_prog_compiler_pic_CXX=-Kconform_pic
14469       fi
14470       ;;
14471     hpux*)
14472       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14473       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14474       # sets the default TLS model and affects inlining.
14475       case $host_cpu in
14476       hppa*64*)
14477         ;;
14478       *)
14479         lt_prog_compiler_pic_CXX='-fPIC'
14480         ;;
14481       esac
14482       ;;
14483     *qnx* | *nto*)
14484       # QNX uses GNU C++, but need to define -shared option too, otherwise
14485       # it will coredump.
14486       lt_prog_compiler_pic_CXX='-fPIC -shared'
14487       ;;
14488     *)
14489       lt_prog_compiler_pic_CXX='-fPIC'
14490       ;;
14491     esac
14492   else
14493     case $host_os in
14494       aix[4-9]*)
14495         # All AIX code is PIC.
14496         if test "$host_cpu" = ia64; then
14497           # AIX 5 now supports IA64 processor
14498           lt_prog_compiler_static_CXX='-Bstatic'
14499         else
14500           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14501         fi
14502         ;;
14503       chorus*)
14504         case $cc_basename in
14505         cxch68*)
14506           # Green Hills C++ Compiler
14507           # _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"
14508           ;;
14509         esac
14510         ;;
14511       dgux*)
14512         case $cc_basename in
14513           ec++*)
14514             lt_prog_compiler_pic_CXX='-KPIC'
14515             ;;
14516           ghcx*)
14517             # Green Hills C++ Compiler
14518             lt_prog_compiler_pic_CXX='-pic'
14519             ;;
14520           *)
14521             ;;
14522         esac
14523         ;;
14524       freebsd* | dragonfly*)
14525         # FreeBSD uses GNU C++
14526         ;;
14527       hpux9* | hpux10* | hpux11*)
14528         case $cc_basename in
14529           CC*)
14530             lt_prog_compiler_wl_CXX='-Wl,'
14531             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14532             if test "$host_cpu" != ia64; then
14533               lt_prog_compiler_pic_CXX='+Z'
14534             fi
14535             ;;
14536           aCC*)
14537             lt_prog_compiler_wl_CXX='-Wl,'
14538             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14539             case $host_cpu in
14540             hppa*64*|ia64*)
14541               # +Z the default
14542               ;;
14543             *)
14544               lt_prog_compiler_pic_CXX='+Z'
14545               ;;
14546             esac
14547             ;;
14548           *)
14549             ;;
14550         esac
14551         ;;
14552       interix*)
14553         # This is c89, which is MS Visual C++ (no shared libs)
14554         # Anyone wants to do a port?
14555         ;;
14556       irix5* | irix6* | nonstopux*)
14557         case $cc_basename in
14558           CC*)
14559             lt_prog_compiler_wl_CXX='-Wl,'
14560             lt_prog_compiler_static_CXX='-non_shared'
14561             # CC pic flag -KPIC is the default.
14562             ;;
14563           *)
14564             ;;
14565         esac
14566         ;;
14567       linux* | k*bsd*-gnu)
14568         case $cc_basename in
14569           KCC*)
14570             # KAI C++ Compiler
14571             lt_prog_compiler_wl_CXX='--backend -Wl,'
14572             lt_prog_compiler_pic_CXX='-fPIC'
14573             ;;
14574           ecpc* )
14575             # old Intel C++ for x86_64 which still supported -KPIC.
14576             lt_prog_compiler_wl_CXX='-Wl,'
14577             lt_prog_compiler_pic_CXX='-KPIC'
14578             lt_prog_compiler_static_CXX='-static'
14579             ;;
14580           icpc* )
14581             # Intel C++, used to be incompatible with GCC.
14582             # ICC 10 doesn't accept -KPIC any more.
14583             lt_prog_compiler_wl_CXX='-Wl,'
14584             lt_prog_compiler_pic_CXX='-fPIC'
14585             lt_prog_compiler_static_CXX='-static'
14586             ;;
14587           pgCC* | pgcpp*)
14588             # Portland Group C++ compiler
14589             lt_prog_compiler_wl_CXX='-Wl,'
14590             lt_prog_compiler_pic_CXX='-fpic'
14591             lt_prog_compiler_static_CXX='-Bstatic'
14592             ;;
14593           cxx*)
14594             # Compaq C++
14595             # Make sure the PIC flag is empty.  It appears that all Alpha
14596             # Linux and Compaq Tru64 Unix objects are PIC.
14597             lt_prog_compiler_pic_CXX=
14598             lt_prog_compiler_static_CXX='-non_shared'
14599             ;;
14600           xlc* | xlC*)
14601             # IBM XL 8.0 on PPC
14602             lt_prog_compiler_wl_CXX='-Wl,'
14603             lt_prog_compiler_pic_CXX='-qpic'
14604             lt_prog_compiler_static_CXX='-qstaticlink'
14605             ;;
14606           *)
14607             case `$CC -V 2>&1 | sed 5q` in
14608             *Sun\ C*)
14609               # Sun C++ 5.9
14610               lt_prog_compiler_pic_CXX='-KPIC'
14611               lt_prog_compiler_static_CXX='-Bstatic'
14612               lt_prog_compiler_wl_CXX='-Qoption ld '
14613               ;;
14614             esac
14615             ;;
14616         esac
14617         ;;
14618       lynxos*)
14619         ;;
14620       m88k*)
14621         ;;
14622       mvs*)
14623         case $cc_basename in
14624           cxx*)
14625             lt_prog_compiler_pic_CXX='-W c,exportall'
14626             ;;
14627           *)
14628             ;;
14629         esac
14630         ;;
14631       netbsd*)
14632         ;;
14633       *qnx* | *nto*)
14634         # QNX uses GNU C++, but need to define -shared option too, otherwise
14635         # it will coredump.
14636         lt_prog_compiler_pic_CXX='-fPIC -shared'
14637         ;;
14638       osf3* | osf4* | osf5*)
14639         case $cc_basename in
14640           KCC*)
14641             lt_prog_compiler_wl_CXX='--backend -Wl,'
14642             ;;
14643           RCC*)
14644             # Rational C++ 2.4.1
14645             lt_prog_compiler_pic_CXX='-pic'
14646             ;;
14647           cxx*)
14648             # Digital/Compaq C++
14649             lt_prog_compiler_wl_CXX='-Wl,'
14650             # Make sure the PIC flag is empty.  It appears that all Alpha
14651             # Linux and Compaq Tru64 Unix objects are PIC.
14652             lt_prog_compiler_pic_CXX=
14653             lt_prog_compiler_static_CXX='-non_shared'
14654             ;;
14655           *)
14656             ;;
14657         esac
14658         ;;
14659       psos*)
14660         ;;
14661       solaris*)
14662         case $cc_basename in
14663           CC*)
14664             # Sun C++ 4.2, 5.x and Centerline C++
14665             lt_prog_compiler_pic_CXX='-KPIC'
14666             lt_prog_compiler_static_CXX='-Bstatic'
14667             lt_prog_compiler_wl_CXX='-Qoption ld '
14668             ;;
14669           gcx*)
14670             # Green Hills C++ Compiler
14671             lt_prog_compiler_pic_CXX='-PIC'
14672             ;;
14673           *)
14674             ;;
14675         esac
14676         ;;
14677       sunos4*)
14678         case $cc_basename in
14679           CC*)
14680             # Sun C++ 4.x
14681             lt_prog_compiler_pic_CXX='-pic'
14682             lt_prog_compiler_static_CXX='-Bstatic'
14683             ;;
14684           lcc*)
14685             # Lucid
14686             lt_prog_compiler_pic_CXX='-pic'
14687             ;;
14688           *)
14689             ;;
14690         esac
14691         ;;
14692       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14693         case $cc_basename in
14694           CC*)
14695             lt_prog_compiler_wl_CXX='-Wl,'
14696             lt_prog_compiler_pic_CXX='-KPIC'
14697             lt_prog_compiler_static_CXX='-Bstatic'
14698             ;;
14699         esac
14700         ;;
14701       tandem*)
14702         case $cc_basename in
14703           NCC*)
14704             # NonStop-UX NCC 3.20
14705             lt_prog_compiler_pic_CXX='-KPIC'
14706             ;;
14707           *)
14708             ;;
14709         esac
14710         ;;
14711       vxworks*)
14712         ;;
14713       *)
14714         lt_prog_compiler_can_build_shared_CXX=no
14715         ;;
14716     esac
14717   fi
14718
14719 case $host_os in
14720   # For platforms which do not support PIC, -DPIC is meaningless:
14721   *djgpp*)
14722     lt_prog_compiler_pic_CXX=
14723     ;;
14724   *)
14725     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14726     ;;
14727 esac
14728 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14729 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14730
14731
14732
14733 #
14734 # Check to make sure the PIC flag actually works.
14735 #
14736 if test -n "$lt_prog_compiler_pic_CXX"; then
14737   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14738 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14739 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14740   echo $ECHO_N "(cached) $ECHO_C" >&6
14741 else
14742   lt_cv_prog_compiler_pic_works_CXX=no
14743    ac_outfile=conftest.$ac_objext
14744    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14745    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14746    # Insert the option either (1) after the last *FLAGS variable, or
14747    # (2) before a word containing "conftest.", or (3) at the end.
14748    # Note that $ac_compile itself does not contain backslashes and begins
14749    # with a dollar sign (not a hyphen), so the echo should work correctly.
14750    # The option is referenced via a variable to avoid confusing sed.
14751    lt_compile=`echo "$ac_compile" | $SED \
14752    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14753    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14754    -e 's:$: $lt_compiler_flag:'`
14755    (eval echo "\"\$as_me:14755: $lt_compile\"" >&5)
14756    (eval "$lt_compile" 2>conftest.err)
14757    ac_status=$?
14758    cat conftest.err >&5
14759    echo "$as_me:14759: \$? = $ac_status" >&5
14760    if (exit $ac_status) && test -s "$ac_outfile"; then
14761      # The compiler can only warn and ignore the option if not recognized
14762      # So say no if there are warnings other than the usual output.
14763      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14764      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14765      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14766        lt_cv_prog_compiler_pic_works_CXX=yes
14767      fi
14768    fi
14769    $RM conftest*
14770
14771 fi
14772 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14773 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14774
14775 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14776     case $lt_prog_compiler_pic_CXX in
14777      "" | " "*) ;;
14778      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14779      esac
14780 else
14781     lt_prog_compiler_pic_CXX=
14782      lt_prog_compiler_can_build_shared_CXX=no
14783 fi
14784
14785 fi
14786
14787
14788
14789 #
14790 # Check to make sure the static flag actually works.
14791 #
14792 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14793 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14794 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14795 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14796   echo $ECHO_N "(cached) $ECHO_C" >&6
14797 else
14798   lt_cv_prog_compiler_static_works_CXX=no
14799    save_LDFLAGS="$LDFLAGS"
14800    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14801    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14802    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14803      # The linker can only warn and ignore the option if not recognized
14804      # So say no if there are warnings
14805      if test -s conftest.err; then
14806        # Append any errors to the config.log.
14807        cat conftest.err 1>&5
14808        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14809        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14810        if diff conftest.exp conftest.er2 >/dev/null; then
14811          lt_cv_prog_compiler_static_works_CXX=yes
14812        fi
14813      else
14814        lt_cv_prog_compiler_static_works_CXX=yes
14815      fi
14816    fi
14817    $RM -r conftest*
14818    LDFLAGS="$save_LDFLAGS"
14819
14820 fi
14821 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14822 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14823
14824 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14825     :
14826 else
14827     lt_prog_compiler_static_CXX=
14828 fi
14829
14830
14831
14832
14833     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14834 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14835 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14836   echo $ECHO_N "(cached) $ECHO_C" >&6
14837 else
14838   lt_cv_prog_compiler_c_o_CXX=no
14839    $RM -r conftest 2>/dev/null
14840    mkdir conftest
14841    cd conftest
14842    mkdir out
14843    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14844
14845    lt_compiler_flag="-o out/conftest2.$ac_objext"
14846    # Insert the option either (1) after the last *FLAGS variable, or
14847    # (2) before a word containing "conftest.", or (3) at the end.
14848    # Note that $ac_compile itself does not contain backslashes and begins
14849    # with a dollar sign (not a hyphen), so the echo should work correctly.
14850    lt_compile=`echo "$ac_compile" | $SED \
14851    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14852    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14853    -e 's:$: $lt_compiler_flag:'`
14854    (eval echo "\"\$as_me:14854: $lt_compile\"" >&5)
14855    (eval "$lt_compile" 2>out/conftest.err)
14856    ac_status=$?
14857    cat out/conftest.err >&5
14858    echo "$as_me:14858: \$? = $ac_status" >&5
14859    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14860    then
14861      # The compiler can only warn and ignore the option if not recognized
14862      # So say no if there are warnings
14863      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14864      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14865      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14866        lt_cv_prog_compiler_c_o_CXX=yes
14867      fi
14868    fi
14869    chmod u+w . 2>&5
14870    $RM conftest*
14871    # SGI C++ compiler will create directory out/ii_files/ for
14872    # template instantiation
14873    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14874    $RM out/* && rmdir out
14875    cd ..
14876    $RM -r conftest
14877    $RM conftest*
14878
14879 fi
14880 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14881 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14882
14883
14884
14885     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14886 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14887 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14888   echo $ECHO_N "(cached) $ECHO_C" >&6
14889 else
14890   lt_cv_prog_compiler_c_o_CXX=no
14891    $RM -r conftest 2>/dev/null
14892    mkdir conftest
14893    cd conftest
14894    mkdir out
14895    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14896
14897    lt_compiler_flag="-o out/conftest2.$ac_objext"
14898    # Insert the option either (1) after the last *FLAGS variable, or
14899    # (2) before a word containing "conftest.", or (3) at the end.
14900    # Note that $ac_compile itself does not contain backslashes and begins
14901    # with a dollar sign (not a hyphen), so the echo should work correctly.
14902    lt_compile=`echo "$ac_compile" | $SED \
14903    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14904    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14905    -e 's:$: $lt_compiler_flag:'`
14906    (eval echo "\"\$as_me:14906: $lt_compile\"" >&5)
14907    (eval "$lt_compile" 2>out/conftest.err)
14908    ac_status=$?
14909    cat out/conftest.err >&5
14910    echo "$as_me:14910: \$? = $ac_status" >&5
14911    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14912    then
14913      # The compiler can only warn and ignore the option if not recognized
14914      # So say no if there are warnings
14915      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14916      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14917      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14918        lt_cv_prog_compiler_c_o_CXX=yes
14919      fi
14920    fi
14921    chmod u+w . 2>&5
14922    $RM conftest*
14923    # SGI C++ compiler will create directory out/ii_files/ for
14924    # template instantiation
14925    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14926    $RM out/* && rmdir out
14927    cd ..
14928    $RM -r conftest
14929    $RM conftest*
14930
14931 fi
14932 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14933 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14934
14935
14936
14937
14938 hard_links="nottested"
14939 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14940   # do not overwrite the value of need_locks provided by the user
14941   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14942 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14943   hard_links=yes
14944   $RM conftest*
14945   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14946   touch conftest.a
14947   ln conftest.a conftest.b 2>&5 || hard_links=no
14948   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14949   { echo "$as_me:$LINENO: result: $hard_links" >&5
14950 echo "${ECHO_T}$hard_links" >&6; }
14951   if test "$hard_links" = no; then
14952     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14953 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14954     need_locks=warn
14955   fi
14956 else
14957   need_locks=no
14958 fi
14959
14960
14961
14962     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14963 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14964
14965   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14966   case $host_os in
14967   aix[4-9]*)
14968     # If we're using GNU nm, then we don't want the "-C" option.
14969     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14970     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14971       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'
14972     else
14973       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'
14974     fi
14975     ;;
14976   pw32*)
14977     export_symbols_cmds_CXX="$ltdll_cmds"
14978   ;;
14979   cygwin* | mingw* | cegcc*)
14980     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'
14981   ;;
14982   *)
14983     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14984   ;;
14985   esac
14986   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14987
14988 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14989 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14990 test "$ld_shlibs_CXX" = no && can_build_shared=no
14991
14992 with_gnu_ld_CXX=$with_gnu_ld
14993
14994
14995
14996
14997
14998
14999 #
15000 # Do we need to explicitly link libc?
15001 #
15002 case "x$archive_cmds_need_lc_CXX" in
15003 x|xyes)
15004   # Assume -lc should be added
15005   archive_cmds_need_lc_CXX=yes
15006
15007   if test "$enable_shared" = yes && test "$GCC" = yes; then
15008     case $archive_cmds_CXX in
15009     *'~'*)
15010       # FIXME: we may have to deal with multi-command sequences.
15011       ;;
15012     '$CC '*)
15013       # Test whether the compiler implicitly links with -lc since on some
15014       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15015       # to ld, don't add -lc before -lgcc.
15016       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15017 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15018       $RM conftest*
15019       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15020
15021       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15022   (eval $ac_compile) 2>&5
15023   ac_status=$?
15024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025   (exit $ac_status); } 2>conftest.err; then
15026         soname=conftest
15027         lib=conftest
15028         libobjs=conftest.$ac_objext
15029         deplibs=
15030         wl=$lt_prog_compiler_wl_CXX
15031         pic_flag=$lt_prog_compiler_pic_CXX
15032         compiler_flags=-v
15033         linker_flags=-v
15034         verstring=
15035         output_objdir=.
15036         libname=conftest
15037         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15038         allow_undefined_flag_CXX=
15039         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15040   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15041   ac_status=$?
15042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043   (exit $ac_status); }
15044         then
15045           archive_cmds_need_lc_CXX=no
15046         else
15047           archive_cmds_need_lc_CXX=yes
15048         fi
15049         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15050       else
15051         cat conftest.err 1>&5
15052       fi
15053       $RM conftest*
15054       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15055 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15056       ;;
15057     esac
15058   fi
15059   ;;
15060 esac
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15126 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15127
15128 library_names_spec=
15129 libname_spec='lib$name'
15130 soname_spec=
15131 shrext_cmds=".so"
15132 postinstall_cmds=
15133 postuninstall_cmds=
15134 finish_cmds=
15135 finish_eval=
15136 shlibpath_var=
15137 shlibpath_overrides_runpath=unknown
15138 version_type=none
15139 dynamic_linker="$host_os ld.so"
15140 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15141 need_lib_prefix=unknown
15142 hardcode_into_libs=no
15143
15144 # when you set need_version to no, make sure it does not cause -set_version
15145 # flags to be left without arguments
15146 need_version=unknown
15147
15148 case $host_os in
15149 aix3*)
15150   version_type=linux
15151   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15152   shlibpath_var=LIBPATH
15153
15154   # AIX 3 has no versioning support, so we append a major version to the name.
15155   soname_spec='${libname}${release}${shared_ext}$major'
15156   ;;
15157
15158 aix[4-9]*)
15159   version_type=linux
15160   need_lib_prefix=no
15161   need_version=no
15162   hardcode_into_libs=yes
15163   if test "$host_cpu" = ia64; then
15164     # AIX 5 supports IA64
15165     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15166     shlibpath_var=LD_LIBRARY_PATH
15167   else
15168     # With GCC up to 2.95.x, collect2 would create an import file
15169     # for dependence libraries.  The import file would start with
15170     # the line `#! .'.  This would cause the generated library to
15171     # depend on `.', always an invalid library.  This was fixed in
15172     # development snapshots of GCC prior to 3.0.
15173     case $host_os in
15174       aix4 | aix4.[01] | aix4.[01].*)
15175       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15176            echo ' yes '
15177            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15178         :
15179       else
15180         can_build_shared=no
15181       fi
15182       ;;
15183     esac
15184     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15185     # soname into executable. Probably we can add versioning support to
15186     # collect2, so additional links can be useful in future.
15187     if test "$aix_use_runtimelinking" = yes; then
15188       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15189       # instead of lib<name>.a to let people know that these are not
15190       # typical AIX shared libraries.
15191       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15192     else
15193       # We preserve .a as extension for shared libraries through AIX4.2
15194       # and later when we are not doing run time linking.
15195       library_names_spec='${libname}${release}.a $libname.a'
15196       soname_spec='${libname}${release}${shared_ext}$major'
15197     fi
15198     shlibpath_var=LIBPATH
15199   fi
15200   ;;
15201
15202 amigaos*)
15203   case $host_cpu in
15204   powerpc)
15205     # Since July 2007 AmigaOS4 officially supports .so libraries.
15206     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15207     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15208     ;;
15209   m68k)
15210     library_names_spec='$libname.ixlibrary $libname.a'
15211     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15212     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'
15213     ;;
15214   esac
15215   ;;
15216
15217 beos*)
15218   library_names_spec='${libname}${shared_ext}'
15219   dynamic_linker="$host_os ld.so"
15220   shlibpath_var=LIBRARY_PATH
15221   ;;
15222
15223 bsdi[45]*)
15224   version_type=linux
15225   need_version=no
15226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15227   soname_spec='${libname}${release}${shared_ext}$major'
15228   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15229   shlibpath_var=LD_LIBRARY_PATH
15230   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15231   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15232   # the default ld.so.conf also contains /usr/contrib/lib and
15233   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15234   # libtool to hard-code these into programs
15235   ;;
15236
15237 cygwin* | mingw* | pw32* | cegcc*)
15238   version_type=windows
15239   shrext_cmds=".dll"
15240   need_version=no
15241   need_lib_prefix=no
15242
15243   case $GCC,$host_os in
15244   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15245     library_names_spec='$libname.dll.a'
15246     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15247     postinstall_cmds='base_file=`basename \${file}`~
15248       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15249       dldir=$destdir/`dirname \$dlpath`~
15250       test -d \$dldir || mkdir -p \$dldir~
15251       $install_prog $dir/$dlname \$dldir/$dlname~
15252       chmod a+x \$dldir/$dlname~
15253       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15254         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15255       fi'
15256     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15257       dlpath=$dir/\$dldll~
15258        $RM \$dlpath'
15259     shlibpath_overrides_runpath=yes
15260
15261     case $host_os in
15262     cygwin*)
15263       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15264       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15265       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15266       ;;
15267     mingw* | cegcc*)
15268       # MinGW DLLs use traditional 'lib' prefix
15269       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15270       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15271       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15272         # It is most probably a Windows format PATH printed by
15273         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15274         # path with ; separators, and with drive letters. We can handle the
15275         # drive letters (cygwin fileutils understands them), so leave them,
15276         # especially as we might pass files found there to a mingw objdump,
15277         # which wouldn't understand a cygwinified path. Ahh.
15278         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15279       else
15280         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15281       fi
15282       ;;
15283     pw32*)
15284       # pw32 DLLs use 'pw' prefix rather than 'lib'
15285       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15286       ;;
15287     esac
15288     ;;
15289
15290   *)
15291     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15292     ;;
15293   esac
15294   dynamic_linker='Win32 ld.exe'
15295   # FIXME: first we should search . and the directory the executable is in
15296   shlibpath_var=PATH
15297   ;;
15298
15299 darwin* | rhapsody*)
15300   dynamic_linker="$host_os dyld"
15301   version_type=darwin
15302   need_lib_prefix=no
15303   need_version=no
15304   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15305   soname_spec='${libname}${release}${major}$shared_ext'
15306   shlibpath_overrides_runpath=yes
15307   shlibpath_var=DYLD_LIBRARY_PATH
15308   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15309
15310   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15311   ;;
15312
15313 dgux*)
15314   version_type=linux
15315   need_lib_prefix=no
15316   need_version=no
15317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15318   soname_spec='${libname}${release}${shared_ext}$major'
15319   shlibpath_var=LD_LIBRARY_PATH
15320   ;;
15321
15322 freebsd1*)
15323   dynamic_linker=no
15324   ;;
15325
15326 freebsd* | dragonfly*)
15327   # DragonFly does not have aout.  When/if they implement a new
15328   # versioning mechanism, adjust this.
15329   if test -x /usr/bin/objformat; then
15330     objformat=`/usr/bin/objformat`
15331   else
15332     case $host_os in
15333     freebsd[123]*) objformat=aout ;;
15334     *) objformat=elf ;;
15335     esac
15336   fi
15337   version_type=freebsd-$objformat
15338   case $version_type in
15339     freebsd-elf*)
15340       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15341       need_version=no
15342       need_lib_prefix=no
15343       ;;
15344     freebsd-*)
15345       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15346       need_version=yes
15347       ;;
15348   esac
15349   shlibpath_var=LD_LIBRARY_PATH
15350   case $host_os in
15351   freebsd2*)
15352     shlibpath_overrides_runpath=yes
15353     ;;
15354   freebsd3.[01]* | freebsdelf3.[01]*)
15355     shlibpath_overrides_runpath=yes
15356     hardcode_into_libs=yes
15357     ;;
15358   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15359   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15360     shlibpath_overrides_runpath=no
15361     hardcode_into_libs=yes
15362     ;;
15363   *) # from 4.6 on, and DragonFly
15364     shlibpath_overrides_runpath=yes
15365     hardcode_into_libs=yes
15366     ;;
15367   esac
15368   ;;
15369
15370 gnu*)
15371   version_type=linux
15372   need_lib_prefix=no
15373   need_version=no
15374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15375   soname_spec='${libname}${release}${shared_ext}$major'
15376   shlibpath_var=LD_LIBRARY_PATH
15377   hardcode_into_libs=yes
15378   ;;
15379
15380 hpux9* | hpux10* | hpux11*)
15381   # Give a soname corresponding to the major version so that dld.sl refuses to
15382   # link against other versions.
15383   version_type=sunos
15384   need_lib_prefix=no
15385   need_version=no
15386   case $host_cpu in
15387   ia64*)
15388     shrext_cmds='.so'
15389     hardcode_into_libs=yes
15390     dynamic_linker="$host_os dld.so"
15391     shlibpath_var=LD_LIBRARY_PATH
15392     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15393     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15394     soname_spec='${libname}${release}${shared_ext}$major'
15395     if test "X$HPUX_IA64_MODE" = X32; then
15396       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15397     else
15398       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15399     fi
15400     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15401     ;;
15402   hppa*64*)
15403     shrext_cmds='.sl'
15404     hardcode_into_libs=yes
15405     dynamic_linker="$host_os dld.sl"
15406     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15407     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15408     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15409     soname_spec='${libname}${release}${shared_ext}$major'
15410     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15411     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15412     ;;
15413   *)
15414     shrext_cmds='.sl'
15415     dynamic_linker="$host_os dld.sl"
15416     shlibpath_var=SHLIB_PATH
15417     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15418     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15419     soname_spec='${libname}${release}${shared_ext}$major'
15420     ;;
15421   esac
15422   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15423   postinstall_cmds='chmod 555 $lib'
15424   ;;
15425
15426 interix[3-9]*)
15427   version_type=linux
15428   need_lib_prefix=no
15429   need_version=no
15430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15431   soname_spec='${libname}${release}${shared_ext}$major'
15432   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15433   shlibpath_var=LD_LIBRARY_PATH
15434   shlibpath_overrides_runpath=no
15435   hardcode_into_libs=yes
15436   ;;
15437
15438 irix5* | irix6* | nonstopux*)
15439   case $host_os in
15440     nonstopux*) version_type=nonstopux ;;
15441     *)
15442         if test "$lt_cv_prog_gnu_ld" = yes; then
15443                 version_type=linux
15444         else
15445                 version_type=irix
15446         fi ;;
15447   esac
15448   need_lib_prefix=no
15449   need_version=no
15450   soname_spec='${libname}${release}${shared_ext}$major'
15451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15452   case $host_os in
15453   irix5* | nonstopux*)
15454     libsuff= shlibsuff=
15455     ;;
15456   *)
15457     case $LD in # libtool.m4 will add one of these switches to LD
15458     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15459       libsuff= shlibsuff= libmagic=32-bit;;
15460     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15461       libsuff=32 shlibsuff=N32 libmagic=N32;;
15462     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15463       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15464     *) libsuff= shlibsuff= libmagic=never-match;;
15465     esac
15466     ;;
15467   esac
15468   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15469   shlibpath_overrides_runpath=no
15470   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15471   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15472   hardcode_into_libs=yes
15473   ;;
15474
15475 # No shared lib support for Linux oldld, aout, or coff.
15476 linux*oldld* | linux*aout* | linux*coff*)
15477   dynamic_linker=no
15478   ;;
15479
15480 # This must be Linux ELF.
15481 linux* | k*bsd*-gnu)
15482   version_type=linux
15483   need_lib_prefix=no
15484   need_version=no
15485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15486   soname_spec='${libname}${release}${shared_ext}$major'
15487   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15488   shlibpath_var=LD_LIBRARY_PATH
15489   shlibpath_overrides_runpath=no
15490   # Some binutils ld are patched to set DT_RUNPATH
15491   save_LDFLAGS=$LDFLAGS
15492   save_libdir=$libdir
15493   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15494        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15495   cat >conftest.$ac_ext <<_ACEOF
15496 /* confdefs.h.  */
15497 _ACEOF
15498 cat confdefs.h >>conftest.$ac_ext
15499 cat >>conftest.$ac_ext <<_ACEOF
15500 /* end confdefs.h.  */
15501
15502 int
15503 main ()
15504 {
15505
15506   ;
15507   return 0;
15508 }
15509 _ACEOF
15510 rm -f conftest.$ac_objext conftest$ac_exeext
15511 if { (ac_try="$ac_link"
15512 case "(($ac_try" in
15513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514   *) ac_try_echo=$ac_try;;
15515 esac
15516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15517   (eval "$ac_link") 2>conftest.er1
15518   ac_status=$?
15519   grep -v '^ *+' conftest.er1 >conftest.err
15520   rm -f conftest.er1
15521   cat conftest.err >&5
15522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523   (exit $ac_status); } && {
15524          test -z "$ac_cxx_werror_flag" ||
15525          test ! -s conftest.err
15526        } && test -s conftest$ac_exeext &&
15527        $as_test_x conftest$ac_exeext; then
15528   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15529   shlibpath_overrides_runpath=yes
15530 fi
15531
15532 else
15533   echo "$as_me: failed program was:" >&5
15534 sed 's/^/| /' conftest.$ac_ext >&5
15535
15536
15537 fi
15538
15539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15540       conftest$ac_exeext conftest.$ac_ext
15541   LDFLAGS=$save_LDFLAGS
15542   libdir=$save_libdir
15543
15544   # This implies no fast_install, which is unacceptable.
15545   # Some rework will be needed to allow for fast_install
15546   # before this can be enabled.
15547   hardcode_into_libs=yes
15548
15549   # Append ld.so.conf contents to the search path
15550   if test -f /etc/ld.so.conf; then
15551     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' ' '`
15552     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15553   fi
15554
15555   # We used to test for /lib/ld.so.1 and disable shared libraries on
15556   # powerpc, because MkLinux only supported shared libraries with the
15557   # GNU dynamic linker.  Since this was broken with cross compilers,
15558   # most powerpc-linux boxes support dynamic linking these days and
15559   # people can always --disable-shared, the test was removed, and we
15560   # assume the GNU/Linux dynamic linker is in use.
15561   dynamic_linker='GNU/Linux ld.so'
15562   ;;
15563
15564 netbsd*)
15565   version_type=sunos
15566   need_lib_prefix=no
15567   need_version=no
15568   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15569     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15570     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15571     dynamic_linker='NetBSD (a.out) ld.so'
15572   else
15573     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15574     soname_spec='${libname}${release}${shared_ext}$major'
15575     dynamic_linker='NetBSD ld.elf_so'
15576   fi
15577   shlibpath_var=LD_LIBRARY_PATH
15578   shlibpath_overrides_runpath=yes
15579   hardcode_into_libs=yes
15580   ;;
15581
15582 newsos6)
15583   version_type=linux
15584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15585   shlibpath_var=LD_LIBRARY_PATH
15586   shlibpath_overrides_runpath=yes
15587   ;;
15588
15589 *nto* | *qnx*)
15590   version_type=qnx
15591   need_lib_prefix=no
15592   need_version=no
15593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15594   soname_spec='${libname}${release}${shared_ext}$major'
15595   shlibpath_var=LD_LIBRARY_PATH
15596   shlibpath_overrides_runpath=no
15597   hardcode_into_libs=yes
15598   dynamic_linker='ldqnx.so'
15599   ;;
15600
15601 openbsd*)
15602   version_type=sunos
15603   sys_lib_dlsearch_path_spec="/usr/lib"
15604   need_lib_prefix=no
15605   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15606   case $host_os in
15607     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15608     *)                          need_version=no  ;;
15609   esac
15610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15611   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15612   shlibpath_var=LD_LIBRARY_PATH
15613   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15614     case $host_os in
15615       openbsd2.[89] | openbsd2.[89].*)
15616         shlibpath_overrides_runpath=no
15617         ;;
15618       *)
15619         shlibpath_overrides_runpath=yes
15620         ;;
15621       esac
15622   else
15623     shlibpath_overrides_runpath=yes
15624   fi
15625   ;;
15626
15627 os2*)
15628   libname_spec='$name'
15629   shrext_cmds=".dll"
15630   need_lib_prefix=no
15631   library_names_spec='$libname${shared_ext} $libname.a'
15632   dynamic_linker='OS/2 ld.exe'
15633   shlibpath_var=LIBPATH
15634   ;;
15635
15636 osf3* | osf4* | osf5*)
15637   version_type=osf
15638   need_lib_prefix=no
15639   need_version=no
15640   soname_spec='${libname}${release}${shared_ext}$major'
15641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15642   shlibpath_var=LD_LIBRARY_PATH
15643   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15644   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15645   ;;
15646
15647 rdos*)
15648   dynamic_linker=no
15649   ;;
15650
15651 solaris*)
15652   version_type=linux
15653   need_lib_prefix=no
15654   need_version=no
15655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15656   soname_spec='${libname}${release}${shared_ext}$major'
15657   shlibpath_var=LD_LIBRARY_PATH
15658   shlibpath_overrides_runpath=yes
15659   hardcode_into_libs=yes
15660   # ldd complains unless libraries are executable
15661   postinstall_cmds='chmod +x $lib'
15662   ;;
15663
15664 sunos4*)
15665   version_type=sunos
15666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15667   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15668   shlibpath_var=LD_LIBRARY_PATH
15669   shlibpath_overrides_runpath=yes
15670   if test "$with_gnu_ld" = yes; then
15671     need_lib_prefix=no
15672   fi
15673   need_version=yes
15674   ;;
15675
15676 sysv4 | sysv4.3*)
15677   version_type=linux
15678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15679   soname_spec='${libname}${release}${shared_ext}$major'
15680   shlibpath_var=LD_LIBRARY_PATH
15681   case $host_vendor in
15682     sni)
15683       shlibpath_overrides_runpath=no
15684       need_lib_prefix=no
15685       runpath_var=LD_RUN_PATH
15686       ;;
15687     siemens)
15688       need_lib_prefix=no
15689       ;;
15690     motorola)
15691       need_lib_prefix=no
15692       need_version=no
15693       shlibpath_overrides_runpath=no
15694       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15695       ;;
15696   esac
15697   ;;
15698
15699 sysv4*MP*)
15700   if test -d /usr/nec ;then
15701     version_type=linux
15702     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15703     soname_spec='$libname${shared_ext}.$major'
15704     shlibpath_var=LD_LIBRARY_PATH
15705   fi
15706   ;;
15707
15708 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15709   version_type=freebsd-elf
15710   need_lib_prefix=no
15711   need_version=no
15712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15713   soname_spec='${libname}${release}${shared_ext}$major'
15714   shlibpath_var=LD_LIBRARY_PATH
15715   shlibpath_overrides_runpath=yes
15716   hardcode_into_libs=yes
15717   if test "$with_gnu_ld" = yes; then
15718     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15719   else
15720     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15721     case $host_os in
15722       sco3.2v5*)
15723         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15724         ;;
15725     esac
15726   fi
15727   sys_lib_dlsearch_path_spec='/usr/lib'
15728   ;;
15729
15730 tpf*)
15731   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15732   version_type=linux
15733   need_lib_prefix=no
15734   need_version=no
15735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15736   shlibpath_var=LD_LIBRARY_PATH
15737   shlibpath_overrides_runpath=no
15738   hardcode_into_libs=yes
15739   ;;
15740
15741 uts4*)
15742   version_type=linux
15743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15744   soname_spec='${libname}${release}${shared_ext}$major'
15745   shlibpath_var=LD_LIBRARY_PATH
15746   ;;
15747
15748 *)
15749   dynamic_linker=no
15750   ;;
15751 esac
15752 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15753 echo "${ECHO_T}$dynamic_linker" >&6; }
15754 test "$dynamic_linker" = no && can_build_shared=no
15755
15756 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15757 if test "$GCC" = yes; then
15758   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15759 fi
15760
15761 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15762   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15763 fi
15764 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15765   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15766 fi
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15804 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15805 hardcode_action_CXX=
15806 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15807    test -n "$runpath_var_CXX" ||
15808    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15809
15810   # We can hardcode non-existent directories.
15811   if test "$hardcode_direct_CXX" != no &&
15812      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15813      # have to relink, otherwise we might link with an installed library
15814      # when we should be linking with a yet-to-be-installed one
15815      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15816      test "$hardcode_minus_L_CXX" != no; then
15817     # Linking always hardcodes the temporary library directory.
15818     hardcode_action_CXX=relink
15819   else
15820     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15821     hardcode_action_CXX=immediate
15822   fi
15823 else
15824   # We cannot hardcode anything, or else we can only hardcode existing
15825   # directories.
15826   hardcode_action_CXX=unsupported
15827 fi
15828 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15829 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15830
15831 if test "$hardcode_action_CXX" = relink ||
15832    test "$inherit_rpath_CXX" = yes; then
15833   # Fast installation is not supported
15834   enable_fast_install=no
15835 elif test "$shlibpath_overrides_runpath" = yes ||
15836      test "$enable_shared" = no; then
15837   # Fast installation is not necessary
15838   enable_fast_install=needless
15839 fi
15840
15841
15842
15843
15844
15845
15846
15847   fi # test -n "$compiler"
15848
15849   CC=$lt_save_CC
15850   LDCXX=$LD
15851   LD=$lt_save_LD
15852   GCC=$lt_save_GCC
15853   with_gnu_ld=$lt_save_with_gnu_ld
15854   lt_cv_path_LDCXX=$lt_cv_path_LD
15855   lt_cv_path_LD=$lt_save_path_LD
15856   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15857   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15858 fi # test "$_lt_caught_CXX_error" != yes
15859
15860 ac_ext=c
15861 ac_cpp='$CPP $CPPFLAGS'
15862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878         ac_config_commands="$ac_config_commands libtool"
15879
15880
15881
15882
15883 # Only expand once:
15884
15885
15886
15887
15888 if test x$use_libtool != xno; then
15889    DEFAULT_OBJECT_TYPE=".lo"
15890    DEFAULT_ARCHIVE_TYPE=".la"
15891    DEFAULT_SHARED_OBJECT_TYPE=".la"
15892    LIBTOOL="\$(LIBTOOL)"
15893    LIBTOOL_INSTALL_TARGET="libtool-install"
15894    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15895    LIBTOOL_CLEAN_TARGET="libtool-clean"
15896    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15897    FD_PLUGIN_DIR="src/plugins/fd"
15898    have_plugins=yes
15899 else
15900    DEFAULT_OBJECT_TYPE=".o"
15901    DEFAULT_ARCHIVE_TYPE=".a"
15902    DEFAULT_SHARED_OBJECT_TYPE=".so"
15903    LIBTOOL="# \$(LIBTOOL)"
15904    LIBTOOL_INSTALL_TARGET=""
15905    LIBTOOL_UNINSTALL_TARGET=""
15906    LIBTOOL_CLEAN_TARGET=""
15907    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15908    FD_PLUGIN_DIR=""
15909    have_plugins=no
15910 fi
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922 # Check whether --enable-includes was given.
15923 if test "${enable_includes+set}" = set; then
15924   enableval=$enable_includes;
15925        if test x$enableval = xyes; then
15926           install_includes=yes
15927        fi
15928
15929
15930 fi
15931
15932
15933
15934 if test x$use_libtool != xno -a x$install_includes = xyes; then
15935    INCLUDE_INSTALL_TARGET="install-includes"
15936    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15937 else
15938    INCLUDE_INSTALL_TARGET=""
15939    INCLUDE_UNINSTALL_TARGET=""
15940 fi
15941
15942
15943
15944
15945 { echo "$as_me:$LINENO: checking host system type" >&5
15946 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15947 if test "${ac_cv_host+set}" = set; then
15948   echo $ECHO_N "(cached) $ECHO_C" >&6
15949 else
15950   if test "x$host_alias" = x; then
15951   ac_cv_host=$ac_cv_build
15952 else
15953   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15954     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15955 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15956    { (exit 1); exit 1; }; }
15957 fi
15958
15959 fi
15960 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15961 echo "${ECHO_T}$ac_cv_host" >&6; }
15962 case $ac_cv_host in
15963 *-*-*) ;;
15964 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
15965 echo "$as_me: error: invalid value of canonical host" >&2;}
15966    { (exit 1); exit 1; }; };;
15967 esac
15968 host=$ac_cv_host
15969 ac_save_IFS=$IFS; IFS='-'
15970 set x $ac_cv_host
15971 shift
15972 host_cpu=$1
15973 host_vendor=$2
15974 shift; shift
15975 # Remember, the first character of IFS is used to create $*,
15976 # except with old shells:
15977 host_os=$*
15978 IFS=$ac_save_IFS
15979 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15980
15981
15982 case $host_os in
15983   *cygwin* ) CYGWIN=yes;;
15984          * ) CYGWIN=no;;
15985 esac
15986
15987 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15988 then
15989
15990
15991 if $TRUEPRG; then
15992   HAVE_SUN_OS_TRUE=
15993   HAVE_SUN_OS_FALSE='#'
15994 else
15995   HAVE_SUN_OS_TRUE='#'
15996   HAVE_SUN_OS_FALSE=
15997 fi
15998         cat >>confdefs.h <<\_ACEOF
15999 #define HAVE_SUN_OS 1
16000 _ACEOF
16001
16002 else
16003
16004
16005 if $FALSEPRG; then
16006   HAVE_SUN_OS_TRUE=
16007   HAVE_SUN_OS_FALSE='#'
16008 else
16009   HAVE_SUN_OS_TRUE='#'
16010   HAVE_SUN_OS_FALSE=
16011 fi
16012 fi
16013
16014 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16015 then
16016
16017
16018 if $TRUEPRG; then
16019   HAVE_OSF1_OS_TRUE=
16020   HAVE_OSF1_OS_FALSE='#'
16021 else
16022   HAVE_OSF1_OS_TRUE='#'
16023   HAVE_OSF1_OS_FALSE=
16024 fi
16025         cat >>confdefs.h <<\_ACEOF
16026 #define HAVE_OSF1_OS 1
16027 _ACEOF
16028
16029 else
16030
16031
16032 if $FALSEPRG; then
16033   HAVE_OSF1_OS_TRUE=
16034   HAVE_OSF1_OS_FALSE='#'
16035 else
16036   HAVE_OSF1_OS_TRUE='#'
16037   HAVE_OSF1_OS_FALSE=
16038 fi
16039 fi
16040
16041 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16042 then
16043
16044
16045 if $TRUEPRG; then
16046   HAVE_AIX_OS_TRUE=
16047   HAVE_AIX_OS_FALSE='#'
16048 else
16049   HAVE_AIX_OS_TRUE='#'
16050   HAVE_AIX_OS_FALSE=
16051 fi
16052         cat >>confdefs.h <<\_ACEOF
16053 #define HAVE_AIX_OS 1
16054 _ACEOF
16055
16056 else
16057
16058
16059 if $FALSEPRG; then
16060   HAVE_AIX_OS_TRUE=
16061   HAVE_AIX_OS_FALSE='#'
16062 else
16063   HAVE_AIX_OS_TRUE='#'
16064   HAVE_AIX_OS_FALSE=
16065 fi
16066 fi
16067
16068 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16069 then
16070
16071
16072 if $TRUEPRG; then
16073   HAVE_HPUX_OS_TRUE=
16074   HAVE_HPUX_OS_FALSE='#'
16075 else
16076   HAVE_HPUX_OS_TRUE='#'
16077   HAVE_HPUX_OS_FALSE=
16078 fi
16079         cat >>confdefs.h <<\_ACEOF
16080 #define HAVE_HPUX_OS 1
16081 _ACEOF
16082
16083 else
16084
16085
16086 if $FALSEPRG; then
16087   HAVE_HPUX_OS_TRUE=
16088   HAVE_HPUX_OS_FALSE='#'
16089 else
16090   HAVE_HPUX_OS_TRUE='#'
16091   HAVE_HPUX_OS_FALSE=
16092 fi
16093 fi
16094
16095 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16096 then
16097
16098
16099 if $TRUEPRG; then
16100   HAVE_LINUX_OS_TRUE=
16101   HAVE_LINUX_OS_FALSE='#'
16102 else
16103   HAVE_LINUX_OS_TRUE='#'
16104   HAVE_LINUX_OS_FALSE=
16105 fi
16106         cat >>confdefs.h <<\_ACEOF
16107 #define HAVE_LINUX_OS 1
16108 _ACEOF
16109
16110 else
16111
16112
16113 if $FALSEPRG; then
16114   HAVE_LINUX_OS_TRUE=
16115   HAVE_LINUX_OS_FALSE='#'
16116 else
16117   HAVE_LINUX_OS_TRUE='#'
16118   HAVE_LINUX_OS_FALSE=
16119 fi
16120 fi
16121
16122 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16123 then
16124
16125
16126 if $TRUEPRG; then
16127   HAVE_FREEBSD_OS_TRUE=
16128   HAVE_FREEBSD_OS_FALSE='#'
16129 else
16130   HAVE_FREEBSD_OS_TRUE='#'
16131   HAVE_FREEBSD_OS_FALSE=
16132 fi
16133         cat >>confdefs.h <<\_ACEOF
16134 #define HAVE_FREEBSD_OS 1
16135 _ACEOF
16136
16137 else
16138
16139
16140 if $FALSEPRG; then
16141   HAVE_FREEBSD_OS_TRUE=
16142   HAVE_FREEBSD_OS_FALSE='#'
16143 else
16144   HAVE_FREEBSD_OS_TRUE='#'
16145   HAVE_FREEBSD_OS_FALSE=
16146 fi
16147 fi
16148
16149 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16150 then
16151
16152
16153 if $TRUEPRG; then
16154   HAVE_NETBSD_OS_TRUE=
16155   HAVE_NETBSD_OS_FALSE='#'
16156 else
16157   HAVE_NETBSD_OS_TRUE='#'
16158   HAVE_NETBSD_OS_FALSE=
16159 fi
16160         cat >>confdefs.h <<\_ACEOF
16161 #define HAVE_NETBSD_OS 1
16162 _ACEOF
16163
16164 else
16165
16166
16167 if $FALSEPRG; then
16168   HAVE_NETBSD_OS_TRUE=
16169   HAVE_NETBSD_OS_FALSE='#'
16170 else
16171   HAVE_NETBSD_OS_TRUE='#'
16172   HAVE_NETBSD_OS_FALSE=
16173 fi
16174 fi
16175
16176 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16177 then
16178
16179
16180 if $TRUEPRG; then
16181   HAVE_OPENBSD_OS_TRUE=
16182   HAVE_OPENBSD_OS_FALSE='#'
16183 else
16184   HAVE_OPENBSD_OS_TRUE='#'
16185   HAVE_OPENBSD_OS_FALSE=
16186 fi
16187         cat >>confdefs.h <<\_ACEOF
16188 #define HAVE_OPENBSD_OS 1
16189 _ACEOF
16190
16191 else
16192
16193
16194 if $FALSEPRG; then
16195   HAVE_OPENBSD_OS_TRUE=
16196   HAVE_OPENBSD_OS_FALSE='#'
16197 else
16198   HAVE_OPENBSD_OS_TRUE='#'
16199   HAVE_OPENBSD_OS_FALSE=
16200 fi
16201 fi
16202
16203 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16204 then
16205
16206
16207 if $TRUEPRG; then
16208   HAVE_BSDI_OS_TRUE=
16209   HAVE_BSDI_OS_FALSE='#'
16210 else
16211   HAVE_BSDI_OS_TRUE='#'
16212   HAVE_BSDI_OS_FALSE=
16213 fi
16214         cat >>confdefs.h <<\_ACEOF
16215 #define HAVE_BSDI_OS 1
16216 _ACEOF
16217
16218 else
16219
16220
16221 if $FALSEPRG; then
16222   HAVE_BSDI_OS_TRUE=
16223   HAVE_BSDI_OS_FALSE='#'
16224 else
16225   HAVE_BSDI_OS_TRUE='#'
16226   HAVE_BSDI_OS_FALSE=
16227 fi
16228 fi
16229
16230 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16231 then
16232
16233
16234 if $TRUEPRG; then
16235   HAVE_SGI_OS_TRUE=
16236   HAVE_SGI_OS_FALSE='#'
16237 else
16238   HAVE_SGI_OS_TRUE='#'
16239   HAVE_SGI_OS_FALSE=
16240 fi
16241         cat >>confdefs.h <<\_ACEOF
16242 #define HAVE_SGI_OS 1
16243 _ACEOF
16244
16245 else
16246
16247
16248 if $FALSEPRG; then
16249   HAVE_SGI_OS_TRUE=
16250   HAVE_SGI_OS_FALSE='#'
16251 else
16252   HAVE_SGI_OS_TRUE='#'
16253   HAVE_SGI_OS_FALSE=
16254 fi
16255 fi
16256
16257 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16258 then
16259
16260
16261 if $TRUEPRG; then
16262   HAVE_IRIX_OS_TRUE=
16263   HAVE_IRIX_OS_FALSE='#'
16264 else
16265   HAVE_IRIX_OS_TRUE='#'
16266   HAVE_IRIX_OS_FALSE=
16267 fi
16268         cat >>confdefs.h <<\_ACEOF
16269 #define HAVE_IRIX_OS 1
16270 _ACEOF
16271
16272 else
16273
16274
16275 if $FALSEPRG; then
16276   HAVE_IRIX_OS_TRUE=
16277   HAVE_IRIX_OS_FALSE='#'
16278 else
16279   HAVE_IRIX_OS_TRUE='#'
16280   HAVE_IRIX_OS_FALSE=
16281 fi
16282 fi
16283
16284 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16285 then
16286
16287
16288 if $TRUEPRG; then
16289   HAVE_DARWIN_OS_TRUE=
16290   HAVE_DARWIN_OS_FALSE='#'
16291 else
16292   HAVE_DARWIN_OS_TRUE='#'
16293   HAVE_DARWIN_OS_FALSE=
16294 fi
16295     cat >>confdefs.h <<\_ACEOF
16296 #define HAVE_DARWIN_OS 1
16297 _ACEOF
16298
16299 else
16300
16301
16302 if $FALSEPRG; then
16303   HAVE_DARWIN_OS_TRUE=
16304   HAVE_DARWIN_OS_FALSE='#'
16305 else
16306   HAVE_DARWIN_OS_TRUE='#'
16307   HAVE_DARWIN_OS_FALSE=
16308 fi
16309 fi
16310
16311
16312 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16313 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16314 if test "x$DISTNAME" != "x"
16315 then
16316         echo "distname set to $DISTNAME"
16317 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16318 then
16319         DISTNAME=alpha
16320 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16321 then
16322         DISTNAME=aix
16323 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16324 then
16325         DISTNAME=hpux
16326 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16327 then
16328         DISTNAME=solaris
16329 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16330 then
16331         DISTNAME=freebsd
16332 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16333 then
16334         DISTNAME=netbsd
16335 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16336 then
16337         DISTNAME=openbsd
16338 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16339 then
16340         DISTNAME=irix
16341 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16342 then
16343         DISTNAME=bsdi
16344 elif test -f /etc/SuSE-release
16345 then
16346         DISTNAME=suse
16347 elif test -d /etc/SuSEconfig
16348 then
16349         DISTNAME=suse5
16350 elif test -f /etc/mandrake-release
16351 then
16352         DISTNAME=mandrake
16353 elif test -f /etc/whitebox-release
16354 then
16355        DISTNAME=redhat
16356 elif test -f /etc/redhat-release
16357 then
16358         DISTNAME=redhat
16359 elif test -f /etc/gentoo-release
16360 then
16361         DISTNAME=gentoo
16362 elif test -f /etc/debian_version
16363 then
16364         DISTNAME=debian
16365 elif test -f /etc/slackware-version
16366 then
16367         DISTNAME=slackware
16368 elif test x$host_vendor = xapple
16369 then
16370     DISTNAME=osx
16371 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16372 then
16373     DISTNAME=darwin
16374 elif test -f /etc/engarde-version
16375 then
16376         DISTNAME=engarde
16377 elif test "$CYGWIN" = yes
16378 then
16379         DISTNAME=cygwin
16380         cat >>confdefs.h <<\_ACEOF
16381 #define HAVE_CYGWIN 1
16382 _ACEOF
16383
16384 else
16385         DISTNAME=unknown
16386 fi
16387 { echo "$as_me:$LINENO: result: done" >&5
16388 echo "${ECHO_T}done" >&6; }
16389
16390
16391 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16392 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16393 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16394 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16395   echo $ECHO_N "(cached) $ECHO_C" >&6
16396 else
16397   cat >conftest.make <<\_ACEOF
16398 SHELL = /bin/sh
16399 all:
16400         @echo '@@@%%%=$(MAKE)=@@@%%%'
16401 _ACEOF
16402 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16403 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16404   *@@@%%%=?*=@@@%%%*)
16405     eval ac_cv_prog_make_${ac_make}_set=yes;;
16406   *)
16407     eval ac_cv_prog_make_${ac_make}_set=no;;
16408 esac
16409 rm -f conftest.make
16410 fi
16411 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16412   { echo "$as_me:$LINENO: result: yes" >&5
16413 echo "${ECHO_T}yes" >&6; }
16414   SET_MAKE=
16415 else
16416   { echo "$as_me:$LINENO: result: no" >&5
16417 echo "${ECHO_T}no" >&6; }
16418   SET_MAKE="MAKE=${MAKE-make}"
16419 fi
16420
16421
16422
16423         MKINSTALLDIRS=
16424   if test -n "$ac_aux_dir"; then
16425     case "$ac_aux_dir" in
16426       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16427       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16428     esac
16429   fi
16430   if test -z "$MKINSTALLDIRS"; then
16431     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16432   fi
16433
16434
16435
16436   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16437 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16438     # Check whether --enable-nls was given.
16439 if test "${enable_nls+set}" = set; then
16440   enableval=$enable_nls; USE_NLS=$enableval
16441 else
16442   USE_NLS=yes
16443 fi
16444
16445   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16446 echo "${ECHO_T}$USE_NLS" >&6; }
16447
16448
16449
16450
16451
16452
16453 # Prepare PATH_SEPARATOR.
16454 # The user is always right.
16455 if test "${PATH_SEPARATOR+set}" != set; then
16456   echo "#! /bin/sh" >conf$$.sh
16457   echo  "exit 0"   >>conf$$.sh
16458   chmod +x conf$$.sh
16459   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16460     PATH_SEPARATOR=';'
16461   else
16462     PATH_SEPARATOR=:
16463   fi
16464   rm -f conf$$.sh
16465 fi
16466
16467 # Find out how to test for executable files. Don't use a zero-byte file,
16468 # as systems may use methods other than mode bits to determine executability.
16469 cat >conf$$.file <<_ASEOF
16470 #! /bin/sh
16471 exit 0
16472 _ASEOF
16473 chmod +x conf$$.file
16474 if test -x conf$$.file >/dev/null 2>&1; then
16475   ac_executable_p="test -x"
16476 else
16477   ac_executable_p="test -f"
16478 fi
16479 rm -f conf$$.file
16480
16481 # Extract the first word of "msgfmt", so it can be a program name with args.
16482 set dummy msgfmt; ac_word=$2
16483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16485 if test "${ac_cv_path_MSGFMT+set}" = set; then
16486   echo $ECHO_N "(cached) $ECHO_C" >&6
16487 else
16488   case "$MSGFMT" in
16489   [\\/]* | ?:[\\/]*)
16490     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16491     ;;
16492   *)
16493     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16494     for ac_dir in $PATH; do
16495       IFS="$ac_save_IFS"
16496       test -z "$ac_dir" && ac_dir=.
16497       for ac_exec_ext in '' $ac_executable_extensions; do
16498         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16499           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16500           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16501      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16502             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16503             break 2
16504           fi
16505         fi
16506       done
16507     done
16508     IFS="$ac_save_IFS"
16509   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16510     ;;
16511 esac
16512 fi
16513 MSGFMT="$ac_cv_path_MSGFMT"
16514 if test "$MSGFMT" != ":"; then
16515   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16516 echo "${ECHO_T}$MSGFMT" >&6; }
16517 else
16518   { echo "$as_me:$LINENO: result: no" >&5
16519 echo "${ECHO_T}no" >&6; }
16520 fi
16521
16522   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16523 set dummy gmsgfmt; ac_word=$2
16524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16526 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16527   echo $ECHO_N "(cached) $ECHO_C" >&6
16528 else
16529   case $GMSGFMT in
16530   [\\/]* | ?:[\\/]*)
16531   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16532   ;;
16533   *)
16534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16535 for as_dir in $PATH
16536 do
16537   IFS=$as_save_IFS
16538   test -z "$as_dir" && as_dir=.
16539   for ac_exec_ext in '' $ac_executable_extensions; do
16540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16541     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16543     break 2
16544   fi
16545 done
16546 done
16547 IFS=$as_save_IFS
16548
16549   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16550   ;;
16551 esac
16552 fi
16553 GMSGFMT=$ac_cv_path_GMSGFMT
16554 if test -n "$GMSGFMT"; then
16555   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16556 echo "${ECHO_T}$GMSGFMT" >&6; }
16557 else
16558   { echo "$as_me:$LINENO: result: no" >&5
16559 echo "${ECHO_T}no" >&6; }
16560 fi
16561
16562
16563
16564
16565 # Prepare PATH_SEPARATOR.
16566 # The user is always right.
16567 if test "${PATH_SEPARATOR+set}" != set; then
16568   echo "#! /bin/sh" >conf$$.sh
16569   echo  "exit 0"   >>conf$$.sh
16570   chmod +x conf$$.sh
16571   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16572     PATH_SEPARATOR=';'
16573   else
16574     PATH_SEPARATOR=:
16575   fi
16576   rm -f conf$$.sh
16577 fi
16578
16579 # Find out how to test for executable files. Don't use a zero-byte file,
16580 # as systems may use methods other than mode bits to determine executability.
16581 cat >conf$$.file <<_ASEOF
16582 #! /bin/sh
16583 exit 0
16584 _ASEOF
16585 chmod +x conf$$.file
16586 if test -x conf$$.file >/dev/null 2>&1; then
16587   ac_executable_p="test -x"
16588 else
16589   ac_executable_p="test -f"
16590 fi
16591 rm -f conf$$.file
16592
16593 # Extract the first word of "xgettext", so it can be a program name with args.
16594 set dummy xgettext; ac_word=$2
16595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16597 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16598   echo $ECHO_N "(cached) $ECHO_C" >&6
16599 else
16600   case "$XGETTEXT" in
16601   [\\/]* | ?:[\\/]*)
16602     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16603     ;;
16604   *)
16605     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16606     for ac_dir in $PATH; do
16607       IFS="$ac_save_IFS"
16608       test -z "$ac_dir" && ac_dir=.
16609       for ac_exec_ext in '' $ac_executable_extensions; do
16610         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16611           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16612           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16613      (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
16614             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16615             break 2
16616           fi
16617         fi
16618       done
16619     done
16620     IFS="$ac_save_IFS"
16621   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16622     ;;
16623 esac
16624 fi
16625 XGETTEXT="$ac_cv_path_XGETTEXT"
16626 if test "$XGETTEXT" != ":"; then
16627   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16628 echo "${ECHO_T}$XGETTEXT" >&6; }
16629 else
16630   { echo "$as_me:$LINENO: result: no" >&5
16631 echo "${ECHO_T}no" >&6; }
16632 fi
16633
16634     rm -f messages.po
16635
16636
16637 # Prepare PATH_SEPARATOR.
16638 # The user is always right.
16639 if test "${PATH_SEPARATOR+set}" != set; then
16640   echo "#! /bin/sh" >conf$$.sh
16641   echo  "exit 0"   >>conf$$.sh
16642   chmod +x conf$$.sh
16643   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16644     PATH_SEPARATOR=';'
16645   else
16646     PATH_SEPARATOR=:
16647   fi
16648   rm -f conf$$.sh
16649 fi
16650
16651 # Find out how to test for executable files. Don't use a zero-byte file,
16652 # as systems may use methods other than mode bits to determine executability.
16653 cat >conf$$.file <<_ASEOF
16654 #! /bin/sh
16655 exit 0
16656 _ASEOF
16657 chmod +x conf$$.file
16658 if test -x conf$$.file >/dev/null 2>&1; then
16659   ac_executable_p="test -x"
16660 else
16661   ac_executable_p="test -f"
16662 fi
16663 rm -f conf$$.file
16664
16665 # Extract the first word of "msgmerge", so it can be a program name with args.
16666 set dummy msgmerge; ac_word=$2
16667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16669 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16670   echo $ECHO_N "(cached) $ECHO_C" >&6
16671 else
16672   case "$MSGMERGE" in
16673   [\\/]* | ?:[\\/]*)
16674     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16675     ;;
16676   *)
16677     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16678     for ac_dir in $PATH; do
16679       IFS="$ac_save_IFS"
16680       test -z "$ac_dir" && ac_dir=.
16681       for ac_exec_ext in '' $ac_executable_extensions; do
16682         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16683           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16684           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16685             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16686             break 2
16687           fi
16688         fi
16689       done
16690     done
16691     IFS="$ac_save_IFS"
16692   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16693     ;;
16694 esac
16695 fi
16696 MSGMERGE="$ac_cv_path_MSGMERGE"
16697 if test "$MSGMERGE" != ":"; then
16698   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16699 echo "${ECHO_T}$MSGMERGE" >&6; }
16700 else
16701   { echo "$as_me:$LINENO: result: no" >&5
16702 echo "${ECHO_T}no" >&6; }
16703 fi
16704
16705
16706       if test "$GMSGFMT" != ":"; then
16707             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16708        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16709       : ;
16710     else
16711       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16712       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16713 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16714       GMSGFMT=":"
16715     fi
16716   fi
16717
16718       if test "$XGETTEXT" != ":"; then
16719             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16720        (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
16721       : ;
16722     else
16723       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16724 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16725       XGETTEXT=":"
16726     fi
16727         rm -f messages.po
16728   fi
16729
16730   ac_config_commands="$ac_config_commands default-1"
16731
16732
16733
16734       if test "X$prefix" = "XNONE"; then
16735     acl_final_prefix="$ac_default_prefix"
16736   else
16737     acl_final_prefix="$prefix"
16738   fi
16739   if test "X$exec_prefix" = "XNONE"; then
16740     acl_final_exec_prefix='${prefix}'
16741   else
16742     acl_final_exec_prefix="$exec_prefix"
16743   fi
16744   acl_save_prefix="$prefix"
16745   prefix="$acl_final_prefix"
16746   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16747   prefix="$acl_save_prefix"
16748
16749
16750 # Check whether --with-gnu-ld was given.
16751 if test "${with_gnu_ld+set}" = set; then
16752   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16753 else
16754   with_gnu_ld=no
16755 fi
16756
16757 # Prepare PATH_SEPARATOR.
16758 # The user is always right.
16759 if test "${PATH_SEPARATOR+set}" != set; then
16760   echo "#! /bin/sh" >conf$$.sh
16761   echo  "exit 0"   >>conf$$.sh
16762   chmod +x conf$$.sh
16763   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16764     PATH_SEPARATOR=';'
16765   else
16766     PATH_SEPARATOR=:
16767   fi
16768   rm -f conf$$.sh
16769 fi
16770 ac_prog=ld
16771 if test "$GCC" = yes; then
16772   # Check if gcc -print-prog-name=ld gives a path.
16773   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16774 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16775   case $host in
16776   *-*-mingw*)
16777     # gcc leaves a trailing carriage return which upsets mingw
16778     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16779   *)
16780     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16781   esac
16782   case $ac_prog in
16783     # Accept absolute paths.
16784     [\\/]* | [A-Za-z]:[\\/]*)
16785       re_direlt='/[^/][^/]*/\.\./'
16786       # Canonicalize the path of ld
16787       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16788       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16789         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16790       done
16791       test -z "$LD" && LD="$ac_prog"
16792       ;;
16793   "")
16794     # If it fails, then pretend we aren't using GCC.
16795     ac_prog=ld
16796     ;;
16797   *)
16798     # If it is relative, then search for the first ld in PATH.
16799     with_gnu_ld=unknown
16800     ;;
16801   esac
16802 elif test "$with_gnu_ld" = yes; then
16803   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16804 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16805 else
16806   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16807 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16808 fi
16809 if test "${acl_cv_path_LD+set}" = set; then
16810   echo $ECHO_N "(cached) $ECHO_C" >&6
16811 else
16812   if test -z "$LD"; then
16813   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16814   for ac_dir in $PATH; do
16815     test -z "$ac_dir" && ac_dir=.
16816     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16817       acl_cv_path_LD="$ac_dir/$ac_prog"
16818       # Check to see if the program is GNU ld.  I'd rather use --version,
16819       # but apparently some GNU ld's only accept -v.
16820       # Break only if it was the GNU/non-GNU ld that we prefer.
16821       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16822       *GNU* | *'with BFD'*)
16823         test "$with_gnu_ld" != no && break ;;
16824       *)
16825         test "$with_gnu_ld" != yes && break ;;
16826       esac
16827     fi
16828   done
16829   IFS="$ac_save_ifs"
16830 else
16831   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16832 fi
16833 fi
16834
16835 LD="$acl_cv_path_LD"
16836 if test -n "$LD"; then
16837   { echo "$as_me:$LINENO: result: $LD" >&5
16838 echo "${ECHO_T}$LD" >&6; }
16839 else
16840   { echo "$as_me:$LINENO: result: no" >&5
16841 echo "${ECHO_T}no" >&6; }
16842 fi
16843 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16844 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16845    { (exit 1); exit 1; }; }
16846 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16847 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16848 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16849   echo $ECHO_N "(cached) $ECHO_C" >&6
16850 else
16851   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16852 case `$LD -v 2>&1 </dev/null` in
16853 *GNU* | *'with BFD'*)
16854   acl_cv_prog_gnu_ld=yes ;;
16855 *)
16856   acl_cv_prog_gnu_ld=no ;;
16857 esac
16858 fi
16859 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16860 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16861 with_gnu_ld=$acl_cv_prog_gnu_ld
16862
16863
16864
16865
16866                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16867 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16868 if test "${acl_cv_rpath+set}" = set; then
16869   echo $ECHO_N "(cached) $ECHO_C" >&6
16870 else
16871
16872     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16873     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16874     . ./conftest.sh
16875     rm -f ./conftest.sh
16876     acl_cv_rpath=done
16877
16878 fi
16879 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16880 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16881   wl="$acl_cv_wl"
16882   libext="$acl_cv_libext"
16883   shlibext="$acl_cv_shlibext"
16884   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16885   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16886   hardcode_direct="$acl_cv_hardcode_direct"
16887   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16888     # Check whether --enable-rpath was given.
16889 if test "${enable_rpath+set}" = set; then
16890   enableval=$enable_rpath; :
16891 else
16892   enable_rpath=yes
16893 fi
16894
16895
16896
16897
16898
16899
16900
16901
16902     use_additional=yes
16903
16904   acl_save_prefix="$prefix"
16905   prefix="$acl_final_prefix"
16906   acl_save_exec_prefix="$exec_prefix"
16907   exec_prefix="$acl_final_exec_prefix"
16908
16909     eval additional_includedir=\"$includedir\"
16910     eval additional_libdir=\"$libdir\"
16911
16912   exec_prefix="$acl_save_exec_prefix"
16913   prefix="$acl_save_prefix"
16914
16915
16916 # Check whether --with-libiconv-prefix was given.
16917 if test "${with_libiconv_prefix+set}" = set; then
16918   withval=$with_libiconv_prefix;
16919     if test "X$withval" = "Xno"; then
16920       use_additional=no
16921     else
16922       if test "X$withval" = "X"; then
16923
16924   acl_save_prefix="$prefix"
16925   prefix="$acl_final_prefix"
16926   acl_save_exec_prefix="$exec_prefix"
16927   exec_prefix="$acl_final_exec_prefix"
16928
16929           eval additional_includedir=\"$includedir\"
16930           eval additional_libdir=\"$libdir\"
16931
16932   exec_prefix="$acl_save_exec_prefix"
16933   prefix="$acl_save_prefix"
16934
16935       else
16936         additional_includedir="$withval/include"
16937         additional_libdir="$withval/lib"
16938       fi
16939     fi
16940
16941 fi
16942
16943       LIBICONV=
16944   LTLIBICONV=
16945   INCICONV=
16946   rpathdirs=
16947   ltrpathdirs=
16948   names_already_handled=
16949   names_next_round='iconv '
16950   while test -n "$names_next_round"; do
16951     names_this_round="$names_next_round"
16952     names_next_round=
16953     for name in $names_this_round; do
16954       already_handled=
16955       for n in $names_already_handled; do
16956         if test "$n" = "$name"; then
16957           already_handled=yes
16958           break
16959         fi
16960       done
16961       if test -z "$already_handled"; then
16962         names_already_handled="$names_already_handled $name"
16963                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16964         eval value=\"\$HAVE_LIB$uppername\"
16965         if test -n "$value"; then
16966           if test "$value" = yes; then
16967             eval value=\"\$LIB$uppername\"
16968             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16969             eval value=\"\$LTLIB$uppername\"
16970             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16971           else
16972                                     :
16973           fi
16974         else
16975                               found_dir=
16976           found_la=
16977           found_so=
16978           found_a=
16979           if test $use_additional = yes; then
16980             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16981               found_dir="$additional_libdir"
16982               found_so="$additional_libdir/lib$name.$shlibext"
16983               if test -f "$additional_libdir/lib$name.la"; then
16984                 found_la="$additional_libdir/lib$name.la"
16985               fi
16986             else
16987               if test -f "$additional_libdir/lib$name.$libext"; then
16988                 found_dir="$additional_libdir"
16989                 found_a="$additional_libdir/lib$name.$libext"
16990                 if test -f "$additional_libdir/lib$name.la"; then
16991                   found_la="$additional_libdir/lib$name.la"
16992                 fi
16993               fi
16994             fi
16995           fi
16996           if test "X$found_dir" = "X"; then
16997             for x in $LDFLAGS $LTLIBICONV; do
16998
16999   acl_save_prefix="$prefix"
17000   prefix="$acl_final_prefix"
17001   acl_save_exec_prefix="$exec_prefix"
17002   exec_prefix="$acl_final_exec_prefix"
17003   eval x=\"$x\"
17004   exec_prefix="$acl_save_exec_prefix"
17005   prefix="$acl_save_prefix"
17006
17007               case "$x" in
17008                 -L*)
17009                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17010                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17011                     found_dir="$dir"
17012                     found_so="$dir/lib$name.$shlibext"
17013                     if test -f "$dir/lib$name.la"; then
17014                       found_la="$dir/lib$name.la"
17015                     fi
17016                   else
17017                     if test -f "$dir/lib$name.$libext"; then
17018                       found_dir="$dir"
17019                       found_a="$dir/lib$name.$libext"
17020                       if test -f "$dir/lib$name.la"; then
17021                         found_la="$dir/lib$name.la"
17022                       fi
17023                     fi
17024                   fi
17025                   ;;
17026               esac
17027               if test "X$found_dir" != "X"; then
17028                 break
17029               fi
17030             done
17031           fi
17032           if test "X$found_dir" != "X"; then
17033                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17034             if test "X$found_so" != "X"; then
17035                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17036                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17037               else
17038                                                                                 haveit=
17039                 for x in $ltrpathdirs; do
17040                   if test "X$x" = "X$found_dir"; then
17041                     haveit=yes
17042                     break
17043                   fi
17044                 done
17045                 if test -z "$haveit"; then
17046                   ltrpathdirs="$ltrpathdirs $found_dir"
17047                 fi
17048                                 if test "$hardcode_direct" = yes; then
17049                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17050                 else
17051                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17052                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17053                                                             haveit=
17054                     for x in $rpathdirs; do
17055                       if test "X$x" = "X$found_dir"; then
17056                         haveit=yes
17057                         break
17058                       fi
17059                     done
17060                     if test -z "$haveit"; then
17061                       rpathdirs="$rpathdirs $found_dir"
17062                     fi
17063                   else
17064                                                                                 haveit=
17065                     for x in $LDFLAGS $LIBICONV; do
17066
17067   acl_save_prefix="$prefix"
17068   prefix="$acl_final_prefix"
17069   acl_save_exec_prefix="$exec_prefix"
17070   exec_prefix="$acl_final_exec_prefix"
17071   eval x=\"$x\"
17072   exec_prefix="$acl_save_exec_prefix"
17073   prefix="$acl_save_prefix"
17074
17075                       if test "X$x" = "X-L$found_dir"; then
17076                         haveit=yes
17077                         break
17078                       fi
17079                     done
17080                     if test -z "$haveit"; then
17081                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17082                     fi
17083                     if test "$hardcode_minus_L" != no; then
17084                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17085                     else
17086                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17087                     fi
17088                   fi
17089                 fi
17090               fi
17091             else
17092               if test "X$found_a" != "X"; then
17093                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17094               else
17095                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17096               fi
17097             fi
17098                         additional_includedir=
17099             case "$found_dir" in
17100               */lib | */lib/)
17101                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17102                 additional_includedir="$basedir/include"
17103                 ;;
17104             esac
17105             if test "X$additional_includedir" != "X"; then
17106                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17107                 haveit=
17108                 if test "X$additional_includedir" = "X/usr/local/include"; then
17109                   if test -n "$GCC"; then
17110                     case $host_os in
17111                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17112                     esac
17113                   fi
17114                 fi
17115                 if test -z "$haveit"; then
17116                   for x in $CPPFLAGS $INCICONV; do
17117
17118   acl_save_prefix="$prefix"
17119   prefix="$acl_final_prefix"
17120   acl_save_exec_prefix="$exec_prefix"
17121   exec_prefix="$acl_final_exec_prefix"
17122   eval x=\"$x\"
17123   exec_prefix="$acl_save_exec_prefix"
17124   prefix="$acl_save_prefix"
17125
17126                     if test "X$x" = "X-I$additional_includedir"; then
17127                       haveit=yes
17128                       break
17129                     fi
17130                   done
17131                   if test -z "$haveit"; then
17132                     if test -d "$additional_includedir"; then
17133                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17134                     fi
17135                   fi
17136                 fi
17137               fi
17138             fi
17139                         if test -n "$found_la"; then
17140                                                         save_libdir="$libdir"
17141               case "$found_la" in
17142                 */* | *\\*) . "$found_la" ;;
17143                 *) . "./$found_la" ;;
17144               esac
17145               libdir="$save_libdir"
17146                             for dep in $dependency_libs; do
17147                 case "$dep" in
17148                   -L*)
17149                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17150                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17151                       haveit=
17152                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17153                         if test -n "$GCC"; then
17154                           case $host_os in
17155                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17156                           esac
17157                         fi
17158                       fi
17159                       if test -z "$haveit"; then
17160                         haveit=
17161                         for x in $LDFLAGS $LIBICONV; do
17162
17163   acl_save_prefix="$prefix"
17164   prefix="$acl_final_prefix"
17165   acl_save_exec_prefix="$exec_prefix"
17166   exec_prefix="$acl_final_exec_prefix"
17167   eval x=\"$x\"
17168   exec_prefix="$acl_save_exec_prefix"
17169   prefix="$acl_save_prefix"
17170
17171                           if test "X$x" = "X-L$additional_libdir"; then
17172                             haveit=yes
17173                             break
17174                           fi
17175                         done
17176                         if test -z "$haveit"; then
17177                           if test -d "$additional_libdir"; then
17178                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17179                           fi
17180                         fi
17181                         haveit=
17182                         for x in $LDFLAGS $LTLIBICONV; do
17183
17184   acl_save_prefix="$prefix"
17185   prefix="$acl_final_prefix"
17186   acl_save_exec_prefix="$exec_prefix"
17187   exec_prefix="$acl_final_exec_prefix"
17188   eval x=\"$x\"
17189   exec_prefix="$acl_save_exec_prefix"
17190   prefix="$acl_save_prefix"
17191
17192                           if test "X$x" = "X-L$additional_libdir"; then
17193                             haveit=yes
17194                             break
17195                           fi
17196                         done
17197                         if test -z "$haveit"; then
17198                           if test -d "$additional_libdir"; then
17199                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17200                           fi
17201                         fi
17202                       fi
17203                     fi
17204                     ;;
17205                   -R*)
17206                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17207                     if test "$enable_rpath" != no; then
17208                                                                   haveit=
17209                       for x in $rpathdirs; do
17210                         if test "X$x" = "X$dir"; then
17211                           haveit=yes
17212                           break
17213                         fi
17214                       done
17215                       if test -z "$haveit"; then
17216                         rpathdirs="$rpathdirs $dir"
17217                       fi
17218                                                                   haveit=
17219                       for x in $ltrpathdirs; do
17220                         if test "X$x" = "X$dir"; then
17221                           haveit=yes
17222                           break
17223                         fi
17224                       done
17225                       if test -z "$haveit"; then
17226                         ltrpathdirs="$ltrpathdirs $dir"
17227                       fi
17228                     fi
17229                     ;;
17230                   -l*)
17231                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17232                     ;;
17233                   *.la)
17234                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17235                     ;;
17236                   *)
17237                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17238                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17239                     ;;
17240                 esac
17241               done
17242             fi
17243           else
17244                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17245             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17246           fi
17247         fi
17248       fi
17249     done
17250   done
17251   if test "X$rpathdirs" != "X"; then
17252     if test -n "$hardcode_libdir_separator"; then
17253                         alldirs=
17254       for found_dir in $rpathdirs; do
17255         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17256       done
17257             acl_save_libdir="$libdir"
17258       libdir="$alldirs"
17259       eval flag=\"$hardcode_libdir_flag_spec\"
17260       libdir="$acl_save_libdir"
17261       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17262     else
17263             for found_dir in $rpathdirs; do
17264         acl_save_libdir="$libdir"
17265         libdir="$found_dir"
17266         eval flag=\"$hardcode_libdir_flag_spec\"
17267         libdir="$acl_save_libdir"
17268         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17269       done
17270     fi
17271   fi
17272   if test "X$ltrpathdirs" != "X"; then
17273             for found_dir in $ltrpathdirs; do
17274       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17275     done
17276   fi
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17296 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17297 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17298   echo $ECHO_N "(cached) $ECHO_C" >&6
17299 else
17300   gt_save_CPPFLAGS="$CPPFLAGS"
17301      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17302      gt_save_LIBS="$LIBS"
17303      LIBS="$LIBS -framework CoreFoundation"
17304      cat >conftest.$ac_ext <<_ACEOF
17305 /* confdefs.h.  */
17306 _ACEOF
17307 cat confdefs.h >>conftest.$ac_ext
17308 cat >>conftest.$ac_ext <<_ACEOF
17309 /* end confdefs.h.  */
17310 #include <CFPreferences.h>
17311 int
17312 main ()
17313 {
17314 CFPreferencesCopyAppValue(NULL, NULL)
17315   ;
17316   return 0;
17317 }
17318 _ACEOF
17319 rm -f conftest.$ac_objext conftest$ac_exeext
17320 if { (ac_try="$ac_link"
17321 case "(($ac_try" in
17322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17323   *) ac_try_echo=$ac_try;;
17324 esac
17325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17326   (eval "$ac_link") 2>conftest.er1
17327   ac_status=$?
17328   grep -v '^ *+' conftest.er1 >conftest.err
17329   rm -f conftest.er1
17330   cat conftest.err >&5
17331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332   (exit $ac_status); } && {
17333          test -z "$ac_c_werror_flag" ||
17334          test ! -s conftest.err
17335        } && test -s conftest$ac_exeext &&
17336        $as_test_x conftest$ac_exeext; then
17337   gt_cv_func_CFPreferencesCopyAppValue=yes
17338 else
17339   echo "$as_me: failed program was:" >&5
17340 sed 's/^/| /' conftest.$ac_ext >&5
17341
17342         gt_cv_func_CFPreferencesCopyAppValue=no
17343 fi
17344
17345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17346       conftest$ac_exeext conftest.$ac_ext
17347      CPPFLAGS="$gt_save_CPPFLAGS"
17348      LIBS="$gt_save_LIBS"
17349 fi
17350 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17351 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17352   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17353
17354 cat >>confdefs.h <<\_ACEOF
17355 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17356 _ACEOF
17357
17358   fi
17359     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17360 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17361 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17362   echo $ECHO_N "(cached) $ECHO_C" >&6
17363 else
17364   gt_save_CPPFLAGS="$CPPFLAGS"
17365      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17366      gt_save_LIBS="$LIBS"
17367      LIBS="$LIBS -framework CoreFoundation"
17368      cat >conftest.$ac_ext <<_ACEOF
17369 /* confdefs.h.  */
17370 _ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h.  */
17374 #include <CFLocale.h>
17375 int
17376 main ()
17377 {
17378 CFLocaleCopyCurrent();
17379   ;
17380   return 0;
17381 }
17382 _ACEOF
17383 rm -f conftest.$ac_objext conftest$ac_exeext
17384 if { (ac_try="$ac_link"
17385 case "(($ac_try" in
17386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17387   *) ac_try_echo=$ac_try;;
17388 esac
17389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17390   (eval "$ac_link") 2>conftest.er1
17391   ac_status=$?
17392   grep -v '^ *+' conftest.er1 >conftest.err
17393   rm -f conftest.er1
17394   cat conftest.err >&5
17395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396   (exit $ac_status); } && {
17397          test -z "$ac_c_werror_flag" ||
17398          test ! -s conftest.err
17399        } && test -s conftest$ac_exeext &&
17400        $as_test_x conftest$ac_exeext; then
17401   gt_cv_func_CFLocaleCopyCurrent=yes
17402 else
17403   echo "$as_me: failed program was:" >&5
17404 sed 's/^/| /' conftest.$ac_ext >&5
17405
17406         gt_cv_func_CFLocaleCopyCurrent=no
17407 fi
17408
17409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17410       conftest$ac_exeext conftest.$ac_ext
17411      CPPFLAGS="$gt_save_CPPFLAGS"
17412      LIBS="$gt_save_LIBS"
17413 fi
17414 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17415 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17416   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17417
17418 cat >>confdefs.h <<\_ACEOF
17419 #define HAVE_CFLOCALECOPYCURRENT 1
17420 _ACEOF
17421
17422   fi
17423   INTL_MACOSX_LIBS=
17424   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17425     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17426   fi
17427
17428
17429
17430
17431   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17432 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17433     # Check whether --enable-nls was given.
17434 if test "${enable_nls+set}" = set; then
17435   enableval=$enable_nls; USE_NLS=$enableval
17436 else
17437   USE_NLS=yes
17438 fi
17439
17440   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17441 echo "${ECHO_T}$USE_NLS" >&6; }
17442
17443
17444
17445
17446   LIBINTL=
17447   LTLIBINTL=
17448   POSUB=
17449
17450     if test "$USE_NLS" = "yes"; then
17451     gt_use_preinstalled_gnugettext=no
17452
17453
17454
17455
17456
17457
17458         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17459 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17460 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17461   echo $ECHO_N "(cached) $ECHO_C" >&6
17462 else
17463   cat >conftest.$ac_ext <<_ACEOF
17464 /* confdefs.h.  */
17465 _ACEOF
17466 cat confdefs.h >>conftest.$ac_ext
17467 cat >>conftest.$ac_ext <<_ACEOF
17468 /* end confdefs.h.  */
17469 #include <libintl.h>
17470 extern int _nl_msg_cat_cntr;
17471 extern int *_nl_domain_bindings;
17472 int
17473 main ()
17474 {
17475 bindtextdomain ("", "");
17476 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17477   ;
17478   return 0;
17479 }
17480 _ACEOF
17481 rm -f conftest.$ac_objext conftest$ac_exeext
17482 if { (ac_try="$ac_link"
17483 case "(($ac_try" in
17484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17485   *) ac_try_echo=$ac_try;;
17486 esac
17487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17488   (eval "$ac_link") 2>conftest.er1
17489   ac_status=$?
17490   grep -v '^ *+' conftest.er1 >conftest.err
17491   rm -f conftest.er1
17492   cat conftest.err >&5
17493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494   (exit $ac_status); } && {
17495          test -z "$ac_c_werror_flag" ||
17496          test ! -s conftest.err
17497        } && test -s conftest$ac_exeext &&
17498        $as_test_x conftest$ac_exeext; then
17499   gt_cv_func_gnugettext1_libc=yes
17500 else
17501   echo "$as_me: failed program was:" >&5
17502 sed 's/^/| /' conftest.$ac_ext >&5
17503
17504         gt_cv_func_gnugettext1_libc=no
17505 fi
17506
17507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17508       conftest$ac_exeext conftest.$ac_ext
17509 fi
17510 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17511 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17512
17513         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17514
17515
17516
17517
17518
17519           am_save_CPPFLAGS="$CPPFLAGS"
17520
17521   for element in $INCICONV; do
17522     haveit=
17523     for x in $CPPFLAGS; do
17524
17525   acl_save_prefix="$prefix"
17526   prefix="$acl_final_prefix"
17527   acl_save_exec_prefix="$exec_prefix"
17528   exec_prefix="$acl_final_exec_prefix"
17529   eval x=\"$x\"
17530   exec_prefix="$acl_save_exec_prefix"
17531   prefix="$acl_save_prefix"
17532
17533       if test "X$x" = "X$element"; then
17534         haveit=yes
17535         break
17536       fi
17537     done
17538     if test -z "$haveit"; then
17539       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17540     fi
17541   done
17542
17543
17544   { echo "$as_me:$LINENO: checking for iconv" >&5
17545 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17546 if test "${am_cv_func_iconv+set}" = set; then
17547   echo $ECHO_N "(cached) $ECHO_C" >&6
17548 else
17549
17550     am_cv_func_iconv="no, consider installing GNU libiconv"
17551     am_cv_lib_iconv=no
17552     cat >conftest.$ac_ext <<_ACEOF
17553 /* confdefs.h.  */
17554 _ACEOF
17555 cat confdefs.h >>conftest.$ac_ext
17556 cat >>conftest.$ac_ext <<_ACEOF
17557 /* end confdefs.h.  */
17558 #include <stdlib.h>
17559 #include <iconv.h>
17560 int
17561 main ()
17562 {
17563 iconv_t cd = iconv_open("","");
17564        iconv(cd,NULL,NULL,NULL,NULL);
17565        iconv_close(cd);
17566   ;
17567   return 0;
17568 }
17569 _ACEOF
17570 rm -f conftest.$ac_objext conftest$ac_exeext
17571 if { (ac_try="$ac_link"
17572 case "(($ac_try" in
17573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17574   *) ac_try_echo=$ac_try;;
17575 esac
17576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17577   (eval "$ac_link") 2>conftest.er1
17578   ac_status=$?
17579   grep -v '^ *+' conftest.er1 >conftest.err
17580   rm -f conftest.er1
17581   cat conftest.err >&5
17582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583   (exit $ac_status); } && {
17584          test -z "$ac_c_werror_flag" ||
17585          test ! -s conftest.err
17586        } && test -s conftest$ac_exeext &&
17587        $as_test_x conftest$ac_exeext; then
17588   am_cv_func_iconv=yes
17589 else
17590   echo "$as_me: failed program was:" >&5
17591 sed 's/^/| /' conftest.$ac_ext >&5
17592
17593
17594 fi
17595
17596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17597       conftest$ac_exeext conftest.$ac_ext
17598     if test "$am_cv_func_iconv" != yes; then
17599       am_save_LIBS="$LIBS"
17600       LIBS="$LIBS $LIBICONV"
17601       cat >conftest.$ac_ext <<_ACEOF
17602 /* confdefs.h.  */
17603 _ACEOF
17604 cat confdefs.h >>conftest.$ac_ext
17605 cat >>conftest.$ac_ext <<_ACEOF
17606 /* end confdefs.h.  */
17607 #include <stdlib.h>
17608 #include <iconv.h>
17609 int
17610 main ()
17611 {
17612 iconv_t cd = iconv_open("","");
17613          iconv(cd,NULL,NULL,NULL,NULL);
17614          iconv_close(cd);
17615   ;
17616   return 0;
17617 }
17618 _ACEOF
17619 rm -f conftest.$ac_objext conftest$ac_exeext
17620 if { (ac_try="$ac_link"
17621 case "(($ac_try" in
17622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17623   *) ac_try_echo=$ac_try;;
17624 esac
17625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17626   (eval "$ac_link") 2>conftest.er1
17627   ac_status=$?
17628   grep -v '^ *+' conftest.er1 >conftest.err
17629   rm -f conftest.er1
17630   cat conftest.err >&5
17631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632   (exit $ac_status); } && {
17633          test -z "$ac_c_werror_flag" ||
17634          test ! -s conftest.err
17635        } && test -s conftest$ac_exeext &&
17636        $as_test_x conftest$ac_exeext; then
17637   am_cv_lib_iconv=yes
17638         am_cv_func_iconv=yes
17639 else
17640   echo "$as_me: failed program was:" >&5
17641 sed 's/^/| /' conftest.$ac_ext >&5
17642
17643
17644 fi
17645
17646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17647       conftest$ac_exeext conftest.$ac_ext
17648       LIBS="$am_save_LIBS"
17649     fi
17650
17651 fi
17652 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17653 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17654   if test "$am_cv_func_iconv" = yes; then
17655
17656 cat >>confdefs.h <<\_ACEOF
17657 #define HAVE_ICONV 1
17658 _ACEOF
17659
17660   fi
17661   if test "$am_cv_lib_iconv" = yes; then
17662     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17663 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17664     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17665 echo "${ECHO_T}$LIBICONV" >&6; }
17666   else
17667             CPPFLAGS="$am_save_CPPFLAGS"
17668     LIBICONV=
17669     LTLIBICONV=
17670   fi
17671
17672
17673
17674
17675
17676
17677     use_additional=yes
17678
17679   acl_save_prefix="$prefix"
17680   prefix="$acl_final_prefix"
17681   acl_save_exec_prefix="$exec_prefix"
17682   exec_prefix="$acl_final_exec_prefix"
17683
17684     eval additional_includedir=\"$includedir\"
17685     eval additional_libdir=\"$libdir\"
17686
17687   exec_prefix="$acl_save_exec_prefix"
17688   prefix="$acl_save_prefix"
17689
17690
17691 # Check whether --with-libintl-prefix was given.
17692 if test "${with_libintl_prefix+set}" = set; then
17693   withval=$with_libintl_prefix;
17694     if test "X$withval" = "Xno"; then
17695       use_additional=no
17696     else
17697       if test "X$withval" = "X"; then
17698
17699   acl_save_prefix="$prefix"
17700   prefix="$acl_final_prefix"
17701   acl_save_exec_prefix="$exec_prefix"
17702   exec_prefix="$acl_final_exec_prefix"
17703
17704           eval additional_includedir=\"$includedir\"
17705           eval additional_libdir=\"$libdir\"
17706
17707   exec_prefix="$acl_save_exec_prefix"
17708   prefix="$acl_save_prefix"
17709
17710       else
17711         additional_includedir="$withval/include"
17712         additional_libdir="$withval/lib"
17713       fi
17714     fi
17715
17716 fi
17717
17718       LIBINTL=
17719   LTLIBINTL=
17720   INCINTL=
17721   rpathdirs=
17722   ltrpathdirs=
17723   names_already_handled=
17724   names_next_round='intl '
17725   while test -n "$names_next_round"; do
17726     names_this_round="$names_next_round"
17727     names_next_round=
17728     for name in $names_this_round; do
17729       already_handled=
17730       for n in $names_already_handled; do
17731         if test "$n" = "$name"; then
17732           already_handled=yes
17733           break
17734         fi
17735       done
17736       if test -z "$already_handled"; then
17737         names_already_handled="$names_already_handled $name"
17738                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17739         eval value=\"\$HAVE_LIB$uppername\"
17740         if test -n "$value"; then
17741           if test "$value" = yes; then
17742             eval value=\"\$LIB$uppername\"
17743             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17744             eval value=\"\$LTLIB$uppername\"
17745             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17746           else
17747                                     :
17748           fi
17749         else
17750                               found_dir=
17751           found_la=
17752           found_so=
17753           found_a=
17754           if test $use_additional = yes; then
17755             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17756               found_dir="$additional_libdir"
17757               found_so="$additional_libdir/lib$name.$shlibext"
17758               if test -f "$additional_libdir/lib$name.la"; then
17759                 found_la="$additional_libdir/lib$name.la"
17760               fi
17761             else
17762               if test -f "$additional_libdir/lib$name.$libext"; then
17763                 found_dir="$additional_libdir"
17764                 found_a="$additional_libdir/lib$name.$libext"
17765                 if test -f "$additional_libdir/lib$name.la"; then
17766                   found_la="$additional_libdir/lib$name.la"
17767                 fi
17768               fi
17769             fi
17770           fi
17771           if test "X$found_dir" = "X"; then
17772             for x in $LDFLAGS $LTLIBINTL; do
17773
17774   acl_save_prefix="$prefix"
17775   prefix="$acl_final_prefix"
17776   acl_save_exec_prefix="$exec_prefix"
17777   exec_prefix="$acl_final_exec_prefix"
17778   eval x=\"$x\"
17779   exec_prefix="$acl_save_exec_prefix"
17780   prefix="$acl_save_prefix"
17781
17782               case "$x" in
17783                 -L*)
17784                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17785                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17786                     found_dir="$dir"
17787                     found_so="$dir/lib$name.$shlibext"
17788                     if test -f "$dir/lib$name.la"; then
17789                       found_la="$dir/lib$name.la"
17790                     fi
17791                   else
17792                     if test -f "$dir/lib$name.$libext"; then
17793                       found_dir="$dir"
17794                       found_a="$dir/lib$name.$libext"
17795                       if test -f "$dir/lib$name.la"; then
17796                         found_la="$dir/lib$name.la"
17797                       fi
17798                     fi
17799                   fi
17800                   ;;
17801               esac
17802               if test "X$found_dir" != "X"; then
17803                 break
17804               fi
17805             done
17806           fi
17807           if test "X$found_dir" != "X"; then
17808                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17809             if test "X$found_so" != "X"; then
17810                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17811                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17812               else
17813                                                                                 haveit=
17814                 for x in $ltrpathdirs; do
17815                   if test "X$x" = "X$found_dir"; then
17816                     haveit=yes
17817                     break
17818                   fi
17819                 done
17820                 if test -z "$haveit"; then
17821                   ltrpathdirs="$ltrpathdirs $found_dir"
17822                 fi
17823                                 if test "$hardcode_direct" = yes; then
17824                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17825                 else
17826                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17827                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17828                                                             haveit=
17829                     for x in $rpathdirs; do
17830                       if test "X$x" = "X$found_dir"; then
17831                         haveit=yes
17832                         break
17833                       fi
17834                     done
17835                     if test -z "$haveit"; then
17836                       rpathdirs="$rpathdirs $found_dir"
17837                     fi
17838                   else
17839                                                                                 haveit=
17840                     for x in $LDFLAGS $LIBINTL; do
17841
17842   acl_save_prefix="$prefix"
17843   prefix="$acl_final_prefix"
17844   acl_save_exec_prefix="$exec_prefix"
17845   exec_prefix="$acl_final_exec_prefix"
17846   eval x=\"$x\"
17847   exec_prefix="$acl_save_exec_prefix"
17848   prefix="$acl_save_prefix"
17849
17850                       if test "X$x" = "X-L$found_dir"; then
17851                         haveit=yes
17852                         break
17853                       fi
17854                     done
17855                     if test -z "$haveit"; then
17856                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17857                     fi
17858                     if test "$hardcode_minus_L" != no; then
17859                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17860                     else
17861                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17862                     fi
17863                   fi
17864                 fi
17865               fi
17866             else
17867               if test "X$found_a" != "X"; then
17868                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17869               else
17870                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17871               fi
17872             fi
17873                         additional_includedir=
17874             case "$found_dir" in
17875               */lib | */lib/)
17876                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17877                 additional_includedir="$basedir/include"
17878                 ;;
17879             esac
17880             if test "X$additional_includedir" != "X"; then
17881                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17882                 haveit=
17883                 if test "X$additional_includedir" = "X/usr/local/include"; then
17884                   if test -n "$GCC"; then
17885                     case $host_os in
17886                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17887                     esac
17888                   fi
17889                 fi
17890                 if test -z "$haveit"; then
17891                   for x in $CPPFLAGS $INCINTL; do
17892
17893   acl_save_prefix="$prefix"
17894   prefix="$acl_final_prefix"
17895   acl_save_exec_prefix="$exec_prefix"
17896   exec_prefix="$acl_final_exec_prefix"
17897   eval x=\"$x\"
17898   exec_prefix="$acl_save_exec_prefix"
17899   prefix="$acl_save_prefix"
17900
17901                     if test "X$x" = "X-I$additional_includedir"; then
17902                       haveit=yes
17903                       break
17904                     fi
17905                   done
17906                   if test -z "$haveit"; then
17907                     if test -d "$additional_includedir"; then
17908                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17909                     fi
17910                   fi
17911                 fi
17912               fi
17913             fi
17914                         if test -n "$found_la"; then
17915                                                         save_libdir="$libdir"
17916               case "$found_la" in
17917                 */* | *\\*) . "$found_la" ;;
17918                 *) . "./$found_la" ;;
17919               esac
17920               libdir="$save_libdir"
17921                             for dep in $dependency_libs; do
17922                 case "$dep" in
17923                   -L*)
17924                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17925                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17926                       haveit=
17927                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17928                         if test -n "$GCC"; then
17929                           case $host_os in
17930                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17931                           esac
17932                         fi
17933                       fi
17934                       if test -z "$haveit"; then
17935                         haveit=
17936                         for x in $LDFLAGS $LIBINTL; do
17937
17938   acl_save_prefix="$prefix"
17939   prefix="$acl_final_prefix"
17940   acl_save_exec_prefix="$exec_prefix"
17941   exec_prefix="$acl_final_exec_prefix"
17942   eval x=\"$x\"
17943   exec_prefix="$acl_save_exec_prefix"
17944   prefix="$acl_save_prefix"
17945
17946                           if test "X$x" = "X-L$additional_libdir"; then
17947                             haveit=yes
17948                             break
17949                           fi
17950                         done
17951                         if test -z "$haveit"; then
17952                           if test -d "$additional_libdir"; then
17953                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17954                           fi
17955                         fi
17956                         haveit=
17957                         for x in $LDFLAGS $LTLIBINTL; do
17958
17959   acl_save_prefix="$prefix"
17960   prefix="$acl_final_prefix"
17961   acl_save_exec_prefix="$exec_prefix"
17962   exec_prefix="$acl_final_exec_prefix"
17963   eval x=\"$x\"
17964   exec_prefix="$acl_save_exec_prefix"
17965   prefix="$acl_save_prefix"
17966
17967                           if test "X$x" = "X-L$additional_libdir"; then
17968                             haveit=yes
17969                             break
17970                           fi
17971                         done
17972                         if test -z "$haveit"; then
17973                           if test -d "$additional_libdir"; then
17974                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17975                           fi
17976                         fi
17977                       fi
17978                     fi
17979                     ;;
17980                   -R*)
17981                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17982                     if test "$enable_rpath" != no; then
17983                                                                   haveit=
17984                       for x in $rpathdirs; do
17985                         if test "X$x" = "X$dir"; then
17986                           haveit=yes
17987                           break
17988                         fi
17989                       done
17990                       if test -z "$haveit"; then
17991                         rpathdirs="$rpathdirs $dir"
17992                       fi
17993                                                                   haveit=
17994                       for x in $ltrpathdirs; do
17995                         if test "X$x" = "X$dir"; then
17996                           haveit=yes
17997                           break
17998                         fi
17999                       done
18000                       if test -z "$haveit"; then
18001                         ltrpathdirs="$ltrpathdirs $dir"
18002                       fi
18003                     fi
18004                     ;;
18005                   -l*)
18006                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18007                     ;;
18008                   *.la)
18009                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18010                     ;;
18011                   *)
18012                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18013                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18014                     ;;
18015                 esac
18016               done
18017             fi
18018           else
18019                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18020             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18021           fi
18022         fi
18023       fi
18024     done
18025   done
18026   if test "X$rpathdirs" != "X"; then
18027     if test -n "$hardcode_libdir_separator"; then
18028                         alldirs=
18029       for found_dir in $rpathdirs; do
18030         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18031       done
18032             acl_save_libdir="$libdir"
18033       libdir="$alldirs"
18034       eval flag=\"$hardcode_libdir_flag_spec\"
18035       libdir="$acl_save_libdir"
18036       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18037     else
18038             for found_dir in $rpathdirs; do
18039         acl_save_libdir="$libdir"
18040         libdir="$found_dir"
18041         eval flag=\"$hardcode_libdir_flag_spec\"
18042         libdir="$acl_save_libdir"
18043         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18044       done
18045     fi
18046   fi
18047   if test "X$ltrpathdirs" != "X"; then
18048             for found_dir in $ltrpathdirs; do
18049       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18050     done
18051   fi
18052
18053           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18054 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18055 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18056   echo $ECHO_N "(cached) $ECHO_C" >&6
18057 else
18058   gt_save_CPPFLAGS="$CPPFLAGS"
18059             CPPFLAGS="$CPPFLAGS $INCINTL"
18060             gt_save_LIBS="$LIBS"
18061             LIBS="$LIBS $LIBINTL"
18062                         cat >conftest.$ac_ext <<_ACEOF
18063 /* confdefs.h.  */
18064 _ACEOF
18065 cat confdefs.h >>conftest.$ac_ext
18066 cat >>conftest.$ac_ext <<_ACEOF
18067 /* end confdefs.h.  */
18068 #include <libintl.h>
18069 extern int _nl_msg_cat_cntr;
18070 extern
18071 #ifdef __cplusplus
18072 "C"
18073 #endif
18074 const char *_nl_expand_alias (const char *);
18075 int
18076 main ()
18077 {
18078 bindtextdomain ("", "");
18079 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18080   ;
18081   return 0;
18082 }
18083 _ACEOF
18084 rm -f conftest.$ac_objext conftest$ac_exeext
18085 if { (ac_try="$ac_link"
18086 case "(($ac_try" in
18087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18088   *) ac_try_echo=$ac_try;;
18089 esac
18090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18091   (eval "$ac_link") 2>conftest.er1
18092   ac_status=$?
18093   grep -v '^ *+' conftest.er1 >conftest.err
18094   rm -f conftest.er1
18095   cat conftest.err >&5
18096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097   (exit $ac_status); } && {
18098          test -z "$ac_c_werror_flag" ||
18099          test ! -s conftest.err
18100        } && test -s conftest$ac_exeext &&
18101        $as_test_x conftest$ac_exeext; then
18102   gt_cv_func_gnugettext1_libintl=yes
18103 else
18104   echo "$as_me: failed program was:" >&5
18105 sed 's/^/| /' conftest.$ac_ext >&5
18106
18107         gt_cv_func_gnugettext1_libintl=no
18108 fi
18109
18110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18111       conftest$ac_exeext conftest.$ac_ext
18112                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18113               LIBS="$LIBS $LIBICONV"
18114               cat >conftest.$ac_ext <<_ACEOF
18115 /* confdefs.h.  */
18116 _ACEOF
18117 cat confdefs.h >>conftest.$ac_ext
18118 cat >>conftest.$ac_ext <<_ACEOF
18119 /* end confdefs.h.  */
18120 #include <libintl.h>
18121 extern int _nl_msg_cat_cntr;
18122 extern
18123 #ifdef __cplusplus
18124 "C"
18125 #endif
18126 const char *_nl_expand_alias (const char *);
18127 int
18128 main ()
18129 {
18130 bindtextdomain ("", "");
18131 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18132   ;
18133   return 0;
18134 }
18135 _ACEOF
18136 rm -f conftest.$ac_objext conftest$ac_exeext
18137 if { (ac_try="$ac_link"
18138 case "(($ac_try" in
18139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18140   *) ac_try_echo=$ac_try;;
18141 esac
18142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18143   (eval "$ac_link") 2>conftest.er1
18144   ac_status=$?
18145   grep -v '^ *+' conftest.er1 >conftest.err
18146   rm -f conftest.er1
18147   cat conftest.err >&5
18148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149   (exit $ac_status); } && {
18150          test -z "$ac_c_werror_flag" ||
18151          test ! -s conftest.err
18152        } && test -s conftest$ac_exeext &&
18153        $as_test_x conftest$ac_exeext; then
18154   LIBINTL="$LIBINTL $LIBICONV"
18155                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18156                 gt_cv_func_gnugettext1_libintl=yes
18157
18158 else
18159   echo "$as_me: failed program was:" >&5
18160 sed 's/^/| /' conftest.$ac_ext >&5
18161
18162
18163 fi
18164
18165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18166       conftest$ac_exeext conftest.$ac_ext
18167             fi
18168             CPPFLAGS="$gt_save_CPPFLAGS"
18169             LIBS="$gt_save_LIBS"
18170 fi
18171 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18172 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18173         fi
18174
18175                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18176            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18177                 && test "$PACKAGE" != gettext-runtime \
18178                 && test "$PACKAGE" != gettext-tools; }; then
18179           gt_use_preinstalled_gnugettext=yes
18180         else
18181                     LIBINTL=
18182           LTLIBINTL=
18183           INCINTL=
18184         fi
18185
18186
18187
18188     if test -n "$INTL_MACOSX_LIBS"; then
18189       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18190          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18191                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18192         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18193       fi
18194     fi
18195
18196     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18197        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18198
18199 cat >>confdefs.h <<\_ACEOF
18200 #define ENABLE_NLS 1
18201 _ACEOF
18202
18203     else
18204       USE_NLS=no
18205     fi
18206   fi
18207
18208   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18209 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18210   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18211 echo "${ECHO_T}$USE_NLS" >&6; }
18212   if test "$USE_NLS" = "yes"; then
18213     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18214 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18215     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18216       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18217         gt_source="external libintl"
18218       else
18219         gt_source="libc"
18220       fi
18221     else
18222       gt_source="included intl directory"
18223     fi
18224     { echo "$as_me:$LINENO: result: $gt_source" >&5
18225 echo "${ECHO_T}$gt_source" >&6; }
18226   fi
18227
18228   if test "$USE_NLS" = "yes"; then
18229
18230     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18231       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18232         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18233 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18234         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18235 echo "${ECHO_T}$LIBINTL" >&6; }
18236
18237   for element in $INCINTL; do
18238     haveit=
18239     for x in $CPPFLAGS; do
18240
18241   acl_save_prefix="$prefix"
18242   prefix="$acl_final_prefix"
18243   acl_save_exec_prefix="$exec_prefix"
18244   exec_prefix="$acl_final_exec_prefix"
18245   eval x=\"$x\"
18246   exec_prefix="$acl_save_exec_prefix"
18247   prefix="$acl_save_prefix"
18248
18249       if test "X$x" = "X$element"; then
18250         haveit=yes
18251         break
18252       fi
18253     done
18254     if test -z "$haveit"; then
18255       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18256     fi
18257   done
18258
18259       fi
18260
18261
18262 cat >>confdefs.h <<\_ACEOF
18263 #define HAVE_GETTEXT 1
18264 _ACEOF
18265
18266
18267 cat >>confdefs.h <<\_ACEOF
18268 #define HAVE_DCGETTEXT 1
18269 _ACEOF
18270
18271     fi
18272
18273         POSUB=po
18274   fi
18275
18276
18277
18278     INTLLIBS="$LIBINTL"
18279
18280
18281
18282
18283
18284
18285
18286 os_name=`uname -s 2>/dev/null`
18287 if test x${prefix} = xNONE ; then
18288    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18289       sysconfdir=/etc/bacula
18290    fi
18291
18292    if test `eval echo ${libdir}` = NONE/lib ; then
18293       case ${os_name} in
18294       Linux)
18295          os_processor=`uname -p 2>/dev/null`
18296          case ${os_processor} in
18297          x86_64)
18298             libdir=/usr/lib64
18299             ;;
18300          *)
18301             libdir=/usr/lib
18302             ;;
18303          esac
18304          ;;
18305       *)
18306          libdir=/usr/lib
18307          ;;
18308       esac
18309    fi
18310
18311    if test `eval echo ${includedir}` = NONE/include ; then
18312       includedir=/usr/include
18313    fi
18314
18315    if test `eval echo ${datarootdir}` = NONE/share ; then
18316       datarootdir=/usr/share
18317    fi
18318    prefix=
18319 fi
18320
18321 if test x${exec_prefix} = xNONE ; then
18322    exec_prefix=${prefix}
18323 fi
18324
18325 sysconfdir=`eval echo ${sysconfdir}`
18326 datarootdir=`eval echo ${datarootdir}`
18327 docdir=`eval echo ${docdir}`
18328 htmldir=`eval echo ${htmldir}`
18329 libdir=`eval echo ${libdir}`
18330 includedir=`eval echo ${includedir}`
18331 localedir=`eval echo ${datarootdir}/locale`
18332 cat >>confdefs.h <<_ACEOF
18333 #define SYSCONFDIR "$sysconfdir"
18334 _ACEOF
18335
18336 cat >>confdefs.h <<_ACEOF
18337 #define LOCALEDIR "$localedir"
18338 _ACEOF
18339
18340
18341 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18342    sbindir=${exec_prefix}/sbin
18343 fi
18344 sbindir=`eval echo ${sbindir}`
18345
18346 if test x$mandir = x'${prefix}/man' ; then
18347    mandir=/usr/share/man
18348 fi
18349
18350 if test x$htmldir = x${docdir} ; then
18351    htmldir=`eval echo ${docdir}bacula/html`
18352 fi
18353
18354 if test x$docdir = x'/usr/share/doc/' ; then
18355    docdir=`eval echo ${docdir}bacula`
18356 fi
18357
18358
18359 for ac_prog in msgfmt
18360 do
18361   # Extract the first word of "$ac_prog", so it can be a program name with args.
18362 set dummy $ac_prog; ac_word=$2
18363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18365 if test "${ac_cv_path_MSGFMT+set}" = set; then
18366   echo $ECHO_N "(cached) $ECHO_C" >&6
18367 else
18368   case $MSGFMT in
18369   [\\/]* | ?:[\\/]*)
18370   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18371   ;;
18372   *)
18373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18374 for as_dir in $PATH
18375 do
18376   IFS=$as_save_IFS
18377   test -z "$as_dir" && as_dir=.
18378   for ac_exec_ext in '' $ac_executable_extensions; do
18379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18380     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18382     break 2
18383   fi
18384 done
18385 done
18386 IFS=$as_save_IFS
18387
18388   ;;
18389 esac
18390 fi
18391 MSGFMT=$ac_cv_path_MSGFMT
18392 if test -n "$MSGFMT"; then
18393   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18394 echo "${ECHO_T}$MSGFMT" >&6; }
18395 else
18396   { echo "$as_me:$LINENO: result: no" >&5
18397 echo "${ECHO_T}no" >&6; }
18398 fi
18399
18400
18401   test -n "$MSGFMT" && break
18402 done
18403 test -n "$MSGFMT" || MSGFMT="no"
18404
18405 if test "$MSGFMT" = "no"
18406 then
18407    echo 'msgfmt program not found, disabling NLS !'
18408    USE_NLS=no
18409    USE_INCLUDED_LIBINTL=no
18410 #else
18411
18412     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18413 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18414 if test "${ac_cv_gnu_library_2+set}" = set; then
18415   echo $ECHO_N "(cached) $ECHO_C" >&6
18416 else
18417   cat >conftest.$ac_ext <<_ACEOF
18418 /* confdefs.h.  */
18419 _ACEOF
18420 cat confdefs.h >>conftest.$ac_ext
18421 cat >>conftest.$ac_ext <<_ACEOF
18422 /* end confdefs.h.  */
18423
18424 #include <features.h>
18425 #ifdef __GNU_LIBRARY__
18426  #if (__GLIBC__ >= 2)
18427   Lucky GNU user
18428  #endif
18429 #endif
18430
18431 _ACEOF
18432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18433   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18434   ac_cv_gnu_library_2=yes
18435 else
18436   ac_cv_gnu_library_2=no
18437 fi
18438 rm -f conftest*
18439
18440
18441
18442 fi
18443 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18444 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18445
18446     GLIBC2="$ac_cv_gnu_library_2"
18447
18448
18449 if test -n "$ac_tool_prefix"; then
18450   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18451 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18454 if test "${ac_cv_prog_RANLIB+set}" = set; then
18455   echo $ECHO_N "(cached) $ECHO_C" >&6
18456 else
18457   if test -n "$RANLIB"; then
18458   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18459 else
18460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18461 for as_dir in $PATH
18462 do
18463   IFS=$as_save_IFS
18464   test -z "$as_dir" && as_dir=.
18465   for ac_exec_ext in '' $ac_executable_extensions; do
18466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18467     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18469     break 2
18470   fi
18471 done
18472 done
18473 IFS=$as_save_IFS
18474
18475 fi
18476 fi
18477 RANLIB=$ac_cv_prog_RANLIB
18478 if test -n "$RANLIB"; then
18479   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18480 echo "${ECHO_T}$RANLIB" >&6; }
18481 else
18482   { echo "$as_me:$LINENO: result: no" >&5
18483 echo "${ECHO_T}no" >&6; }
18484 fi
18485
18486
18487 fi
18488 if test -z "$ac_cv_prog_RANLIB"; then
18489   ac_ct_RANLIB=$RANLIB
18490   # Extract the first word of "ranlib", so it can be a program name with args.
18491 set dummy 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_ac_ct_RANLIB+set}" = set; then
18495   echo $ECHO_N "(cached) $ECHO_C" >&6
18496 else
18497   if test -n "$ac_ct_RANLIB"; then
18498   ac_cv_prog_ac_ct_RANLIB="$ac_ct_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_ac_ct_RANLIB="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 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18518 if test -n "$ac_ct_RANLIB"; then
18519   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18520 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18521 else
18522   { echo "$as_me:$LINENO: result: no" >&5
18523 echo "${ECHO_T}no" >&6; }
18524 fi
18525
18526   if test "x$ac_ct_RANLIB" = x; then
18527     RANLIB=":"
18528   else
18529     case $cross_compiling:$ac_tool_warned in
18530 yes:)
18531 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18532 whose name does not start with the host triplet.  If you think this
18533 configuration is useful to you, please write to autoconf@gnu.org." >&5
18534 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18535 whose name does not start with the host triplet.  If you think this
18536 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18537 ac_tool_warned=yes ;;
18538 esac
18539     RANLIB=$ac_ct_RANLIB
18540   fi
18541 else
18542   RANLIB="$ac_cv_prog_RANLIB"
18543 fi
18544
18545
18546         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18547 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18548 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18549   echo $ECHO_N "(cached) $ECHO_C" >&6
18550 else
18551   ac_check_lib_save_LIBS=$LIBS
18552 LIBS="-lcposix  $LIBS"
18553 cat >conftest.$ac_ext <<_ACEOF
18554 /* confdefs.h.  */
18555 _ACEOF
18556 cat confdefs.h >>conftest.$ac_ext
18557 cat >>conftest.$ac_ext <<_ACEOF
18558 /* end confdefs.h.  */
18559
18560 /* Override any GCC internal prototype to avoid an error.
18561    Use char because int might match the return type of a GCC
18562    builtin and then its argument prototype would still apply.  */
18563 #ifdef __cplusplus
18564 extern "C"
18565 #endif
18566 char strerror ();
18567 int
18568 main ()
18569 {
18570 return strerror ();
18571   ;
18572   return 0;
18573 }
18574 _ACEOF
18575 rm -f conftest.$ac_objext conftest$ac_exeext
18576 if { (ac_try="$ac_link"
18577 case "(($ac_try" in
18578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18579   *) ac_try_echo=$ac_try;;
18580 esac
18581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18582   (eval "$ac_link") 2>conftest.er1
18583   ac_status=$?
18584   grep -v '^ *+' conftest.er1 >conftest.err
18585   rm -f conftest.er1
18586   cat conftest.err >&5
18587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588   (exit $ac_status); } && {
18589          test -z "$ac_c_werror_flag" ||
18590          test ! -s conftest.err
18591        } && test -s conftest$ac_exeext &&
18592        $as_test_x conftest$ac_exeext; then
18593   ac_cv_lib_cposix_strerror=yes
18594 else
18595   echo "$as_me: failed program was:" >&5
18596 sed 's/^/| /' conftest.$ac_ext >&5
18597
18598         ac_cv_lib_cposix_strerror=no
18599 fi
18600
18601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18602       conftest$ac_exeext conftest.$ac_ext
18603 LIBS=$ac_check_lib_save_LIBS
18604 fi
18605 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18606 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18607 if test $ac_cv_lib_cposix_strerror = yes; then
18608   LIBS="$LIBS -lcposix"
18609 fi
18610
18611
18612
18613 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18614 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18615 if test "${ac_cv_c_const+set}" = set; then
18616   echo $ECHO_N "(cached) $ECHO_C" >&6
18617 else
18618   cat >conftest.$ac_ext <<_ACEOF
18619 /* confdefs.h.  */
18620 _ACEOF
18621 cat confdefs.h >>conftest.$ac_ext
18622 cat >>conftest.$ac_ext <<_ACEOF
18623 /* end confdefs.h.  */
18624
18625 int
18626 main ()
18627 {
18628 /* FIXME: Include the comments suggested by Paul. */
18629 #ifndef __cplusplus
18630   /* Ultrix mips cc rejects this.  */
18631   typedef int charset[2];
18632   const charset cs;
18633   /* SunOS 4.1.1 cc rejects this.  */
18634   char const *const *pcpcc;
18635   char **ppc;
18636   /* NEC SVR4.0.2 mips cc rejects this.  */
18637   struct point {int x, y;};
18638   static struct point const zero = {0,0};
18639   /* AIX XL C 1.02.0.0 rejects this.
18640      It does not let you subtract one const X* pointer from another in
18641      an arm of an if-expression whose if-part is not a constant
18642      expression */
18643   const char *g = "string";
18644   pcpcc = &g + (g ? g-g : 0);
18645   /* HPUX 7.0 cc rejects these. */
18646   ++pcpcc;
18647   ppc = (char**) pcpcc;
18648   pcpcc = (char const *const *) ppc;
18649   { /* SCO 3.2v4 cc rejects this.  */
18650     char *t;
18651     char const *s = 0 ? (char *) 0 : (char const *) 0;
18652
18653     *t++ = 0;
18654     if (s) return 0;
18655   }
18656   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18657     int x[] = {25, 17};
18658     const int *foo = &x[0];
18659     ++foo;
18660   }
18661   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18662     typedef const int *iptr;
18663     iptr p = 0;
18664     ++p;
18665   }
18666   { /* AIX XL C 1.02.0.0 rejects this saying
18667        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18668     struct s { int j; const int *ap[3]; };
18669     struct s *b; b->j = 5;
18670   }
18671   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18672     const int foo = 10;
18673     if (!foo) return 0;
18674   }
18675   return !cs[0] && !zero.x;
18676 #endif
18677
18678   ;
18679   return 0;
18680 }
18681 _ACEOF
18682 rm -f conftest.$ac_objext
18683 if { (ac_try="$ac_compile"
18684 case "(($ac_try" in
18685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686   *) ac_try_echo=$ac_try;;
18687 esac
18688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689   (eval "$ac_compile") 2>conftest.er1
18690   ac_status=$?
18691   grep -v '^ *+' conftest.er1 >conftest.err
18692   rm -f conftest.er1
18693   cat conftest.err >&5
18694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695   (exit $ac_status); } && {
18696          test -z "$ac_c_werror_flag" ||
18697          test ! -s conftest.err
18698        } && test -s conftest.$ac_objext; then
18699   ac_cv_c_const=yes
18700 else
18701   echo "$as_me: failed program was:" >&5
18702 sed 's/^/| /' conftest.$ac_ext >&5
18703
18704         ac_cv_c_const=no
18705 fi
18706
18707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18708 fi
18709 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18710 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18711 if test $ac_cv_c_const = no; then
18712
18713 cat >>confdefs.h <<\_ACEOF
18714 #define const
18715 _ACEOF
18716
18717 fi
18718
18719
18720   { echo "$as_me:$LINENO: checking for signed" >&5
18721 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18722 if test "${bh_cv_c_signed+set}" = set; then
18723   echo $ECHO_N "(cached) $ECHO_C" >&6
18724 else
18725   cat >conftest.$ac_ext <<_ACEOF
18726 /* confdefs.h.  */
18727 _ACEOF
18728 cat confdefs.h >>conftest.$ac_ext
18729 cat >>conftest.$ac_ext <<_ACEOF
18730 /* end confdefs.h.  */
18731
18732 int
18733 main ()
18734 {
18735 signed char x;
18736   ;
18737   return 0;
18738 }
18739 _ACEOF
18740 rm -f conftest.$ac_objext
18741 if { (ac_try="$ac_compile"
18742 case "(($ac_try" in
18743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18744   *) ac_try_echo=$ac_try;;
18745 esac
18746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18747   (eval "$ac_compile") 2>conftest.er1
18748   ac_status=$?
18749   grep -v '^ *+' conftest.er1 >conftest.err
18750   rm -f conftest.er1
18751   cat conftest.err >&5
18752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753   (exit $ac_status); } && {
18754          test -z "$ac_c_werror_flag" ||
18755          test ! -s conftest.err
18756        } && test -s conftest.$ac_objext; then
18757   bh_cv_c_signed=yes
18758 else
18759   echo "$as_me: failed program was:" >&5
18760 sed 's/^/| /' conftest.$ac_ext >&5
18761
18762         bh_cv_c_signed=no
18763 fi
18764
18765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18766 fi
18767 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18768 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18769   if test $bh_cv_c_signed = no; then
18770
18771 cat >>confdefs.h <<\_ACEOF
18772 #define signed
18773 _ACEOF
18774
18775   fi
18776
18777 { echo "$as_me:$LINENO: checking for inline" >&5
18778 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18779 if test "${ac_cv_c_inline+set}" = set; then
18780   echo $ECHO_N "(cached) $ECHO_C" >&6
18781 else
18782   ac_cv_c_inline=no
18783 for ac_kw in inline __inline__ __inline; do
18784   cat >conftest.$ac_ext <<_ACEOF
18785 /* confdefs.h.  */
18786 _ACEOF
18787 cat confdefs.h >>conftest.$ac_ext
18788 cat >>conftest.$ac_ext <<_ACEOF
18789 /* end confdefs.h.  */
18790 #ifndef __cplusplus
18791 typedef int foo_t;
18792 static $ac_kw foo_t static_foo () {return 0; }
18793 $ac_kw foo_t foo () {return 0; }
18794 #endif
18795
18796 _ACEOF
18797 rm -f conftest.$ac_objext
18798 if { (ac_try="$ac_compile"
18799 case "(($ac_try" in
18800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18801   *) ac_try_echo=$ac_try;;
18802 esac
18803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18804   (eval "$ac_compile") 2>conftest.er1
18805   ac_status=$?
18806   grep -v '^ *+' conftest.er1 >conftest.err
18807   rm -f conftest.er1
18808   cat conftest.err >&5
18809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810   (exit $ac_status); } && {
18811          test -z "$ac_c_werror_flag" ||
18812          test ! -s conftest.err
18813        } && test -s conftest.$ac_objext; then
18814   ac_cv_c_inline=$ac_kw
18815 else
18816   echo "$as_me: failed program was:" >&5
18817 sed 's/^/| /' conftest.$ac_ext >&5
18818
18819
18820 fi
18821
18822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18823   test "$ac_cv_c_inline" != no && break
18824 done
18825
18826 fi
18827 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18828 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18829
18830
18831 case $ac_cv_c_inline in
18832   inline | yes) ;;
18833   *)
18834     case $ac_cv_c_inline in
18835       no) ac_val=;;
18836       *) ac_val=$ac_cv_c_inline;;
18837     esac
18838     cat >>confdefs.h <<_ACEOF
18839 #ifndef __cplusplus
18840 #define inline $ac_val
18841 #endif
18842 _ACEOF
18843     ;;
18844 esac
18845
18846 { echo "$as_me:$LINENO: checking for off_t" >&5
18847 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18848 if test "${ac_cv_type_off_t+set}" = set; then
18849   echo $ECHO_N "(cached) $ECHO_C" >&6
18850 else
18851   cat >conftest.$ac_ext <<_ACEOF
18852 /* confdefs.h.  */
18853 _ACEOF
18854 cat confdefs.h >>conftest.$ac_ext
18855 cat >>conftest.$ac_ext <<_ACEOF
18856 /* end confdefs.h.  */
18857 $ac_includes_default
18858 typedef off_t ac__type_new_;
18859 int
18860 main ()
18861 {
18862 if ((ac__type_new_ *) 0)
18863   return 0;
18864 if (sizeof (ac__type_new_))
18865   return 0;
18866   ;
18867   return 0;
18868 }
18869 _ACEOF
18870 rm -f conftest.$ac_objext
18871 if { (ac_try="$ac_compile"
18872 case "(($ac_try" in
18873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874   *) ac_try_echo=$ac_try;;
18875 esac
18876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877   (eval "$ac_compile") 2>conftest.er1
18878   ac_status=$?
18879   grep -v '^ *+' conftest.er1 >conftest.err
18880   rm -f conftest.er1
18881   cat conftest.err >&5
18882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883   (exit $ac_status); } && {
18884          test -z "$ac_c_werror_flag" ||
18885          test ! -s conftest.err
18886        } && test -s conftest.$ac_objext; then
18887   ac_cv_type_off_t=yes
18888 else
18889   echo "$as_me: failed program was:" >&5
18890 sed 's/^/| /' conftest.$ac_ext >&5
18891
18892         ac_cv_type_off_t=no
18893 fi
18894
18895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18896 fi
18897 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18898 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18899 if test $ac_cv_type_off_t = yes; then
18900   :
18901 else
18902
18903 cat >>confdefs.h <<_ACEOF
18904 #define off_t long int
18905 _ACEOF
18906
18907 fi
18908
18909 { echo "$as_me:$LINENO: checking for size_t" >&5
18910 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18911 if test "${ac_cv_type_size_t+set}" = set; then
18912   echo $ECHO_N "(cached) $ECHO_C" >&6
18913 else
18914   cat >conftest.$ac_ext <<_ACEOF
18915 /* confdefs.h.  */
18916 _ACEOF
18917 cat confdefs.h >>conftest.$ac_ext
18918 cat >>conftest.$ac_ext <<_ACEOF
18919 /* end confdefs.h.  */
18920 $ac_includes_default
18921 typedef size_t ac__type_new_;
18922 int
18923 main ()
18924 {
18925 if ((ac__type_new_ *) 0)
18926   return 0;
18927 if (sizeof (ac__type_new_))
18928   return 0;
18929   ;
18930   return 0;
18931 }
18932 _ACEOF
18933 rm -f conftest.$ac_objext
18934 if { (ac_try="$ac_compile"
18935 case "(($ac_try" in
18936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18937   *) ac_try_echo=$ac_try;;
18938 esac
18939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18940   (eval "$ac_compile") 2>conftest.er1
18941   ac_status=$?
18942   grep -v '^ *+' conftest.er1 >conftest.err
18943   rm -f conftest.er1
18944   cat conftest.err >&5
18945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946   (exit $ac_status); } && {
18947          test -z "$ac_c_werror_flag" ||
18948          test ! -s conftest.err
18949        } && test -s conftest.$ac_objext; then
18950   ac_cv_type_size_t=yes
18951 else
18952   echo "$as_me: failed program was:" >&5
18953 sed 's/^/| /' conftest.$ac_ext >&5
18954
18955         ac_cv_type_size_t=no
18956 fi
18957
18958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18959 fi
18960 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18961 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18962 if test $ac_cv_type_size_t = yes; then
18963   :
18964 else
18965
18966 cat >>confdefs.h <<_ACEOF
18967 #define size_t unsigned int
18968 _ACEOF
18969
18970 fi
18971
18972
18973   { echo "$as_me:$LINENO: checking for long long" >&5
18974 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18975 if test "${ac_cv_type_long_long+set}" = set; then
18976   echo $ECHO_N "(cached) $ECHO_C" >&6
18977 else
18978   cat >conftest.$ac_ext <<_ACEOF
18979 /* confdefs.h.  */
18980 _ACEOF
18981 cat confdefs.h >>conftest.$ac_ext
18982 cat >>conftest.$ac_ext <<_ACEOF
18983 /* end confdefs.h.  */
18984 long long ll = 1LL; int i = 63;
18985 int
18986 main ()
18987 {
18988 long long llmax = (long long) -1;
18989      return ll << i | ll >> i | llmax / ll | llmax % ll;
18990   ;
18991   return 0;
18992 }
18993 _ACEOF
18994 rm -f conftest.$ac_objext conftest$ac_exeext
18995 if { (ac_try="$ac_link"
18996 case "(($ac_try" in
18997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18998   *) ac_try_echo=$ac_try;;
18999 esac
19000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19001   (eval "$ac_link") 2>conftest.er1
19002   ac_status=$?
19003   grep -v '^ *+' conftest.er1 >conftest.err
19004   rm -f conftest.er1
19005   cat conftest.err >&5
19006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007   (exit $ac_status); } && {
19008          test -z "$ac_c_werror_flag" ||
19009          test ! -s conftest.err
19010        } && test -s conftest$ac_exeext &&
19011        $as_test_x conftest$ac_exeext; then
19012   ac_cv_type_long_long=yes
19013 else
19014   echo "$as_me: failed program was:" >&5
19015 sed 's/^/| /' conftest.$ac_ext >&5
19016
19017         ac_cv_type_long_long=no
19018 fi
19019
19020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19021       conftest$ac_exeext conftest.$ac_ext
19022 fi
19023 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19024 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19025   if test $ac_cv_type_long_long = yes; then
19026
19027 cat >>confdefs.h <<\_ACEOF
19028 #define HAVE_LONG_LONG 1
19029 _ACEOF
19030
19031   fi
19032
19033
19034   { echo "$as_me:$LINENO: checking for long double" >&5
19035 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19036 if test "${gt_cv_c_long_double+set}" = set; then
19037   echo $ECHO_N "(cached) $ECHO_C" >&6
19038 else
19039   if test "$GCC" = yes; then
19040        gt_cv_c_long_double=yes
19041      else
19042        cat >conftest.$ac_ext <<_ACEOF
19043 /* confdefs.h.  */
19044 _ACEOF
19045 cat confdefs.h >>conftest.$ac_ext
19046 cat >>conftest.$ac_ext <<_ACEOF
19047 /* end confdefs.h.  */
19048
19049          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19050          long double foo = 0.0;
19051          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19052          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19053
19054 int
19055 main ()
19056 {
19057
19058   ;
19059   return 0;
19060 }
19061 _ACEOF
19062 rm -f conftest.$ac_objext
19063 if { (ac_try="$ac_compile"
19064 case "(($ac_try" in
19065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19066   *) ac_try_echo=$ac_try;;
19067 esac
19068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19069   (eval "$ac_compile") 2>conftest.er1
19070   ac_status=$?
19071   grep -v '^ *+' conftest.er1 >conftest.err
19072   rm -f conftest.er1
19073   cat conftest.err >&5
19074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075   (exit $ac_status); } && {
19076          test -z "$ac_c_werror_flag" ||
19077          test ! -s conftest.err
19078        } && test -s conftest.$ac_objext; then
19079   gt_cv_c_long_double=yes
19080 else
19081   echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19083
19084         gt_cv_c_long_double=no
19085 fi
19086
19087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19088      fi
19089 fi
19090 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19091 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19092   if test $gt_cv_c_long_double = yes; then
19093
19094 cat >>confdefs.h <<\_ACEOF
19095 #define HAVE_LONG_DOUBLE 1
19096 _ACEOF
19097
19098   fi
19099
19100
19101   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19102 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19103 if test "${gt_cv_c_wchar_t+set}" = set; then
19104   echo $ECHO_N "(cached) $ECHO_C" >&6
19105 else
19106   cat >conftest.$ac_ext <<_ACEOF
19107 /* confdefs.h.  */
19108 _ACEOF
19109 cat confdefs.h >>conftest.$ac_ext
19110 cat >>conftest.$ac_ext <<_ACEOF
19111 /* end confdefs.h.  */
19112 #include <stddef.h>
19113        wchar_t foo = (wchar_t)'\0';
19114 int
19115 main ()
19116 {
19117
19118   ;
19119   return 0;
19120 }
19121 _ACEOF
19122 rm -f conftest.$ac_objext
19123 if { (ac_try="$ac_compile"
19124 case "(($ac_try" in
19125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19126   *) ac_try_echo=$ac_try;;
19127 esac
19128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19129   (eval "$ac_compile") 2>conftest.er1
19130   ac_status=$?
19131   grep -v '^ *+' conftest.er1 >conftest.err
19132   rm -f conftest.er1
19133   cat conftest.err >&5
19134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135   (exit $ac_status); } && {
19136          test -z "$ac_c_werror_flag" ||
19137          test ! -s conftest.err
19138        } && test -s conftest.$ac_objext; then
19139   gt_cv_c_wchar_t=yes
19140 else
19141   echo "$as_me: failed program was:" >&5
19142 sed 's/^/| /' conftest.$ac_ext >&5
19143
19144         gt_cv_c_wchar_t=no
19145 fi
19146
19147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19148 fi
19149 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19150 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19151   if test $gt_cv_c_wchar_t = yes; then
19152
19153 cat >>confdefs.h <<\_ACEOF
19154 #define HAVE_WCHAR_T 1
19155 _ACEOF
19156
19157   fi
19158
19159
19160   { echo "$as_me:$LINENO: checking for wint_t" >&5
19161 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19162 if test "${gt_cv_c_wint_t+set}" = set; then
19163   echo $ECHO_N "(cached) $ECHO_C" >&6
19164 else
19165   cat >conftest.$ac_ext <<_ACEOF
19166 /* confdefs.h.  */
19167 _ACEOF
19168 cat confdefs.h >>conftest.$ac_ext
19169 cat >>conftest.$ac_ext <<_ACEOF
19170 /* end confdefs.h.  */
19171 #include <wchar.h>
19172        wint_t foo = (wchar_t)'\0';
19173 int
19174 main ()
19175 {
19176
19177   ;
19178   return 0;
19179 }
19180 _ACEOF
19181 rm -f conftest.$ac_objext
19182 if { (ac_try="$ac_compile"
19183 case "(($ac_try" in
19184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19185   *) ac_try_echo=$ac_try;;
19186 esac
19187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19188   (eval "$ac_compile") 2>conftest.er1
19189   ac_status=$?
19190   grep -v '^ *+' conftest.er1 >conftest.err
19191   rm -f conftest.er1
19192   cat conftest.err >&5
19193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194   (exit $ac_status); } && {
19195          test -z "$ac_c_werror_flag" ||
19196          test ! -s conftest.err
19197        } && test -s conftest.$ac_objext; then
19198   gt_cv_c_wint_t=yes
19199 else
19200   echo "$as_me: failed program was:" >&5
19201 sed 's/^/| /' conftest.$ac_ext >&5
19202
19203         gt_cv_c_wint_t=no
19204 fi
19205
19206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19207 fi
19208 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19209 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19210   if test $gt_cv_c_wint_t = yes; then
19211
19212 cat >>confdefs.h <<\_ACEOF
19213 #define HAVE_WINT_T 1
19214 _ACEOF
19215
19216   fi
19217
19218
19219   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19220 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19221 if test "${gl_cv_header_inttypes_h+set}" = set; then
19222   echo $ECHO_N "(cached) $ECHO_C" >&6
19223 else
19224   cat >conftest.$ac_ext <<_ACEOF
19225 /* confdefs.h.  */
19226 _ACEOF
19227 cat confdefs.h >>conftest.$ac_ext
19228 cat >>conftest.$ac_ext <<_ACEOF
19229 /* end confdefs.h.  */
19230 #include <sys/types.h>
19231 #include <inttypes.h>
19232 int
19233 main ()
19234 {
19235 uintmax_t i = (uintmax_t) -1;
19236   ;
19237   return 0;
19238 }
19239 _ACEOF
19240 rm -f conftest.$ac_objext
19241 if { (ac_try="$ac_compile"
19242 case "(($ac_try" in
19243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19244   *) ac_try_echo=$ac_try;;
19245 esac
19246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19247   (eval "$ac_compile") 2>conftest.er1
19248   ac_status=$?
19249   grep -v '^ *+' conftest.er1 >conftest.err
19250   rm -f conftest.er1
19251   cat conftest.err >&5
19252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253   (exit $ac_status); } && {
19254          test -z "$ac_c_werror_flag" ||
19255          test ! -s conftest.err
19256        } && test -s conftest.$ac_objext; then
19257   gl_cv_header_inttypes_h=yes
19258 else
19259   echo "$as_me: failed program was:" >&5
19260 sed 's/^/| /' conftest.$ac_ext >&5
19261
19262         gl_cv_header_inttypes_h=no
19263 fi
19264
19265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19266 fi
19267 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19268 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19269   if test $gl_cv_header_inttypes_h = yes; then
19270
19271 cat >>confdefs.h <<_ACEOF
19272 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19273 _ACEOF
19274
19275   fi
19276
19277
19278   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19279 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19280 if test "${gl_cv_header_stdint_h+set}" = set; then
19281   echo $ECHO_N "(cached) $ECHO_C" >&6
19282 else
19283   cat >conftest.$ac_ext <<_ACEOF
19284 /* confdefs.h.  */
19285 _ACEOF
19286 cat confdefs.h >>conftest.$ac_ext
19287 cat >>conftest.$ac_ext <<_ACEOF
19288 /* end confdefs.h.  */
19289 #include <sys/types.h>
19290 #include <stdint.h>
19291 int
19292 main ()
19293 {
19294 uintmax_t i = (uintmax_t) -1;
19295   ;
19296   return 0;
19297 }
19298 _ACEOF
19299 rm -f conftest.$ac_objext
19300 if { (ac_try="$ac_compile"
19301 case "(($ac_try" in
19302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19303   *) ac_try_echo=$ac_try;;
19304 esac
19305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19306   (eval "$ac_compile") 2>conftest.er1
19307   ac_status=$?
19308   grep -v '^ *+' conftest.er1 >conftest.err
19309   rm -f conftest.er1
19310   cat conftest.err >&5
19311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312   (exit $ac_status); } && {
19313          test -z "$ac_c_werror_flag" ||
19314          test ! -s conftest.err
19315        } && test -s conftest.$ac_objext; then
19316   gl_cv_header_stdint_h=yes
19317 else
19318   echo "$as_me: failed program was:" >&5
19319 sed 's/^/| /' conftest.$ac_ext >&5
19320
19321         gl_cv_header_stdint_h=no
19322 fi
19323
19324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19325 fi
19326 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19327 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19328   if test $gl_cv_header_stdint_h = yes; then
19329
19330 cat >>confdefs.h <<_ACEOF
19331 #define HAVE_STDINT_H_WITH_UINTMAX 1
19332 _ACEOF
19333
19334   fi
19335
19336
19337
19338
19339   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19340 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19341 if test "${gt_cv_c_intmax_t+set}" = set; then
19342   echo $ECHO_N "(cached) $ECHO_C" >&6
19343 else
19344   cat >conftest.$ac_ext <<_ACEOF
19345 /* confdefs.h.  */
19346 _ACEOF
19347 cat confdefs.h >>conftest.$ac_ext
19348 cat >>conftest.$ac_ext <<_ACEOF
19349 /* end confdefs.h.  */
19350
19351 #include <stddef.h>
19352 #include <stdlib.h>
19353 #if HAVE_STDINT_H_WITH_UINTMAX
19354 #include <stdint.h>
19355 #endif
19356 #if HAVE_INTTYPES_H_WITH_UINTMAX
19357 #include <inttypes.h>
19358 #endif
19359
19360 int
19361 main ()
19362 {
19363 intmax_t x = -1;
19364   ;
19365   return 0;
19366 }
19367 _ACEOF
19368 rm -f conftest.$ac_objext
19369 if { (ac_try="$ac_compile"
19370 case "(($ac_try" in
19371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372   *) ac_try_echo=$ac_try;;
19373 esac
19374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19375   (eval "$ac_compile") 2>conftest.er1
19376   ac_status=$?
19377   grep -v '^ *+' conftest.er1 >conftest.err
19378   rm -f conftest.er1
19379   cat conftest.err >&5
19380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381   (exit $ac_status); } && {
19382          test -z "$ac_c_werror_flag" ||
19383          test ! -s conftest.err
19384        } && test -s conftest.$ac_objext; then
19385   gt_cv_c_intmax_t=yes
19386 else
19387   echo "$as_me: failed program was:" >&5
19388 sed 's/^/| /' conftest.$ac_ext >&5
19389
19390         gt_cv_c_intmax_t=no
19391 fi
19392
19393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19394 fi
19395 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19396 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19397   if test $gt_cv_c_intmax_t = yes; then
19398
19399 cat >>confdefs.h <<\_ACEOF
19400 #define HAVE_INTMAX_T 1
19401 _ACEOF
19402
19403   fi
19404
19405
19406
19407   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19408 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19409 if test "${gt_cv_func_printf_posix+set}" = set; then
19410   echo $ECHO_N "(cached) $ECHO_C" >&6
19411 else
19412
19413       if test "$cross_compiling" = yes; then
19414
19415         cat >conftest.$ac_ext <<_ACEOF
19416 /* confdefs.h.  */
19417 _ACEOF
19418 cat confdefs.h >>conftest.$ac_ext
19419 cat >>conftest.$ac_ext <<_ACEOF
19420 /* end confdefs.h.  */
19421
19422 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19423   notposix
19424 #endif
19425
19426 _ACEOF
19427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19428   $EGREP "notposix" >/dev/null 2>&1; then
19429   gt_cv_func_printf_posix="guessing no"
19430 else
19431   gt_cv_func_printf_posix="guessing yes"
19432 fi
19433 rm -f conftest*
19434
19435
19436 else
19437   cat >conftest.$ac_ext <<_ACEOF
19438 /* confdefs.h.  */
19439 _ACEOF
19440 cat confdefs.h >>conftest.$ac_ext
19441 cat >>conftest.$ac_ext <<_ACEOF
19442 /* end confdefs.h.  */
19443
19444 #include <stdio.h>
19445 #include <string.h>
19446 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19447    dollar expansion (possibly an autoconf bug).  */
19448 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19449 static char buf[100];
19450 int main ()
19451 {
19452   sprintf (buf, format, 33, 55);
19453   return (strcmp (buf, "55 33") != 0);
19454 }
19455 _ACEOF
19456 rm -f conftest$ac_exeext
19457 if { (ac_try="$ac_link"
19458 case "(($ac_try" in
19459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19460   *) ac_try_echo=$ac_try;;
19461 esac
19462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19463   (eval "$ac_link") 2>&5
19464   ac_status=$?
19465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19467   { (case "(($ac_try" in
19468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19469   *) ac_try_echo=$ac_try;;
19470 esac
19471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19472   (eval "$ac_try") 2>&5
19473   ac_status=$?
19474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475   (exit $ac_status); }; }; then
19476   gt_cv_func_printf_posix=yes
19477 else
19478   echo "$as_me: program exited with status $ac_status" >&5
19479 echo "$as_me: failed program was:" >&5
19480 sed 's/^/| /' conftest.$ac_ext >&5
19481
19482 ( exit $ac_status )
19483 gt_cv_func_printf_posix=no
19484 fi
19485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19486 fi
19487
19488
19489
19490 fi
19491 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19492 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19493   case $gt_cv_func_printf_posix in
19494     *yes)
19495
19496 cat >>confdefs.h <<\_ACEOF
19497 #define HAVE_POSIX_PRINTF 1
19498 _ACEOF
19499
19500       ;;
19501   esac
19502
19503 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19504 # for constant arguments.  Useless!
19505 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19506 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19507 if test "${ac_cv_working_alloca_h+set}" = set; then
19508   echo $ECHO_N "(cached) $ECHO_C" >&6
19509 else
19510   cat >conftest.$ac_ext <<_ACEOF
19511 /* confdefs.h.  */
19512 _ACEOF
19513 cat confdefs.h >>conftest.$ac_ext
19514 cat >>conftest.$ac_ext <<_ACEOF
19515 /* end confdefs.h.  */
19516 #include <alloca.h>
19517 int
19518 main ()
19519 {
19520 char *p = (char *) alloca (2 * sizeof (int));
19521                           if (p) return 0;
19522   ;
19523   return 0;
19524 }
19525 _ACEOF
19526 rm -f conftest.$ac_objext conftest$ac_exeext
19527 if { (ac_try="$ac_link"
19528 case "(($ac_try" in
19529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19530   *) ac_try_echo=$ac_try;;
19531 esac
19532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19533   (eval "$ac_link") 2>conftest.er1
19534   ac_status=$?
19535   grep -v '^ *+' conftest.er1 >conftest.err
19536   rm -f conftest.er1
19537   cat conftest.err >&5
19538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539   (exit $ac_status); } && {
19540          test -z "$ac_c_werror_flag" ||
19541          test ! -s conftest.err
19542        } && test -s conftest$ac_exeext &&
19543        $as_test_x conftest$ac_exeext; then
19544   ac_cv_working_alloca_h=yes
19545 else
19546   echo "$as_me: failed program was:" >&5
19547 sed 's/^/| /' conftest.$ac_ext >&5
19548
19549         ac_cv_working_alloca_h=no
19550 fi
19551
19552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19553       conftest$ac_exeext conftest.$ac_ext
19554 fi
19555 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19556 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19557 if test $ac_cv_working_alloca_h = yes; then
19558
19559 cat >>confdefs.h <<\_ACEOF
19560 #define HAVE_ALLOCA_H 1
19561 _ACEOF
19562
19563 fi
19564
19565 { echo "$as_me:$LINENO: checking for alloca" >&5
19566 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19567 if test "${ac_cv_func_alloca_works+set}" = set; then
19568   echo $ECHO_N "(cached) $ECHO_C" >&6
19569 else
19570   cat >conftest.$ac_ext <<_ACEOF
19571 /* confdefs.h.  */
19572 _ACEOF
19573 cat confdefs.h >>conftest.$ac_ext
19574 cat >>conftest.$ac_ext <<_ACEOF
19575 /* end confdefs.h.  */
19576 #ifdef __GNUC__
19577 # define alloca __builtin_alloca
19578 #else
19579 # ifdef _MSC_VER
19580 #  include <malloc.h>
19581 #  define alloca _alloca
19582 # else
19583 #  ifdef HAVE_ALLOCA_H
19584 #   include <alloca.h>
19585 #  else
19586 #   ifdef _AIX
19587  #pragma alloca
19588 #   else
19589 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19590 char *alloca ();
19591 #    endif
19592 #   endif
19593 #  endif
19594 # endif
19595 #endif
19596
19597 int
19598 main ()
19599 {
19600 char *p = (char *) alloca (1);
19601                                     if (p) return 0;
19602   ;
19603   return 0;
19604 }
19605 _ACEOF
19606 rm -f conftest.$ac_objext conftest$ac_exeext
19607 if { (ac_try="$ac_link"
19608 case "(($ac_try" in
19609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19610   *) ac_try_echo=$ac_try;;
19611 esac
19612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19613   (eval "$ac_link") 2>conftest.er1
19614   ac_status=$?
19615   grep -v '^ *+' conftest.er1 >conftest.err
19616   rm -f conftest.er1
19617   cat conftest.err >&5
19618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619   (exit $ac_status); } && {
19620          test -z "$ac_c_werror_flag" ||
19621          test ! -s conftest.err
19622        } && test -s conftest$ac_exeext &&
19623        $as_test_x conftest$ac_exeext; then
19624   ac_cv_func_alloca_works=yes
19625 else
19626   echo "$as_me: failed program was:" >&5
19627 sed 's/^/| /' conftest.$ac_ext >&5
19628
19629         ac_cv_func_alloca_works=no
19630 fi
19631
19632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19633       conftest$ac_exeext conftest.$ac_ext
19634 fi
19635 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19636 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19637
19638 if test $ac_cv_func_alloca_works = yes; then
19639
19640 cat >>confdefs.h <<\_ACEOF
19641 #define HAVE_ALLOCA 1
19642 _ACEOF
19643
19644 else
19645   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19646 # that cause trouble.  Some versions do not even contain alloca or
19647 # contain a buggy version.  If you still want to use their alloca,
19648 # use ar to extract alloca.o from them instead of compiling alloca.c.
19649
19650 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19651
19652 cat >>confdefs.h <<\_ACEOF
19653 #define C_ALLOCA 1
19654 _ACEOF
19655
19656
19657 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19658 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19659 if test "${ac_cv_os_cray+set}" = set; then
19660   echo $ECHO_N "(cached) $ECHO_C" >&6
19661 else
19662   cat >conftest.$ac_ext <<_ACEOF
19663 /* confdefs.h.  */
19664 _ACEOF
19665 cat confdefs.h >>conftest.$ac_ext
19666 cat >>conftest.$ac_ext <<_ACEOF
19667 /* end confdefs.h.  */
19668 #if defined CRAY && ! defined CRAY2
19669 webecray
19670 #else
19671 wenotbecray
19672 #endif
19673
19674 _ACEOF
19675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19676   $EGREP "webecray" >/dev/null 2>&1; then
19677   ac_cv_os_cray=yes
19678 else
19679   ac_cv_os_cray=no
19680 fi
19681 rm -f conftest*
19682
19683 fi
19684 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19685 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19686 if test $ac_cv_os_cray = yes; then
19687   for ac_func in _getb67 GETB67 getb67; do
19688     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19689 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19691 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19692   echo $ECHO_N "(cached) $ECHO_C" >&6
19693 else
19694   cat >conftest.$ac_ext <<_ACEOF
19695 /* confdefs.h.  */
19696 _ACEOF
19697 cat confdefs.h >>conftest.$ac_ext
19698 cat >>conftest.$ac_ext <<_ACEOF
19699 /* end confdefs.h.  */
19700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19701    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19702 #define $ac_func innocuous_$ac_func
19703
19704 /* System header to define __stub macros and hopefully few prototypes,
19705     which can conflict with char $ac_func (); below.
19706     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19707     <limits.h> exists even on freestanding compilers.  */
19708
19709 #ifdef __STDC__
19710 # include <limits.h>
19711 #else
19712 # include <assert.h>
19713 #endif
19714
19715 #undef $ac_func
19716
19717 /* Override any GCC internal prototype to avoid an error.
19718    Use char because int might match the return type of a GCC
19719    builtin and then its argument prototype would still apply.  */
19720 #ifdef __cplusplus
19721 extern "C"
19722 #endif
19723 char $ac_func ();
19724 /* The GNU C library defines this for functions which it implements
19725     to always fail with ENOSYS.  Some functions are actually named
19726     something starting with __ and the normal name is an alias.  */
19727 #if defined __stub_$ac_func || defined __stub___$ac_func
19728 choke me
19729 #endif
19730
19731 int
19732 main ()
19733 {
19734 return $ac_func ();
19735   ;
19736   return 0;
19737 }
19738 _ACEOF
19739 rm -f conftest.$ac_objext conftest$ac_exeext
19740 if { (ac_try="$ac_link"
19741 case "(($ac_try" in
19742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19743   *) ac_try_echo=$ac_try;;
19744 esac
19745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19746   (eval "$ac_link") 2>conftest.er1
19747   ac_status=$?
19748   grep -v '^ *+' conftest.er1 >conftest.err
19749   rm -f conftest.er1
19750   cat conftest.err >&5
19751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752   (exit $ac_status); } && {
19753          test -z "$ac_c_werror_flag" ||
19754          test ! -s conftest.err
19755        } && test -s conftest$ac_exeext &&
19756        $as_test_x conftest$ac_exeext; then
19757   eval "$as_ac_var=yes"
19758 else
19759   echo "$as_me: failed program was:" >&5
19760 sed 's/^/| /' conftest.$ac_ext >&5
19761
19762         eval "$as_ac_var=no"
19763 fi
19764
19765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19766       conftest$ac_exeext conftest.$ac_ext
19767 fi
19768 ac_res=`eval echo '${'$as_ac_var'}'`
19769                { echo "$as_me:$LINENO: result: $ac_res" >&5
19770 echo "${ECHO_T}$ac_res" >&6; }
19771 if test `eval echo '${'$as_ac_var'}'` = yes; then
19772
19773 cat >>confdefs.h <<_ACEOF
19774 #define CRAY_STACKSEG_END $ac_func
19775 _ACEOF
19776
19777     break
19778 fi
19779
19780   done
19781 fi
19782
19783 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19784 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19785 if test "${ac_cv_c_stack_direction+set}" = set; then
19786   echo $ECHO_N "(cached) $ECHO_C" >&6
19787 else
19788   if test "$cross_compiling" = yes; then
19789   ac_cv_c_stack_direction=0
19790 else
19791   cat >conftest.$ac_ext <<_ACEOF
19792 /* confdefs.h.  */
19793 _ACEOF
19794 cat confdefs.h >>conftest.$ac_ext
19795 cat >>conftest.$ac_ext <<_ACEOF
19796 /* end confdefs.h.  */
19797 $ac_includes_default
19798 int
19799 find_stack_direction ()
19800 {
19801   static char *addr = 0;
19802   auto char dummy;
19803   if (addr == 0)
19804     {
19805       addr = &dummy;
19806       return find_stack_direction ();
19807     }
19808   else
19809     return (&dummy > addr) ? 1 : -1;
19810 }
19811
19812 int
19813 main ()
19814 {
19815   return find_stack_direction () < 0;
19816 }
19817 _ACEOF
19818 rm -f conftest$ac_exeext
19819 if { (ac_try="$ac_link"
19820 case "(($ac_try" in
19821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822   *) ac_try_echo=$ac_try;;
19823 esac
19824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825   (eval "$ac_link") 2>&5
19826   ac_status=$?
19827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19829   { (case "(($ac_try" in
19830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19831   *) ac_try_echo=$ac_try;;
19832 esac
19833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19834   (eval "$ac_try") 2>&5
19835   ac_status=$?
19836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837   (exit $ac_status); }; }; then
19838   ac_cv_c_stack_direction=1
19839 else
19840   echo "$as_me: program exited with status $ac_status" >&5
19841 echo "$as_me: failed program was:" >&5
19842 sed 's/^/| /' conftest.$ac_ext >&5
19843
19844 ( exit $ac_status )
19845 ac_cv_c_stack_direction=-1
19846 fi
19847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19848 fi
19849
19850
19851 fi
19852 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19853 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19854
19855 cat >>confdefs.h <<_ACEOF
19856 #define STACK_DIRECTION $ac_cv_c_stack_direction
19857 _ACEOF
19858
19859
19860 fi
19861
19862
19863
19864 for ac_header in stdlib.h unistd.h
19865 do
19866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19868   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19871   echo $ECHO_N "(cached) $ECHO_C" >&6
19872 fi
19873 ac_res=`eval echo '${'$as_ac_Header'}'`
19874                { echo "$as_me:$LINENO: result: $ac_res" >&5
19875 echo "${ECHO_T}$ac_res" >&6; }
19876 else
19877   # Is the header compilable?
19878 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19880 cat >conftest.$ac_ext <<_ACEOF
19881 /* confdefs.h.  */
19882 _ACEOF
19883 cat confdefs.h >>conftest.$ac_ext
19884 cat >>conftest.$ac_ext <<_ACEOF
19885 /* end confdefs.h.  */
19886 $ac_includes_default
19887 #include <$ac_header>
19888 _ACEOF
19889 rm -f conftest.$ac_objext
19890 if { (ac_try="$ac_compile"
19891 case "(($ac_try" in
19892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19893   *) ac_try_echo=$ac_try;;
19894 esac
19895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19896   (eval "$ac_compile") 2>conftest.er1
19897   ac_status=$?
19898   grep -v '^ *+' conftest.er1 >conftest.err
19899   rm -f conftest.er1
19900   cat conftest.err >&5
19901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902   (exit $ac_status); } && {
19903          test -z "$ac_c_werror_flag" ||
19904          test ! -s conftest.err
19905        } && test -s conftest.$ac_objext; then
19906   ac_header_compiler=yes
19907 else
19908   echo "$as_me: failed program was:" >&5
19909 sed 's/^/| /' conftest.$ac_ext >&5
19910
19911         ac_header_compiler=no
19912 fi
19913
19914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19915 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19916 echo "${ECHO_T}$ac_header_compiler" >&6; }
19917
19918 # Is the header present?
19919 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19921 cat >conftest.$ac_ext <<_ACEOF
19922 /* confdefs.h.  */
19923 _ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h.  */
19927 #include <$ac_header>
19928 _ACEOF
19929 if { (ac_try="$ac_cpp conftest.$ac_ext"
19930 case "(($ac_try" in
19931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19932   *) ac_try_echo=$ac_try;;
19933 esac
19934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19935   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19936   ac_status=$?
19937   grep -v '^ *+' conftest.er1 >conftest.err
19938   rm -f conftest.er1
19939   cat conftest.err >&5
19940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941   (exit $ac_status); } >/dev/null && {
19942          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19943          test ! -s conftest.err
19944        }; then
19945   ac_header_preproc=yes
19946 else
19947   echo "$as_me: failed program was:" >&5
19948 sed 's/^/| /' conftest.$ac_ext >&5
19949
19950   ac_header_preproc=no
19951 fi
19952
19953 rm -f conftest.err conftest.$ac_ext
19954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19955 echo "${ECHO_T}$ac_header_preproc" >&6; }
19956
19957 # So?  What about this header?
19958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19959   yes:no: )
19960     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19962     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19964     ac_header_preproc=yes
19965     ;;
19966   no:yes:* )
19967     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19969     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19970 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19971     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19973     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19974 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19975     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19977     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19979
19980     ;;
19981 esac
19982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19985   echo $ECHO_N "(cached) $ECHO_C" >&6
19986 else
19987   eval "$as_ac_Header=\$ac_header_preproc"
19988 fi
19989 ac_res=`eval echo '${'$as_ac_Header'}'`
19990                { echo "$as_me:$LINENO: result: $ac_res" >&5
19991 echo "${ECHO_T}$ac_res" >&6; }
19992
19993 fi
19994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19995   cat >>confdefs.h <<_ACEOF
19996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19997 _ACEOF
19998
19999 fi
20000
20001 done
20002
20003
20004 for ac_func in getpagesize
20005 do
20006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20007 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20009 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20010   echo $ECHO_N "(cached) $ECHO_C" >&6
20011 else
20012   cat >conftest.$ac_ext <<_ACEOF
20013 /* confdefs.h.  */
20014 _ACEOF
20015 cat confdefs.h >>conftest.$ac_ext
20016 cat >>conftest.$ac_ext <<_ACEOF
20017 /* end confdefs.h.  */
20018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20019    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20020 #define $ac_func innocuous_$ac_func
20021
20022 /* System header to define __stub macros and hopefully few prototypes,
20023     which can conflict with char $ac_func (); below.
20024     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20025     <limits.h> exists even on freestanding compilers.  */
20026
20027 #ifdef __STDC__
20028 # include <limits.h>
20029 #else
20030 # include <assert.h>
20031 #endif
20032
20033 #undef $ac_func
20034
20035 /* Override any GCC internal prototype to avoid an error.
20036    Use char because int might match the return type of a GCC
20037    builtin and then its argument prototype would still apply.  */
20038 #ifdef __cplusplus
20039 extern "C"
20040 #endif
20041 char $ac_func ();
20042 /* The GNU C library defines this for functions which it implements
20043     to always fail with ENOSYS.  Some functions are actually named
20044     something starting with __ and the normal name is an alias.  */
20045 #if defined __stub_$ac_func || defined __stub___$ac_func
20046 choke me
20047 #endif
20048
20049 int
20050 main ()
20051 {
20052 return $ac_func ();
20053   ;
20054   return 0;
20055 }
20056 _ACEOF
20057 rm -f conftest.$ac_objext conftest$ac_exeext
20058 if { (ac_try="$ac_link"
20059 case "(($ac_try" in
20060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061   *) ac_try_echo=$ac_try;;
20062 esac
20063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20064   (eval "$ac_link") 2>conftest.er1
20065   ac_status=$?
20066   grep -v '^ *+' conftest.er1 >conftest.err
20067   rm -f conftest.er1
20068   cat conftest.err >&5
20069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070   (exit $ac_status); } && {
20071          test -z "$ac_c_werror_flag" ||
20072          test ! -s conftest.err
20073        } && test -s conftest$ac_exeext &&
20074        $as_test_x conftest$ac_exeext; then
20075   eval "$as_ac_var=yes"
20076 else
20077   echo "$as_me: failed program was:" >&5
20078 sed 's/^/| /' conftest.$ac_ext >&5
20079
20080         eval "$as_ac_var=no"
20081 fi
20082
20083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20084       conftest$ac_exeext conftest.$ac_ext
20085 fi
20086 ac_res=`eval echo '${'$as_ac_var'}'`
20087                { echo "$as_me:$LINENO: result: $ac_res" >&5
20088 echo "${ECHO_T}$ac_res" >&6; }
20089 if test `eval echo '${'$as_ac_var'}'` = yes; then
20090   cat >>confdefs.h <<_ACEOF
20091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20092 _ACEOF
20093
20094 fi
20095 done
20096
20097 { echo "$as_me:$LINENO: checking for working mmap" >&5
20098 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20099 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20100   echo $ECHO_N "(cached) $ECHO_C" >&6
20101 else
20102   if test "$cross_compiling" = yes; then
20103   ac_cv_func_mmap_fixed_mapped=no
20104 else
20105   cat >conftest.$ac_ext <<_ACEOF
20106 /* confdefs.h.  */
20107 _ACEOF
20108 cat confdefs.h >>conftest.$ac_ext
20109 cat >>conftest.$ac_ext <<_ACEOF
20110 /* end confdefs.h.  */
20111 $ac_includes_default
20112 /* malloc might have been renamed as rpl_malloc. */
20113 #undef malloc
20114
20115 /* Thanks to Mike Haertel and Jim Avera for this test.
20116    Here is a matrix of mmap possibilities:
20117         mmap private not fixed
20118         mmap private fixed at somewhere currently unmapped
20119         mmap private fixed at somewhere already mapped
20120         mmap shared not fixed
20121         mmap shared fixed at somewhere currently unmapped
20122         mmap shared fixed at somewhere already mapped
20123    For private mappings, we should verify that changes cannot be read()
20124    back from the file, nor mmap's back from the file at a different
20125    address.  (There have been systems where private was not correctly
20126    implemented like the infamous i386 svr4.0, and systems where the
20127    VM page cache was not coherent with the file system buffer cache
20128    like early versions of FreeBSD and possibly contemporary NetBSD.)
20129    For shared mappings, we should conversely verify that changes get
20130    propagated back to all the places they're supposed to be.
20131
20132    Grep wants private fixed already mapped.
20133    The main things grep needs to know about mmap are:
20134    * does it exist and is it safe to write into the mmap'd area
20135    * how to use it (BSD variants)  */
20136
20137 #include <fcntl.h>
20138 #include <sys/mman.h>
20139
20140 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20141 char *malloc ();
20142 #endif
20143
20144 /* This mess was copied from the GNU getpagesize.h.  */
20145 #ifndef HAVE_GETPAGESIZE
20146 /* Assume that all systems that can run configure have sys/param.h.  */
20147 # ifndef HAVE_SYS_PARAM_H
20148 #  define HAVE_SYS_PARAM_H 1
20149 # endif
20150
20151 # ifdef _SC_PAGESIZE
20152 #  define getpagesize() sysconf(_SC_PAGESIZE)
20153 # else /* no _SC_PAGESIZE */
20154 #  ifdef HAVE_SYS_PARAM_H
20155 #   include <sys/param.h>
20156 #   ifdef EXEC_PAGESIZE
20157 #    define getpagesize() EXEC_PAGESIZE
20158 #   else /* no EXEC_PAGESIZE */
20159 #    ifdef NBPG
20160 #     define getpagesize() NBPG * CLSIZE
20161 #     ifndef CLSIZE
20162 #      define CLSIZE 1
20163 #     endif /* no CLSIZE */
20164 #    else /* no NBPG */
20165 #     ifdef NBPC
20166 #      define getpagesize() NBPC
20167 #     else /* no NBPC */
20168 #      ifdef PAGESIZE
20169 #       define getpagesize() PAGESIZE
20170 #      endif /* PAGESIZE */
20171 #     endif /* no NBPC */
20172 #    endif /* no NBPG */
20173 #   endif /* no EXEC_PAGESIZE */
20174 #  else /* no HAVE_SYS_PARAM_H */
20175 #   define getpagesize() 8192   /* punt totally */
20176 #  endif /* no HAVE_SYS_PARAM_H */
20177 # endif /* no _SC_PAGESIZE */
20178
20179 #endif /* no HAVE_GETPAGESIZE */
20180
20181 int
20182 main ()
20183 {
20184   char *data, *data2, *data3;
20185   int i, pagesize;
20186   int fd;
20187
20188   pagesize = getpagesize ();
20189
20190   /* First, make a file with some known garbage in it. */
20191   data = (char *) malloc (pagesize);
20192   if (!data)
20193     return 1;
20194   for (i = 0; i < pagesize; ++i)
20195     *(data + i) = rand ();
20196   umask (0);
20197   fd = creat ("conftest.mmap", 0600);
20198   if (fd < 0)
20199     return 1;
20200   if (write (fd, data, pagesize) != pagesize)
20201     return 1;
20202   close (fd);
20203
20204   /* Next, try to mmap the file at a fixed address which already has
20205      something else allocated at it.  If we can, also make sure that
20206      we see the same garbage.  */
20207   fd = open ("conftest.mmap", O_RDWR);
20208   if (fd < 0)
20209     return 1;
20210   data2 = (char *) malloc (2 * pagesize);
20211   if (!data2)
20212     return 1;
20213   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20214   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20215                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20216     return 1;
20217   for (i = 0; i < pagesize; ++i)
20218     if (*(data + i) != *(data2 + i))
20219       return 1;
20220
20221   /* Finally, make sure that changes to the mapped area do not
20222      percolate back to the file as seen by read().  (This is a bug on
20223      some variants of i386 svr4.0.)  */
20224   for (i = 0; i < pagesize; ++i)
20225     *(data2 + i) = *(data2 + i) + 1;
20226   data3 = (char *) malloc (pagesize);
20227   if (!data3)
20228     return 1;
20229   if (read (fd, data3, pagesize) != pagesize)
20230     return 1;
20231   for (i = 0; i < pagesize; ++i)
20232     if (*(data + i) != *(data3 + i))
20233       return 1;
20234   close (fd);
20235   return 0;
20236 }
20237 _ACEOF
20238 rm -f conftest$ac_exeext
20239 if { (ac_try="$ac_link"
20240 case "(($ac_try" in
20241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20242   *) ac_try_echo=$ac_try;;
20243 esac
20244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20245   (eval "$ac_link") 2>&5
20246   ac_status=$?
20247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20249   { (case "(($ac_try" in
20250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20251   *) ac_try_echo=$ac_try;;
20252 esac
20253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20254   (eval "$ac_try") 2>&5
20255   ac_status=$?
20256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257   (exit $ac_status); }; }; then
20258   ac_cv_func_mmap_fixed_mapped=yes
20259 else
20260   echo "$as_me: program exited with status $ac_status" >&5
20261 echo "$as_me: failed program was:" >&5
20262 sed 's/^/| /' conftest.$ac_ext >&5
20263
20264 ( exit $ac_status )
20265 ac_cv_func_mmap_fixed_mapped=no
20266 fi
20267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20268 fi
20269
20270
20271 fi
20272 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20273 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20274 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20275
20276 cat >>confdefs.h <<\_ACEOF
20277 #define HAVE_MMAP 1
20278 _ACEOF
20279
20280 fi
20281 rm -f conftest.mmap
20282
20283
20284     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20285 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20286 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20287   echo $ECHO_N "(cached) $ECHO_C" >&6
20288 else
20289   cat >conftest.$ac_ext <<_ACEOF
20290 /* confdefs.h.  */
20291 _ACEOF
20292 cat confdefs.h >>conftest.$ac_ext
20293 cat >>conftest.$ac_ext <<_ACEOF
20294 /* end confdefs.h.  */
20295
20296 #include <features.h>
20297 #ifdef __GNU_LIBRARY__
20298  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20299   Lucky GNU user
20300  #endif
20301 #endif
20302
20303 _ACEOF
20304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20305   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20306   ac_cv_gnu_library_2_1=yes
20307 else
20308   ac_cv_gnu_library_2_1=no
20309 fi
20310 rm -f conftest*
20311
20312
20313
20314 fi
20315 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20316 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20317
20318     GLIBC21="$ac_cv_gnu_library_2_1"
20319
20320
20321
20322
20323   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20324 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20325 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20326   echo $ECHO_N "(cached) $ECHO_C" >&6
20327 else
20328
20329       if test "$cross_compiling" = yes; then
20330
20331           # Guess based on the CPU.
20332           case "$host_cpu" in
20333             alpha* | i3456786 | m68k | s390*)
20334               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20335             *)
20336               gt_cv_int_divbyzero_sigfpe="guessing no";;
20337           esac
20338
20339 else
20340   cat >conftest.$ac_ext <<_ACEOF
20341 /* confdefs.h.  */
20342 _ACEOF
20343 cat confdefs.h >>conftest.$ac_ext
20344 cat >>conftest.$ac_ext <<_ACEOF
20345 /* end confdefs.h.  */
20346
20347 #include <stdlib.h>
20348 #include <signal.h>
20349
20350 static void
20351 #ifdef __cplusplus
20352 sigfpe_handler (int sig)
20353 #else
20354 sigfpe_handler (sig) int sig;
20355 #endif
20356 {
20357   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20358   exit (sig != SIGFPE);
20359 }
20360
20361 int x = 1;
20362 int y = 0;
20363 int z;
20364 int nan;
20365
20366 int main ()
20367 {
20368   signal (SIGFPE, sigfpe_handler);
20369 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20370 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20371   signal (SIGTRAP, sigfpe_handler);
20372 #endif
20373 /* Linux/SPARC yields signal SIGILL.  */
20374 #if defined (__sparc__) && defined (__linux__)
20375   signal (SIGILL, sigfpe_handler);
20376 #endif
20377
20378   z = x / y;
20379   nan = y / y;
20380   exit (1);
20381 }
20382
20383 _ACEOF
20384 rm -f conftest$ac_exeext
20385 if { (ac_try="$ac_link"
20386 case "(($ac_try" in
20387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388   *) ac_try_echo=$ac_try;;
20389 esac
20390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391   (eval "$ac_link") 2>&5
20392   ac_status=$?
20393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20395   { (case "(($ac_try" in
20396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20397   *) ac_try_echo=$ac_try;;
20398 esac
20399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20400   (eval "$ac_try") 2>&5
20401   ac_status=$?
20402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403   (exit $ac_status); }; }; then
20404   gt_cv_int_divbyzero_sigfpe=yes
20405 else
20406   echo "$as_me: program exited with status $ac_status" >&5
20407 echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20409
20410 ( exit $ac_status )
20411 gt_cv_int_divbyzero_sigfpe=no
20412 fi
20413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20414 fi
20415
20416
20417
20418 fi
20419 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20420 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20421   case "$gt_cv_int_divbyzero_sigfpe" in
20422     *yes) value=1;;
20423     *) value=0;;
20424   esac
20425
20426 cat >>confdefs.h <<_ACEOF
20427 #define INTDIV0_RAISES_SIGFPE $value
20428 _ACEOF
20429
20430
20431
20432   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20433 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20434 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20435   echo $ECHO_N "(cached) $ECHO_C" >&6
20436 else
20437   cat >conftest.$ac_ext <<_ACEOF
20438 /* confdefs.h.  */
20439 _ACEOF
20440 cat confdefs.h >>conftest.$ac_ext
20441 cat >>conftest.$ac_ext <<_ACEOF
20442 /* end confdefs.h.  */
20443 unsigned long long ull = 1ULL; int i = 63;
20444 int
20445 main ()
20446 {
20447 unsigned long long ullmax = (unsigned long long) -1;
20448      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20449   ;
20450   return 0;
20451 }
20452 _ACEOF
20453 rm -f conftest.$ac_objext conftest$ac_exeext
20454 if { (ac_try="$ac_link"
20455 case "(($ac_try" in
20456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457   *) ac_try_echo=$ac_try;;
20458 esac
20459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460   (eval "$ac_link") 2>conftest.er1
20461   ac_status=$?
20462   grep -v '^ *+' conftest.er1 >conftest.err
20463   rm -f conftest.er1
20464   cat conftest.err >&5
20465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466   (exit $ac_status); } && {
20467          test -z "$ac_c_werror_flag" ||
20468          test ! -s conftest.err
20469        } && test -s conftest$ac_exeext &&
20470        $as_test_x conftest$ac_exeext; then
20471   ac_cv_type_unsigned_long_long=yes
20472 else
20473   echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20475
20476         ac_cv_type_unsigned_long_long=no
20477 fi
20478
20479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20480       conftest$ac_exeext conftest.$ac_ext
20481 fi
20482 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20483 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20484   if test $ac_cv_type_unsigned_long_long = yes; then
20485
20486 cat >>confdefs.h <<\_ACEOF
20487 #define HAVE_UNSIGNED_LONG_LONG 1
20488 _ACEOF
20489
20490   fi
20491
20492
20493
20494
20495   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20496
20497     test $ac_cv_type_unsigned_long_long = yes \
20498       && ac_type='unsigned long long' \
20499       || ac_type='unsigned long'
20500
20501 cat >>confdefs.h <<_ACEOF
20502 #define uintmax_t $ac_type
20503 _ACEOF
20504
20505   else
20506
20507 cat >>confdefs.h <<\_ACEOF
20508 #define HAVE_UINTMAX_T 1
20509 _ACEOF
20510
20511   fi
20512
20513
20514   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20515 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20516 if test "${gt_cv_header_inttypes_h+set}" = set; then
20517   echo $ECHO_N "(cached) $ECHO_C" >&6
20518 else
20519
20520     cat >conftest.$ac_ext <<_ACEOF
20521 /* confdefs.h.  */
20522 _ACEOF
20523 cat confdefs.h >>conftest.$ac_ext
20524 cat >>conftest.$ac_ext <<_ACEOF
20525 /* end confdefs.h.  */
20526 #include <sys/types.h>
20527 #include <inttypes.h>
20528 int
20529 main ()
20530 {
20531
20532   ;
20533   return 0;
20534 }
20535 _ACEOF
20536 rm -f conftest.$ac_objext
20537 if { (ac_try="$ac_compile"
20538 case "(($ac_try" in
20539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20540   *) ac_try_echo=$ac_try;;
20541 esac
20542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20543   (eval "$ac_compile") 2>conftest.er1
20544   ac_status=$?
20545   grep -v '^ *+' conftest.er1 >conftest.err
20546   rm -f conftest.er1
20547   cat conftest.err >&5
20548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549   (exit $ac_status); } && {
20550          test -z "$ac_c_werror_flag" ||
20551          test ! -s conftest.err
20552        } && test -s conftest.$ac_objext; then
20553   gt_cv_header_inttypes_h=yes
20554 else
20555   echo "$as_me: failed program was:" >&5
20556 sed 's/^/| /' conftest.$ac_ext >&5
20557
20558         gt_cv_header_inttypes_h=no
20559 fi
20560
20561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20562
20563 fi
20564 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20565 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20566   if test $gt_cv_header_inttypes_h = yes; then
20567
20568 cat >>confdefs.h <<_ACEOF
20569 #define HAVE_INTTYPES_H 1
20570 _ACEOF
20571
20572   fi
20573
20574
20575
20576   if test $gt_cv_header_inttypes_h = yes; then
20577     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20578 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20579 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20580   echo $ECHO_N "(cached) $ECHO_C" >&6
20581 else
20582
20583         cat >conftest.$ac_ext <<_ACEOF
20584 /* confdefs.h.  */
20585 _ACEOF
20586 cat confdefs.h >>conftest.$ac_ext
20587 cat >>conftest.$ac_ext <<_ACEOF
20588 /* end confdefs.h.  */
20589 #include <inttypes.h>
20590 #ifdef PRId32
20591 char *p = PRId32;
20592 #endif
20593
20594 int
20595 main ()
20596 {
20597
20598   ;
20599   return 0;
20600 }
20601 _ACEOF
20602 rm -f conftest.$ac_objext
20603 if { (ac_try="$ac_compile"
20604 case "(($ac_try" in
20605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606   *) ac_try_echo=$ac_try;;
20607 esac
20608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20609   (eval "$ac_compile") 2>conftest.er1
20610   ac_status=$?
20611   grep -v '^ *+' conftest.er1 >conftest.err
20612   rm -f conftest.er1
20613   cat conftest.err >&5
20614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615   (exit $ac_status); } && {
20616          test -z "$ac_c_werror_flag" ||
20617          test ! -s conftest.err
20618        } && test -s conftest.$ac_objext; then
20619   gt_cv_inttypes_pri_broken=no
20620 else
20621   echo "$as_me: failed program was:" >&5
20622 sed 's/^/| /' conftest.$ac_ext >&5
20623
20624         gt_cv_inttypes_pri_broken=yes
20625 fi
20626
20627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20628
20629 fi
20630 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20631 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20632   fi
20633   if test "$gt_cv_inttypes_pri_broken" = yes; then
20634
20635 cat >>confdefs.h <<_ACEOF
20636 #define PRI_MACROS_BROKEN 1
20637 _ACEOF
20638
20639   fi
20640
20641
20642
20643 for ac_header in stdint.h
20644 do
20645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20647   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20650   echo $ECHO_N "(cached) $ECHO_C" >&6
20651 fi
20652 ac_res=`eval echo '${'$as_ac_Header'}'`
20653                { echo "$as_me:$LINENO: result: $ac_res" >&5
20654 echo "${ECHO_T}$ac_res" >&6; }
20655 else
20656   # Is the header compilable?
20657 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20659 cat >conftest.$ac_ext <<_ACEOF
20660 /* confdefs.h.  */
20661 _ACEOF
20662 cat confdefs.h >>conftest.$ac_ext
20663 cat >>conftest.$ac_ext <<_ACEOF
20664 /* end confdefs.h.  */
20665 $ac_includes_default
20666 #include <$ac_header>
20667 _ACEOF
20668 rm -f conftest.$ac_objext
20669 if { (ac_try="$ac_compile"
20670 case "(($ac_try" in
20671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20672   *) ac_try_echo=$ac_try;;
20673 esac
20674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20675   (eval "$ac_compile") 2>conftest.er1
20676   ac_status=$?
20677   grep -v '^ *+' conftest.er1 >conftest.err
20678   rm -f conftest.er1
20679   cat conftest.err >&5
20680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681   (exit $ac_status); } && {
20682          test -z "$ac_c_werror_flag" ||
20683          test ! -s conftest.err
20684        } && test -s conftest.$ac_objext; then
20685   ac_header_compiler=yes
20686 else
20687   echo "$as_me: failed program was:" >&5
20688 sed 's/^/| /' conftest.$ac_ext >&5
20689
20690         ac_header_compiler=no
20691 fi
20692
20693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20694 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20695 echo "${ECHO_T}$ac_header_compiler" >&6; }
20696
20697 # Is the header present?
20698 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20700 cat >conftest.$ac_ext <<_ACEOF
20701 /* confdefs.h.  */
20702 _ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h.  */
20706 #include <$ac_header>
20707 _ACEOF
20708 if { (ac_try="$ac_cpp conftest.$ac_ext"
20709 case "(($ac_try" in
20710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711   *) ac_try_echo=$ac_try;;
20712 esac
20713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20715   ac_status=$?
20716   grep -v '^ *+' conftest.er1 >conftest.err
20717   rm -f conftest.er1
20718   cat conftest.err >&5
20719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720   (exit $ac_status); } >/dev/null && {
20721          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20722          test ! -s conftest.err
20723        }; then
20724   ac_header_preproc=yes
20725 else
20726   echo "$as_me: failed program was:" >&5
20727 sed 's/^/| /' conftest.$ac_ext >&5
20728
20729   ac_header_preproc=no
20730 fi
20731
20732 rm -f conftest.err conftest.$ac_ext
20733 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20734 echo "${ECHO_T}$ac_header_preproc" >&6; }
20735
20736 # So?  What about this header?
20737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20738   yes:no: )
20739     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20740 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20741     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20742 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20743     ac_header_preproc=yes
20744     ;;
20745   no:yes:* )
20746     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20747 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20748     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20749 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20750     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20751 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20752     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20753 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20754     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20755 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20756     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20757 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20758
20759     ;;
20760 esac
20761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20764   echo $ECHO_N "(cached) $ECHO_C" >&6
20765 else
20766   eval "$as_ac_Header=\$ac_header_preproc"
20767 fi
20768 ac_res=`eval echo '${'$as_ac_Header'}'`
20769                { echo "$as_me:$LINENO: result: $ac_res" >&5
20770 echo "${ECHO_T}$ac_res" >&6; }
20771
20772 fi
20773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20774   cat >>confdefs.h <<_ACEOF
20775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20776 _ACEOF
20777
20778 fi
20779
20780 done
20781
20782     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20783 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20784   result=
20785   cat >conftest.$ac_ext <<_ACEOF
20786 /* confdefs.h.  */
20787 _ACEOF
20788 cat confdefs.h >>conftest.$ac_ext
20789 cat >>conftest.$ac_ext <<_ACEOF
20790 /* end confdefs.h.  */
20791
20792 #include <limits.h>
20793 #if HAVE_STDINT_H
20794 #include <stdint.h>
20795 #endif
20796 #ifdef SIZE_MAX
20797 Found it
20798 #endif
20799
20800 _ACEOF
20801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20802   $EGREP "Found it" >/dev/null 2>&1; then
20803   result=yes
20804 fi
20805 rm -f conftest*
20806
20807   if test -z "$result"; then
20808                     if test "$cross_compiling" = yes; then
20809   # Depending upon the size, compute the lo and hi bounds.
20810 cat >conftest.$ac_ext <<_ACEOF
20811 /* confdefs.h.  */
20812 _ACEOF
20813 cat confdefs.h >>conftest.$ac_ext
20814 cat >>conftest.$ac_ext <<_ACEOF
20815 /* end confdefs.h.  */
20816 #include <stddef.h>
20817 int
20818 main ()
20819 {
20820 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20821 test_array [0] = 0
20822
20823   ;
20824   return 0;
20825 }
20826 _ACEOF
20827 rm -f conftest.$ac_objext
20828 if { (ac_try="$ac_compile"
20829 case "(($ac_try" in
20830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20831   *) ac_try_echo=$ac_try;;
20832 esac
20833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20834   (eval "$ac_compile") 2>conftest.er1
20835   ac_status=$?
20836   grep -v '^ *+' conftest.er1 >conftest.err
20837   rm -f conftest.er1
20838   cat conftest.err >&5
20839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840   (exit $ac_status); } && {
20841          test -z "$ac_c_werror_flag" ||
20842          test ! -s conftest.err
20843        } && test -s conftest.$ac_objext; then
20844   ac_lo=0 ac_mid=0
20845   while :; do
20846     cat >conftest.$ac_ext <<_ACEOF
20847 /* confdefs.h.  */
20848 _ACEOF
20849 cat confdefs.h >>conftest.$ac_ext
20850 cat >>conftest.$ac_ext <<_ACEOF
20851 /* end confdefs.h.  */
20852 #include <stddef.h>
20853 int
20854 main ()
20855 {
20856 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20857 test_array [0] = 0
20858
20859   ;
20860   return 0;
20861 }
20862 _ACEOF
20863 rm -f conftest.$ac_objext
20864 if { (ac_try="$ac_compile"
20865 case "(($ac_try" in
20866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20867   *) ac_try_echo=$ac_try;;
20868 esac
20869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20870   (eval "$ac_compile") 2>conftest.er1
20871   ac_status=$?
20872   grep -v '^ *+' conftest.er1 >conftest.err
20873   rm -f conftest.er1
20874   cat conftest.err >&5
20875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876   (exit $ac_status); } && {
20877          test -z "$ac_c_werror_flag" ||
20878          test ! -s conftest.err
20879        } && test -s conftest.$ac_objext; then
20880   ac_hi=$ac_mid; break
20881 else
20882   echo "$as_me: failed program was:" >&5
20883 sed 's/^/| /' conftest.$ac_ext >&5
20884
20885         ac_lo=`expr $ac_mid + 1`
20886                         if test $ac_lo -le $ac_mid; then
20887                           ac_lo= ac_hi=
20888                           break
20889                         fi
20890                         ac_mid=`expr 2 '*' $ac_mid + 1`
20891 fi
20892
20893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20894   done
20895 else
20896   echo "$as_me: failed program was:" >&5
20897 sed 's/^/| /' conftest.$ac_ext >&5
20898
20899         cat >conftest.$ac_ext <<_ACEOF
20900 /* confdefs.h.  */
20901 _ACEOF
20902 cat confdefs.h >>conftest.$ac_ext
20903 cat >>conftest.$ac_ext <<_ACEOF
20904 /* end confdefs.h.  */
20905 #include <stddef.h>
20906 int
20907 main ()
20908 {
20909 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20910 test_array [0] = 0
20911
20912   ;
20913   return 0;
20914 }
20915 _ACEOF
20916 rm -f conftest.$ac_objext
20917 if { (ac_try="$ac_compile"
20918 case "(($ac_try" in
20919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20920   *) ac_try_echo=$ac_try;;
20921 esac
20922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20923   (eval "$ac_compile") 2>conftest.er1
20924   ac_status=$?
20925   grep -v '^ *+' conftest.er1 >conftest.err
20926   rm -f conftest.er1
20927   cat conftest.err >&5
20928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929   (exit $ac_status); } && {
20930          test -z "$ac_c_werror_flag" ||
20931          test ! -s conftest.err
20932        } && test -s conftest.$ac_objext; then
20933   ac_hi=-1 ac_mid=-1
20934   while :; do
20935     cat >conftest.$ac_ext <<_ACEOF
20936 /* confdefs.h.  */
20937 _ACEOF
20938 cat confdefs.h >>conftest.$ac_ext
20939 cat >>conftest.$ac_ext <<_ACEOF
20940 /* end confdefs.h.  */
20941 #include <stddef.h>
20942 int
20943 main ()
20944 {
20945 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20946 test_array [0] = 0
20947
20948   ;
20949   return 0;
20950 }
20951 _ACEOF
20952 rm -f conftest.$ac_objext
20953 if { (ac_try="$ac_compile"
20954 case "(($ac_try" in
20955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20956   *) ac_try_echo=$ac_try;;
20957 esac
20958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20959   (eval "$ac_compile") 2>conftest.er1
20960   ac_status=$?
20961   grep -v '^ *+' conftest.er1 >conftest.err
20962   rm -f conftest.er1
20963   cat conftest.err >&5
20964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965   (exit $ac_status); } && {
20966          test -z "$ac_c_werror_flag" ||
20967          test ! -s conftest.err
20968        } && test -s conftest.$ac_objext; then
20969   ac_lo=$ac_mid; break
20970 else
20971   echo "$as_me: failed program was:" >&5
20972 sed 's/^/| /' conftest.$ac_ext >&5
20973
20974         ac_hi=`expr '(' $ac_mid ')' - 1`
20975                         if test $ac_mid -le $ac_hi; then
20976                           ac_lo= ac_hi=
20977                           break
20978                         fi
20979                         ac_mid=`expr 2 '*' $ac_mid`
20980 fi
20981
20982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20983   done
20984 else
20985   echo "$as_me: failed program was:" >&5
20986 sed 's/^/| /' conftest.$ac_ext >&5
20987
20988         ac_lo= ac_hi=
20989 fi
20990
20991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20992 fi
20993
20994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20995 # Binary search between lo and hi bounds.
20996 while test "x$ac_lo" != "x$ac_hi"; do
20997   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20998   cat >conftest.$ac_ext <<_ACEOF
20999 /* confdefs.h.  */
21000 _ACEOF
21001 cat confdefs.h >>conftest.$ac_ext
21002 cat >>conftest.$ac_ext <<_ACEOF
21003 /* end confdefs.h.  */
21004 #include <stddef.h>
21005 int
21006 main ()
21007 {
21008 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21009 test_array [0] = 0
21010
21011   ;
21012   return 0;
21013 }
21014 _ACEOF
21015 rm -f conftest.$ac_objext
21016 if { (ac_try="$ac_compile"
21017 case "(($ac_try" in
21018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21019   *) ac_try_echo=$ac_try;;
21020 esac
21021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21022   (eval "$ac_compile") 2>conftest.er1
21023   ac_status=$?
21024   grep -v '^ *+' conftest.er1 >conftest.err
21025   rm -f conftest.er1
21026   cat conftest.err >&5
21027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); } && {
21029          test -z "$ac_c_werror_flag" ||
21030          test ! -s conftest.err
21031        } && test -s conftest.$ac_objext; then
21032   ac_hi=$ac_mid
21033 else
21034   echo "$as_me: failed program was:" >&5
21035 sed 's/^/| /' conftest.$ac_ext >&5
21036
21037         ac_lo=`expr '(' $ac_mid ')' + 1`
21038 fi
21039
21040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21041 done
21042 case $ac_lo in
21043 ?*) res_hi=$ac_lo;;
21044 '') result=? ;;
21045 esac
21046 else
21047   cat >conftest.$ac_ext <<_ACEOF
21048 /* confdefs.h.  */
21049 _ACEOF
21050 cat confdefs.h >>conftest.$ac_ext
21051 cat >>conftest.$ac_ext <<_ACEOF
21052 /* end confdefs.h.  */
21053 #include <stddef.h>
21054 static long int longval () { return ~(size_t)0 / 10; }
21055 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21056 #include <stdio.h>
21057 #include <stdlib.h>
21058 int
21059 main ()
21060 {
21061
21062   FILE *f = fopen ("conftest.val", "w");
21063   if (! f)
21064     return 1;
21065   if ((~(size_t)0 / 10) < 0)
21066     {
21067       long int i = longval ();
21068       if (i != (~(size_t)0 / 10))
21069         return 1;
21070       fprintf (f, "%ld\n", i);
21071     }
21072   else
21073     {
21074       unsigned long int i = ulongval ();
21075       if (i != (~(size_t)0 / 10))
21076         return 1;
21077       fprintf (f, "%lu\n", i);
21078     }
21079   return ferror (f) || fclose (f) != 0;
21080
21081   ;
21082   return 0;
21083 }
21084 _ACEOF
21085 rm -f conftest$ac_exeext
21086 if { (ac_try="$ac_link"
21087 case "(($ac_try" in
21088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21089   *) ac_try_echo=$ac_try;;
21090 esac
21091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21092   (eval "$ac_link") 2>&5
21093   ac_status=$?
21094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21096   { (case "(($ac_try" in
21097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21098   *) ac_try_echo=$ac_try;;
21099 esac
21100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21101   (eval "$ac_try") 2>&5
21102   ac_status=$?
21103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104   (exit $ac_status); }; }; then
21105   res_hi=`cat conftest.val`
21106 else
21107   echo "$as_me: program exited with status $ac_status" >&5
21108 echo "$as_me: failed program was:" >&5
21109 sed 's/^/| /' conftest.$ac_ext >&5
21110
21111 ( exit $ac_status )
21112 result=?
21113 fi
21114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21115 fi
21116 rm -f conftest.val
21117
21118     if test "$cross_compiling" = yes; then
21119   # Depending upon the size, compute the lo and hi bounds.
21120 cat >conftest.$ac_ext <<_ACEOF
21121 /* confdefs.h.  */
21122 _ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h.  */
21126 #include <stddef.h>
21127 int
21128 main ()
21129 {
21130 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21131 test_array [0] = 0
21132
21133   ;
21134   return 0;
21135 }
21136 _ACEOF
21137 rm -f conftest.$ac_objext
21138 if { (ac_try="$ac_compile"
21139 case "(($ac_try" in
21140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21141   *) ac_try_echo=$ac_try;;
21142 esac
21143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21144   (eval "$ac_compile") 2>conftest.er1
21145   ac_status=$?
21146   grep -v '^ *+' conftest.er1 >conftest.err
21147   rm -f conftest.er1
21148   cat conftest.err >&5
21149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150   (exit $ac_status); } && {
21151          test -z "$ac_c_werror_flag" ||
21152          test ! -s conftest.err
21153        } && test -s conftest.$ac_objext; then
21154   ac_lo=0 ac_mid=0
21155   while :; do
21156     cat >conftest.$ac_ext <<_ACEOF
21157 /* confdefs.h.  */
21158 _ACEOF
21159 cat confdefs.h >>conftest.$ac_ext
21160 cat >>conftest.$ac_ext <<_ACEOF
21161 /* end confdefs.h.  */
21162 #include <stddef.h>
21163 int
21164 main ()
21165 {
21166 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21167 test_array [0] = 0
21168
21169   ;
21170   return 0;
21171 }
21172 _ACEOF
21173 rm -f conftest.$ac_objext
21174 if { (ac_try="$ac_compile"
21175 case "(($ac_try" in
21176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21177   *) ac_try_echo=$ac_try;;
21178 esac
21179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21180   (eval "$ac_compile") 2>conftest.er1
21181   ac_status=$?
21182   grep -v '^ *+' conftest.er1 >conftest.err
21183   rm -f conftest.er1
21184   cat conftest.err >&5
21185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186   (exit $ac_status); } && {
21187          test -z "$ac_c_werror_flag" ||
21188          test ! -s conftest.err
21189        } && test -s conftest.$ac_objext; then
21190   ac_hi=$ac_mid; break
21191 else
21192   echo "$as_me: failed program was:" >&5
21193 sed 's/^/| /' conftest.$ac_ext >&5
21194
21195         ac_lo=`expr $ac_mid + 1`
21196                         if test $ac_lo -le $ac_mid; then
21197                           ac_lo= ac_hi=
21198                           break
21199                         fi
21200                         ac_mid=`expr 2 '*' $ac_mid + 1`
21201 fi
21202
21203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21204   done
21205 else
21206   echo "$as_me: failed program was:" >&5
21207 sed 's/^/| /' conftest.$ac_ext >&5
21208
21209         cat >conftest.$ac_ext <<_ACEOF
21210 /* confdefs.h.  */
21211 _ACEOF
21212 cat confdefs.h >>conftest.$ac_ext
21213 cat >>conftest.$ac_ext <<_ACEOF
21214 /* end confdefs.h.  */
21215 #include <stddef.h>
21216 int
21217 main ()
21218 {
21219 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21220 test_array [0] = 0
21221
21222   ;
21223   return 0;
21224 }
21225 _ACEOF
21226 rm -f conftest.$ac_objext
21227 if { (ac_try="$ac_compile"
21228 case "(($ac_try" in
21229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21230   *) ac_try_echo=$ac_try;;
21231 esac
21232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21233   (eval "$ac_compile") 2>conftest.er1
21234   ac_status=$?
21235   grep -v '^ *+' conftest.er1 >conftest.err
21236   rm -f conftest.er1
21237   cat conftest.err >&5
21238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239   (exit $ac_status); } && {
21240          test -z "$ac_c_werror_flag" ||
21241          test ! -s conftest.err
21242        } && test -s conftest.$ac_objext; then
21243   ac_hi=-1 ac_mid=-1
21244   while :; do
21245     cat >conftest.$ac_ext <<_ACEOF
21246 /* confdefs.h.  */
21247 _ACEOF
21248 cat confdefs.h >>conftest.$ac_ext
21249 cat >>conftest.$ac_ext <<_ACEOF
21250 /* end confdefs.h.  */
21251 #include <stddef.h>
21252 int
21253 main ()
21254 {
21255 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21256 test_array [0] = 0
21257
21258   ;
21259   return 0;
21260 }
21261 _ACEOF
21262 rm -f conftest.$ac_objext
21263 if { (ac_try="$ac_compile"
21264 case "(($ac_try" in
21265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21266   *) ac_try_echo=$ac_try;;
21267 esac
21268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21269   (eval "$ac_compile") 2>conftest.er1
21270   ac_status=$?
21271   grep -v '^ *+' conftest.er1 >conftest.err
21272   rm -f conftest.er1
21273   cat conftest.err >&5
21274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275   (exit $ac_status); } && {
21276          test -z "$ac_c_werror_flag" ||
21277          test ! -s conftest.err
21278        } && test -s conftest.$ac_objext; then
21279   ac_lo=$ac_mid; break
21280 else
21281   echo "$as_me: failed program was:" >&5
21282 sed 's/^/| /' conftest.$ac_ext >&5
21283
21284         ac_hi=`expr '(' $ac_mid ')' - 1`
21285                         if test $ac_mid -le $ac_hi; then
21286                           ac_lo= ac_hi=
21287                           break
21288                         fi
21289                         ac_mid=`expr 2 '*' $ac_mid`
21290 fi
21291
21292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21293   done
21294 else
21295   echo "$as_me: failed program was:" >&5
21296 sed 's/^/| /' conftest.$ac_ext >&5
21297
21298         ac_lo= ac_hi=
21299 fi
21300
21301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21302 fi
21303
21304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21305 # Binary search between lo and hi bounds.
21306 while test "x$ac_lo" != "x$ac_hi"; do
21307   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21308   cat >conftest.$ac_ext <<_ACEOF
21309 /* confdefs.h.  */
21310 _ACEOF
21311 cat confdefs.h >>conftest.$ac_ext
21312 cat >>conftest.$ac_ext <<_ACEOF
21313 /* end confdefs.h.  */
21314 #include <stddef.h>
21315 int
21316 main ()
21317 {
21318 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21319 test_array [0] = 0
21320
21321   ;
21322   return 0;
21323 }
21324 _ACEOF
21325 rm -f conftest.$ac_objext
21326 if { (ac_try="$ac_compile"
21327 case "(($ac_try" in
21328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21329   *) ac_try_echo=$ac_try;;
21330 esac
21331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21332   (eval "$ac_compile") 2>conftest.er1
21333   ac_status=$?
21334   grep -v '^ *+' conftest.er1 >conftest.err
21335   rm -f conftest.er1
21336   cat conftest.err >&5
21337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338   (exit $ac_status); } && {
21339          test -z "$ac_c_werror_flag" ||
21340          test ! -s conftest.err
21341        } && test -s conftest.$ac_objext; then
21342   ac_hi=$ac_mid
21343 else
21344   echo "$as_me: failed program was:" >&5
21345 sed 's/^/| /' conftest.$ac_ext >&5
21346
21347         ac_lo=`expr '(' $ac_mid ')' + 1`
21348 fi
21349
21350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21351 done
21352 case $ac_lo in
21353 ?*) res_lo=$ac_lo;;
21354 '') result=? ;;
21355 esac
21356 else
21357   cat >conftest.$ac_ext <<_ACEOF
21358 /* confdefs.h.  */
21359 _ACEOF
21360 cat confdefs.h >>conftest.$ac_ext
21361 cat >>conftest.$ac_ext <<_ACEOF
21362 /* end confdefs.h.  */
21363 #include <stddef.h>
21364 static long int longval () { return ~(size_t)0 % 10; }
21365 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21366 #include <stdio.h>
21367 #include <stdlib.h>
21368 int
21369 main ()
21370 {
21371
21372   FILE *f = fopen ("conftest.val", "w");
21373   if (! f)
21374     return 1;
21375   if ((~(size_t)0 % 10) < 0)
21376     {
21377       long int i = longval ();
21378       if (i != (~(size_t)0 % 10))
21379         return 1;
21380       fprintf (f, "%ld\n", i);
21381     }
21382   else
21383     {
21384       unsigned long int i = ulongval ();
21385       if (i != (~(size_t)0 % 10))
21386         return 1;
21387       fprintf (f, "%lu\n", i);
21388     }
21389   return ferror (f) || fclose (f) != 0;
21390
21391   ;
21392   return 0;
21393 }
21394 _ACEOF
21395 rm -f conftest$ac_exeext
21396 if { (ac_try="$ac_link"
21397 case "(($ac_try" in
21398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21399   *) ac_try_echo=$ac_try;;
21400 esac
21401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21402   (eval "$ac_link") 2>&5
21403   ac_status=$?
21404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21406   { (case "(($ac_try" in
21407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21408   *) ac_try_echo=$ac_try;;
21409 esac
21410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21411   (eval "$ac_try") 2>&5
21412   ac_status=$?
21413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414   (exit $ac_status); }; }; then
21415   res_lo=`cat conftest.val`
21416 else
21417   echo "$as_me: program exited with status $ac_status" >&5
21418 echo "$as_me: failed program was:" >&5
21419 sed 's/^/| /' conftest.$ac_ext >&5
21420
21421 ( exit $ac_status )
21422 result=?
21423 fi
21424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21425 fi
21426 rm -f conftest.val
21427
21428     if test "$cross_compiling" = yes; then
21429   # Depending upon the size, compute the lo and hi bounds.
21430 cat >conftest.$ac_ext <<_ACEOF
21431 /* confdefs.h.  */
21432 _ACEOF
21433 cat confdefs.h >>conftest.$ac_ext
21434 cat >>conftest.$ac_ext <<_ACEOF
21435 /* end confdefs.h.  */
21436 #include <stddef.h>
21437 int
21438 main ()
21439 {
21440 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21441 test_array [0] = 0
21442
21443   ;
21444   return 0;
21445 }
21446 _ACEOF
21447 rm -f conftest.$ac_objext
21448 if { (ac_try="$ac_compile"
21449 case "(($ac_try" in
21450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21451   *) ac_try_echo=$ac_try;;
21452 esac
21453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21454   (eval "$ac_compile") 2>conftest.er1
21455   ac_status=$?
21456   grep -v '^ *+' conftest.er1 >conftest.err
21457   rm -f conftest.er1
21458   cat conftest.err >&5
21459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460   (exit $ac_status); } && {
21461          test -z "$ac_c_werror_flag" ||
21462          test ! -s conftest.err
21463        } && test -s conftest.$ac_objext; then
21464   ac_lo=0 ac_mid=0
21465   while :; do
21466     cat >conftest.$ac_ext <<_ACEOF
21467 /* confdefs.h.  */
21468 _ACEOF
21469 cat confdefs.h >>conftest.$ac_ext
21470 cat >>conftest.$ac_ext <<_ACEOF
21471 /* end confdefs.h.  */
21472 #include <stddef.h>
21473 int
21474 main ()
21475 {
21476 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21477 test_array [0] = 0
21478
21479   ;
21480   return 0;
21481 }
21482 _ACEOF
21483 rm -f conftest.$ac_objext
21484 if { (ac_try="$ac_compile"
21485 case "(($ac_try" in
21486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21487   *) ac_try_echo=$ac_try;;
21488 esac
21489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21490   (eval "$ac_compile") 2>conftest.er1
21491   ac_status=$?
21492   grep -v '^ *+' conftest.er1 >conftest.err
21493   rm -f conftest.er1
21494   cat conftest.err >&5
21495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496   (exit $ac_status); } && {
21497          test -z "$ac_c_werror_flag" ||
21498          test ! -s conftest.err
21499        } && test -s conftest.$ac_objext; then
21500   ac_hi=$ac_mid; break
21501 else
21502   echo "$as_me: failed program was:" >&5
21503 sed 's/^/| /' conftest.$ac_ext >&5
21504
21505         ac_lo=`expr $ac_mid + 1`
21506                         if test $ac_lo -le $ac_mid; then
21507                           ac_lo= ac_hi=
21508                           break
21509                         fi
21510                         ac_mid=`expr 2 '*' $ac_mid + 1`
21511 fi
21512
21513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21514   done
21515 else
21516   echo "$as_me: failed program was:" >&5
21517 sed 's/^/| /' conftest.$ac_ext >&5
21518
21519         cat >conftest.$ac_ext <<_ACEOF
21520 /* confdefs.h.  */
21521 _ACEOF
21522 cat confdefs.h >>conftest.$ac_ext
21523 cat >>conftest.$ac_ext <<_ACEOF
21524 /* end confdefs.h.  */
21525 #include <stddef.h>
21526 int
21527 main ()
21528 {
21529 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21530 test_array [0] = 0
21531
21532   ;
21533   return 0;
21534 }
21535 _ACEOF
21536 rm -f conftest.$ac_objext
21537 if { (ac_try="$ac_compile"
21538 case "(($ac_try" in
21539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21540   *) ac_try_echo=$ac_try;;
21541 esac
21542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21543   (eval "$ac_compile") 2>conftest.er1
21544   ac_status=$?
21545   grep -v '^ *+' conftest.er1 >conftest.err
21546   rm -f conftest.er1
21547   cat conftest.err >&5
21548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549   (exit $ac_status); } && {
21550          test -z "$ac_c_werror_flag" ||
21551          test ! -s conftest.err
21552        } && test -s conftest.$ac_objext; then
21553   ac_hi=-1 ac_mid=-1
21554   while :; do
21555     cat >conftest.$ac_ext <<_ACEOF
21556 /* confdefs.h.  */
21557 _ACEOF
21558 cat confdefs.h >>conftest.$ac_ext
21559 cat >>conftest.$ac_ext <<_ACEOF
21560 /* end confdefs.h.  */
21561 #include <stddef.h>
21562 int
21563 main ()
21564 {
21565 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21566 test_array [0] = 0
21567
21568   ;
21569   return 0;
21570 }
21571 _ACEOF
21572 rm -f conftest.$ac_objext
21573 if { (ac_try="$ac_compile"
21574 case "(($ac_try" in
21575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21576   *) ac_try_echo=$ac_try;;
21577 esac
21578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21579   (eval "$ac_compile") 2>conftest.er1
21580   ac_status=$?
21581   grep -v '^ *+' conftest.er1 >conftest.err
21582   rm -f conftest.er1
21583   cat conftest.err >&5
21584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585   (exit $ac_status); } && {
21586          test -z "$ac_c_werror_flag" ||
21587          test ! -s conftest.err
21588        } && test -s conftest.$ac_objext; then
21589   ac_lo=$ac_mid; break
21590 else
21591   echo "$as_me: failed program was:" >&5
21592 sed 's/^/| /' conftest.$ac_ext >&5
21593
21594         ac_hi=`expr '(' $ac_mid ')' - 1`
21595                         if test $ac_mid -le $ac_hi; then
21596                           ac_lo= ac_hi=
21597                           break
21598                         fi
21599                         ac_mid=`expr 2 '*' $ac_mid`
21600 fi
21601
21602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21603   done
21604 else
21605   echo "$as_me: failed program was:" >&5
21606 sed 's/^/| /' conftest.$ac_ext >&5
21607
21608         ac_lo= ac_hi=
21609 fi
21610
21611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21612 fi
21613
21614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21615 # Binary search between lo and hi bounds.
21616 while test "x$ac_lo" != "x$ac_hi"; do
21617   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21618   cat >conftest.$ac_ext <<_ACEOF
21619 /* confdefs.h.  */
21620 _ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h.  */
21624 #include <stddef.h>
21625 int
21626 main ()
21627 {
21628 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21629 test_array [0] = 0
21630
21631   ;
21632   return 0;
21633 }
21634 _ACEOF
21635 rm -f conftest.$ac_objext
21636 if { (ac_try="$ac_compile"
21637 case "(($ac_try" in
21638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21639   *) ac_try_echo=$ac_try;;
21640 esac
21641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21642   (eval "$ac_compile") 2>conftest.er1
21643   ac_status=$?
21644   grep -v '^ *+' conftest.er1 >conftest.err
21645   rm -f conftest.er1
21646   cat conftest.err >&5
21647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648   (exit $ac_status); } && {
21649          test -z "$ac_c_werror_flag" ||
21650          test ! -s conftest.err
21651        } && test -s conftest.$ac_objext; then
21652   ac_hi=$ac_mid
21653 else
21654   echo "$as_me: failed program was:" >&5
21655 sed 's/^/| /' conftest.$ac_ext >&5
21656
21657         ac_lo=`expr '(' $ac_mid ')' + 1`
21658 fi
21659
21660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21661 done
21662 case $ac_lo in
21663 ?*) fits_in_uint=$ac_lo;;
21664 '') result=? ;;
21665 esac
21666 else
21667   cat >conftest.$ac_ext <<_ACEOF
21668 /* confdefs.h.  */
21669 _ACEOF
21670 cat confdefs.h >>conftest.$ac_ext
21671 cat >>conftest.$ac_ext <<_ACEOF
21672 /* end confdefs.h.  */
21673 #include <stddef.h>
21674 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21675 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21676 #include <stdio.h>
21677 #include <stdlib.h>
21678 int
21679 main ()
21680 {
21681
21682   FILE *f = fopen ("conftest.val", "w");
21683   if (! f)
21684     return 1;
21685   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21686     {
21687       long int i = longval ();
21688       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21689         return 1;
21690       fprintf (f, "%ld\n", i);
21691     }
21692   else
21693     {
21694       unsigned long int i = ulongval ();
21695       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21696         return 1;
21697       fprintf (f, "%lu\n", i);
21698     }
21699   return ferror (f) || fclose (f) != 0;
21700
21701   ;
21702   return 0;
21703 }
21704 _ACEOF
21705 rm -f conftest$ac_exeext
21706 if { (ac_try="$ac_link"
21707 case "(($ac_try" in
21708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21709   *) ac_try_echo=$ac_try;;
21710 esac
21711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21712   (eval "$ac_link") 2>&5
21713   ac_status=$?
21714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21716   { (case "(($ac_try" in
21717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21718   *) ac_try_echo=$ac_try;;
21719 esac
21720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21721   (eval "$ac_try") 2>&5
21722   ac_status=$?
21723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724   (exit $ac_status); }; }; then
21725   fits_in_uint=`cat conftest.val`
21726 else
21727   echo "$as_me: program exited with status $ac_status" >&5
21728 echo "$as_me: failed program was:" >&5
21729 sed 's/^/| /' conftest.$ac_ext >&5
21730
21731 ( exit $ac_status )
21732 result=?
21733 fi
21734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21735 fi
21736 rm -f conftest.val
21737
21738     if test "$fits_in_uint" = 1; then
21739                   cat >conftest.$ac_ext <<_ACEOF
21740 /* confdefs.h.  */
21741 _ACEOF
21742 cat confdefs.h >>conftest.$ac_ext
21743 cat >>conftest.$ac_ext <<_ACEOF
21744 /* end confdefs.h.  */
21745 #include <stddef.h>
21746         extern size_t foo;
21747         extern unsigned long foo;
21748
21749 int
21750 main ()
21751 {
21752
21753   ;
21754   return 0;
21755 }
21756 _ACEOF
21757 rm -f conftest.$ac_objext
21758 if { (ac_try="$ac_compile"
21759 case "(($ac_try" in
21760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21761   *) ac_try_echo=$ac_try;;
21762 esac
21763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21764   (eval "$ac_compile") 2>conftest.er1
21765   ac_status=$?
21766   grep -v '^ *+' conftest.er1 >conftest.err
21767   rm -f conftest.er1
21768   cat conftest.err >&5
21769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770   (exit $ac_status); } && {
21771          test -z "$ac_c_werror_flag" ||
21772          test ! -s conftest.err
21773        } && test -s conftest.$ac_objext; then
21774   fits_in_uint=0
21775 else
21776   echo "$as_me: failed program was:" >&5
21777 sed 's/^/| /' conftest.$ac_ext >&5
21778
21779
21780 fi
21781
21782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21783     fi
21784     if test -z "$result"; then
21785       if test "$fits_in_uint" = 1; then
21786         result="$res_hi$res_lo"U
21787       else
21788         result="$res_hi$res_lo"UL
21789       fi
21790     else
21791             result='~(size_t)0'
21792     fi
21793   fi
21794   { echo "$as_me:$LINENO: result: $result" >&5
21795 echo "${ECHO_T}$result" >&6; }
21796   if test "$result" != yes; then
21797
21798 cat >>confdefs.h <<_ACEOF
21799 #define SIZE_MAX $result
21800 _ACEOF
21801
21802   fi
21803
21804
21805
21806
21807
21808 for ac_header in stdint.h
21809 do
21810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21812   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21815   echo $ECHO_N "(cached) $ECHO_C" >&6
21816 fi
21817 ac_res=`eval echo '${'$as_ac_Header'}'`
21818                { echo "$as_me:$LINENO: result: $ac_res" >&5
21819 echo "${ECHO_T}$ac_res" >&6; }
21820 else
21821   # Is the header compilable?
21822 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21824 cat >conftest.$ac_ext <<_ACEOF
21825 /* confdefs.h.  */
21826 _ACEOF
21827 cat confdefs.h >>conftest.$ac_ext
21828 cat >>conftest.$ac_ext <<_ACEOF
21829 /* end confdefs.h.  */
21830 $ac_includes_default
21831 #include <$ac_header>
21832 _ACEOF
21833 rm -f conftest.$ac_objext
21834 if { (ac_try="$ac_compile"
21835 case "(($ac_try" in
21836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21837   *) ac_try_echo=$ac_try;;
21838 esac
21839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21840   (eval "$ac_compile") 2>conftest.er1
21841   ac_status=$?
21842   grep -v '^ *+' conftest.er1 >conftest.err
21843   rm -f conftest.er1
21844   cat conftest.err >&5
21845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846   (exit $ac_status); } && {
21847          test -z "$ac_c_werror_flag" ||
21848          test ! -s conftest.err
21849        } && test -s conftest.$ac_objext; then
21850   ac_header_compiler=yes
21851 else
21852   echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.$ac_ext >&5
21854
21855         ac_header_compiler=no
21856 fi
21857
21858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21859 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21860 echo "${ECHO_T}$ac_header_compiler" >&6; }
21861
21862 # Is the header present?
21863 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21865 cat >conftest.$ac_ext <<_ACEOF
21866 /* confdefs.h.  */
21867 _ACEOF
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h.  */
21871 #include <$ac_header>
21872 _ACEOF
21873 if { (ac_try="$ac_cpp conftest.$ac_ext"
21874 case "(($ac_try" in
21875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21876   *) ac_try_echo=$ac_try;;
21877 esac
21878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21879   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21880   ac_status=$?
21881   grep -v '^ *+' conftest.er1 >conftest.err
21882   rm -f conftest.er1
21883   cat conftest.err >&5
21884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885   (exit $ac_status); } >/dev/null && {
21886          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21887          test ! -s conftest.err
21888        }; then
21889   ac_header_preproc=yes
21890 else
21891   echo "$as_me: failed program was:" >&5
21892 sed 's/^/| /' conftest.$ac_ext >&5
21893
21894   ac_header_preproc=no
21895 fi
21896
21897 rm -f conftest.err conftest.$ac_ext
21898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21899 echo "${ECHO_T}$ac_header_preproc" >&6; }
21900
21901 # So?  What about this header?
21902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21903   yes:no: )
21904     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21906     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21907 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21908     ac_header_preproc=yes
21909     ;;
21910   no:yes:* )
21911     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21913     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21914 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21915     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21916 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21917     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21918 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21919     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21921     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21922 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21923
21924     ;;
21925 esac
21926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21929   echo $ECHO_N "(cached) $ECHO_C" >&6
21930 else
21931   eval "$as_ac_Header=\$ac_header_preproc"
21932 fi
21933 ac_res=`eval echo '${'$as_ac_Header'}'`
21934                { echo "$as_me:$LINENO: result: $ac_res" >&5
21935 echo "${ECHO_T}$ac_res" >&6; }
21936
21937 fi
21938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21939   cat >>confdefs.h <<_ACEOF
21940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21941 _ACEOF
21942
21943 fi
21944
21945 done
21946
21947
21948
21949
21950
21951
21952
21953
21954   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21955 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21956 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21957   echo $ECHO_N "(cached) $ECHO_C" >&6
21958 else
21959   cat >conftest.$ac_ext <<_ACEOF
21960 /* confdefs.h.  */
21961 _ACEOF
21962 cat confdefs.h >>conftest.$ac_ext
21963 cat >>conftest.$ac_ext <<_ACEOF
21964 /* end confdefs.h.  */
21965 $ac_includes_default
21966 typedef ptrdiff_t ac__type_new_;
21967 int
21968 main ()
21969 {
21970 if ((ac__type_new_ *) 0)
21971   return 0;
21972 if (sizeof (ac__type_new_))
21973   return 0;
21974   ;
21975   return 0;
21976 }
21977 _ACEOF
21978 rm -f conftest.$ac_objext
21979 if { (ac_try="$ac_compile"
21980 case "(($ac_try" in
21981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21982   *) ac_try_echo=$ac_try;;
21983 esac
21984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21985   (eval "$ac_compile") 2>conftest.er1
21986   ac_status=$?
21987   grep -v '^ *+' conftest.er1 >conftest.err
21988   rm -f conftest.er1
21989   cat conftest.err >&5
21990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991   (exit $ac_status); } && {
21992          test -z "$ac_c_werror_flag" ||
21993          test ! -s conftest.err
21994        } && test -s conftest.$ac_objext; then
21995   ac_cv_type_ptrdiff_t=yes
21996 else
21997   echo "$as_me: failed program was:" >&5
21998 sed 's/^/| /' conftest.$ac_ext >&5
21999
22000         ac_cv_type_ptrdiff_t=no
22001 fi
22002
22003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22004 fi
22005 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22006 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22007 if test $ac_cv_type_ptrdiff_t = yes; then
22008   :
22009 else
22010
22011 cat >>confdefs.h <<\_ACEOF
22012 #define ptrdiff_t long
22013 _ACEOF
22014
22015
22016 fi
22017
22018
22019
22020
22021
22022
22023
22024
22025
22026
22027
22028 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22029 stdlib.h string.h unistd.h sys/param.h
22030 do
22031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22033   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22036   echo $ECHO_N "(cached) $ECHO_C" >&6
22037 fi
22038 ac_res=`eval echo '${'$as_ac_Header'}'`
22039                { echo "$as_me:$LINENO: result: $ac_res" >&5
22040 echo "${ECHO_T}$ac_res" >&6; }
22041 else
22042   # Is the header compilable?
22043 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22044 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22045 cat >conftest.$ac_ext <<_ACEOF
22046 /* confdefs.h.  */
22047 _ACEOF
22048 cat confdefs.h >>conftest.$ac_ext
22049 cat >>conftest.$ac_ext <<_ACEOF
22050 /* end confdefs.h.  */
22051 $ac_includes_default
22052 #include <$ac_header>
22053 _ACEOF
22054 rm -f conftest.$ac_objext
22055 if { (ac_try="$ac_compile"
22056 case "(($ac_try" in
22057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058   *) ac_try_echo=$ac_try;;
22059 esac
22060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22061   (eval "$ac_compile") 2>conftest.er1
22062   ac_status=$?
22063   grep -v '^ *+' conftest.er1 >conftest.err
22064   rm -f conftest.er1
22065   cat conftest.err >&5
22066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067   (exit $ac_status); } && {
22068          test -z "$ac_c_werror_flag" ||
22069          test ! -s conftest.err
22070        } && test -s conftest.$ac_objext; then
22071   ac_header_compiler=yes
22072 else
22073   echo "$as_me: failed program was:" >&5
22074 sed 's/^/| /' conftest.$ac_ext >&5
22075
22076         ac_header_compiler=no
22077 fi
22078
22079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22080 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22081 echo "${ECHO_T}$ac_header_compiler" >&6; }
22082
22083 # Is the header present?
22084 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22085 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22086 cat >conftest.$ac_ext <<_ACEOF
22087 /* confdefs.h.  */
22088 _ACEOF
22089 cat confdefs.h >>conftest.$ac_ext
22090 cat >>conftest.$ac_ext <<_ACEOF
22091 /* end confdefs.h.  */
22092 #include <$ac_header>
22093 _ACEOF
22094 if { (ac_try="$ac_cpp conftest.$ac_ext"
22095 case "(($ac_try" in
22096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22097   *) ac_try_echo=$ac_try;;
22098 esac
22099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22100   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22101   ac_status=$?
22102   grep -v '^ *+' conftest.er1 >conftest.err
22103   rm -f conftest.er1
22104   cat conftest.err >&5
22105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106   (exit $ac_status); } >/dev/null && {
22107          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22108          test ! -s conftest.err
22109        }; then
22110   ac_header_preproc=yes
22111 else
22112   echo "$as_me: failed program was:" >&5
22113 sed 's/^/| /' conftest.$ac_ext >&5
22114
22115   ac_header_preproc=no
22116 fi
22117
22118 rm -f conftest.err conftest.$ac_ext
22119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22120 echo "${ECHO_T}$ac_header_preproc" >&6; }
22121
22122 # So?  What about this header?
22123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22124   yes:no: )
22125     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22127     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22129     ac_header_preproc=yes
22130     ;;
22131   no:yes:* )
22132     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22134     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22135 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22136     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22138     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22139 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22140     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22142     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22144
22145     ;;
22146 esac
22147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22150   echo $ECHO_N "(cached) $ECHO_C" >&6
22151 else
22152   eval "$as_ac_Header=\$ac_header_preproc"
22153 fi
22154 ac_res=`eval echo '${'$as_ac_Header'}'`
22155                { echo "$as_me:$LINENO: result: $ac_res" >&5
22156 echo "${ECHO_T}$ac_res" >&6; }
22157
22158 fi
22159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22160   cat >>confdefs.h <<_ACEOF
22161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22162 _ACEOF
22163
22164 fi
22165
22166 done
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22192 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22193 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22194 __fsetlocking
22195 do
22196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22197 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22199 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22200   echo $ECHO_N "(cached) $ECHO_C" >&6
22201 else
22202   cat >conftest.$ac_ext <<_ACEOF
22203 /* confdefs.h.  */
22204 _ACEOF
22205 cat confdefs.h >>conftest.$ac_ext
22206 cat >>conftest.$ac_ext <<_ACEOF
22207 /* end confdefs.h.  */
22208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22209    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22210 #define $ac_func innocuous_$ac_func
22211
22212 /* System header to define __stub macros and hopefully few prototypes,
22213     which can conflict with char $ac_func (); below.
22214     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22215     <limits.h> exists even on freestanding compilers.  */
22216
22217 #ifdef __STDC__
22218 # include <limits.h>
22219 #else
22220 # include <assert.h>
22221 #endif
22222
22223 #undef $ac_func
22224
22225 /* Override any GCC internal prototype to avoid an error.
22226    Use char because int might match the return type of a GCC
22227    builtin and then its argument prototype would still apply.  */
22228 #ifdef __cplusplus
22229 extern "C"
22230 #endif
22231 char $ac_func ();
22232 /* The GNU C library defines this for functions which it implements
22233     to always fail with ENOSYS.  Some functions are actually named
22234     something starting with __ and the normal name is an alias.  */
22235 #if defined __stub_$ac_func || defined __stub___$ac_func
22236 choke me
22237 #endif
22238
22239 int
22240 main ()
22241 {
22242 return $ac_func ();
22243   ;
22244   return 0;
22245 }
22246 _ACEOF
22247 rm -f conftest.$ac_objext conftest$ac_exeext
22248 if { (ac_try="$ac_link"
22249 case "(($ac_try" in
22250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22251   *) ac_try_echo=$ac_try;;
22252 esac
22253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22254   (eval "$ac_link") 2>conftest.er1
22255   ac_status=$?
22256   grep -v '^ *+' conftest.er1 >conftest.err
22257   rm -f conftest.er1
22258   cat conftest.err >&5
22259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260   (exit $ac_status); } && {
22261          test -z "$ac_c_werror_flag" ||
22262          test ! -s conftest.err
22263        } && test -s conftest$ac_exeext &&
22264        $as_test_x conftest$ac_exeext; then
22265   eval "$as_ac_var=yes"
22266 else
22267   echo "$as_me: failed program was:" >&5
22268 sed 's/^/| /' conftest.$ac_ext >&5
22269
22270         eval "$as_ac_var=no"
22271 fi
22272
22273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22274       conftest$ac_exeext conftest.$ac_ext
22275 fi
22276 ac_res=`eval echo '${'$as_ac_var'}'`
22277                { echo "$as_me:$LINENO: result: $ac_res" >&5
22278 echo "${ECHO_T}$ac_res" >&6; }
22279 if test `eval echo '${'$as_ac_var'}'` = yes; then
22280   cat >>confdefs.h <<_ACEOF
22281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22282 _ACEOF
22283
22284 fi
22285 done
22286
22287
22288
22289   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22290 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22291 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22292   echo $ECHO_N "(cached) $ECHO_C" >&6
22293 else
22294   cat >conftest.$ac_ext <<_ACEOF
22295 /* confdefs.h.  */
22296 _ACEOF
22297 cat confdefs.h >>conftest.$ac_ext
22298 cat >>conftest.$ac_ext <<_ACEOF
22299 /* end confdefs.h.  */
22300 #include <stdio.h>
22301 int
22302 main ()
22303 {
22304
22305 #ifndef _snprintf
22306   char *p = (char *) _snprintf;
22307 #endif
22308
22309   ;
22310   return 0;
22311 }
22312 _ACEOF
22313 rm -f conftest.$ac_objext
22314 if { (ac_try="$ac_compile"
22315 case "(($ac_try" in
22316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22317   *) ac_try_echo=$ac_try;;
22318 esac
22319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22320   (eval "$ac_compile") 2>conftest.er1
22321   ac_status=$?
22322   grep -v '^ *+' conftest.er1 >conftest.err
22323   rm -f conftest.er1
22324   cat conftest.err >&5
22325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326   (exit $ac_status); } && {
22327          test -z "$ac_c_werror_flag" ||
22328          test ! -s conftest.err
22329        } && test -s conftest.$ac_objext; then
22330   ac_cv_have_decl__snprintf=yes
22331 else
22332   echo "$as_me: failed program was:" >&5
22333 sed 's/^/| /' conftest.$ac_ext >&5
22334
22335         ac_cv_have_decl__snprintf=no
22336 fi
22337
22338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22339 fi
22340 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22341 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22342   if test $ac_cv_have_decl__snprintf = yes; then
22343     gt_value=1
22344   else
22345     gt_value=0
22346   fi
22347
22348 cat >>confdefs.h <<_ACEOF
22349 #define HAVE_DECL__SNPRINTF $gt_value
22350 _ACEOF
22351
22352
22353
22354   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22355 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22356 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22357   echo $ECHO_N "(cached) $ECHO_C" >&6
22358 else
22359   cat >conftest.$ac_ext <<_ACEOF
22360 /* confdefs.h.  */
22361 _ACEOF
22362 cat confdefs.h >>conftest.$ac_ext
22363 cat >>conftest.$ac_ext <<_ACEOF
22364 /* end confdefs.h.  */
22365 #include <stdio.h>
22366 int
22367 main ()
22368 {
22369
22370 #ifndef _snwprintf
22371   char *p = (char *) _snwprintf;
22372 #endif
22373
22374   ;
22375   return 0;
22376 }
22377 _ACEOF
22378 rm -f conftest.$ac_objext
22379 if { (ac_try="$ac_compile"
22380 case "(($ac_try" in
22381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22382   *) ac_try_echo=$ac_try;;
22383 esac
22384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22385   (eval "$ac_compile") 2>conftest.er1
22386   ac_status=$?
22387   grep -v '^ *+' conftest.er1 >conftest.err
22388   rm -f conftest.er1
22389   cat conftest.err >&5
22390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391   (exit $ac_status); } && {
22392          test -z "$ac_c_werror_flag" ||
22393          test ! -s conftest.err
22394        } && test -s conftest.$ac_objext; then
22395   ac_cv_have_decl__snwprintf=yes
22396 else
22397   echo "$as_me: failed program was:" >&5
22398 sed 's/^/| /' conftest.$ac_ext >&5
22399
22400         ac_cv_have_decl__snwprintf=no
22401 fi
22402
22403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22404 fi
22405 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22406 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22407   if test $ac_cv_have_decl__snwprintf = yes; then
22408     gt_value=1
22409   else
22410     gt_value=0
22411   fi
22412
22413 cat >>confdefs.h <<_ACEOF
22414 #define HAVE_DECL__SNWPRINTF $gt_value
22415 _ACEOF
22416
22417
22418
22419
22420   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22421 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22422 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22423   echo $ECHO_N "(cached) $ECHO_C" >&6
22424 else
22425   cat >conftest.$ac_ext <<_ACEOF
22426 /* confdefs.h.  */
22427 _ACEOF
22428 cat confdefs.h >>conftest.$ac_ext
22429 cat >>conftest.$ac_ext <<_ACEOF
22430 /* end confdefs.h.  */
22431 #include <stdio.h>
22432 int
22433 main ()
22434 {
22435
22436 #ifndef feof_unlocked
22437   char *p = (char *) feof_unlocked;
22438 #endif
22439
22440   ;
22441   return 0;
22442 }
22443 _ACEOF
22444 rm -f conftest.$ac_objext
22445 if { (ac_try="$ac_compile"
22446 case "(($ac_try" in
22447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22448   *) ac_try_echo=$ac_try;;
22449 esac
22450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22451   (eval "$ac_compile") 2>conftest.er1
22452   ac_status=$?
22453   grep -v '^ *+' conftest.er1 >conftest.err
22454   rm -f conftest.er1
22455   cat conftest.err >&5
22456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457   (exit $ac_status); } && {
22458          test -z "$ac_c_werror_flag" ||
22459          test ! -s conftest.err
22460        } && test -s conftest.$ac_objext; then
22461   ac_cv_have_decl_feof_unlocked=yes
22462 else
22463   echo "$as_me: failed program was:" >&5
22464 sed 's/^/| /' conftest.$ac_ext >&5
22465
22466         ac_cv_have_decl_feof_unlocked=no
22467 fi
22468
22469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22470 fi
22471 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22472 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22473   if test $ac_cv_have_decl_feof_unlocked = yes; then
22474     gt_value=1
22475   else
22476     gt_value=0
22477   fi
22478
22479 cat >>confdefs.h <<_ACEOF
22480 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22481 _ACEOF
22482
22483
22484
22485   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22486 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22487 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22488   echo $ECHO_N "(cached) $ECHO_C" >&6
22489 else
22490   cat >conftest.$ac_ext <<_ACEOF
22491 /* confdefs.h.  */
22492 _ACEOF
22493 cat confdefs.h >>conftest.$ac_ext
22494 cat >>conftest.$ac_ext <<_ACEOF
22495 /* end confdefs.h.  */
22496 #include <stdio.h>
22497 int
22498 main ()
22499 {
22500
22501 #ifndef fgets_unlocked
22502   char *p = (char *) fgets_unlocked;
22503 #endif
22504
22505   ;
22506   return 0;
22507 }
22508 _ACEOF
22509 rm -f conftest.$ac_objext
22510 if { (ac_try="$ac_compile"
22511 case "(($ac_try" in
22512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22513   *) ac_try_echo=$ac_try;;
22514 esac
22515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22516   (eval "$ac_compile") 2>conftest.er1
22517   ac_status=$?
22518   grep -v '^ *+' conftest.er1 >conftest.err
22519   rm -f conftest.er1
22520   cat conftest.err >&5
22521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522   (exit $ac_status); } && {
22523          test -z "$ac_c_werror_flag" ||
22524          test ! -s conftest.err
22525        } && test -s conftest.$ac_objext; then
22526   ac_cv_have_decl_fgets_unlocked=yes
22527 else
22528   echo "$as_me: failed program was:" >&5
22529 sed 's/^/| /' conftest.$ac_ext >&5
22530
22531         ac_cv_have_decl_fgets_unlocked=no
22532 fi
22533
22534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22535 fi
22536 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22537 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22538   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22539     gt_value=1
22540   else
22541     gt_value=0
22542   fi
22543
22544 cat >>confdefs.h <<_ACEOF
22545 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22546 _ACEOF
22547
22548
22549
22550   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22551 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22552 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22553   echo $ECHO_N "(cached) $ECHO_C" >&6
22554 else
22555   cat >conftest.$ac_ext <<_ACEOF
22556 /* confdefs.h.  */
22557 _ACEOF
22558 cat confdefs.h >>conftest.$ac_ext
22559 cat >>conftest.$ac_ext <<_ACEOF
22560 /* end confdefs.h.  */
22561 #include <stdio.h>
22562 int
22563 main ()
22564 {
22565
22566 #ifndef getc_unlocked
22567   char *p = (char *) getc_unlocked;
22568 #endif
22569
22570   ;
22571   return 0;
22572 }
22573 _ACEOF
22574 rm -f conftest.$ac_objext
22575 if { (ac_try="$ac_compile"
22576 case "(($ac_try" in
22577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22578   *) ac_try_echo=$ac_try;;
22579 esac
22580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22581   (eval "$ac_compile") 2>conftest.er1
22582   ac_status=$?
22583   grep -v '^ *+' conftest.er1 >conftest.err
22584   rm -f conftest.er1
22585   cat conftest.err >&5
22586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587   (exit $ac_status); } && {
22588          test -z "$ac_c_werror_flag" ||
22589          test ! -s conftest.err
22590        } && test -s conftest.$ac_objext; then
22591   ac_cv_have_decl_getc_unlocked=yes
22592 else
22593   echo "$as_me: failed program was:" >&5
22594 sed 's/^/| /' conftest.$ac_ext >&5
22595
22596         ac_cv_have_decl_getc_unlocked=no
22597 fi
22598
22599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22600 fi
22601 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22602 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22603   if test $ac_cv_have_decl_getc_unlocked = yes; then
22604     gt_value=1
22605   else
22606     gt_value=0
22607   fi
22608
22609 cat >>confdefs.h <<_ACEOF
22610 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22611 _ACEOF
22612
22613
22614
22615   case $gt_cv_func_printf_posix in
22616     *yes) HAVE_POSIX_PRINTF=1 ;;
22617     *) HAVE_POSIX_PRINTF=0 ;;
22618   esac
22619
22620   if test "$ac_cv_func_asprintf" = yes; then
22621     HAVE_ASPRINTF=1
22622   else
22623     HAVE_ASPRINTF=0
22624   fi
22625
22626   if test "$ac_cv_func_snprintf" = yes; then
22627     HAVE_SNPRINTF=1
22628   else
22629     HAVE_SNPRINTF=0
22630   fi
22631
22632   if test "$ac_cv_func_wprintf" = yes; then
22633     HAVE_WPRINTF=1
22634   else
22635     HAVE_WPRINTF=0
22636   fi
22637
22638
22639
22640
22641
22642
22643
22644           am_save_CPPFLAGS="$CPPFLAGS"
22645
22646   for element in $INCICONV; do
22647     haveit=
22648     for x in $CPPFLAGS; do
22649
22650   acl_save_prefix="$prefix"
22651   prefix="$acl_final_prefix"
22652   acl_save_exec_prefix="$exec_prefix"
22653   exec_prefix="$acl_final_exec_prefix"
22654   eval x=\"$x\"
22655   exec_prefix="$acl_save_exec_prefix"
22656   prefix="$acl_save_prefix"
22657
22658       if test "X$x" = "X$element"; then
22659         haveit=yes
22660         break
22661       fi
22662     done
22663     if test -z "$haveit"; then
22664       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22665     fi
22666   done
22667
22668
22669   { echo "$as_me:$LINENO: checking for iconv" >&5
22670 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22671 if test "${am_cv_func_iconv+set}" = set; then
22672   echo $ECHO_N "(cached) $ECHO_C" >&6
22673 else
22674
22675     am_cv_func_iconv="no, consider installing GNU libiconv"
22676     am_cv_lib_iconv=no
22677     cat >conftest.$ac_ext <<_ACEOF
22678 /* confdefs.h.  */
22679 _ACEOF
22680 cat confdefs.h >>conftest.$ac_ext
22681 cat >>conftest.$ac_ext <<_ACEOF
22682 /* end confdefs.h.  */
22683 #include <stdlib.h>
22684 #include <iconv.h>
22685 int
22686 main ()
22687 {
22688 iconv_t cd = iconv_open("","");
22689        iconv(cd,NULL,NULL,NULL,NULL);
22690        iconv_close(cd);
22691   ;
22692   return 0;
22693 }
22694 _ACEOF
22695 rm -f conftest.$ac_objext conftest$ac_exeext
22696 if { (ac_try="$ac_link"
22697 case "(($ac_try" in
22698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22699   *) ac_try_echo=$ac_try;;
22700 esac
22701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22702   (eval "$ac_link") 2>conftest.er1
22703   ac_status=$?
22704   grep -v '^ *+' conftest.er1 >conftest.err
22705   rm -f conftest.er1
22706   cat conftest.err >&5
22707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708   (exit $ac_status); } && {
22709          test -z "$ac_c_werror_flag" ||
22710          test ! -s conftest.err
22711        } && test -s conftest$ac_exeext &&
22712        $as_test_x conftest$ac_exeext; then
22713   am_cv_func_iconv=yes
22714 else
22715   echo "$as_me: failed program was:" >&5
22716 sed 's/^/| /' conftest.$ac_ext >&5
22717
22718
22719 fi
22720
22721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22722       conftest$ac_exeext conftest.$ac_ext
22723     if test "$am_cv_func_iconv" != yes; then
22724       am_save_LIBS="$LIBS"
22725       LIBS="$LIBS $LIBICONV"
22726       cat >conftest.$ac_ext <<_ACEOF
22727 /* confdefs.h.  */
22728 _ACEOF
22729 cat confdefs.h >>conftest.$ac_ext
22730 cat >>conftest.$ac_ext <<_ACEOF
22731 /* end confdefs.h.  */
22732 #include <stdlib.h>
22733 #include <iconv.h>
22734 int
22735 main ()
22736 {
22737 iconv_t cd = iconv_open("","");
22738          iconv(cd,NULL,NULL,NULL,NULL);
22739          iconv_close(cd);
22740   ;
22741   return 0;
22742 }
22743 _ACEOF
22744 rm -f conftest.$ac_objext conftest$ac_exeext
22745 if { (ac_try="$ac_link"
22746 case "(($ac_try" in
22747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22748   *) ac_try_echo=$ac_try;;
22749 esac
22750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22751   (eval "$ac_link") 2>conftest.er1
22752   ac_status=$?
22753   grep -v '^ *+' conftest.er1 >conftest.err
22754   rm -f conftest.er1
22755   cat conftest.err >&5
22756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757   (exit $ac_status); } && {
22758          test -z "$ac_c_werror_flag" ||
22759          test ! -s conftest.err
22760        } && test -s conftest$ac_exeext &&
22761        $as_test_x conftest$ac_exeext; then
22762   am_cv_lib_iconv=yes
22763         am_cv_func_iconv=yes
22764 else
22765   echo "$as_me: failed program was:" >&5
22766 sed 's/^/| /' conftest.$ac_ext >&5
22767
22768
22769 fi
22770
22771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22772       conftest$ac_exeext conftest.$ac_ext
22773       LIBS="$am_save_LIBS"
22774     fi
22775
22776 fi
22777 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22778 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22779   if test "$am_cv_func_iconv" = yes; then
22780
22781 cat >>confdefs.h <<\_ACEOF
22782 #define HAVE_ICONV 1
22783 _ACEOF
22784
22785   fi
22786   if test "$am_cv_lib_iconv" = yes; then
22787     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22788 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22789     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22790 echo "${ECHO_T}$LIBICONV" >&6; }
22791   else
22792             CPPFLAGS="$am_save_CPPFLAGS"
22793     LIBICONV=
22794     LTLIBICONV=
22795   fi
22796
22797
22798
22799   if test "$am_cv_func_iconv" = yes; then
22800     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22801 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22802     if test "${am_cv_proto_iconv+set}" = set; then
22803   echo $ECHO_N "(cached) $ECHO_C" >&6
22804 else
22805
22806       cat >conftest.$ac_ext <<_ACEOF
22807 /* confdefs.h.  */
22808 _ACEOF
22809 cat confdefs.h >>conftest.$ac_ext
22810 cat >>conftest.$ac_ext <<_ACEOF
22811 /* end confdefs.h.  */
22812
22813 #include <stdlib.h>
22814 #include <iconv.h>
22815 extern
22816 #ifdef __cplusplus
22817 "C"
22818 #endif
22819 #if defined(__STDC__) || defined(__cplusplus)
22820 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22821 #else
22822 size_t iconv();
22823 #endif
22824
22825 int
22826 main ()
22827 {
22828
22829   ;
22830   return 0;
22831 }
22832 _ACEOF
22833 rm -f conftest.$ac_objext
22834 if { (ac_try="$ac_compile"
22835 case "(($ac_try" in
22836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22837   *) ac_try_echo=$ac_try;;
22838 esac
22839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22840   (eval "$ac_compile") 2>conftest.er1
22841   ac_status=$?
22842   grep -v '^ *+' conftest.er1 >conftest.err
22843   rm -f conftest.er1
22844   cat conftest.err >&5
22845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846   (exit $ac_status); } && {
22847          test -z "$ac_c_werror_flag" ||
22848          test ! -s conftest.err
22849        } && test -s conftest.$ac_objext; then
22850   am_cv_proto_iconv_arg1=""
22851 else
22852   echo "$as_me: failed program was:" >&5
22853 sed 's/^/| /' conftest.$ac_ext >&5
22854
22855         am_cv_proto_iconv_arg1="const"
22856 fi
22857
22858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22859       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);"
22860 fi
22861
22862     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22863     { echo "$as_me:$LINENO: result: ${ac_t:-
22864          }$am_cv_proto_iconv" >&5
22865 echo "${ECHO_T}${ac_t:-
22866          }$am_cv_proto_iconv" >&6; }
22867
22868 cat >>confdefs.h <<_ACEOF
22869 #define ICONV_CONST $am_cv_proto_iconv_arg1
22870 _ACEOF
22871
22872   fi
22873
22874
22875   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22876 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22877 if test "${am_cv_langinfo_codeset+set}" = set; then
22878   echo $ECHO_N "(cached) $ECHO_C" >&6
22879 else
22880   cat >conftest.$ac_ext <<_ACEOF
22881 /* confdefs.h.  */
22882 _ACEOF
22883 cat confdefs.h >>conftest.$ac_ext
22884 cat >>conftest.$ac_ext <<_ACEOF
22885 /* end confdefs.h.  */
22886 #include <langinfo.h>
22887 int
22888 main ()
22889 {
22890 char* cs = nl_langinfo(CODESET);
22891   ;
22892   return 0;
22893 }
22894 _ACEOF
22895 rm -f conftest.$ac_objext conftest$ac_exeext
22896 if { (ac_try="$ac_link"
22897 case "(($ac_try" in
22898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22899   *) ac_try_echo=$ac_try;;
22900 esac
22901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22902   (eval "$ac_link") 2>conftest.er1
22903   ac_status=$?
22904   grep -v '^ *+' conftest.er1 >conftest.err
22905   rm -f conftest.er1
22906   cat conftest.err >&5
22907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908   (exit $ac_status); } && {
22909          test -z "$ac_c_werror_flag" ||
22910          test ! -s conftest.err
22911        } && test -s conftest$ac_exeext &&
22912        $as_test_x conftest$ac_exeext; then
22913   am_cv_langinfo_codeset=yes
22914 else
22915   echo "$as_me: failed program was:" >&5
22916 sed 's/^/| /' conftest.$ac_ext >&5
22917
22918         am_cv_langinfo_codeset=no
22919 fi
22920
22921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22922       conftest$ac_exeext conftest.$ac_ext
22923
22924 fi
22925 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22926 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22927   if test $am_cv_langinfo_codeset = yes; then
22928
22929 cat >>confdefs.h <<\_ACEOF
22930 #define HAVE_LANGINFO_CODESET 1
22931 _ACEOF
22932
22933   fi
22934
22935   if test $ac_cv_header_locale_h = yes; then
22936
22937   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22938 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22939 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22940   echo $ECHO_N "(cached) $ECHO_C" >&6
22941 else
22942   cat >conftest.$ac_ext <<_ACEOF
22943 /* confdefs.h.  */
22944 _ACEOF
22945 cat confdefs.h >>conftest.$ac_ext
22946 cat >>conftest.$ac_ext <<_ACEOF
22947 /* end confdefs.h.  */
22948 #include <locale.h>
22949 int
22950 main ()
22951 {
22952 return LC_MESSAGES
22953   ;
22954   return 0;
22955 }
22956 _ACEOF
22957 rm -f conftest.$ac_objext conftest$ac_exeext
22958 if { (ac_try="$ac_link"
22959 case "(($ac_try" in
22960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22961   *) ac_try_echo=$ac_try;;
22962 esac
22963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22964   (eval "$ac_link") 2>conftest.er1
22965   ac_status=$?
22966   grep -v '^ *+' conftest.er1 >conftest.err
22967   rm -f conftest.er1
22968   cat conftest.err >&5
22969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970   (exit $ac_status); } && {
22971          test -z "$ac_c_werror_flag" ||
22972          test ! -s conftest.err
22973        } && test -s conftest$ac_exeext &&
22974        $as_test_x conftest$ac_exeext; then
22975   gt_cv_val_LC_MESSAGES=yes
22976 else
22977   echo "$as_me: failed program was:" >&5
22978 sed 's/^/| /' conftest.$ac_ext >&5
22979
22980         gt_cv_val_LC_MESSAGES=no
22981 fi
22982
22983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22984       conftest$ac_exeext conftest.$ac_ext
22985 fi
22986 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
22987 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
22988   if test $gt_cv_val_LC_MESSAGES = yes; then
22989
22990 cat >>confdefs.h <<\_ACEOF
22991 #define HAVE_LC_MESSAGES 1
22992 _ACEOF
22993
22994   fi
22995
22996   fi
22997
22998   if test -n "$INTL_MACOSX_LIBS"; then
22999     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23000   fi
23001
23002                       for ac_prog in bison
23003 do
23004   # Extract the first word of "$ac_prog", so it can be a program name with args.
23005 set dummy $ac_prog; ac_word=$2
23006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23008 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23009   echo $ECHO_N "(cached) $ECHO_C" >&6
23010 else
23011   if test -n "$INTLBISON"; then
23012   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23013 else
23014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23015 for as_dir in $PATH
23016 do
23017   IFS=$as_save_IFS
23018   test -z "$as_dir" && as_dir=.
23019   for ac_exec_ext in '' $ac_executable_extensions; do
23020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23021     ac_cv_prog_INTLBISON="$ac_prog"
23022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23023     break 2
23024   fi
23025 done
23026 done
23027 IFS=$as_save_IFS
23028
23029 fi
23030 fi
23031 INTLBISON=$ac_cv_prog_INTLBISON
23032 if test -n "$INTLBISON"; then
23033   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23034 echo "${ECHO_T}$INTLBISON" >&6; }
23035 else
23036   { echo "$as_me:$LINENO: result: no" >&5
23037 echo "${ECHO_T}no" >&6; }
23038 fi
23039
23040
23041   test -n "$INTLBISON" && break
23042 done
23043
23044   if test -z "$INTLBISON"; then
23045     ac_verc_fail=yes
23046   else
23047         { echo "$as_me:$LINENO: checking version of bison" >&5
23048 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23049     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23050     case $ac_prog_version in
23051       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23052       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23053          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23054       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23055     esac
23056     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23057 echo "${ECHO_T}$ac_prog_version" >&6; }
23058   fi
23059   if test $ac_verc_fail = yes; then
23060     INTLBISON=:
23061   fi
23062
23063
23064
23065
23066
23067
23068
23069
23070
23071
23072
23073
23074
23075
23076
23077
23078     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23079 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23080 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23081   echo $ECHO_N "(cached) $ECHO_C" >&6
23082 else
23083   gt_save_CPPFLAGS="$CPPFLAGS"
23084      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23085      gt_save_LIBS="$LIBS"
23086      LIBS="$LIBS -framework CoreFoundation"
23087      cat >conftest.$ac_ext <<_ACEOF
23088 /* confdefs.h.  */
23089 _ACEOF
23090 cat confdefs.h >>conftest.$ac_ext
23091 cat >>conftest.$ac_ext <<_ACEOF
23092 /* end confdefs.h.  */
23093 #include <CFPreferences.h>
23094 int
23095 main ()
23096 {
23097 CFPreferencesCopyAppValue(NULL, NULL)
23098   ;
23099   return 0;
23100 }
23101 _ACEOF
23102 rm -f conftest.$ac_objext conftest$ac_exeext
23103 if { (ac_try="$ac_link"
23104 case "(($ac_try" in
23105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23106   *) ac_try_echo=$ac_try;;
23107 esac
23108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23109   (eval "$ac_link") 2>conftest.er1
23110   ac_status=$?
23111   grep -v '^ *+' conftest.er1 >conftest.err
23112   rm -f conftest.er1
23113   cat conftest.err >&5
23114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115   (exit $ac_status); } && {
23116          test -z "$ac_c_werror_flag" ||
23117          test ! -s conftest.err
23118        } && test -s conftest$ac_exeext &&
23119        $as_test_x conftest$ac_exeext; then
23120   gt_cv_func_CFPreferencesCopyAppValue=yes
23121 else
23122   echo "$as_me: failed program was:" >&5
23123 sed 's/^/| /' conftest.$ac_ext >&5
23124
23125         gt_cv_func_CFPreferencesCopyAppValue=no
23126 fi
23127
23128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23129       conftest$ac_exeext conftest.$ac_ext
23130      CPPFLAGS="$gt_save_CPPFLAGS"
23131      LIBS="$gt_save_LIBS"
23132 fi
23133 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23134 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23135   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23136
23137 cat >>confdefs.h <<\_ACEOF
23138 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23139 _ACEOF
23140
23141   fi
23142     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23143 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23144 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23145   echo $ECHO_N "(cached) $ECHO_C" >&6
23146 else
23147   gt_save_CPPFLAGS="$CPPFLAGS"
23148      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23149      gt_save_LIBS="$LIBS"
23150      LIBS="$LIBS -framework CoreFoundation"
23151      cat >conftest.$ac_ext <<_ACEOF
23152 /* confdefs.h.  */
23153 _ACEOF
23154 cat confdefs.h >>conftest.$ac_ext
23155 cat >>conftest.$ac_ext <<_ACEOF
23156 /* end confdefs.h.  */
23157 #include <CFLocale.h>
23158 int
23159 main ()
23160 {
23161 CFLocaleCopyCurrent();
23162   ;
23163   return 0;
23164 }
23165 _ACEOF
23166 rm -f conftest.$ac_objext conftest$ac_exeext
23167 if { (ac_try="$ac_link"
23168 case "(($ac_try" in
23169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23170   *) ac_try_echo=$ac_try;;
23171 esac
23172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23173   (eval "$ac_link") 2>conftest.er1
23174   ac_status=$?
23175   grep -v '^ *+' conftest.er1 >conftest.err
23176   rm -f conftest.er1
23177   cat conftest.err >&5
23178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23179   (exit $ac_status); } && {
23180          test -z "$ac_c_werror_flag" ||
23181          test ! -s conftest.err
23182        } && test -s conftest$ac_exeext &&
23183        $as_test_x conftest$ac_exeext; then
23184   gt_cv_func_CFLocaleCopyCurrent=yes
23185 else
23186   echo "$as_me: failed program was:" >&5
23187 sed 's/^/| /' conftest.$ac_ext >&5
23188
23189         gt_cv_func_CFLocaleCopyCurrent=no
23190 fi
23191
23192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23193       conftest$ac_exeext conftest.$ac_ext
23194      CPPFLAGS="$gt_save_CPPFLAGS"
23195      LIBS="$gt_save_LIBS"
23196 fi
23197 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23198 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23199   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23200
23201 cat >>confdefs.h <<\_ACEOF
23202 #define HAVE_CFLOCALECOPYCURRENT 1
23203 _ACEOF
23204
23205   fi
23206   INTL_MACOSX_LIBS=
23207   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23208     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23209   fi
23210
23211
23212
23213
23214   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23215 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23216     # Check whether --enable-nls was given.
23217 if test "${enable_nls+set}" = set; then
23218   enableval=$enable_nls; USE_NLS=$enableval
23219 else
23220   USE_NLS=yes
23221 fi
23222
23223   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23224 echo "${ECHO_T}$USE_NLS" >&6; }
23225
23226
23227
23228
23229     BUILD_INCLUDED_LIBINTL=no
23230     USE_INCLUDED_LIBINTL=no
23231
23232   LIBINTL=
23233   LTLIBINTL=
23234   POSUB=
23235
23236     if test "$USE_NLS" = "yes"; then
23237     gt_use_preinstalled_gnugettext=no
23238
23239       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23240 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23241
23242 # Check whether --with-included-gettext was given.
23243 if test "${with_included_gettext+set}" = set; then
23244   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23245 else
23246   nls_cv_force_use_gnu_gettext=no
23247 fi
23248
23249       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23250 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23251
23252       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23253       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23254
23255
23256
23257
23258
23259
23260         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23261 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23262 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23263   echo $ECHO_N "(cached) $ECHO_C" >&6
23264 else
23265   cat >conftest.$ac_ext <<_ACEOF
23266 /* confdefs.h.  */
23267 _ACEOF
23268 cat confdefs.h >>conftest.$ac_ext
23269 cat >>conftest.$ac_ext <<_ACEOF
23270 /* end confdefs.h.  */
23271 #include <libintl.h>
23272 extern int _nl_msg_cat_cntr;
23273 extern int *_nl_domain_bindings;
23274 int
23275 main ()
23276 {
23277 bindtextdomain ("", "");
23278 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23279   ;
23280   return 0;
23281 }
23282 _ACEOF
23283 rm -f conftest.$ac_objext conftest$ac_exeext
23284 if { (ac_try="$ac_link"
23285 case "(($ac_try" in
23286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23287   *) ac_try_echo=$ac_try;;
23288 esac
23289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23290   (eval "$ac_link") 2>conftest.er1
23291   ac_status=$?
23292   grep -v '^ *+' conftest.er1 >conftest.err
23293   rm -f conftest.er1
23294   cat conftest.err >&5
23295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296   (exit $ac_status); } && {
23297          test -z "$ac_c_werror_flag" ||
23298          test ! -s conftest.err
23299        } && test -s conftest$ac_exeext &&
23300        $as_test_x conftest$ac_exeext; then
23301   gt_cv_func_gnugettext1_libc=yes
23302 else
23303   echo "$as_me: failed program was:" >&5
23304 sed 's/^/| /' conftest.$ac_ext >&5
23305
23306         gt_cv_func_gnugettext1_libc=no
23307 fi
23308
23309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23310       conftest$ac_exeext conftest.$ac_ext
23311 fi
23312 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23313 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23314
23315         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23316
23317
23318
23319     use_additional=yes
23320
23321   acl_save_prefix="$prefix"
23322   prefix="$acl_final_prefix"
23323   acl_save_exec_prefix="$exec_prefix"
23324   exec_prefix="$acl_final_exec_prefix"
23325
23326     eval additional_includedir=\"$includedir\"
23327     eval additional_libdir=\"$libdir\"
23328
23329   exec_prefix="$acl_save_exec_prefix"
23330   prefix="$acl_save_prefix"
23331
23332
23333 # Check whether --with-libintl-prefix was given.
23334 if test "${with_libintl_prefix+set}" = set; then
23335   withval=$with_libintl_prefix;
23336     if test "X$withval" = "Xno"; then
23337       use_additional=no
23338     else
23339       if test "X$withval" = "X"; then
23340
23341   acl_save_prefix="$prefix"
23342   prefix="$acl_final_prefix"
23343   acl_save_exec_prefix="$exec_prefix"
23344   exec_prefix="$acl_final_exec_prefix"
23345
23346           eval additional_includedir=\"$includedir\"
23347           eval additional_libdir=\"$libdir\"
23348
23349   exec_prefix="$acl_save_exec_prefix"
23350   prefix="$acl_save_prefix"
23351
23352       else
23353         additional_includedir="$withval/include"
23354         additional_libdir="$withval/lib"
23355       fi
23356     fi
23357
23358 fi
23359
23360       LIBINTL=
23361   LTLIBINTL=
23362   INCINTL=
23363   rpathdirs=
23364   ltrpathdirs=
23365   names_already_handled=
23366   names_next_round='intl '
23367   while test -n "$names_next_round"; do
23368     names_this_round="$names_next_round"
23369     names_next_round=
23370     for name in $names_this_round; do
23371       already_handled=
23372       for n in $names_already_handled; do
23373         if test "$n" = "$name"; then
23374           already_handled=yes
23375           break
23376         fi
23377       done
23378       if test -z "$already_handled"; then
23379         names_already_handled="$names_already_handled $name"
23380                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23381         eval value=\"\$HAVE_LIB$uppername\"
23382         if test -n "$value"; then
23383           if test "$value" = yes; then
23384             eval value=\"\$LIB$uppername\"
23385             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23386             eval value=\"\$LTLIB$uppername\"
23387             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23388           else
23389                                     :
23390           fi
23391         else
23392                               found_dir=
23393           found_la=
23394           found_so=
23395           found_a=
23396           if test $use_additional = yes; then
23397             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23398               found_dir="$additional_libdir"
23399               found_so="$additional_libdir/lib$name.$shlibext"
23400               if test -f "$additional_libdir/lib$name.la"; then
23401                 found_la="$additional_libdir/lib$name.la"
23402               fi
23403             else
23404               if test -f "$additional_libdir/lib$name.$libext"; then
23405                 found_dir="$additional_libdir"
23406                 found_a="$additional_libdir/lib$name.$libext"
23407                 if test -f "$additional_libdir/lib$name.la"; then
23408                   found_la="$additional_libdir/lib$name.la"
23409                 fi
23410               fi
23411             fi
23412           fi
23413           if test "X$found_dir" = "X"; then
23414             for x in $LDFLAGS $LTLIBINTL; do
23415
23416   acl_save_prefix="$prefix"
23417   prefix="$acl_final_prefix"
23418   acl_save_exec_prefix="$exec_prefix"
23419   exec_prefix="$acl_final_exec_prefix"
23420   eval x=\"$x\"
23421   exec_prefix="$acl_save_exec_prefix"
23422   prefix="$acl_save_prefix"
23423
23424               case "$x" in
23425                 -L*)
23426                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23427                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23428                     found_dir="$dir"
23429                     found_so="$dir/lib$name.$shlibext"
23430                     if test -f "$dir/lib$name.la"; then
23431                       found_la="$dir/lib$name.la"
23432                     fi
23433                   else
23434                     if test -f "$dir/lib$name.$libext"; then
23435                       found_dir="$dir"
23436                       found_a="$dir/lib$name.$libext"
23437                       if test -f "$dir/lib$name.la"; then
23438                         found_la="$dir/lib$name.la"
23439                       fi
23440                     fi
23441                   fi
23442                   ;;
23443               esac
23444               if test "X$found_dir" != "X"; then
23445                 break
23446               fi
23447             done
23448           fi
23449           if test "X$found_dir" != "X"; then
23450                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23451             if test "X$found_so" != "X"; then
23452                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23453                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23454               else
23455                                                                                 haveit=
23456                 for x in $ltrpathdirs; do
23457                   if test "X$x" = "X$found_dir"; then
23458                     haveit=yes
23459                     break
23460                   fi
23461                 done
23462                 if test -z "$haveit"; then
23463                   ltrpathdirs="$ltrpathdirs $found_dir"
23464                 fi
23465                                 if test "$hardcode_direct" = yes; then
23466                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23467                 else
23468                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23469                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23470                                                             haveit=
23471                     for x in $rpathdirs; do
23472                       if test "X$x" = "X$found_dir"; then
23473                         haveit=yes
23474                         break
23475                       fi
23476                     done
23477                     if test -z "$haveit"; then
23478                       rpathdirs="$rpathdirs $found_dir"
23479                     fi
23480                   else
23481                                                                                 haveit=
23482                     for x in $LDFLAGS $LIBINTL; do
23483
23484   acl_save_prefix="$prefix"
23485   prefix="$acl_final_prefix"
23486   acl_save_exec_prefix="$exec_prefix"
23487   exec_prefix="$acl_final_exec_prefix"
23488   eval x=\"$x\"
23489   exec_prefix="$acl_save_exec_prefix"
23490   prefix="$acl_save_prefix"
23491
23492                       if test "X$x" = "X-L$found_dir"; then
23493                         haveit=yes
23494                         break
23495                       fi
23496                     done
23497                     if test -z "$haveit"; then
23498                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23499                     fi
23500                     if test "$hardcode_minus_L" != no; then
23501                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23502                     else
23503                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23504                     fi
23505                   fi
23506                 fi
23507               fi
23508             else
23509               if test "X$found_a" != "X"; then
23510                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23511               else
23512                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23513               fi
23514             fi
23515                         additional_includedir=
23516             case "$found_dir" in
23517               */lib | */lib/)
23518                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23519                 additional_includedir="$basedir/include"
23520                 ;;
23521             esac
23522             if test "X$additional_includedir" != "X"; then
23523                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23524                 haveit=
23525                 if test "X$additional_includedir" = "X/usr/local/include"; then
23526                   if test -n "$GCC"; then
23527                     case $host_os in
23528                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23529                     esac
23530                   fi
23531                 fi
23532                 if test -z "$haveit"; then
23533                   for x in $CPPFLAGS $INCINTL; do
23534
23535   acl_save_prefix="$prefix"
23536   prefix="$acl_final_prefix"
23537   acl_save_exec_prefix="$exec_prefix"
23538   exec_prefix="$acl_final_exec_prefix"
23539   eval x=\"$x\"
23540   exec_prefix="$acl_save_exec_prefix"
23541   prefix="$acl_save_prefix"
23542
23543                     if test "X$x" = "X-I$additional_includedir"; then
23544                       haveit=yes
23545                       break
23546                     fi
23547                   done
23548                   if test -z "$haveit"; then
23549                     if test -d "$additional_includedir"; then
23550                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23551                     fi
23552                   fi
23553                 fi
23554               fi
23555             fi
23556                         if test -n "$found_la"; then
23557                                                         save_libdir="$libdir"
23558               case "$found_la" in
23559                 */* | *\\*) . "$found_la" ;;
23560                 *) . "./$found_la" ;;
23561               esac
23562               libdir="$save_libdir"
23563                             for dep in $dependency_libs; do
23564                 case "$dep" in
23565                   -L*)
23566                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23567                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23568                       haveit=
23569                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23570                         if test -n "$GCC"; then
23571                           case $host_os in
23572                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23573                           esac
23574                         fi
23575                       fi
23576                       if test -z "$haveit"; then
23577                         haveit=
23578                         for x in $LDFLAGS $LIBINTL; do
23579
23580   acl_save_prefix="$prefix"
23581   prefix="$acl_final_prefix"
23582   acl_save_exec_prefix="$exec_prefix"
23583   exec_prefix="$acl_final_exec_prefix"
23584   eval x=\"$x\"
23585   exec_prefix="$acl_save_exec_prefix"
23586   prefix="$acl_save_prefix"
23587
23588                           if test "X$x" = "X-L$additional_libdir"; then
23589                             haveit=yes
23590                             break
23591                           fi
23592                         done
23593                         if test -z "$haveit"; then
23594                           if test -d "$additional_libdir"; then
23595                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23596                           fi
23597                         fi
23598                         haveit=
23599                         for x in $LDFLAGS $LTLIBINTL; do
23600
23601   acl_save_prefix="$prefix"
23602   prefix="$acl_final_prefix"
23603   acl_save_exec_prefix="$exec_prefix"
23604   exec_prefix="$acl_final_exec_prefix"
23605   eval x=\"$x\"
23606   exec_prefix="$acl_save_exec_prefix"
23607   prefix="$acl_save_prefix"
23608
23609                           if test "X$x" = "X-L$additional_libdir"; then
23610                             haveit=yes
23611                             break
23612                           fi
23613                         done
23614                         if test -z "$haveit"; then
23615                           if test -d "$additional_libdir"; then
23616                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23617                           fi
23618                         fi
23619                       fi
23620                     fi
23621                     ;;
23622                   -R*)
23623                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23624                     if test "$enable_rpath" != no; then
23625                                                                   haveit=
23626                       for x in $rpathdirs; do
23627                         if test "X$x" = "X$dir"; then
23628                           haveit=yes
23629                           break
23630                         fi
23631                       done
23632                       if test -z "$haveit"; then
23633                         rpathdirs="$rpathdirs $dir"
23634                       fi
23635                                                                   haveit=
23636                       for x in $ltrpathdirs; do
23637                         if test "X$x" = "X$dir"; then
23638                           haveit=yes
23639                           break
23640                         fi
23641                       done
23642                       if test -z "$haveit"; then
23643                         ltrpathdirs="$ltrpathdirs $dir"
23644                       fi
23645                     fi
23646                     ;;
23647                   -l*)
23648                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23649                     ;;
23650                   *.la)
23651                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23652                     ;;
23653                   *)
23654                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23655                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23656                     ;;
23657                 esac
23658               done
23659             fi
23660           else
23661                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23662             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23663           fi
23664         fi
23665       fi
23666     done
23667   done
23668   if test "X$rpathdirs" != "X"; then
23669     if test -n "$hardcode_libdir_separator"; then
23670                         alldirs=
23671       for found_dir in $rpathdirs; do
23672         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23673       done
23674             acl_save_libdir="$libdir"
23675       libdir="$alldirs"
23676       eval flag=\"$hardcode_libdir_flag_spec\"
23677       libdir="$acl_save_libdir"
23678       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23679     else
23680             for found_dir in $rpathdirs; do
23681         acl_save_libdir="$libdir"
23682         libdir="$found_dir"
23683         eval flag=\"$hardcode_libdir_flag_spec\"
23684         libdir="$acl_save_libdir"
23685         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23686       done
23687     fi
23688   fi
23689   if test "X$ltrpathdirs" != "X"; then
23690             for found_dir in $ltrpathdirs; do
23691       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23692     done
23693   fi
23694
23695           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23696 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23697 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23698   echo $ECHO_N "(cached) $ECHO_C" >&6
23699 else
23700   gt_save_CPPFLAGS="$CPPFLAGS"
23701             CPPFLAGS="$CPPFLAGS $INCINTL"
23702             gt_save_LIBS="$LIBS"
23703             LIBS="$LIBS $LIBINTL"
23704                         cat >conftest.$ac_ext <<_ACEOF
23705 /* confdefs.h.  */
23706 _ACEOF
23707 cat confdefs.h >>conftest.$ac_ext
23708 cat >>conftest.$ac_ext <<_ACEOF
23709 /* end confdefs.h.  */
23710 #include <libintl.h>
23711 extern int _nl_msg_cat_cntr;
23712 extern
23713 #ifdef __cplusplus
23714 "C"
23715 #endif
23716 const char *_nl_expand_alias (const char *);
23717 int
23718 main ()
23719 {
23720 bindtextdomain ("", "");
23721 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23722   ;
23723   return 0;
23724 }
23725 _ACEOF
23726 rm -f conftest.$ac_objext conftest$ac_exeext
23727 if { (ac_try="$ac_link"
23728 case "(($ac_try" in
23729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23730   *) ac_try_echo=$ac_try;;
23731 esac
23732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23733   (eval "$ac_link") 2>conftest.er1
23734   ac_status=$?
23735   grep -v '^ *+' conftest.er1 >conftest.err
23736   rm -f conftest.er1
23737   cat conftest.err >&5
23738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739   (exit $ac_status); } && {
23740          test -z "$ac_c_werror_flag" ||
23741          test ! -s conftest.err
23742        } && test -s conftest$ac_exeext &&
23743        $as_test_x conftest$ac_exeext; then
23744   gt_cv_func_gnugettext1_libintl=yes
23745 else
23746   echo "$as_me: failed program was:" >&5
23747 sed 's/^/| /' conftest.$ac_ext >&5
23748
23749         gt_cv_func_gnugettext1_libintl=no
23750 fi
23751
23752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23753       conftest$ac_exeext conftest.$ac_ext
23754                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23755               LIBS="$LIBS $LIBICONV"
23756               cat >conftest.$ac_ext <<_ACEOF
23757 /* confdefs.h.  */
23758 _ACEOF
23759 cat confdefs.h >>conftest.$ac_ext
23760 cat >>conftest.$ac_ext <<_ACEOF
23761 /* end confdefs.h.  */
23762 #include <libintl.h>
23763 extern int _nl_msg_cat_cntr;
23764 extern
23765 #ifdef __cplusplus
23766 "C"
23767 #endif
23768 const char *_nl_expand_alias (const char *);
23769 int
23770 main ()
23771 {
23772 bindtextdomain ("", "");
23773 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23774   ;
23775   return 0;
23776 }
23777 _ACEOF
23778 rm -f conftest.$ac_objext conftest$ac_exeext
23779 if { (ac_try="$ac_link"
23780 case "(($ac_try" in
23781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23782   *) ac_try_echo=$ac_try;;
23783 esac
23784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23785   (eval "$ac_link") 2>conftest.er1
23786   ac_status=$?
23787   grep -v '^ *+' conftest.er1 >conftest.err
23788   rm -f conftest.er1
23789   cat conftest.err >&5
23790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791   (exit $ac_status); } && {
23792          test -z "$ac_c_werror_flag" ||
23793          test ! -s conftest.err
23794        } && test -s conftest$ac_exeext &&
23795        $as_test_x conftest$ac_exeext; then
23796   LIBINTL="$LIBINTL $LIBICONV"
23797                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23798                 gt_cv_func_gnugettext1_libintl=yes
23799
23800 else
23801   echo "$as_me: failed program was:" >&5
23802 sed 's/^/| /' conftest.$ac_ext >&5
23803
23804
23805 fi
23806
23807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23808       conftest$ac_exeext conftest.$ac_ext
23809             fi
23810             CPPFLAGS="$gt_save_CPPFLAGS"
23811             LIBS="$gt_save_LIBS"
23812 fi
23813 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23814 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23815         fi
23816
23817                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23818            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23819                 && test "$PACKAGE" != gettext-runtime \
23820                 && test "$PACKAGE" != gettext-tools; }; then
23821           gt_use_preinstalled_gnugettext=yes
23822         else
23823                     LIBINTL=
23824           LTLIBINTL=
23825           INCINTL=
23826         fi
23827
23828
23829         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23830                               nls_cv_use_gnu_gettext=yes
23831         fi
23832       fi
23833
23834       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23835                 BUILD_INCLUDED_LIBINTL=yes
23836         USE_INCLUDED_LIBINTL=yes
23837         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23838         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23839         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23840       fi
23841
23842       CATOBJEXT=
23843       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23844          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23845                 CATOBJEXT=.gmo
23846       fi
23847
23848
23849     if test -n "$INTL_MACOSX_LIBS"; then
23850       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23851          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23852                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23853         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23854       fi
23855     fi
23856
23857     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23858        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23859
23860 cat >>confdefs.h <<\_ACEOF
23861 #define ENABLE_NLS 1
23862 _ACEOF
23863
23864     else
23865       USE_NLS=no
23866     fi
23867   fi
23868
23869   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23870 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23871   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23872 echo "${ECHO_T}$USE_NLS" >&6; }
23873   if test "$USE_NLS" = "yes"; then
23874     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23875 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23876     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23877       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23878         gt_source="external libintl"
23879       else
23880         gt_source="libc"
23881       fi
23882     else
23883       gt_source="included intl directory"
23884     fi
23885     { echo "$as_me:$LINENO: result: $gt_source" >&5
23886 echo "${ECHO_T}$gt_source" >&6; }
23887   fi
23888
23889   if test "$USE_NLS" = "yes"; then
23890
23891     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23892       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23893         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23894 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23895         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23896 echo "${ECHO_T}$LIBINTL" >&6; }
23897
23898   for element in $INCINTL; do
23899     haveit=
23900     for x in $CPPFLAGS; do
23901
23902   acl_save_prefix="$prefix"
23903   prefix="$acl_final_prefix"
23904   acl_save_exec_prefix="$exec_prefix"
23905   exec_prefix="$acl_final_exec_prefix"
23906   eval x=\"$x\"
23907   exec_prefix="$acl_save_exec_prefix"
23908   prefix="$acl_save_prefix"
23909
23910       if test "X$x" = "X$element"; then
23911         haveit=yes
23912         break
23913       fi
23914     done
23915     if test -z "$haveit"; then
23916       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23917     fi
23918   done
23919
23920       fi
23921
23922
23923 cat >>confdefs.h <<\_ACEOF
23924 #define HAVE_GETTEXT 1
23925 _ACEOF
23926
23927
23928 cat >>confdefs.h <<\_ACEOF
23929 #define HAVE_DCGETTEXT 1
23930 _ACEOF
23931
23932     fi
23933
23934         POSUB=po
23935   fi
23936
23937
23938             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23939       BUILD_INCLUDED_LIBINTL=yes
23940     fi
23941
23942
23943
23944
23945
23946         nls_cv_header_intl=
23947     nls_cv_header_libgt=
23948
23949         DATADIRNAME=share
23950
23951
23952         INSTOBJEXT=.mo
23953
23954
23955         GENCAT=gencat
23956
23957
23958         INTLOBJS=
23959     if test "$USE_INCLUDED_LIBINTL" = yes; then
23960       INTLOBJS="\$(GETTOBJS)"
23961     fi
23962
23963
23964         INTL_LIBTOOL_SUFFIX_PREFIX=
23965
23966
23967
23968     INTLLIBS="$LIBINTL"
23969
23970
23971
23972
23973
23974
23975 fi
23976
23977 support_mysql=no
23978 support_sqlite=no
23979 support_sqlite3=no
23980 support_postgresql=no
23981 support_ingres=no
23982 support_dbi=no
23983 support_smartalloc=yes
23984 support_readline=yes
23985 support_conio=yes
23986 support_gnome=no
23987 support_bat=no
23988 support_wx_console=no
23989 support_tray_monitor=no
23990 support_tls=no
23991 support_crypto=no
23992 gnome_version=
23993 wx_version=
23994 support_static_tools=no
23995 support_static_fd=no
23996 support_static_sd=no
23997 support_static_dir=no
23998 support_static_cons=no
23999 support_python=no
24000 build_client_only=no
24001 build_dird=yes
24002 build_stored=yes
24003 cats=
24004 db_type=Internal
24005 support_lockmgr=no
24006 DB_TYPE=bdb
24007
24008
24009 # Check whether --enable-gnome was given.
24010 if test "${enable_gnome+set}" = set; then
24011   enableval=$enable_gnome;
24012        if test x$enableval = xyes; then
24013           support_gnome=yes
24014        fi
24015
24016
24017 fi
24018
24019
24020 GNOME_DIR=
24021 if test x$support_gnome = xyes; then
24022    { { echo "$as_me:$LINENO: error: bgnome-console no longer supported" >&5
24023 echo "$as_me: error: bgnome-console no longer supported" >&2;}
24024    { (exit 1); exit 1; }; }
24025    { { echo "$as_me:$LINENO: error: --enable-gnome option no longer supported" >&5
24026 echo "$as_me: error: --enable-gnome option no longer supported" >&2;}
24027    { (exit 1); exit 1; }; }
24028 fi
24029 # AC_SUBST(GNOME_DIR)
24030
24031 # Check whether --enable-bat was given.
24032 if test "${enable_bat+set}" = set; then
24033   enableval=$enable_bat;
24034        if test x$enableval = xyes; then
24035
24036 cat >>confdefs.h <<\_ACEOF
24037 #define HAVE_BAT 1
24038 _ACEOF
24039
24040           support_bat=yes
24041        fi
24042
24043
24044 fi
24045
24046
24047 BAT_DIR=
24048 if test x$support_bat = xyes; then
24049    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24050    pkg=$?
24051    if test $pkg = 0; then
24052       BAT_DIR=src/qt-console
24053    else
24054       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24055 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24056    { (exit 1); exit 1; }; }
24057    fi
24058 fi
24059
24060 got_qwt=no
24061 QWT_INC=
24062 QWT_LDFLAGS=
24063 QWT_LIB=
24064 QWT=
24065 no_qwt=no
24066
24067
24068
24069
24070
24071
24072
24073
24074 # Check whether --enable-bwx-console was given.
24075 if test "${enable_bwx_console+set}" = set; then
24076   enableval=$enable_bwx_console;
24077        if test x$enableval = xyes; then
24078           support_wx_console=yes
24079        fi
24080
24081
24082 fi
24083
24084
24085 WX_DIR=
24086 if test x$support_wx_console = xyes; then
24087    abc=`$WXCONFIG $WXFLAGS --cppflags`
24088    pkg=$?
24089    if test $pkg = 0; then
24090       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24091       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24092       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24093
24094
24095
24096       WX_DIR="src/wx-console"
24097    else
24098       echo " "
24099       echo "wx-config program not found. bwx-console disabled."
24100       echo " "
24101       support_wx_console=no
24102    fi
24103 fi
24104
24105
24106 # Check whether --enable-tray-monitor was given.
24107 if test "${enable_tray_monitor+set}" = set; then
24108   enableval=$enable_tray_monitor;
24109        if test x$enableval = xyes; then
24110           support_tray_monitor=yes
24111        fi
24112
24113
24114 fi
24115
24116
24117 TRAY_MONITOR_DIR=
24118 if test x$support_tray_monitor = xyes; then
24119    abc=`$PKGCONFIG --exists gtk+-2.0`
24120    pkg=$?
24121    if test $pkg = 0; then
24122       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24123       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24124
24125
24126       TRAY_MONITOR_DIR=src/tray-monitor
24127       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24128       pkg=$?
24129       if test $pkg = 0; then
24130
24131 cat >>confdefs.h <<\_ACEOF
24132 #define HAVE_GTK_2_4 1
24133 _ACEOF
24134
24135       fi
24136    fi
24137 fi
24138
24139
24140 # Check whether --enable-smartalloc was given.
24141 if test "${enable_smartalloc+set}" = set; then
24142   enableval=$enable_smartalloc;
24143        if test x$enableval = xno; then
24144           support_smartalloc=no
24145        fi
24146
24147
24148 fi
24149
24150
24151 if test x$support_smartalloc = xyes; then
24152
24153 cat >>confdefs.h <<\_ACEOF
24154 #define SMARTALLOC 1
24155 _ACEOF
24156
24157 fi
24158
24159 # Check whether --enable-lockmgr was given.
24160 if test "${enable_lockmgr+set}" = set; then
24161   enableval=$enable_lockmgr;
24162        if test x$enableval = xyes; then
24163           support_lockmgr=yes
24164        fi
24165
24166
24167 fi
24168
24169
24170 if test x$support_lockmgr = xyes; then
24171
24172 cat >>confdefs.h <<\_ACEOF
24173 #define _USE_LOCKMGR 1
24174 _ACEOF
24175
24176 fi
24177
24178
24179 # Check whether --enable-static-tools was given.
24180 if test "${enable_static_tools+set}" = set; then
24181   enableval=$enable_static_tools;
24182        if test x$enableval = xyes; then
24183           if test x$use_libtool = xyes; then
24184              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24185   please rerun configure with --disable-libtool" >&5
24186 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24187   please rerun configure with --disable-libtool" >&2;}
24188    { (exit 1); exit 1; }; }
24189           fi
24190           support_static_tools=yes
24191        fi
24192
24193
24194 fi
24195
24196
24197 TTOOL_LDFLAGS=
24198 if test x$support_static_tools = xyes; then
24199    TTOOL_LDFLAGS="-static"
24200 fi
24201
24202
24203 # Check whether --enable-static-fd was given.
24204 if test "${enable_static_fd+set}" = set; then
24205   enableval=$enable_static_fd;
24206        if test x$enableval = xyes; then
24207           if test x$use_libtool = xyes; then
24208              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24209   please rerun configure with --disable-libtool" >&5
24210 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24211   please rerun configure with --disable-libtool" >&2;}
24212    { (exit 1); exit 1; }; }
24213           fi
24214           support_static_fd=yes
24215        fi
24216
24217
24218 fi
24219
24220
24221 STATIC_FD=
24222 if test x$support_static_fd = xyes; then
24223    STATIC_FD="static-bacula-fd"
24224 fi
24225
24226
24227 # Check whether --enable-static-sd was given.
24228 if test "${enable_static_sd+set}" = set; then
24229   enableval=$enable_static_sd;
24230        if test x$enableval = xyes; then
24231           if test x$use_libtool = xyes; then
24232              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24233   please rerun configure with --disable-libtool" >&5
24234 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24235   please rerun configure with --disable-libtool" >&2;}
24236    { (exit 1); exit 1; }; }
24237           fi
24238           support_static_sd=yes
24239        fi
24240
24241
24242 fi
24243
24244
24245 STATIC_SD=
24246 if test x$support_static_sd = xyes; then
24247    STATIC_SD="static-bacula-sd"
24248 fi
24249
24250
24251 # Check whether --enable-static-dir was given.
24252 if test "${enable_static_dir+set}" = set; then
24253   enableval=$enable_static_dir;
24254        if test x$enableval = xyes; then
24255           if test x$use_libtool = xyes; then
24256              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24257   please rerun configure with --disable-libtool" >&5
24258 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24259   please rerun configure with --disable-libtool" >&2;}
24260    { (exit 1); exit 1; }; }
24261           fi
24262           support_static_dir=yes
24263        fi
24264
24265
24266 fi
24267
24268
24269 STATIC_DIR=
24270 if test x$support_static_dir = xyes; then
24271    STATIC_DIR="static-bacula-dir"
24272 fi
24273
24274
24275 # Check whether --enable-static-cons was given.
24276 if test "${enable_static_cons+set}" = set; then
24277   enableval=$enable_static_cons;
24278        if test x$enableval = xyes; then
24279           if test x$use_libtool = xyes; then
24280              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24281   please rerun configure with --disable-libtool" >&5
24282 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24283   please rerun configure with --disable-libtool" >&2;}
24284    { (exit 1); exit 1; }; }
24285           fi
24286           support_static_cons=yes
24287        fi
24288
24289
24290 fi
24291
24292
24293 STATIC_CONS=
24294 STATIC_GNOME_CONS=
24295 STATIC_WX_CONS=
24296 if test x$support_static_cons = xyes; then
24297    STATIC_CONS="static-bconsole"
24298    STATIC_GNOME_CONS="static-bgnome-console"
24299    STATIC_WX_CONS="static-bwx-console"
24300 fi
24301
24302
24303
24304
24305 # Check whether --enable-client-only was given.
24306 if test "${enable_client_only+set}" = set; then
24307   enableval=$enable_client_only;
24308        if test x$enableval = xyes; then
24309           build_client_only=yes
24310           db_type=None
24311           DB_TYPE=none
24312        fi
24313
24314
24315 fi
24316
24317 if test x$build_client_only = xno; then
24318    ALL_DIRS="subdirs"
24319 else
24320    ALL_DIRS=""
24321 fi
24322
24323
24324 # Check whether --enable-build-dird was given.
24325 if test "${enable_build_dird+set}" = set; then
24326   enableval=$enable_build_dird;
24327        if test x$enableval = xno; then
24328           build_dird=no
24329        fi
24330
24331
24332 fi
24333
24334 if test x$build_dird = xyes; then
24335    DIRD_DIR="src/dird"
24336    DIR_TOOLS="DIRTOOLS"
24337 else
24338    DIRD_DIR=""
24339    DIR_TOOLS="NODIRTOOLS"
24340 fi
24341
24342
24343
24344 # Check whether --enable-build-stored was given.
24345 if test "${enable_build_stored+set}" = set; then
24346   enableval=$enable_build_stored;
24347       if test x$enableval = xno; then
24348          build_stored=no
24349       fi
24350
24351
24352 fi
24353
24354 if test x$build_stored = xyes; then
24355    STORED_DIR="src/stored"
24356 else
24357    STORED_DIR=""
24358 fi
24359
24360
24361 # Check whether --enable-conio was given.
24362 if test "${enable_conio+set}" = set; then
24363   enableval=$enable_conio;
24364        if test x$enableval = xno; then
24365           support_conio=no
24366        fi
24367
24368
24369 fi
24370
24371
24372
24373 support_ipv6=yes
24374 # Check whether --enable-ipv6 was given.
24375 if test "${enable_ipv6+set}" = set; then
24376   enableval=$enable_ipv6;
24377        if test x$enableval = xno; then
24378           support_ipv6=no
24379        fi
24380
24381
24382 fi
24383
24384
24385 if test x$support_ipv6 = xyes; then
24386     cat >conftest.$ac_ext <<_ACEOF
24387 /* confdefs.h.  */
24388 _ACEOF
24389 cat confdefs.h >>conftest.$ac_ext
24390 cat >>conftest.$ac_ext <<_ACEOF
24391 /* end confdefs.h.  */
24392  #include <sys/types.h>
24393 #include <sys/socket.h>
24394 #include <netinet/in.h>
24395 int
24396 main ()
24397 {
24398 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24399   ;
24400   return 0;
24401 }
24402 _ACEOF
24403 rm -f conftest.$ac_objext conftest$ac_exeext
24404 if { (ac_try="$ac_link"
24405 case "(($ac_try" in
24406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24407   *) ac_try_echo=$ac_try;;
24408 esac
24409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24410   (eval "$ac_link") 2>conftest.er1
24411   ac_status=$?
24412   grep -v '^ *+' conftest.er1 >conftest.err
24413   rm -f conftest.er1
24414   cat conftest.err >&5
24415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416   (exit $ac_status); } && {
24417          test -z "$ac_c_werror_flag" ||
24418          test ! -s conftest.err
24419        } && test -s conftest$ac_exeext &&
24420        $as_test_x conftest$ac_exeext; then
24421   support_ipv6=yes
24422 else
24423   echo "$as_me: failed program was:" >&5
24424 sed 's/^/| /' conftest.$ac_ext >&5
24425
24426         support_ipv6=no
24427 fi
24428
24429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24430       conftest$ac_exeext conftest.$ac_ext
24431 fi
24432
24433 if test x$support_ipv6 = xyes; then
24434
24435 cat >>confdefs.h <<\_ACEOF
24436 #define HAVE_IPV6 1
24437 _ACEOF
24438
24439 fi
24440
24441 got_conio="no"
24442 if test x$support_conio = xyes; then
24443    if test "${ac_cv_header_termcap_h+set}" = set; then
24444   { echo "$as_me:$LINENO: checking for termcap.h" >&5
24445 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24446 if test "${ac_cv_header_termcap_h+set}" = set; then
24447   echo $ECHO_N "(cached) $ECHO_C" >&6
24448 fi
24449 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24450 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24451 else
24452   # Is the header compilable?
24453 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24454 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24455 cat >conftest.$ac_ext <<_ACEOF
24456 /* confdefs.h.  */
24457 _ACEOF
24458 cat confdefs.h >>conftest.$ac_ext
24459 cat >>conftest.$ac_ext <<_ACEOF
24460 /* end confdefs.h.  */
24461 $ac_includes_default
24462 #include <termcap.h>
24463 _ACEOF
24464 rm -f conftest.$ac_objext
24465 if { (ac_try="$ac_compile"
24466 case "(($ac_try" in
24467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24468   *) ac_try_echo=$ac_try;;
24469 esac
24470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24471   (eval "$ac_compile") 2>conftest.er1
24472   ac_status=$?
24473   grep -v '^ *+' conftest.er1 >conftest.err
24474   rm -f conftest.er1
24475   cat conftest.err >&5
24476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477   (exit $ac_status); } && {
24478          test -z "$ac_c_werror_flag" ||
24479          test ! -s conftest.err
24480        } && test -s conftest.$ac_objext; then
24481   ac_header_compiler=yes
24482 else
24483   echo "$as_me: failed program was:" >&5
24484 sed 's/^/| /' conftest.$ac_ext >&5
24485
24486         ac_header_compiler=no
24487 fi
24488
24489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24490 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24491 echo "${ECHO_T}$ac_header_compiler" >&6; }
24492
24493 # Is the header present?
24494 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24495 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24496 cat >conftest.$ac_ext <<_ACEOF
24497 /* confdefs.h.  */
24498 _ACEOF
24499 cat confdefs.h >>conftest.$ac_ext
24500 cat >>conftest.$ac_ext <<_ACEOF
24501 /* end confdefs.h.  */
24502 #include <termcap.h>
24503 _ACEOF
24504 if { (ac_try="$ac_cpp conftest.$ac_ext"
24505 case "(($ac_try" in
24506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24507   *) ac_try_echo=$ac_try;;
24508 esac
24509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24510   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24511   ac_status=$?
24512   grep -v '^ *+' conftest.er1 >conftest.err
24513   rm -f conftest.er1
24514   cat conftest.err >&5
24515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516   (exit $ac_status); } >/dev/null && {
24517          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24518          test ! -s conftest.err
24519        }; then
24520   ac_header_preproc=yes
24521 else
24522   echo "$as_me: failed program was:" >&5
24523 sed 's/^/| /' conftest.$ac_ext >&5
24524
24525   ac_header_preproc=no
24526 fi
24527
24528 rm -f conftest.err conftest.$ac_ext
24529 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24530 echo "${ECHO_T}$ac_header_preproc" >&6; }
24531
24532 # So?  What about this header?
24533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24534   yes:no: )
24535     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24536 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24537     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24538 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24539     ac_header_preproc=yes
24540     ;;
24541   no:yes:* )
24542     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24543 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24544     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
24545 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
24546     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24547 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24548     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
24549 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24550     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24551 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24552     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24553 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24554
24555     ;;
24556 esac
24557 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24558 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24559 if test "${ac_cv_header_termcap_h+set}" = set; then
24560   echo $ECHO_N "(cached) $ECHO_C" >&6
24561 else
24562   ac_cv_header_termcap_h=$ac_header_preproc
24563 fi
24564 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24565 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24566
24567 fi
24568 if test $ac_cv_header_termcap_h = yes; then
24569    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24570 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24571 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24572   echo $ECHO_N "(cached) $ECHO_C" >&6
24573 else
24574   ac_check_lib_save_LIBS=$LIBS
24575 LIBS="-ltermcap  $LIBS"
24576 cat >conftest.$ac_ext <<_ACEOF
24577 /* confdefs.h.  */
24578 _ACEOF
24579 cat confdefs.h >>conftest.$ac_ext
24580 cat >>conftest.$ac_ext <<_ACEOF
24581 /* end confdefs.h.  */
24582
24583 /* Override any GCC internal prototype to avoid an error.
24584    Use char because int might match the return type of a GCC
24585    builtin and then its argument prototype would still apply.  */
24586 #ifdef __cplusplus
24587 extern "C"
24588 #endif
24589 char tgetent ();
24590 int
24591 main ()
24592 {
24593 return tgetent ();
24594   ;
24595   return 0;
24596 }
24597 _ACEOF
24598 rm -f conftest.$ac_objext conftest$ac_exeext
24599 if { (ac_try="$ac_link"
24600 case "(($ac_try" in
24601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24602   *) ac_try_echo=$ac_try;;
24603 esac
24604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24605   (eval "$ac_link") 2>conftest.er1
24606   ac_status=$?
24607   grep -v '^ *+' conftest.er1 >conftest.err
24608   rm -f conftest.er1
24609   cat conftest.err >&5
24610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611   (exit $ac_status); } && {
24612          test -z "$ac_c_werror_flag" ||
24613          test ! -s conftest.err
24614        } && test -s conftest$ac_exeext &&
24615        $as_test_x conftest$ac_exeext; then
24616   ac_cv_lib_termcap_tgetent=yes
24617 else
24618   echo "$as_me: failed program was:" >&5
24619 sed 's/^/| /' conftest.$ac_ext >&5
24620
24621         ac_cv_lib_termcap_tgetent=no
24622 fi
24623
24624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24625       conftest$ac_exeext conftest.$ac_ext
24626 LIBS=$ac_check_lib_save_LIBS
24627 fi
24628 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24629 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24630 if test $ac_cv_lib_termcap_tgetent = yes; then
24631    CONS_LIBS="-ltermcap"
24632     CONS_OBJ="conio.o"
24633     CONS_SRC="conio.c"
24634     got_conio="yes"
24635     support_readline=no
24636
24637 cat >>confdefs.h <<\_ACEOF
24638 #define HAVE_CONIO 1
24639 _ACEOF
24640
24641
24642 else
24643    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24644 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24645 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24646   echo $ECHO_N "(cached) $ECHO_C" >&6
24647 else
24648   ac_check_lib_save_LIBS=$LIBS
24649 LIBS="-lncurses  $LIBS"
24650 cat >conftest.$ac_ext <<_ACEOF
24651 /* confdefs.h.  */
24652 _ACEOF
24653 cat confdefs.h >>conftest.$ac_ext
24654 cat >>conftest.$ac_ext <<_ACEOF
24655 /* end confdefs.h.  */
24656
24657 /* Override any GCC internal prototype to avoid an error.
24658    Use char because int might match the return type of a GCC
24659    builtin and then its argument prototype would still apply.  */
24660 #ifdef __cplusplus
24661 extern "C"
24662 #endif
24663 char tgetent ();
24664 int
24665 main ()
24666 {
24667 return tgetent ();
24668   ;
24669   return 0;
24670 }
24671 _ACEOF
24672 rm -f conftest.$ac_objext conftest$ac_exeext
24673 if { (ac_try="$ac_link"
24674 case "(($ac_try" in
24675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24676   *) ac_try_echo=$ac_try;;
24677 esac
24678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24679   (eval "$ac_link") 2>conftest.er1
24680   ac_status=$?
24681   grep -v '^ *+' conftest.er1 >conftest.err
24682   rm -f conftest.er1
24683   cat conftest.err >&5
24684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685   (exit $ac_status); } && {
24686          test -z "$ac_c_werror_flag" ||
24687          test ! -s conftest.err
24688        } && test -s conftest$ac_exeext &&
24689        $as_test_x conftest$ac_exeext; then
24690   ac_cv_lib_ncurses_tgetent=yes
24691 else
24692   echo "$as_me: failed program was:" >&5
24693 sed 's/^/| /' conftest.$ac_ext >&5
24694
24695         ac_cv_lib_ncurses_tgetent=no
24696 fi
24697
24698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24699       conftest$ac_exeext conftest.$ac_ext
24700 LIBS=$ac_check_lib_save_LIBS
24701 fi
24702 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24703 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24704 if test $ac_cv_lib_ncurses_tgetent = yes; then
24705    CONS_LIBS="-lncurses"
24706       CONS_OBJ="conio.o"
24707       CONS_SRC="conio.c"
24708       got_conio="yes"
24709       support_readline=no
24710
24711 cat >>confdefs.h <<\_ACEOF
24712 #define HAVE_CONIO 1
24713 _ACEOF
24714
24715
24716 fi
24717
24718
24719 fi
24720
24721
24722 else
24723
24724
24725 for ac_header in curses.h
24726 do
24727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24729   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24732   echo $ECHO_N "(cached) $ECHO_C" >&6
24733 fi
24734 ac_res=`eval echo '${'$as_ac_Header'}'`
24735                { echo "$as_me:$LINENO: result: $ac_res" >&5
24736 echo "${ECHO_T}$ac_res" >&6; }
24737 else
24738   # Is the header compilable?
24739 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24741 cat >conftest.$ac_ext <<_ACEOF
24742 /* confdefs.h.  */
24743 _ACEOF
24744 cat confdefs.h >>conftest.$ac_ext
24745 cat >>conftest.$ac_ext <<_ACEOF
24746 /* end confdefs.h.  */
24747 $ac_includes_default
24748 #include <$ac_header>
24749 _ACEOF
24750 rm -f conftest.$ac_objext
24751 if { (ac_try="$ac_compile"
24752 case "(($ac_try" in
24753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24754   *) ac_try_echo=$ac_try;;
24755 esac
24756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24757   (eval "$ac_compile") 2>conftest.er1
24758   ac_status=$?
24759   grep -v '^ *+' conftest.er1 >conftest.err
24760   rm -f conftest.er1
24761   cat conftest.err >&5
24762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24763   (exit $ac_status); } && {
24764          test -z "$ac_c_werror_flag" ||
24765          test ! -s conftest.err
24766        } && test -s conftest.$ac_objext; then
24767   ac_header_compiler=yes
24768 else
24769   echo "$as_me: failed program was:" >&5
24770 sed 's/^/| /' conftest.$ac_ext >&5
24771
24772         ac_header_compiler=no
24773 fi
24774
24775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24776 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24777 echo "${ECHO_T}$ac_header_compiler" >&6; }
24778
24779 # Is the header present?
24780 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24781 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24782 cat >conftest.$ac_ext <<_ACEOF
24783 /* confdefs.h.  */
24784 _ACEOF
24785 cat confdefs.h >>conftest.$ac_ext
24786 cat >>conftest.$ac_ext <<_ACEOF
24787 /* end confdefs.h.  */
24788 #include <$ac_header>
24789 _ACEOF
24790 if { (ac_try="$ac_cpp conftest.$ac_ext"
24791 case "(($ac_try" in
24792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24793   *) ac_try_echo=$ac_try;;
24794 esac
24795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24796   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24797   ac_status=$?
24798   grep -v '^ *+' conftest.er1 >conftest.err
24799   rm -f conftest.er1
24800   cat conftest.err >&5
24801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802   (exit $ac_status); } >/dev/null && {
24803          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24804          test ! -s conftest.err
24805        }; then
24806   ac_header_preproc=yes
24807 else
24808   echo "$as_me: failed program was:" >&5
24809 sed 's/^/| /' conftest.$ac_ext >&5
24810
24811   ac_header_preproc=no
24812 fi
24813
24814 rm -f conftest.err conftest.$ac_ext
24815 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24816 echo "${ECHO_T}$ac_header_preproc" >&6; }
24817
24818 # So?  What about this header?
24819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24820   yes:no: )
24821     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24822 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24824 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24825     ac_header_preproc=yes
24826     ;;
24827   no:yes:* )
24828     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24829 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24830     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24831 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24832     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24833 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24834     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24835 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24836     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24837 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24838     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24839 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24840
24841     ;;
24842 esac
24843 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24846   echo $ECHO_N "(cached) $ECHO_C" >&6
24847 else
24848   eval "$as_ac_Header=\$ac_header_preproc"
24849 fi
24850 ac_res=`eval echo '${'$as_ac_Header'}'`
24851                { echo "$as_me:$LINENO: result: $ac_res" >&5
24852 echo "${ECHO_T}$ac_res" >&6; }
24853
24854 fi
24855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24856   cat >>confdefs.h <<_ACEOF
24857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24858 _ACEOF
24859
24860 fi
24861
24862 done
24863
24864     { echo "$as_me:$LINENO: checking for term.h" >&5
24865 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24866 if test "${ac_cv_header_term_h+set}" = set; then
24867   echo $ECHO_N "(cached) $ECHO_C" >&6
24868 else
24869   cat >conftest.$ac_ext <<_ACEOF
24870 /* confdefs.h.  */
24871 _ACEOF
24872 cat confdefs.h >>conftest.$ac_ext
24873 cat >>conftest.$ac_ext <<_ACEOF
24874 /* end confdefs.h.  */
24875 #if HAVE_CURSES_H
24876 #include <curses.h>
24877 #endif
24878
24879
24880 #include <term.h>
24881 _ACEOF
24882 rm -f conftest.$ac_objext
24883 if { (ac_try="$ac_compile"
24884 case "(($ac_try" in
24885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24886   *) ac_try_echo=$ac_try;;
24887 esac
24888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24889   (eval "$ac_compile") 2>conftest.er1
24890   ac_status=$?
24891   grep -v '^ *+' conftest.er1 >conftest.err
24892   rm -f conftest.er1
24893   cat conftest.err >&5
24894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895   (exit $ac_status); } && {
24896          test -z "$ac_c_werror_flag" ||
24897          test ! -s conftest.err
24898        } && test -s conftest.$ac_objext; then
24899   ac_cv_header_term_h=yes
24900 else
24901   echo "$as_me: failed program was:" >&5
24902 sed 's/^/| /' conftest.$ac_ext >&5
24903
24904         ac_cv_header_term_h=no
24905 fi
24906
24907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24908 fi
24909 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24910 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24911 if test $ac_cv_header_term_h = yes; then
24912    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24913 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24914 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24915   echo $ECHO_N "(cached) $ECHO_C" >&6
24916 else
24917   ac_check_lib_save_LIBS=$LIBS
24918 LIBS="-lcurses  $LIBS"
24919 cat >conftest.$ac_ext <<_ACEOF
24920 /* confdefs.h.  */
24921 _ACEOF
24922 cat confdefs.h >>conftest.$ac_ext
24923 cat >>conftest.$ac_ext <<_ACEOF
24924 /* end confdefs.h.  */
24925
24926 /* Override any GCC internal prototype to avoid an error.
24927    Use char because int might match the return type of a GCC
24928    builtin and then its argument prototype would still apply.  */
24929 #ifdef __cplusplus
24930 extern "C"
24931 #endif
24932 char tgetent ();
24933 int
24934 main ()
24935 {
24936 return tgetent ();
24937   ;
24938   return 0;
24939 }
24940 _ACEOF
24941 rm -f conftest.$ac_objext conftest$ac_exeext
24942 if { (ac_try="$ac_link"
24943 case "(($ac_try" in
24944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24945   *) ac_try_echo=$ac_try;;
24946 esac
24947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24948   (eval "$ac_link") 2>conftest.er1
24949   ac_status=$?
24950   grep -v '^ *+' conftest.er1 >conftest.err
24951   rm -f conftest.er1
24952   cat conftest.err >&5
24953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954   (exit $ac_status); } && {
24955          test -z "$ac_c_werror_flag" ||
24956          test ! -s conftest.err
24957        } && test -s conftest$ac_exeext &&
24958        $as_test_x conftest$ac_exeext; then
24959   ac_cv_lib_curses_tgetent=yes
24960 else
24961   echo "$as_me: failed program was:" >&5
24962 sed 's/^/| /' conftest.$ac_ext >&5
24963
24964         ac_cv_lib_curses_tgetent=no
24965 fi
24966
24967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24968       conftest$ac_exeext conftest.$ac_ext
24969 LIBS=$ac_check_lib_save_LIBS
24970 fi
24971 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
24972 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
24973 if test $ac_cv_lib_curses_tgetent = yes; then
24974    CONS_LIBS="-lcurses"
24975          CONS_OBJ="conio.o"
24976          CONS_SRC="conio.c"
24977          got_conio="yes"
24978          support_readline=no
24979
24980 cat >>confdefs.h <<\_ACEOF
24981 #define HAVE_CONIO 1
24982 _ACEOF
24983
24984
24985 fi
24986
24987
24988 else
24989    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
24990 fi
24991
24992
24993
24994 fi
24995
24996
24997 fi
24998
24999
25000 # Check whether --enable-readline was given.
25001 if test "${enable_readline+set}" = set; then
25002   enableval=$enable_readline;
25003        if test x$enableval = xno; then
25004           support_readline=no
25005        fi
25006
25007
25008 fi
25009
25010
25011 got_readline="no"
25012 READLINE_SRC=
25013 if test x$support_readline = xyes; then
25014
25015 # Check whether --with-readline was given.
25016 if test "${with_readline+set}" = set; then
25017   withval=$with_readline;
25018           case "$with_readline" in
25019           no)
25020              :
25021              ;;
25022           yes|*)
25023              if test -f ${with_readline}/readline.h; then
25024                 CONS_INC="-I${with_readline}"
25025                 CONS_LDFLAGS="-L$with_readline"
25026              elif test -f ${with_readline}/include/readline/readline.h; then
25027                 CONS_INC="-I${with_readline}/include/readline"
25028                 CONS_LDFLAGS="-L${with_readline}/lib"
25029                 with_readline="${with_readline}/include/readline"
25030              else
25031                 with_readline="/usr/include/readline"
25032              fi
25033
25034              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25036   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25037 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25039   echo $ECHO_N "(cached) $ECHO_C" >&6
25040 fi
25041 ac_res=`eval echo '${'$as_ac_Header'}'`
25042                { echo "$as_me:$LINENO: result: $ac_res" >&5
25043 echo "${ECHO_T}$ac_res" >&6; }
25044 else
25045   # Is the header compilable?
25046 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25047 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25048 cat >conftest.$ac_ext <<_ACEOF
25049 /* confdefs.h.  */
25050 _ACEOF
25051 cat confdefs.h >>conftest.$ac_ext
25052 cat >>conftest.$ac_ext <<_ACEOF
25053 /* end confdefs.h.  */
25054 $ac_includes_default
25055 #include <${with_readline}/readline.h>
25056 _ACEOF
25057 rm -f conftest.$ac_objext
25058 if { (ac_try="$ac_compile"
25059 case "(($ac_try" in
25060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25061   *) ac_try_echo=$ac_try;;
25062 esac
25063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25064   (eval "$ac_compile") 2>conftest.er1
25065   ac_status=$?
25066   grep -v '^ *+' conftest.er1 >conftest.err
25067   rm -f conftest.er1
25068   cat conftest.err >&5
25069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25070   (exit $ac_status); } && {
25071          test -z "$ac_c_werror_flag" ||
25072          test ! -s conftest.err
25073        } && test -s conftest.$ac_objext; then
25074   ac_header_compiler=yes
25075 else
25076   echo "$as_me: failed program was:" >&5
25077 sed 's/^/| /' conftest.$ac_ext >&5
25078
25079         ac_header_compiler=no
25080 fi
25081
25082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25084 echo "${ECHO_T}$ac_header_compiler" >&6; }
25085
25086 # Is the header present?
25087 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25088 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25089 cat >conftest.$ac_ext <<_ACEOF
25090 /* confdefs.h.  */
25091 _ACEOF
25092 cat confdefs.h >>conftest.$ac_ext
25093 cat >>conftest.$ac_ext <<_ACEOF
25094 /* end confdefs.h.  */
25095 #include <${with_readline}/readline.h>
25096 _ACEOF
25097 if { (ac_try="$ac_cpp conftest.$ac_ext"
25098 case "(($ac_try" in
25099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25100   *) ac_try_echo=$ac_try;;
25101 esac
25102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25103   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25104   ac_status=$?
25105   grep -v '^ *+' conftest.er1 >conftest.err
25106   rm -f conftest.er1
25107   cat conftest.err >&5
25108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109   (exit $ac_status); } >/dev/null && {
25110          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25111          test ! -s conftest.err
25112        }; then
25113   ac_header_preproc=yes
25114 else
25115   echo "$as_me: failed program was:" >&5
25116 sed 's/^/| /' conftest.$ac_ext >&5
25117
25118   ac_header_preproc=no
25119 fi
25120
25121 rm -f conftest.err conftest.$ac_ext
25122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25123 echo "${ECHO_T}$ac_header_preproc" >&6; }
25124
25125 # So?  What about this header?
25126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25127   yes:no: )
25128     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25129 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25130     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25131 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25132     ac_header_preproc=yes
25133     ;;
25134   no:yes:* )
25135     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25136 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25137     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25138 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25139     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25140 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25141     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25142 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25143     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25144 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25145     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25146 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25147
25148     ;;
25149 esac
25150 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25151 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25153   echo $ECHO_N "(cached) $ECHO_C" >&6
25154 else
25155   eval "$as_ac_Header=\$ac_header_preproc"
25156 fi
25157 ac_res=`eval echo '${'$as_ac_Header'}'`
25158                { echo "$as_me:$LINENO: result: $ac_res" >&5
25159 echo "${ECHO_T}$ac_res" >&6; }
25160
25161 fi
25162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25163
25164
25165 cat >>confdefs.h <<\_ACEOF
25166 #define HAVE_READLINE 1
25167 _ACEOF
25168
25169                     CONS_LIBS="-lreadline -lhistory -ltermcap"
25170                     got_readline="yes"
25171
25172 else
25173
25174                     echo " "
25175                     echo "readline.h not found. readline turned off ..."
25176                     echo " "
25177
25178
25179 fi
25180
25181
25182              ;;
25183           esac
25184
25185 else
25186
25187                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25188   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25189 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25190 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25191   echo $ECHO_N "(cached) $ECHO_C" >&6
25192 fi
25193 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25194 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25195 else
25196   # Is the header compilable?
25197 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25198 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25199 cat >conftest.$ac_ext <<_ACEOF
25200 /* confdefs.h.  */
25201 _ACEOF
25202 cat confdefs.h >>conftest.$ac_ext
25203 cat >>conftest.$ac_ext <<_ACEOF
25204 /* end confdefs.h.  */
25205 $ac_includes_default
25206 #include </usr/include/readline/readline.h>
25207 _ACEOF
25208 rm -f conftest.$ac_objext
25209 if { (ac_try="$ac_compile"
25210 case "(($ac_try" in
25211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25212   *) ac_try_echo=$ac_try;;
25213 esac
25214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25215   (eval "$ac_compile") 2>conftest.er1
25216   ac_status=$?
25217   grep -v '^ *+' conftest.er1 >conftest.err
25218   rm -f conftest.er1
25219   cat conftest.err >&5
25220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221   (exit $ac_status); } && {
25222          test -z "$ac_c_werror_flag" ||
25223          test ! -s conftest.err
25224        } && test -s conftest.$ac_objext; then
25225   ac_header_compiler=yes
25226 else
25227   echo "$as_me: failed program was:" >&5
25228 sed 's/^/| /' conftest.$ac_ext >&5
25229
25230         ac_header_compiler=no
25231 fi
25232
25233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25234 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25235 echo "${ECHO_T}$ac_header_compiler" >&6; }
25236
25237 # Is the header present?
25238 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25239 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25240 cat >conftest.$ac_ext <<_ACEOF
25241 /* confdefs.h.  */
25242 _ACEOF
25243 cat confdefs.h >>conftest.$ac_ext
25244 cat >>conftest.$ac_ext <<_ACEOF
25245 /* end confdefs.h.  */
25246 #include </usr/include/readline/readline.h>
25247 _ACEOF
25248 if { (ac_try="$ac_cpp conftest.$ac_ext"
25249 case "(($ac_try" in
25250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25251   *) ac_try_echo=$ac_try;;
25252 esac
25253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25254   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25255   ac_status=$?
25256   grep -v '^ *+' conftest.er1 >conftest.err
25257   rm -f conftest.er1
25258   cat conftest.err >&5
25259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25260   (exit $ac_status); } >/dev/null && {
25261          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25262          test ! -s conftest.err
25263        }; then
25264   ac_header_preproc=yes
25265 else
25266   echo "$as_me: failed program was:" >&5
25267 sed 's/^/| /' conftest.$ac_ext >&5
25268
25269   ac_header_preproc=no
25270 fi
25271
25272 rm -f conftest.err conftest.$ac_ext
25273 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25274 echo "${ECHO_T}$ac_header_preproc" >&6; }
25275
25276 # So?  What about this header?
25277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25278   yes:no: )
25279     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25280 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25281     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25282 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25283     ac_header_preproc=yes
25284     ;;
25285   no:yes:* )
25286     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25287 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25288     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25289 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25290     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25291 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25292     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25293 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25294     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25295 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25296     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25297 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25298
25299     ;;
25300 esac
25301 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25302 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25303 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25304   echo $ECHO_N "(cached) $ECHO_C" >&6
25305 else
25306   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25307 fi
25308 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25309 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25310
25311 fi
25312 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25313
25314
25315 cat >>confdefs.h <<\_ACEOF
25316 #define HAVE_READLINE 1
25317 _ACEOF
25318
25319                 got_readline="yes"
25320                 CONS_INC="-I/usr/include/readline"
25321                 CONS_LIBS="-lreadline -ltermcap"
25322
25323 else
25324
25325                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25327   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25328 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25330   echo $ECHO_N "(cached) $ECHO_C" >&6
25331 fi
25332 ac_res=`eval echo '${'$as_ac_Header'}'`
25333                { echo "$as_me:$LINENO: result: $ac_res" >&5
25334 echo "${ECHO_T}$ac_res" >&6; }
25335 else
25336   # Is the header compilable?
25337 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25338 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25339 cat >conftest.$ac_ext <<_ACEOF
25340 /* confdefs.h.  */
25341 _ACEOF
25342 cat confdefs.h >>conftest.$ac_ext
25343 cat >>conftest.$ac_ext <<_ACEOF
25344 /* end confdefs.h.  */
25345 $ac_includes_default
25346 #include <${TOP_DIR}/depkgs/readline/readline.h>
25347 _ACEOF
25348 rm -f conftest.$ac_objext
25349 if { (ac_try="$ac_compile"
25350 case "(($ac_try" in
25351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25352   *) ac_try_echo=$ac_try;;
25353 esac
25354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25355   (eval "$ac_compile") 2>conftest.er1
25356   ac_status=$?
25357   grep -v '^ *+' conftest.er1 >conftest.err
25358   rm -f conftest.er1
25359   cat conftest.err >&5
25360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361   (exit $ac_status); } && {
25362          test -z "$ac_c_werror_flag" ||
25363          test ! -s conftest.err
25364        } && test -s conftest.$ac_objext; then
25365   ac_header_compiler=yes
25366 else
25367   echo "$as_me: failed program was:" >&5
25368 sed 's/^/| /' conftest.$ac_ext >&5
25369
25370         ac_header_compiler=no
25371 fi
25372
25373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25374 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25375 echo "${ECHO_T}$ac_header_compiler" >&6; }
25376
25377 # Is the header present?
25378 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25379 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25380 cat >conftest.$ac_ext <<_ACEOF
25381 /* confdefs.h.  */
25382 _ACEOF
25383 cat confdefs.h >>conftest.$ac_ext
25384 cat >>conftest.$ac_ext <<_ACEOF
25385 /* end confdefs.h.  */
25386 #include <${TOP_DIR}/depkgs/readline/readline.h>
25387 _ACEOF
25388 if { (ac_try="$ac_cpp conftest.$ac_ext"
25389 case "(($ac_try" in
25390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25391   *) ac_try_echo=$ac_try;;
25392 esac
25393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25394   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25395   ac_status=$?
25396   grep -v '^ *+' conftest.er1 >conftest.err
25397   rm -f conftest.er1
25398   cat conftest.err >&5
25399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25400   (exit $ac_status); } >/dev/null && {
25401          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25402          test ! -s conftest.err
25403        }; then
25404   ac_header_preproc=yes
25405 else
25406   echo "$as_me: failed program was:" >&5
25407 sed 's/^/| /' conftest.$ac_ext >&5
25408
25409   ac_header_preproc=no
25410 fi
25411
25412 rm -f conftest.err conftest.$ac_ext
25413 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25414 echo "${ECHO_T}$ac_header_preproc" >&6; }
25415
25416 # So?  What about this header?
25417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25418   yes:no: )
25419     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25420 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25421     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25422 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25423     ac_header_preproc=yes
25424     ;;
25425   no:yes:* )
25426     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25427 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25428     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25429 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25430     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25431 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25432     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25433 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25434     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25435 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25436     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25437 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25438
25439     ;;
25440 esac
25441 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25442 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25444   echo $ECHO_N "(cached) $ECHO_C" >&6
25445 else
25446   eval "$as_ac_Header=\$ac_header_preproc"
25447 fi
25448 ac_res=`eval echo '${'$as_ac_Header'}'`
25449                { echo "$as_me:$LINENO: result: $ac_res" >&5
25450 echo "${ECHO_T}$ac_res" >&6; }
25451
25452 fi
25453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25454
25455
25456 cat >>confdefs.h <<\_ACEOF
25457 #define HAVE_READLINE 1
25458 _ACEOF
25459
25460                         got_readline="yes"
25461                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25462                         CONS_LIBS="-lreadline -lhistory -ltermcap"
25463                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25464                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25465
25466 else
25467
25468                         echo " "
25469                         echo "readline.h not found. readline turned off ..."
25470                         echo " "
25471
25472
25473 fi
25474
25475
25476
25477
25478 fi
25479
25480
25481
25482
25483 fi
25484
25485 fi
25486
25487
25488
25489
25490
25491
25492
25493
25494 MAKE_SHELL=/bin/sh
25495
25496 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25497 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25498 if test "${ac_cv_header_stat_broken+set}" = set; then
25499   echo $ECHO_N "(cached) $ECHO_C" >&6
25500 else
25501   cat >conftest.$ac_ext <<_ACEOF
25502 /* confdefs.h.  */
25503 _ACEOF
25504 cat confdefs.h >>conftest.$ac_ext
25505 cat >>conftest.$ac_ext <<_ACEOF
25506 /* end confdefs.h.  */
25507 #include <sys/types.h>
25508 #include <sys/stat.h>
25509
25510 #if defined S_ISBLK && defined S_IFDIR
25511 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25512 #endif
25513
25514 #if defined S_ISBLK && defined S_IFCHR
25515 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25516 #endif
25517
25518 #if defined S_ISLNK && defined S_IFREG
25519 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25520 #endif
25521
25522 #if defined S_ISSOCK && defined S_IFREG
25523 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25524 #endif
25525
25526 _ACEOF
25527 rm -f conftest.$ac_objext
25528 if { (ac_try="$ac_compile"
25529 case "(($ac_try" in
25530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25531   *) ac_try_echo=$ac_try;;
25532 esac
25533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25534   (eval "$ac_compile") 2>conftest.er1
25535   ac_status=$?
25536   grep -v '^ *+' conftest.er1 >conftest.err
25537   rm -f conftest.er1
25538   cat conftest.err >&5
25539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25540   (exit $ac_status); } && {
25541          test -z "$ac_c_werror_flag" ||
25542          test ! -s conftest.err
25543        } && test -s conftest.$ac_objext; then
25544   ac_cv_header_stat_broken=no
25545 else
25546   echo "$as_me: failed program was:" >&5
25547 sed 's/^/| /' conftest.$ac_ext >&5
25548
25549         ac_cv_header_stat_broken=yes
25550 fi
25551
25552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25553 fi
25554 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25555 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25556 if test $ac_cv_header_stat_broken = yes; then
25557
25558 cat >>confdefs.h <<\_ACEOF
25559 #define STAT_MACROS_BROKEN 1
25560 _ACEOF
25561
25562 fi
25563
25564
25565
25566
25567
25568
25569 ac_header_dirent=no
25570 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25571   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25572 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25573 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25575   echo $ECHO_N "(cached) $ECHO_C" >&6
25576 else
25577   cat >conftest.$ac_ext <<_ACEOF
25578 /* confdefs.h.  */
25579 _ACEOF
25580 cat confdefs.h >>conftest.$ac_ext
25581 cat >>conftest.$ac_ext <<_ACEOF
25582 /* end confdefs.h.  */
25583 #include <sys/types.h>
25584 #include <$ac_hdr>
25585
25586 int
25587 main ()
25588 {
25589 if ((DIR *) 0)
25590 return 0;
25591   ;
25592   return 0;
25593 }
25594 _ACEOF
25595 rm -f conftest.$ac_objext
25596 if { (ac_try="$ac_compile"
25597 case "(($ac_try" in
25598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25599   *) ac_try_echo=$ac_try;;
25600 esac
25601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25602   (eval "$ac_compile") 2>conftest.er1
25603   ac_status=$?
25604   grep -v '^ *+' conftest.er1 >conftest.err
25605   rm -f conftest.er1
25606   cat conftest.err >&5
25607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608   (exit $ac_status); } && {
25609          test -z "$ac_c_werror_flag" ||
25610          test ! -s conftest.err
25611        } && test -s conftest.$ac_objext; then
25612   eval "$as_ac_Header=yes"
25613 else
25614   echo "$as_me: failed program was:" >&5
25615 sed 's/^/| /' conftest.$ac_ext >&5
25616
25617         eval "$as_ac_Header=no"
25618 fi
25619
25620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25621 fi
25622 ac_res=`eval echo '${'$as_ac_Header'}'`
25623                { echo "$as_me:$LINENO: result: $ac_res" >&5
25624 echo "${ECHO_T}$ac_res" >&6; }
25625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25626   cat >>confdefs.h <<_ACEOF
25627 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25628 _ACEOF
25629
25630 ac_header_dirent=$ac_hdr; break
25631 fi
25632
25633 done
25634 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25635 if test $ac_header_dirent = dirent.h; then
25636   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25637 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25638 if test "${ac_cv_search_opendir+set}" = set; then
25639   echo $ECHO_N "(cached) $ECHO_C" >&6
25640 else
25641   ac_func_search_save_LIBS=$LIBS
25642 cat >conftest.$ac_ext <<_ACEOF
25643 /* confdefs.h.  */
25644 _ACEOF
25645 cat confdefs.h >>conftest.$ac_ext
25646 cat >>conftest.$ac_ext <<_ACEOF
25647 /* end confdefs.h.  */
25648
25649 /* Override any GCC internal prototype to avoid an error.
25650    Use char because int might match the return type of a GCC
25651    builtin and then its argument prototype would still apply.  */
25652 #ifdef __cplusplus
25653 extern "C"
25654 #endif
25655 char opendir ();
25656 int
25657 main ()
25658 {
25659 return opendir ();
25660   ;
25661   return 0;
25662 }
25663 _ACEOF
25664 for ac_lib in '' dir; do
25665   if test -z "$ac_lib"; then
25666     ac_res="none required"
25667   else
25668     ac_res=-l$ac_lib
25669     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25670   fi
25671   rm -f conftest.$ac_objext conftest$ac_exeext
25672 if { (ac_try="$ac_link"
25673 case "(($ac_try" in
25674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25675   *) ac_try_echo=$ac_try;;
25676 esac
25677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25678   (eval "$ac_link") 2>conftest.er1
25679   ac_status=$?
25680   grep -v '^ *+' conftest.er1 >conftest.err
25681   rm -f conftest.er1
25682   cat conftest.err >&5
25683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684   (exit $ac_status); } && {
25685          test -z "$ac_c_werror_flag" ||
25686          test ! -s conftest.err
25687        } && test -s conftest$ac_exeext &&
25688        $as_test_x conftest$ac_exeext; then
25689   ac_cv_search_opendir=$ac_res
25690 else
25691   echo "$as_me: failed program was:" >&5
25692 sed 's/^/| /' conftest.$ac_ext >&5
25693
25694
25695 fi
25696
25697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25698       conftest$ac_exeext
25699   if test "${ac_cv_search_opendir+set}" = set; then
25700   break
25701 fi
25702 done
25703 if test "${ac_cv_search_opendir+set}" = set; then
25704   :
25705 else
25706   ac_cv_search_opendir=no
25707 fi
25708 rm conftest.$ac_ext
25709 LIBS=$ac_func_search_save_LIBS
25710 fi
25711 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25712 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25713 ac_res=$ac_cv_search_opendir
25714 if test "$ac_res" != no; then
25715   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25716
25717 fi
25718
25719 else
25720   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25721 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25722 if test "${ac_cv_search_opendir+set}" = set; then
25723   echo $ECHO_N "(cached) $ECHO_C" >&6
25724 else
25725   ac_func_search_save_LIBS=$LIBS
25726 cat >conftest.$ac_ext <<_ACEOF
25727 /* confdefs.h.  */
25728 _ACEOF
25729 cat confdefs.h >>conftest.$ac_ext
25730 cat >>conftest.$ac_ext <<_ACEOF
25731 /* end confdefs.h.  */
25732
25733 /* Override any GCC internal prototype to avoid an error.
25734    Use char because int might match the return type of a GCC
25735    builtin and then its argument prototype would still apply.  */
25736 #ifdef __cplusplus
25737 extern "C"
25738 #endif
25739 char opendir ();
25740 int
25741 main ()
25742 {
25743 return opendir ();
25744   ;
25745   return 0;
25746 }
25747 _ACEOF
25748 for ac_lib in '' x; do
25749   if test -z "$ac_lib"; then
25750     ac_res="none required"
25751   else
25752     ac_res=-l$ac_lib
25753     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25754   fi
25755   rm -f conftest.$ac_objext conftest$ac_exeext
25756 if { (ac_try="$ac_link"
25757 case "(($ac_try" in
25758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25759   *) ac_try_echo=$ac_try;;
25760 esac
25761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25762   (eval "$ac_link") 2>conftest.er1
25763   ac_status=$?
25764   grep -v '^ *+' conftest.er1 >conftest.err
25765   rm -f conftest.er1
25766   cat conftest.err >&5
25767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768   (exit $ac_status); } && {
25769          test -z "$ac_c_werror_flag" ||
25770          test ! -s conftest.err
25771        } && test -s conftest$ac_exeext &&
25772        $as_test_x conftest$ac_exeext; then
25773   ac_cv_search_opendir=$ac_res
25774 else
25775   echo "$as_me: failed program was:" >&5
25776 sed 's/^/| /' conftest.$ac_ext >&5
25777
25778
25779 fi
25780
25781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25782       conftest$ac_exeext
25783   if test "${ac_cv_search_opendir+set}" = set; then
25784   break
25785 fi
25786 done
25787 if test "${ac_cv_search_opendir+set}" = set; then
25788   :
25789 else
25790   ac_cv_search_opendir=no
25791 fi
25792 rm conftest.$ac_ext
25793 LIBS=$ac_func_search_save_LIBS
25794 fi
25795 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25796 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25797 ac_res=$ac_cv_search_opendir
25798 if test "$ac_res" != no; then
25799   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25800
25801 fi
25802
25803 fi
25804
25805
25806
25807
25808
25809
25810
25811
25812 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25813 do
25814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25815 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25817 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25818   echo $ECHO_N "(cached) $ECHO_C" >&6
25819 else
25820   cat >conftest.$ac_ext <<_ACEOF
25821 /* confdefs.h.  */
25822 _ACEOF
25823 cat confdefs.h >>conftest.$ac_ext
25824 cat >>conftest.$ac_ext <<_ACEOF
25825 /* end confdefs.h.  */
25826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25827    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25828 #define $ac_func innocuous_$ac_func
25829
25830 /* System header to define __stub macros and hopefully few prototypes,
25831     which can conflict with char $ac_func (); below.
25832     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25833     <limits.h> exists even on freestanding compilers.  */
25834
25835 #ifdef __STDC__
25836 # include <limits.h>
25837 #else
25838 # include <assert.h>
25839 #endif
25840
25841 #undef $ac_func
25842
25843 /* Override any GCC internal prototype to avoid an error.
25844    Use char because int might match the return type of a GCC
25845    builtin and then its argument prototype would still apply.  */
25846 #ifdef __cplusplus
25847 extern "C"
25848 #endif
25849 char $ac_func ();
25850 /* The GNU C library defines this for functions which it implements
25851     to always fail with ENOSYS.  Some functions are actually named
25852     something starting with __ and the normal name is an alias.  */
25853 #if defined __stub_$ac_func || defined __stub___$ac_func
25854 choke me
25855 #endif
25856
25857 int
25858 main ()
25859 {
25860 return $ac_func ();
25861   ;
25862   return 0;
25863 }
25864 _ACEOF
25865 rm -f conftest.$ac_objext conftest$ac_exeext
25866 if { (ac_try="$ac_link"
25867 case "(($ac_try" in
25868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25869   *) ac_try_echo=$ac_try;;
25870 esac
25871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25872   (eval "$ac_link") 2>conftest.er1
25873   ac_status=$?
25874   grep -v '^ *+' conftest.er1 >conftest.err
25875   rm -f conftest.er1
25876   cat conftest.err >&5
25877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878   (exit $ac_status); } && {
25879          test -z "$ac_c_werror_flag" ||
25880          test ! -s conftest.err
25881        } && test -s conftest$ac_exeext &&
25882        $as_test_x conftest$ac_exeext; then
25883   eval "$as_ac_var=yes"
25884 else
25885   echo "$as_me: failed program was:" >&5
25886 sed 's/^/| /' conftest.$ac_ext >&5
25887
25888         eval "$as_ac_var=no"
25889 fi
25890
25891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25892       conftest$ac_exeext conftest.$ac_ext
25893 fi
25894 ac_res=`eval echo '${'$as_ac_var'}'`
25895                { echo "$as_me:$LINENO: result: $ac_res" >&5
25896 echo "${ECHO_T}$ac_res" >&6; }
25897 if test `eval echo '${'$as_ac_var'}'` = yes; then
25898   cat >>confdefs.h <<_ACEOF
25899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25900 _ACEOF
25901
25902 fi
25903 done
25904
25905
25906
25907 for ac_func in nanosleep nl_langinfo
25908 do
25909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25910 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25912 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25913   echo $ECHO_N "(cached) $ECHO_C" >&6
25914 else
25915   cat >conftest.$ac_ext <<_ACEOF
25916 /* confdefs.h.  */
25917 _ACEOF
25918 cat confdefs.h >>conftest.$ac_ext
25919 cat >>conftest.$ac_ext <<_ACEOF
25920 /* end confdefs.h.  */
25921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25922    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25923 #define $ac_func innocuous_$ac_func
25924
25925 /* System header to define __stub macros and hopefully few prototypes,
25926     which can conflict with char $ac_func (); below.
25927     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25928     <limits.h> exists even on freestanding compilers.  */
25929
25930 #ifdef __STDC__
25931 # include <limits.h>
25932 #else
25933 # include <assert.h>
25934 #endif
25935
25936 #undef $ac_func
25937
25938 /* Override any GCC internal prototype to avoid an error.
25939    Use char because int might match the return type of a GCC
25940    builtin and then its argument prototype would still apply.  */
25941 #ifdef __cplusplus
25942 extern "C"
25943 #endif
25944 char $ac_func ();
25945 /* The GNU C library defines this for functions which it implements
25946     to always fail with ENOSYS.  Some functions are actually named
25947     something starting with __ and the normal name is an alias.  */
25948 #if defined __stub_$ac_func || defined __stub___$ac_func
25949 choke me
25950 #endif
25951
25952 int
25953 main ()
25954 {
25955 return $ac_func ();
25956   ;
25957   return 0;
25958 }
25959 _ACEOF
25960 rm -f conftest.$ac_objext conftest$ac_exeext
25961 if { (ac_try="$ac_link"
25962 case "(($ac_try" in
25963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25964   *) ac_try_echo=$ac_try;;
25965 esac
25966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25967   (eval "$ac_link") 2>conftest.er1
25968   ac_status=$?
25969   grep -v '^ *+' conftest.er1 >conftest.err
25970   rm -f conftest.er1
25971   cat conftest.err >&5
25972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25973   (exit $ac_status); } && {
25974          test -z "$ac_c_werror_flag" ||
25975          test ! -s conftest.err
25976        } && test -s conftest$ac_exeext &&
25977        $as_test_x conftest$ac_exeext; then
25978   eval "$as_ac_var=yes"
25979 else
25980   echo "$as_me: failed program was:" >&5
25981 sed 's/^/| /' conftest.$ac_ext >&5
25982
25983         eval "$as_ac_var=no"
25984 fi
25985
25986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25987       conftest$ac_exeext conftest.$ac_ext
25988 fi
25989 ac_res=`eval echo '${'$as_ac_var'}'`
25990                { echo "$as_me:$LINENO: result: $ac_res" >&5
25991 echo "${ECHO_T}$ac_res" >&6; }
25992 if test `eval echo '${'$as_ac_var'}'` = yes; then
25993   cat >>confdefs.h <<_ACEOF
25994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25995 _ACEOF
25996
25997 fi
25998 done
25999
26000
26001 for ac_header in varargs.h
26002 do
26003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26005   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26008   echo $ECHO_N "(cached) $ECHO_C" >&6
26009 fi
26010 ac_res=`eval echo '${'$as_ac_Header'}'`
26011                { echo "$as_me:$LINENO: result: $ac_res" >&5
26012 echo "${ECHO_T}$ac_res" >&6; }
26013 else
26014   # Is the header compilable?
26015 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26017 cat >conftest.$ac_ext <<_ACEOF
26018 /* confdefs.h.  */
26019 _ACEOF
26020 cat confdefs.h >>conftest.$ac_ext
26021 cat >>conftest.$ac_ext <<_ACEOF
26022 /* end confdefs.h.  */
26023 $ac_includes_default
26024 #include <$ac_header>
26025 _ACEOF
26026 rm -f conftest.$ac_objext
26027 if { (ac_try="$ac_compile"
26028 case "(($ac_try" in
26029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26030   *) ac_try_echo=$ac_try;;
26031 esac
26032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26033   (eval "$ac_compile") 2>conftest.er1
26034   ac_status=$?
26035   grep -v '^ *+' conftest.er1 >conftest.err
26036   rm -f conftest.er1
26037   cat conftest.err >&5
26038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039   (exit $ac_status); } && {
26040          test -z "$ac_c_werror_flag" ||
26041          test ! -s conftest.err
26042        } && test -s conftest.$ac_objext; then
26043   ac_header_compiler=yes
26044 else
26045   echo "$as_me: failed program was:" >&5
26046 sed 's/^/| /' conftest.$ac_ext >&5
26047
26048         ac_header_compiler=no
26049 fi
26050
26051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26053 echo "${ECHO_T}$ac_header_compiler" >&6; }
26054
26055 # Is the header present?
26056 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26058 cat >conftest.$ac_ext <<_ACEOF
26059 /* confdefs.h.  */
26060 _ACEOF
26061 cat confdefs.h >>conftest.$ac_ext
26062 cat >>conftest.$ac_ext <<_ACEOF
26063 /* end confdefs.h.  */
26064 #include <$ac_header>
26065 _ACEOF
26066 if { (ac_try="$ac_cpp conftest.$ac_ext"
26067 case "(($ac_try" in
26068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26069   *) ac_try_echo=$ac_try;;
26070 esac
26071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26072   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26073   ac_status=$?
26074   grep -v '^ *+' conftest.er1 >conftest.err
26075   rm -f conftest.er1
26076   cat conftest.err >&5
26077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26078   (exit $ac_status); } >/dev/null && {
26079          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26080          test ! -s conftest.err
26081        }; then
26082   ac_header_preproc=yes
26083 else
26084   echo "$as_me: failed program was:" >&5
26085 sed 's/^/| /' conftest.$ac_ext >&5
26086
26087   ac_header_preproc=no
26088 fi
26089
26090 rm -f conftest.err conftest.$ac_ext
26091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26092 echo "${ECHO_T}$ac_header_preproc" >&6; }
26093
26094 # So?  What about this header?
26095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26096   yes:no: )
26097     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26099     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26101     ac_header_preproc=yes
26102     ;;
26103   no:yes:* )
26104     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26106     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26107 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26108     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26110     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26111 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26112     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26114     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26116
26117     ;;
26118 esac
26119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26122   echo $ECHO_N "(cached) $ECHO_C" >&6
26123 else
26124   eval "$as_ac_Header=\$ac_header_preproc"
26125 fi
26126 ac_res=`eval echo '${'$as_ac_Header'}'`
26127                { echo "$as_me:$LINENO: result: $ac_res" >&5
26128 echo "${ECHO_T}$ac_res" >&6; }
26129
26130 fi
26131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26132   cat >>confdefs.h <<_ACEOF
26133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26134 _ACEOF
26135
26136 fi
26137
26138 done
26139
26140
26141
26142 { echo "$as_me:$LINENO: checking for Python support" >&5
26143 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26144
26145 # Check whether --with-python was given.
26146 if test "${with_python+set}" = set; then
26147   withval=$with_python;
26148        PYTHON_INCDIR=
26149        PYTHON_LIBS=
26150        if test "$withval" != "no"; then
26151           if test "$withval" = "yes"; then
26152              if test -e /usr/bin/python-config ; then
26153                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26154                 PYTHON_LIBS=`/usr/bin/python-config --libs`
26155              else
26156                 for python_root in /usr /usr/local /usr/sfw; do
26157                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26158                       if test -f $python_root/include/${ver}/Python.h; then
26159                          PYTHON_INCDIR=-I$python_root/include/${ver}
26160                          if test -d $python_root/lib64/${ver}/config; then
26161                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26162                          else
26163                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26164                          fi
26165                          break
26166                       fi
26167                    done
26168                 done
26169
26170                 if test x$PYTHON_INCDIR = x; then
26171                    if test -f $prefix/include/Python.h; then
26172                       PYTHON_INCDIR=-I$prefix/include
26173                       if test -d $prefix/lib64/config; then
26174                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26175                       else
26176                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
26177                       fi
26178                    else
26179                       { echo "$as_me:$LINENO: result: no" >&5
26180 echo "${ECHO_T}no" >&6; }
26181                       { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26182 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26183    { (exit 1); exit 1; }; }
26184                    fi
26185                 fi
26186              fi
26187           else
26188              if test -e $withval/bin/python-config ; then
26189                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26190                 PYTHON_LIBS=`$withval/bin/python-config --libs`
26191              elif test -f $withval/Python.h; then
26192                 PYTHON_INCDIR=-I$withval
26193                 PYTHON_LIBS="-L$withval/config -lpython"
26194              elif test -f $withval/include/Python.h; then
26195                 PYTHON_INCDIR=-I$withval/include
26196                 if test -d $withval/lib64/config; then
26197                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26198                 else
26199                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26200                 fi
26201              elif test -f $withval/include/python/Python.h; then
26202                 PYTHON_INCDIR=-I$withval/include/python
26203                 if test -d $withval/lib64/python/config; then
26204                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26205                 else
26206                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26207                 fi
26208              else
26209                 { echo "$as_me:$LINENO: result: no" >&5
26210 echo "${ECHO_T}no" >&6; }
26211                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26212 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26213    { (exit 1); exit 1; }; }
26214              fi
26215           fi
26216
26217           cat >>confdefs.h <<\_ACEOF
26218 #define HAVE_PYTHON 1
26219 _ACEOF
26220
26221           { echo "$as_me:$LINENO: result: yes" >&5
26222 echo "${ECHO_T}yes" >&6; }
26223           support_python=yes
26224           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26225 echo "$as_me: checking for more Python libs" >&6;}
26226           saved_LIBS="$LIBS"; LIBS=
26227           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26228 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26229 if test "${ac_cv_search_shm_open+set}" = set; then
26230   echo $ECHO_N "(cached) $ECHO_C" >&6
26231 else
26232   ac_func_search_save_LIBS=$LIBS
26233 cat >conftest.$ac_ext <<_ACEOF
26234 /* confdefs.h.  */
26235 _ACEOF
26236 cat confdefs.h >>conftest.$ac_ext
26237 cat >>conftest.$ac_ext <<_ACEOF
26238 /* end confdefs.h.  */
26239
26240 /* Override any GCC internal prototype to avoid an error.
26241    Use char because int might match the return type of a GCC
26242    builtin and then its argument prototype would still apply.  */
26243 #ifdef __cplusplus
26244 extern "C"
26245 #endif
26246 char shm_open ();
26247 int
26248 main ()
26249 {
26250 return shm_open ();
26251   ;
26252   return 0;
26253 }
26254 _ACEOF
26255 for ac_lib in '' rt; do
26256   if test -z "$ac_lib"; then
26257     ac_res="none required"
26258   else
26259     ac_res=-l$ac_lib
26260     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26261   fi
26262   rm -f conftest.$ac_objext conftest$ac_exeext
26263 if { (ac_try="$ac_link"
26264 case "(($ac_try" in
26265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26266   *) ac_try_echo=$ac_try;;
26267 esac
26268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26269   (eval "$ac_link") 2>conftest.er1
26270   ac_status=$?
26271   grep -v '^ *+' conftest.er1 >conftest.err
26272   rm -f conftest.er1
26273   cat conftest.err >&5
26274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275   (exit $ac_status); } && {
26276          test -z "$ac_c_werror_flag" ||
26277          test ! -s conftest.err
26278        } && test -s conftest$ac_exeext &&
26279        $as_test_x conftest$ac_exeext; then
26280   ac_cv_search_shm_open=$ac_res
26281 else
26282   echo "$as_me: failed program was:" >&5
26283 sed 's/^/| /' conftest.$ac_ext >&5
26284
26285
26286 fi
26287
26288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26289       conftest$ac_exeext
26290   if test "${ac_cv_search_shm_open+set}" = set; then
26291   break
26292 fi
26293 done
26294 if test "${ac_cv_search_shm_open+set}" = set; then
26295   :
26296 else
26297   ac_cv_search_shm_open=no
26298 fi
26299 rm conftest.$ac_ext
26300 LIBS=$ac_func_search_save_LIBS
26301 fi
26302 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26303 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26304 ac_res=$ac_cv_search_shm_open
26305 if test "$ac_res" != no; then
26306   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26307
26308 fi
26309
26310
26311 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26312 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26313 if test "${ac_cv_lib_util_openpty+set}" = set; then
26314   echo $ECHO_N "(cached) $ECHO_C" >&6
26315 else
26316   ac_check_lib_save_LIBS=$LIBS
26317 LIBS="-lutil  $LIBS"
26318 cat >conftest.$ac_ext <<_ACEOF
26319 /* confdefs.h.  */
26320 _ACEOF
26321 cat confdefs.h >>conftest.$ac_ext
26322 cat >>conftest.$ac_ext <<_ACEOF
26323 /* end confdefs.h.  */
26324
26325 /* Override any GCC internal prototype to avoid an error.
26326    Use char because int might match the return type of a GCC
26327    builtin and then its argument prototype would still apply.  */
26328 #ifdef __cplusplus
26329 extern "C"
26330 #endif
26331 char openpty ();
26332 int
26333 main ()
26334 {
26335 return openpty ();
26336   ;
26337   return 0;
26338 }
26339 _ACEOF
26340 rm -f conftest.$ac_objext conftest$ac_exeext
26341 if { (ac_try="$ac_link"
26342 case "(($ac_try" in
26343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26344   *) ac_try_echo=$ac_try;;
26345 esac
26346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26347   (eval "$ac_link") 2>conftest.er1
26348   ac_status=$?
26349   grep -v '^ *+' conftest.er1 >conftest.err
26350   rm -f conftest.er1
26351   cat conftest.err >&5
26352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26353   (exit $ac_status); } && {
26354          test -z "$ac_c_werror_flag" ||
26355          test ! -s conftest.err
26356        } && test -s conftest$ac_exeext &&
26357        $as_test_x conftest$ac_exeext; then
26358   ac_cv_lib_util_openpty=yes
26359 else
26360   echo "$as_me: failed program was:" >&5
26361 sed 's/^/| /' conftest.$ac_ext >&5
26362
26363         ac_cv_lib_util_openpty=no
26364 fi
26365
26366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26367       conftest$ac_exeext conftest.$ac_ext
26368 LIBS=$ac_check_lib_save_LIBS
26369 fi
26370 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26371 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26372 if test $ac_cv_lib_util_openpty = yes; then
26373   cat >>confdefs.h <<_ACEOF
26374 #define HAVE_LIBUTIL 1
26375 _ACEOF
26376
26377   LIBS="-lutil $LIBS"
26378
26379 fi
26380
26381           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26382           LIBS="$saved_LIBS"
26383        else
26384           { echo "$as_me:$LINENO: result: no" >&5
26385 echo "${ECHO_T}no" >&6; }
26386        fi
26387
26388 else
26389
26390        { echo "$as_me:$LINENO: result: no" >&5
26391 echo "${ECHO_T}no" >&6; }
26392
26393
26394 fi
26395
26396
26397
26398
26399 { echo "$as_me:$LINENO: checking for socket" >&5
26400 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26401 if test "${ac_cv_func_socket+set}" = set; then
26402   echo $ECHO_N "(cached) $ECHO_C" >&6
26403 else
26404   cat >conftest.$ac_ext <<_ACEOF
26405 /* confdefs.h.  */
26406 _ACEOF
26407 cat confdefs.h >>conftest.$ac_ext
26408 cat >>conftest.$ac_ext <<_ACEOF
26409 /* end confdefs.h.  */
26410 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26411    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26412 #define socket innocuous_socket
26413
26414 /* System header to define __stub macros and hopefully few prototypes,
26415     which can conflict with char socket (); below.
26416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26417     <limits.h> exists even on freestanding compilers.  */
26418
26419 #ifdef __STDC__
26420 # include <limits.h>
26421 #else
26422 # include <assert.h>
26423 #endif
26424
26425 #undef socket
26426
26427 /* Override any GCC internal prototype to avoid an error.
26428    Use char because int might match the return type of a GCC
26429    builtin and then its argument prototype would still apply.  */
26430 #ifdef __cplusplus
26431 extern "C"
26432 #endif
26433 char socket ();
26434 /* The GNU C library defines this for functions which it implements
26435     to always fail with ENOSYS.  Some functions are actually named
26436     something starting with __ and the normal name is an alias.  */
26437 #if defined __stub_socket || defined __stub___socket
26438 choke me
26439 #endif
26440
26441 int
26442 main ()
26443 {
26444 return socket ();
26445   ;
26446   return 0;
26447 }
26448 _ACEOF
26449 rm -f conftest.$ac_objext conftest$ac_exeext
26450 if { (ac_try="$ac_link"
26451 case "(($ac_try" in
26452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26453   *) ac_try_echo=$ac_try;;
26454 esac
26455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26456   (eval "$ac_link") 2>conftest.er1
26457   ac_status=$?
26458   grep -v '^ *+' conftest.er1 >conftest.err
26459   rm -f conftest.er1
26460   cat conftest.err >&5
26461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26462   (exit $ac_status); } && {
26463          test -z "$ac_c_werror_flag" ||
26464          test ! -s conftest.err
26465        } && test -s conftest$ac_exeext &&
26466        $as_test_x conftest$ac_exeext; then
26467   ac_cv_func_socket=yes
26468 else
26469   echo "$as_me: failed program was:" >&5
26470 sed 's/^/| /' conftest.$ac_ext >&5
26471
26472         ac_cv_func_socket=no
26473 fi
26474
26475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26476       conftest$ac_exeext conftest.$ac_ext
26477 fi
26478 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26479 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26480 if test $ac_cv_func_socket = yes; then
26481   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26482 echo "${ECHO_T}using libc's socket" >&6; }
26483 else
26484
26485 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26486 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26487 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26488   echo $ECHO_N "(cached) $ECHO_C" >&6
26489 else
26490   ac_check_lib_save_LIBS=$LIBS
26491 LIBS="-lxnet  $LIBS"
26492 cat >conftest.$ac_ext <<_ACEOF
26493 /* confdefs.h.  */
26494 _ACEOF
26495 cat confdefs.h >>conftest.$ac_ext
26496 cat >>conftest.$ac_ext <<_ACEOF
26497 /* end confdefs.h.  */
26498
26499 /* Override any GCC internal prototype to avoid an error.
26500    Use char because int might match the return type of a GCC
26501    builtin and then its argument prototype would still apply.  */
26502 #ifdef __cplusplus
26503 extern "C"
26504 #endif
26505 char socket ();
26506 int
26507 main ()
26508 {
26509 return socket ();
26510   ;
26511   return 0;
26512 }
26513 _ACEOF
26514 rm -f conftest.$ac_objext conftest$ac_exeext
26515 if { (ac_try="$ac_link"
26516 case "(($ac_try" in
26517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26518   *) ac_try_echo=$ac_try;;
26519 esac
26520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26521   (eval "$ac_link") 2>conftest.er1
26522   ac_status=$?
26523   grep -v '^ *+' conftest.er1 >conftest.err
26524   rm -f conftest.er1
26525   cat conftest.err >&5
26526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26527   (exit $ac_status); } && {
26528          test -z "$ac_c_werror_flag" ||
26529          test ! -s conftest.err
26530        } && test -s conftest$ac_exeext &&
26531        $as_test_x conftest$ac_exeext; then
26532   ac_cv_lib_xnet_socket=yes
26533 else
26534   echo "$as_me: failed program was:" >&5
26535 sed 's/^/| /' conftest.$ac_ext >&5
26536
26537         ac_cv_lib_xnet_socket=no
26538 fi
26539
26540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26541       conftest$ac_exeext conftest.$ac_ext
26542 LIBS=$ac_check_lib_save_LIBS
26543 fi
26544 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26545 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26546 if test $ac_cv_lib_xnet_socket = yes; then
26547   cat >>confdefs.h <<_ACEOF
26548 #define HAVE_LIBXNET 1
26549 _ACEOF
26550
26551   LIBS="-lxnet $LIBS"
26552
26553 fi
26554
26555
26556 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26557 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26558 if test "${ac_cv_lib_socket_socket+set}" = set; then
26559   echo $ECHO_N "(cached) $ECHO_C" >&6
26560 else
26561   ac_check_lib_save_LIBS=$LIBS
26562 LIBS="-lsocket  $LIBS"
26563 cat >conftest.$ac_ext <<_ACEOF
26564 /* confdefs.h.  */
26565 _ACEOF
26566 cat confdefs.h >>conftest.$ac_ext
26567 cat >>conftest.$ac_ext <<_ACEOF
26568 /* end confdefs.h.  */
26569
26570 /* Override any GCC internal prototype to avoid an error.
26571    Use char because int might match the return type of a GCC
26572    builtin and then its argument prototype would still apply.  */
26573 #ifdef __cplusplus
26574 extern "C"
26575 #endif
26576 char socket ();
26577 int
26578 main ()
26579 {
26580 return socket ();
26581   ;
26582   return 0;
26583 }
26584 _ACEOF
26585 rm -f conftest.$ac_objext conftest$ac_exeext
26586 if { (ac_try="$ac_link"
26587 case "(($ac_try" in
26588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26589   *) ac_try_echo=$ac_try;;
26590 esac
26591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26592   (eval "$ac_link") 2>conftest.er1
26593   ac_status=$?
26594   grep -v '^ *+' conftest.er1 >conftest.err
26595   rm -f conftest.er1
26596   cat conftest.err >&5
26597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26598   (exit $ac_status); } && {
26599          test -z "$ac_c_werror_flag" ||
26600          test ! -s conftest.err
26601        } && test -s conftest$ac_exeext &&
26602        $as_test_x conftest$ac_exeext; then
26603   ac_cv_lib_socket_socket=yes
26604 else
26605   echo "$as_me: failed program was:" >&5
26606 sed 's/^/| /' conftest.$ac_ext >&5
26607
26608         ac_cv_lib_socket_socket=no
26609 fi
26610
26611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26612       conftest$ac_exeext conftest.$ac_ext
26613 LIBS=$ac_check_lib_save_LIBS
26614 fi
26615 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26616 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26617 if test $ac_cv_lib_socket_socket = yes; then
26618   cat >>confdefs.h <<_ACEOF
26619 #define HAVE_LIBSOCKET 1
26620 _ACEOF
26621
26622   LIBS="-lsocket $LIBS"
26623
26624 fi
26625
26626
26627 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26628 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26629 if test "${ac_cv_lib_inet_socket+set}" = set; then
26630   echo $ECHO_N "(cached) $ECHO_C" >&6
26631 else
26632   ac_check_lib_save_LIBS=$LIBS
26633 LIBS="-linet  $LIBS"
26634 cat >conftest.$ac_ext <<_ACEOF
26635 /* confdefs.h.  */
26636 _ACEOF
26637 cat confdefs.h >>conftest.$ac_ext
26638 cat >>conftest.$ac_ext <<_ACEOF
26639 /* end confdefs.h.  */
26640
26641 /* Override any GCC internal prototype to avoid an error.
26642    Use char because int might match the return type of a GCC
26643    builtin and then its argument prototype would still apply.  */
26644 #ifdef __cplusplus
26645 extern "C"
26646 #endif
26647 char socket ();
26648 int
26649 main ()
26650 {
26651 return socket ();
26652   ;
26653   return 0;
26654 }
26655 _ACEOF
26656 rm -f conftest.$ac_objext conftest$ac_exeext
26657 if { (ac_try="$ac_link"
26658 case "(($ac_try" in
26659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26660   *) ac_try_echo=$ac_try;;
26661 esac
26662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26663   (eval "$ac_link") 2>conftest.er1
26664   ac_status=$?
26665   grep -v '^ *+' conftest.er1 >conftest.err
26666   rm -f conftest.er1
26667   cat conftest.err >&5
26668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26669   (exit $ac_status); } && {
26670          test -z "$ac_c_werror_flag" ||
26671          test ! -s conftest.err
26672        } && test -s conftest$ac_exeext &&
26673        $as_test_x conftest$ac_exeext; then
26674   ac_cv_lib_inet_socket=yes
26675 else
26676   echo "$as_me: failed program was:" >&5
26677 sed 's/^/| /' conftest.$ac_ext >&5
26678
26679         ac_cv_lib_inet_socket=no
26680 fi
26681
26682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26683       conftest$ac_exeext conftest.$ac_ext
26684 LIBS=$ac_check_lib_save_LIBS
26685 fi
26686 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26687 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26688 if test $ac_cv_lib_inet_socket = yes; then
26689   cat >>confdefs.h <<_ACEOF
26690 #define HAVE_LIBINET 1
26691 _ACEOF
26692
26693   LIBS="-linet $LIBS"
26694
26695 fi
26696
26697 fi
26698
26699
26700 TCPW_MSG="no"
26701 WRAPLIBS=""
26702
26703 # Check whether --with-tcp-wrappers was given.
26704 if test "${with_tcp_wrappers+set}" = set; then
26705   withval=$with_tcp_wrappers;
26706        if test "x$withval" != "xno" ; then
26707           saved_LIBS="$LIBS"
26708           LIBS="$saved_LIBS -lwrap"
26709           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26710 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26711 if test "${ac_cv_search_nanosleep+set}" = set; then
26712   echo $ECHO_N "(cached) $ECHO_C" >&6
26713 else
26714   ac_func_search_save_LIBS=$LIBS
26715 cat >conftest.$ac_ext <<_ACEOF
26716 /* confdefs.h.  */
26717 _ACEOF
26718 cat confdefs.h >>conftest.$ac_ext
26719 cat >>conftest.$ac_ext <<_ACEOF
26720 /* end confdefs.h.  */
26721
26722 /* Override any GCC internal prototype to avoid an error.
26723    Use char because int might match the return type of a GCC
26724    builtin and then its argument prototype would still apply.  */
26725 #ifdef __cplusplus
26726 extern "C"
26727 #endif
26728 char nanosleep ();
26729 int
26730 main ()
26731 {
26732 return nanosleep ();
26733   ;
26734   return 0;
26735 }
26736 _ACEOF
26737 for ac_lib in '' rt; do
26738   if test -z "$ac_lib"; then
26739     ac_res="none required"
26740   else
26741     ac_res=-l$ac_lib
26742     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26743   fi
26744   rm -f conftest.$ac_objext conftest$ac_exeext
26745 if { (ac_try="$ac_link"
26746 case "(($ac_try" in
26747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26748   *) ac_try_echo=$ac_try;;
26749 esac
26750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26751   (eval "$ac_link") 2>conftest.er1
26752   ac_status=$?
26753   grep -v '^ *+' conftest.er1 >conftest.err
26754   rm -f conftest.er1
26755   cat conftest.err >&5
26756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26757   (exit $ac_status); } && {
26758          test -z "$ac_c_werror_flag" ||
26759          test ! -s conftest.err
26760        } && test -s conftest$ac_exeext &&
26761        $as_test_x conftest$ac_exeext; then
26762   ac_cv_search_nanosleep=$ac_res
26763 else
26764   echo "$as_me: failed program was:" >&5
26765 sed 's/^/| /' conftest.$ac_ext >&5
26766
26767
26768 fi
26769
26770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26771       conftest$ac_exeext
26772   if test "${ac_cv_search_nanosleep+set}" = set; then
26773   break
26774 fi
26775 done
26776 if test "${ac_cv_search_nanosleep+set}" = set; then
26777   :
26778 else
26779   ac_cv_search_nanosleep=no
26780 fi
26781 rm conftest.$ac_ext
26782 LIBS=$ac_func_search_save_LIBS
26783 fi
26784 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26785 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26786 ac_res=$ac_cv_search_nanosleep
26787 if test "$ac_res" != no; then
26788   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26789
26790 fi
26791
26792           { echo "$as_me:$LINENO: checking for libwrap" >&5
26793 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26794           cat >conftest.$ac_ext <<_ACEOF
26795 /* confdefs.h.  */
26796 _ACEOF
26797 cat confdefs.h >>conftest.$ac_ext
26798 cat >>conftest.$ac_ext <<_ACEOF
26799 /* end confdefs.h.  */
26800
26801                #include <sys/types.h>
26802                #include <tcpd.h>
26803                int deny_severity = 0;
26804                int allow_severity = 0;
26805                struct request_info *req;
26806
26807 int
26808 main ()
26809 {
26810
26811                 hosts_access(req);
26812
26813   ;
26814   return 0;
26815 }
26816 _ACEOF
26817 rm -f conftest.$ac_objext conftest$ac_exeext
26818 if { (ac_try="$ac_link"
26819 case "(($ac_try" in
26820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26821   *) ac_try_echo=$ac_try;;
26822 esac
26823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26824   (eval "$ac_link") 2>conftest.er1
26825   ac_status=$?
26826   grep -v '^ *+' conftest.er1 >conftest.err
26827   rm -f conftest.er1
26828   cat conftest.err >&5
26829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830   (exit $ac_status); } && {
26831          test -z "$ac_c_werror_flag" ||
26832          test ! -s conftest.err
26833        } && test -s conftest$ac_exeext &&
26834        $as_test_x conftest$ac_exeext; then
26835
26836                  { echo "$as_me:$LINENO: result: yes" >&5
26837 echo "${ECHO_T}yes" >&6; }
26838
26839 cat >>confdefs.h <<\_ACEOF
26840 #define HAVE_LIBWRAP 1
26841 _ACEOF
26842
26843                  TCPW_MSG="yes"
26844                  LIBS="$saved_LIBS"
26845                  WRAPLIBS="-lwrap"
26846
26847 else
26848   echo "$as_me: failed program was:" >&5
26849 sed 's/^/| /' conftest.$ac_ext >&5
26850
26851
26852                  LIBS="$saved_LIBS -lwrap -lnsl"
26853                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26854                  cat >conftest.$ac_ext <<_ACEOF
26855 /* confdefs.h.  */
26856 _ACEOF
26857 cat confdefs.h >>conftest.$ac_ext
26858 cat >>conftest.$ac_ext <<_ACEOF
26859 /* end confdefs.h.  */
26860
26861                        #include <sys/types.h>
26862                        #include <tcpd.h>
26863                        int deny_severity = 0;
26864                        int allow_severity = 0;
26865                        struct request_info *req;
26866
26867 int
26868 main ()
26869 {
26870
26871                        hosts_access(req);
26872
26873   ;
26874   return 0;
26875 }
26876 _ACEOF
26877 rm -f conftest.$ac_objext conftest$ac_exeext
26878 if { (ac_try="$ac_link"
26879 case "(($ac_try" in
26880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26881   *) ac_try_echo=$ac_try;;
26882 esac
26883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26884   (eval "$ac_link") 2>conftest.er1
26885   ac_status=$?
26886   grep -v '^ *+' conftest.er1 >conftest.err
26887   rm -f conftest.er1
26888   cat conftest.err >&5
26889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26890   (exit $ac_status); } && {
26891          test -z "$ac_c_werror_flag" ||
26892          test ! -s conftest.err
26893        } && test -s conftest$ac_exeext &&
26894        $as_test_x conftest$ac_exeext; then
26895
26896                       { echo "$as_me:$LINENO: result: yes" >&5
26897 echo "${ECHO_T}yes" >&6; }
26898
26899 cat >>confdefs.h <<\_ACEOF
26900 #define HAVE_LIBWRAP 1
26901 _ACEOF
26902
26903                       TCPW_MSG="yes"
26904                       LIBS="$saved_LIBS"
26905                       WRAPLIBS="-lwrap"
26906
26907 else
26908   echo "$as_me: failed program was:" >&5
26909 sed 's/^/| /' conftest.$ac_ext >&5
26910
26911
26912                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26913 echo "$as_me: error: *** libwrap missing" >&2;}
26914    { (exit 1); exit 1; }; }
26915
26916
26917 fi
26918
26919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26920       conftest$ac_exeext conftest.$ac_ext
26921
26922
26923 fi
26924
26925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26926       conftest$ac_exeext conftest.$ac_ext
26927        fi
26928
26929
26930 fi
26931
26932
26933 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26934 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26935
26936 # Check whether --with-openssl was given.
26937 if test "${with_openssl+set}" = set; then
26938   withval=$with_openssl;
26939         with_openssl_directory=${withval}
26940
26941
26942 fi
26943
26944
26945 if test "x$with_openssl_directory" != "xno"; then
26946    OPENSSL_LIBS="-lssl -lcrypto"
26947    OPENSSL_INC=""
26948
26949    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26950       #
26951       # Make sure the $with_openssl_directory also makes sense
26952       #
26953       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26954          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26955          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
26956       fi
26957    fi
26958
26959    saved_LIBS="${LIBS}"
26960    saved_CFLAGS="${CFLAGS}"
26961    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
26962    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
26963
26964    cat >conftest.$ac_ext <<_ACEOF
26965 /* confdefs.h.  */
26966 _ACEOF
26967 cat confdefs.h >>conftest.$ac_ext
26968 cat >>conftest.$ac_ext <<_ACEOF
26969 /* end confdefs.h.  */
26970
26971           #include <openssl/ssl.h>
26972
26973 int
26974 main ()
26975 {
26976
26977            CRYPTO_set_id_callback(NULL);
26978
26979   ;
26980   return 0;
26981 }
26982 _ACEOF
26983 rm -f conftest.$ac_objext conftest$ac_exeext
26984 if { (ac_try="$ac_link"
26985 case "(($ac_try" in
26986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26987   *) ac_try_echo=$ac_try;;
26988 esac
26989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26990   (eval "$ac_link") 2>conftest.er1
26991   ac_status=$?
26992   grep -v '^ *+' conftest.er1 >conftest.err
26993   rm -f conftest.er1
26994   cat conftest.err >&5
26995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26996   (exit $ac_status); } && {
26997          test -z "$ac_c_werror_flag" ||
26998          test ! -s conftest.err
26999        } && test -s conftest$ac_exeext &&
27000        $as_test_x conftest$ac_exeext; then
27001
27002           support_tls="yes"
27003           support_crypto="yes"
27004
27005 else
27006   echo "$as_me: failed program was:" >&5
27007 sed 's/^/| /' conftest.$ac_ext >&5
27008
27009
27010           support_tls="no"
27011           support_crypto="no"
27012
27013
27014 fi
27015
27016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27017       conftest$ac_exeext conftest.$ac_ext
27018
27019    cat >conftest.$ac_ext <<_ACEOF
27020 /* confdefs.h.  */
27021 _ACEOF
27022 cat confdefs.h >>conftest.$ac_ext
27023 cat >>conftest.$ac_ext <<_ACEOF
27024 /* end confdefs.h.  */
27025
27026           #include <openssl/evp.h>
27027
27028 int
27029 main ()
27030 {
27031
27032           EVP_sha512();
27033
27034   ;
27035   return 0;
27036 }
27037 _ACEOF
27038 rm -f conftest.$ac_objext conftest$ac_exeext
27039 if { (ac_try="$ac_link"
27040 case "(($ac_try" in
27041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27042   *) ac_try_echo=$ac_try;;
27043 esac
27044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27045   (eval "$ac_link") 2>conftest.er1
27046   ac_status=$?
27047   grep -v '^ *+' conftest.er1 >conftest.err
27048   rm -f conftest.er1
27049   cat conftest.err >&5
27050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051   (exit $ac_status); } && {
27052          test -z "$ac_c_werror_flag" ||
27053          test ! -s conftest.err
27054        } && test -s conftest$ac_exeext &&
27055        $as_test_x conftest$ac_exeext; then
27056
27057           ac_cv_openssl_sha2="yes"
27058
27059 else
27060   echo "$as_me: failed program was:" >&5
27061 sed 's/^/| /' conftest.$ac_ext >&5
27062
27063
27064           ac_cv_openssl_sha2="no"
27065
27066
27067 fi
27068
27069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27070       conftest$ac_exeext conftest.$ac_ext
27071
27072                cat >conftest.$ac_ext <<_ACEOF
27073 /* confdefs.h.  */
27074 _ACEOF
27075 cat confdefs.h >>conftest.$ac_ext
27076 cat >>conftest.$ac_ext <<_ACEOF
27077 /* end confdefs.h.  */
27078
27079           #include <openssl/evp.h>
27080
27081 int
27082 main ()
27083 {
27084
27085           EVP_aes_192_cbc();
27086
27087   ;
27088   return 0;
27089 }
27090 _ACEOF
27091 rm -f conftest.$ac_objext conftest$ac_exeext
27092 if { (ac_try="$ac_link"
27093 case "(($ac_try" in
27094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27095   *) ac_try_echo=$ac_try;;
27096 esac
27097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27098   (eval "$ac_link") 2>conftest.er1
27099   ac_status=$?
27100   grep -v '^ *+' conftest.er1 >conftest.err
27101   rm -f conftest.er1
27102   cat conftest.err >&5
27103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104   (exit $ac_status); } && {
27105          test -z "$ac_c_werror_flag" ||
27106          test ! -s conftest.err
27107        } && test -s conftest$ac_exeext &&
27108        $as_test_x conftest$ac_exeext; then
27109
27110           ac_cv_openssl_export="no"
27111
27112 else
27113   echo "$as_me: failed program was:" >&5
27114 sed 's/^/| /' conftest.$ac_ext >&5
27115
27116
27117           ac_cv_openssl_export="yes"
27118
27119
27120 fi
27121
27122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27123       conftest$ac_exeext conftest.$ac_ext
27124
27125    LIBS="${saved_LIBS}"
27126    CFLAGS="${saved_CFLAGS}"
27127
27128    if test "$support_tls" = "yes"; then
27129
27130 cat >>confdefs.h <<\_ACEOF
27131 #define HAVE_OPENSSL 1
27132 _ACEOF
27133
27134
27135 cat >>confdefs.h <<\_ACEOF
27136 #define HAVE_TLS 1
27137 _ACEOF
27138
27139
27140 cat >>confdefs.h <<\_ACEOF
27141 #define HAVE_CRYPTO 1
27142 _ACEOF
27143
27144    fi
27145
27146    if test "$ac_cv_openssl_sha2" = "yes"; then
27147
27148 cat >>confdefs.h <<\_ACEOF
27149 #define HAVE_SHA2 1
27150 _ACEOF
27151
27152    fi
27153
27154    if test "$ac_cv_openssl_export" = "yes"; then
27155
27156 cat >>confdefs.h <<\_ACEOF
27157 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27158 _ACEOF
27159
27160    fi
27161 else
27162    support_tls="no"
27163    support_crypto="no"
27164    OPENSSL_LIBS=""
27165    OPENSSL_INC=""
27166 fi
27167
27168 if test "$support_tls" = "no"; then
27169    OPENSSL_LIBS=""
27170    OPENSSL_INC=""
27171 fi
27172 if test "$support_crypto" = "no"; then
27173    OPENSSL_LIBS=""
27174    OPENSSL_INC=""
27175 fi
27176
27177 { echo "$as_me:$LINENO: result: $support_tls" >&5
27178 echo "${ECHO_T}$support_tls" >&6; }
27179
27180
27181
27182 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27183 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27184 if test "${ac_cv_search_dlopen+set}" = set; then
27185   echo $ECHO_N "(cached) $ECHO_C" >&6
27186 else
27187   ac_func_search_save_LIBS=$LIBS
27188 cat >conftest.$ac_ext <<_ACEOF
27189 /* confdefs.h.  */
27190 _ACEOF
27191 cat confdefs.h >>conftest.$ac_ext
27192 cat >>conftest.$ac_ext <<_ACEOF
27193 /* end confdefs.h.  */
27194
27195 /* Override any GCC internal prototype to avoid an error.
27196    Use char because int might match the return type of a GCC
27197    builtin and then its argument prototype would still apply.  */
27198 #ifdef __cplusplus
27199 extern "C"
27200 #endif
27201 char dlopen ();
27202 int
27203 main ()
27204 {
27205 return dlopen ();
27206   ;
27207   return 0;
27208 }
27209 _ACEOF
27210 for ac_lib in '' dl; do
27211   if test -z "$ac_lib"; then
27212     ac_res="none required"
27213   else
27214     ac_res=-l$ac_lib
27215     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27216   fi
27217   rm -f conftest.$ac_objext conftest$ac_exeext
27218 if { (ac_try="$ac_link"
27219 case "(($ac_try" in
27220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27221   *) ac_try_echo=$ac_try;;
27222 esac
27223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27224   (eval "$ac_link") 2>conftest.er1
27225   ac_status=$?
27226   grep -v '^ *+' conftest.er1 >conftest.err
27227   rm -f conftest.er1
27228   cat conftest.err >&5
27229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230   (exit $ac_status); } && {
27231          test -z "$ac_c_werror_flag" ||
27232          test ! -s conftest.err
27233        } && test -s conftest$ac_exeext &&
27234        $as_test_x conftest$ac_exeext; then
27235   ac_cv_search_dlopen=$ac_res
27236 else
27237   echo "$as_me: failed program was:" >&5
27238 sed 's/^/| /' conftest.$ac_ext >&5
27239
27240
27241 fi
27242
27243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27244       conftest$ac_exeext
27245   if test "${ac_cv_search_dlopen+set}" = set; then
27246   break
27247 fi
27248 done
27249 if test "${ac_cv_search_dlopen+set}" = set; then
27250   :
27251 else
27252   ac_cv_search_dlopen=no
27253 fi
27254 rm conftest.$ac_ext
27255 LIBS=$ac_func_search_save_LIBS
27256 fi
27257 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27258 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27259 ac_res=$ac_cv_search_dlopen
27260 if test "$ac_res" != no; then
27261   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27262
27263 fi
27264
27265
27266 working_dir=`eval echo ${prefix}/var/bacula/working`
27267
27268 # Check whether --with-working-dir was given.
27269 if test "${with_working_dir+set}" = set; then
27270   withval=$with_working_dir;
27271        if test "x$withval" != "xno" ; then
27272          working_dir=$withval
27273        fi
27274
27275
27276 fi
27277
27278
27279
27280
27281 archivedir=/tmp
27282
27283 # Check whether --with-archivedir was given.
27284 if test "${with_archivedir+set}" = set; then
27285   withval=$with_archivedir;
27286        if test "x$withval" != "xno" ; then
27287           archivedir=$withval
27288        fi
27289
27290
27291 fi
27292
27293
27294
27295
27296 basename=`hostname`
27297
27298 # Check whether --with-basename was given.
27299 if test "${with_basename+set}" = set; then
27300   withval=$with_basename;
27301        if test "x$withval" != "xno" ; then
27302           basename=$withval
27303        fi
27304
27305
27306 fi
27307
27308
27309
27310
27311 hostname=`uname -n | cut -d '.' -f 1`
27312 if test x${hostname} = x ; then
27313   hostname="localhost"
27314 fi
27315
27316 # Check whether --with-hostname was given.
27317 if test "${with_hostname+set}" = set; then
27318   withval=$with_hostname;
27319        if test "x$withval" != "xno" ; then
27320          hostname=$withval
27321        fi
27322
27323
27324 fi
27325
27326
27327
27328
27329
27330 scriptdir=`eval echo ${sysconfdir}`
27331
27332 # Check whether --with-scriptdir was given.
27333 if test "${with_scriptdir+set}" = set; then
27334   withval=$with_scriptdir;
27335        if test "x$withval" != "xno" ; then
27336           scriptdir=$withval
27337        fi
27338
27339
27340 fi
27341
27342
27343
27344
27345
27346 bsrdir=/tmp
27347
27348 # Check whether --with-bsrdir was given.
27349 if test "${with_bsrdir+set}" = set; then
27350   withval=$with_bsrdir;
27351        if test "x$withval" != "xno" ; then
27352           bsrdir=$withval
27353        fi
27354
27355
27356 fi
27357
27358
27359
27360
27361 logdir=/tmp
27362
27363 # Check whether --with-logdir was given.
27364 if test "${with_logdir+set}" = set; then
27365   withval=$with_logdir;
27366        if test "x$withval" != "xno" ; then
27367           logdir=$withval
27368        fi
27369
27370
27371 fi
27372
27373
27374
27375
27376
27377 # ------------------------------------------
27378 # Where to place plugindir (plugin files)
27379 # ------------------------------------------
27380 plugindir=`eval echo ${libdir}`
27381
27382 # Check whether --with-plugindir was given.
27383 if test "${with_plugindir+set}" = set; then
27384   withval=$with_plugindir;
27385        if test "x$withval" != "xno" ; then
27386           plugindir=$withval
27387        fi
27388
27389
27390 fi
27391
27392
27393
27394
27395 dump_email=root@localhost
27396
27397 # Check whether --with-dump-email was given.
27398 if test "${with_dump_email+set}" = set; then
27399   withval=$with_dump_email;
27400        if test "x$withval" != "xno" ; then
27401           dump_email=$withval
27402        fi
27403
27404
27405 fi
27406
27407
27408
27409
27410 job_email=root@localhost
27411
27412 # Check whether --with-job-email was given.
27413 if test "${with_job_email+set}" = set; then
27414   withval=$with_job_email;
27415        if test "x$withval" != "xno" ; then
27416           job_email=$withval
27417        fi
27418
27419
27420 fi
27421
27422
27423
27424
27425 smtp_host=localhost
27426
27427 # Check whether --with-smtp_host was given.
27428 if test "${with_smtp_host+set}" = set; then
27429   withval=$with_smtp_host;
27430        if test "x$withval" != "xno" ; then
27431           smtp_host=$withval
27432        fi
27433
27434
27435 fi
27436
27437
27438
27439
27440 piddir=/var/run
27441
27442 # Check whether --with-pid-dir was given.
27443 if test "${with_pid_dir+set}" = set; then
27444   withval=$with_pid_dir;
27445        if test "x$withval" != "xno" ; then
27446           piddir=$withval
27447        fi
27448
27449
27450 fi
27451
27452
27453 cat >>confdefs.h <<_ACEOF
27454 #define _PATH_BACULA_PIDDIR "$piddir"
27455 _ACEOF
27456
27457
27458
27459 subsysdir=/var/run/subsys
27460 if test -d /var/run/subsys; then
27461    subsysdir=/var/run/subsys
27462 elif test -d /var/lock/subsys; then
27463    subsysdir=/var/lock/subsys
27464 else
27465    subsysdir=/var/run/subsys
27466 fi
27467
27468 # Check whether --with-subsys-dir was given.
27469 if test "${with_subsys_dir+set}" = set; then
27470   withval=$with_subsys_dir;
27471        if test "x$withval" != "xno" ; then
27472           subsysdir=$withval
27473        fi
27474
27475
27476 fi
27477
27478
27479
27480
27481 baseport=9101
27482
27483 # Check whether --with-baseport was given.
27484 if test "${with_baseport+set}" = set; then
27485   withval=$with_baseport;
27486        if test "x$withval" != "xno" ; then
27487           baseport=$withval
27488        fi
27489
27490
27491 fi
27492
27493
27494
27495 dir_port=`expr $baseport`
27496 fd_port=`expr $baseport + 1`
27497 sd_port=`expr $fd_port + 1`
27498
27499
27500
27501
27502
27503 dir_password=
27504
27505 # Check whether --with-dir-password was given.
27506 if test "${with_dir_password+set}" = set; then
27507   withval=$with_dir_password;
27508        if test "x$withval" != "xno" ; then
27509           dir_password=$withval
27510        fi
27511
27512
27513 fi
27514
27515
27516 if test "x$dir_password" = "x" ; then
27517    if test "x$OPENSSL" = "xnone" ; then
27518       key=`autoconf/randpass 33`
27519    else
27520       key=`openssl rand -base64 33`
27521    fi
27522    dir_password=$key
27523 fi
27524
27525 fd_password=
27526
27527 # Check whether --with-fd-password was given.
27528 if test "${with_fd_password+set}" = set; then
27529   withval=$with_fd_password;
27530        if test "x$withval" != "xno" ; then
27531           fd_password=$withval
27532        fi
27533
27534
27535 fi
27536
27537
27538 if test "x$fd_password" = "x" ; then
27539    if test "x$OPENSSL" = "xnone" ; then
27540       key=`autoconf/randpass 37`
27541    else
27542       key=`openssl rand -base64 33`
27543    fi
27544    fd_password=$key
27545 fi
27546
27547 sd_password=
27548
27549 # Check whether --with-sd-password was given.
27550 if test "${with_sd_password+set}" = set; then
27551   withval=$with_sd_password;
27552        if test "x$withval" != "xno" ; then
27553           sd_password=$withval
27554        fi
27555
27556
27557 fi
27558
27559
27560 if test "x$sd_password" = "x" ; then
27561    if test "x$OPENSSL" = "xnone" ; then
27562       key=`autoconf/randpass 41`
27563    else
27564       key=`openssl rand -base64 33`
27565    fi
27566    sd_password=$key
27567 fi
27568
27569 mon_dir_password=
27570
27571 # Check whether --with-mon-dir-password was given.
27572 if test "${with_mon_dir_password+set}" = set; then
27573   withval=$with_mon_dir_password;
27574        if test "x$withval" != "xno" ; then
27575           mon_dir_password=$withval
27576        fi
27577
27578
27579 fi
27580
27581
27582 if test "x$mon_dir_password" = "x" ; then
27583    if test "x$OPENSSL" = "xnone" ; then
27584       key=`autoconf/randpass 33`
27585    else
27586       key=`openssl rand -base64 33`
27587    fi
27588    mon_dir_password=$key
27589 fi
27590
27591 mon_fd_password=
27592
27593 # Check whether --with-mon-fd-password was given.
27594 if test "${with_mon_fd_password+set}" = set; then
27595   withval=$with_mon_fd_password;
27596        if test "x$withval" != "xno" ; then
27597           mon_fd_password=$withval
27598        fi
27599
27600
27601 fi
27602
27603
27604 if test "x$mon_fd_password" = "x" ; then
27605    if test "x$OPENSSL" = "xnone" ; then
27606       key=`autoconf/randpass 37`
27607    else
27608       key=`openssl rand -base64 33`
27609    fi
27610    mon_fd_password=$key
27611 fi
27612
27613 mon_sd_password=
27614
27615 # Check whether --with-mon-sd-password was given.
27616 if test "${with_mon_sd_password+set}" = set; then
27617   withval=$with_mon_sd_password;
27618        if test "x$withval" != "xno" ; then
27619           mon_sd_password=$withval
27620        fi
27621
27622
27623 fi
27624
27625
27626 if test "x$mon_sd_password" = "x" ; then
27627    if test "x$OPENSSL" = "xnone" ; then
27628       key=`autoconf/randpass 41`
27629    else
27630       key=`openssl rand -base64 33`
27631    fi
27632    mon_sd_password=$key
27633 fi
27634
27635
27636
27637
27638
27639
27640
27641
27642 db_name=bacula
27643
27644 # Check whether --with-db_name was given.
27645 if test "${with_db_name+set}" = set; then
27646   withval=$with_db_name;
27647        if test "x$withval" != "x" ; then
27648           db_name=$withval
27649        fi
27650
27651
27652 fi
27653
27654
27655
27656 db_user=bacula
27657
27658 # Check whether --with-db_user was given.
27659 if test "${with_db_user+set}" = set; then
27660   withval=$with_db_user;
27661        if test "x$withval" != "x" ; then
27662           db_user=$withval
27663        fi
27664
27665
27666 fi
27667
27668
27669
27670 db_password=
27671
27672 # Check whether --with-db_password was given.
27673 if test "${with_db_password+set}" = set; then
27674   withval=$with_db_password;
27675        if test "x$withval" != "x" ; then
27676           db_password=$withval
27677        fi
27678
27679
27680 fi
27681
27682
27683
27684 db_port=" "
27685
27686 # Check whether --with-db_port was given.
27687 if test "${with_db_port+set}" = set; then
27688   withval=$with_db_port;
27689        if test "x$withval" != "x" ; then
27690           db_port=$withval
27691        fi
27692
27693
27694 fi
27695
27696
27697
27698 #
27699 # Handle users and groups for each daemon
27700 #
27701 dir_user=
27702
27703 # Check whether --with-dir_user was given.
27704 if test "${with_dir_user+set}" = set; then
27705   withval=$with_dir_user;
27706        if test "x$withval" != "x" ; then
27707            dir_user=$withval
27708        fi
27709
27710
27711 fi
27712
27713
27714 dir_group=
27715
27716 # Check whether --with-dir_group was given.
27717 if test "${with_dir_group+set}" = set; then
27718   withval=$with_dir_group;
27719        if test "x$withval" != "x" ; then
27720           dir_group=$withval
27721        fi
27722
27723
27724 fi
27725
27726
27727 sd_user=
27728
27729 # Check whether --with-sd_user was given.
27730 if test "${with_sd_user+set}" = set; then
27731   withval=$with_sd_user;
27732        if test "x$withval" != "x" ; then
27733           sd_user=$withval
27734        fi
27735
27736
27737 fi
27738
27739
27740 sd_group=
27741
27742 # Check whether --with-sd_group was given.
27743 if test "${with_sd_group+set}" = set; then
27744   withval=$with_sd_group;
27745        if test "x$withval" != "x" ; then
27746           sd_group=$withval
27747        fi
27748
27749
27750 fi
27751
27752
27753 fd_user=
27754
27755 # Check whether --with-fd_user was given.
27756 if test "${with_fd_user+set}" = set; then
27757   withval=$with_fd_user;
27758        if test "x$withval" != "x" ; then
27759           fd_user=$withval
27760        fi
27761
27762
27763 fi
27764
27765
27766 fd_group=
27767
27768 # Check whether --with-fd_group was given.
27769 if test "${with_fd_group+set}" = set; then
27770   withval=$with_fd_group;
27771        if test "x$withval" != "x" ; then
27772           fd_group=$withval
27773        fi
27774
27775
27776 fi
27777
27778
27779
27780
27781
27782
27783
27784
27785
27786 SBINPERM=0754
27787
27788 # Check whether --with-sbin-perm was given.
27789 if test "${with_sbin_perm+set}" = set; then
27790   withval=$with_sbin_perm;
27791        if test "x$withval" != "x" ; then
27792           SBINPERM=$withval
27793        fi
27794
27795
27796 fi
27797
27798
27799
27800
27801 SQL_LIB=
27802
27803 db_found=no
27804 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27805 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27806
27807 # Check whether --with-postgresql was given.
27808 if test "${with_postgresql+set}" = set; then
27809   withval=$with_postgresql;
27810   if test "$withval" != "no"; then
27811       if test "$db_found" = "yes"; then
27812           { echo "$as_me:$LINENO: result: error" >&5
27813 echo "${ECHO_T}error" >&6; }
27814           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27815 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27816    { (exit 1); exit 1; }; };
27817       fi
27818       if test "$withval" = "yes"; then
27819           PG_CONFIG=`which pg_config`
27820           if test -n "$PG_CONFIG";then
27821               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27822               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27823               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27824           elif test -f /usr/local/include/libpq-fe.h; then
27825               POSTGRESQL_INCDIR=/usr/local/include
27826               if test -d /usr/local/lib64; then
27827                  POSTGRESQL_LIBDIR=/usr/local/lib64
27828               else
27829                  POSTGRESQL_LIBDIR=/usr/local/lib
27830               fi
27831               POSTGRESQL_BINDIR=/usr/local/bin
27832           elif test -f /usr/include/libpq-fe.h; then
27833               POSTGRESQL_INCDIR=/usr/include
27834               if test -d /usr/lib64; then
27835                  POSTGRESQL_LIBDIR=/usr/lib64
27836               else
27837                  POSTGRESQL_LIBDIR=/usr/lib
27838               fi
27839               POSTGRESQL_BINDIR=/usr/bin
27840           elif test -f /usr/include/pgsql/libpq-fe.h; then
27841               POSTGRESQL_INCDIR=/usr/include/pgsql
27842               if test -d /usr/lib64/pgsql; then
27843                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27844               else
27845                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
27846               fi
27847               POSTGRESQL_BINDIR=/usr/bin
27848           elif test -f /usr/include/postgresql/libpq-fe.h; then
27849               POSTGRESQL_INCDIR=/usr/include/postgresql
27850               if test -d /usr/lib64/postgresql; then
27851                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27852               else
27853                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
27854               fi
27855               POSTGRESQL_BINDIR=/usr/bin
27856           else
27857               { echo "$as_me:$LINENO: result: no" >&5
27858 echo "${ECHO_T}no" >&6; }
27859               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27860 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27861    { (exit 1); exit 1; }; }
27862           fi
27863       elif test -f $withval/include/libpq-fe.h; then
27864           POSTGRESQL_INCDIR=$withval/include
27865           POSTGRESQL_LIBDIR=$withval/lib
27866           POSTGRESQL_BINDIR=$withval/bin
27867       elif test -f $withval/include/postgresql/libpq-fe.h; then
27868           POSTGRESQL_INCDIR=$withval/include/postgresql
27869      if test -d $withval/lib64; then
27870          POSTGRESQL_LIBDIR=$withval/lib64
27871      else
27872          POSTGRESQL_LIBDIR=$withval/lib
27873      fi
27874           POSTGRESQL_BINDIR=$withval/bin
27875       else
27876           { echo "$as_me:$LINENO: result: no" >&5
27877 echo "${ECHO_T}no" >&6; }
27878           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27879 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27880    { (exit 1); exit 1; }; }
27881       fi
27882       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27883       { echo "$as_me:$LINENO: checking for crypt" >&5
27884 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27885 if test "${ac_cv_func_crypt+set}" = set; then
27886   echo $ECHO_N "(cached) $ECHO_C" >&6
27887 else
27888   cat >conftest.$ac_ext <<_ACEOF
27889 /* confdefs.h.  */
27890 _ACEOF
27891 cat confdefs.h >>conftest.$ac_ext
27892 cat >>conftest.$ac_ext <<_ACEOF
27893 /* end confdefs.h.  */
27894 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27895    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27896 #define crypt innocuous_crypt
27897
27898 /* System header to define __stub macros and hopefully few prototypes,
27899     which can conflict with char crypt (); below.
27900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27901     <limits.h> exists even on freestanding compilers.  */
27902
27903 #ifdef __STDC__
27904 # include <limits.h>
27905 #else
27906 # include <assert.h>
27907 #endif
27908
27909 #undef crypt
27910
27911 /* Override any GCC internal prototype to avoid an error.
27912    Use char because int might match the return type of a GCC
27913    builtin and then its argument prototype would still apply.  */
27914 #ifdef __cplusplus
27915 extern "C"
27916 #endif
27917 char crypt ();
27918 /* The GNU C library defines this for functions which it implements
27919     to always fail with ENOSYS.  Some functions are actually named
27920     something starting with __ and the normal name is an alias.  */
27921 #if defined __stub_crypt || defined __stub___crypt
27922 choke me
27923 #endif
27924
27925 int
27926 main ()
27927 {
27928 return crypt ();
27929   ;
27930   return 0;
27931 }
27932 _ACEOF
27933 rm -f conftest.$ac_objext conftest$ac_exeext
27934 if { (ac_try="$ac_link"
27935 case "(($ac_try" in
27936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27937   *) ac_try_echo=$ac_try;;
27938 esac
27939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27940   (eval "$ac_link") 2>conftest.er1
27941   ac_status=$?
27942   grep -v '^ *+' conftest.er1 >conftest.err
27943   rm -f conftest.er1
27944   cat conftest.err >&5
27945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27946   (exit $ac_status); } && {
27947          test -z "$ac_c_werror_flag" ||
27948          test ! -s conftest.err
27949        } && test -s conftest$ac_exeext &&
27950        $as_test_x conftest$ac_exeext; then
27951   ac_cv_func_crypt=yes
27952 else
27953   echo "$as_me: failed program was:" >&5
27954 sed 's/^/| /' conftest.$ac_ext >&5
27955
27956         ac_cv_func_crypt=no
27957 fi
27958
27959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27960       conftest$ac_exeext conftest.$ac_ext
27961 fi
27962 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27963 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27964 if test $ac_cv_func_crypt = yes; then
27965   :
27966 else
27967   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27968 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27969 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27970   echo $ECHO_N "(cached) $ECHO_C" >&6
27971 else
27972   ac_check_lib_save_LIBS=$LIBS
27973 LIBS="-lcrypt  $LIBS"
27974 cat >conftest.$ac_ext <<_ACEOF
27975 /* confdefs.h.  */
27976 _ACEOF
27977 cat confdefs.h >>conftest.$ac_ext
27978 cat >>conftest.$ac_ext <<_ACEOF
27979 /* end confdefs.h.  */
27980
27981 /* Override any GCC internal prototype to avoid an error.
27982    Use char because int might match the return type of a GCC
27983    builtin and then its argument prototype would still apply.  */
27984 #ifdef __cplusplus
27985 extern "C"
27986 #endif
27987 char crypt ();
27988 int
27989 main ()
27990 {
27991 return crypt ();
27992   ;
27993   return 0;
27994 }
27995 _ACEOF
27996 rm -f conftest.$ac_objext conftest$ac_exeext
27997 if { (ac_try="$ac_link"
27998 case "(($ac_try" in
27999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28000   *) ac_try_echo=$ac_try;;
28001 esac
28002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28003   (eval "$ac_link") 2>conftest.er1
28004   ac_status=$?
28005   grep -v '^ *+' conftest.er1 >conftest.err
28006   rm -f conftest.er1
28007   cat conftest.err >&5
28008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009   (exit $ac_status); } && {
28010          test -z "$ac_c_werror_flag" ||
28011          test ! -s conftest.err
28012        } && test -s conftest$ac_exeext &&
28013        $as_test_x conftest$ac_exeext; then
28014   ac_cv_lib_crypt_crypt=yes
28015 else
28016   echo "$as_me: failed program was:" >&5
28017 sed 's/^/| /' conftest.$ac_ext >&5
28018
28019         ac_cv_lib_crypt_crypt=no
28020 fi
28021
28022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28023       conftest$ac_exeext conftest.$ac_ext
28024 LIBS=$ac_check_lib_save_LIBS
28025 fi
28026 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28027 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28028 if test $ac_cv_lib_crypt_crypt = yes; then
28029   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28030 fi
28031
28032 fi
28033
28034       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28035       SQL_LFLAGS=$POSTGRESQL_LFLAGS
28036       SQL_BINDIR=$POSTGRESQL_BINDIR
28037       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28038
28039       cat >>confdefs.h <<\_ACEOF
28040 #define HAVE_POSTGRESQL 1
28041 _ACEOF
28042
28043       { echo "$as_me:$LINENO: result: yes" >&5
28044 echo "${ECHO_T}yes" >&6; }
28045       db_found=yes
28046       support_postgresql=yes
28047       db_type=PostgreSQL
28048       DB_TYPE=postgresql
28049   else
28050       { echo "$as_me:$LINENO: result: no" >&5
28051 echo "${ECHO_T}no" >&6; }
28052   fi
28053
28054 else
28055
28056   { echo "$as_me:$LINENO: result: no" >&5
28057 echo "${ECHO_T}no" >&6; }
28058
28059 fi
28060
28061
28062
28063
28064
28065
28066
28067
28068 db_found=no
28069 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28070 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28071
28072 # Check whether --with-mysql was given.
28073 if test "${with_mysql+set}" = set; then
28074   withval=$with_mysql;
28075   if test "$withval" != "no"; then
28076         if test "$withval" = "yes"; then
28077            if test -f /usr/local/mysql/include/mysql/mysql.h; then
28078                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
28079                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28080                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28081                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28082                    else
28083                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28084                    fi
28085                    MYSQL_BINDIR=/usr/local/mysql/bin
28086            elif test -f /usr/include/mysql/mysql.h; then
28087                    MYSQL_INCDIR=/usr/include/mysql
28088                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28089                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28090                            MYSQL_LIBDIR=/usr/lib64/mysql
28091                    elif test -f /usr/lib64/libmysqlclient_r.a \
28092                         -o -f /usr/lib64/libmysqlclient_r.so; then
28093                            MYSQL_LIBDIR=/usr/lib64
28094                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28095                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28096                            MYSQL_LIBDIR=/usr/lib/mysql
28097                    else
28098                            MYSQL_LIBDIR=/usr/lib
28099                    fi
28100                    MYSQL_BINDIR=/usr/bin
28101            elif test -f /usr/include/mysql.h; then
28102                    MYSQL_INCDIR=/usr/include
28103                    if test -f /usr/lib64/libmysqlclient_r.a \
28104                         -o -f /usr/lib64/libmysqlclient_r.so; then
28105                            MYSQL_LIBDIR=/usr/lib64
28106                    else
28107                            MYSQL_LIBDIR=/usr/lib
28108                    fi
28109                    MYSQL_BINDIR=/usr/bin
28110            elif test -f /usr/local/include/mysql/mysql.h; then
28111                    MYSQL_INCDIR=/usr/local/include/mysql
28112                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28113                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28114                            MYSQL_LIBDIR=/usr/local/lib64/mysql
28115                    else
28116                            MYSQL_LIBDIR=/usr/local/lib/mysql
28117                    fi
28118                    MYSQL_BINDIR=/usr/local/bin
28119            elif test -f /usr/local/include/mysql.h; then
28120                    MYSQL_INCDIR=/usr/local/include
28121                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28122                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28123                            MYSQL_LIBDIR=/usr/local/lib64
28124                    else
28125                            MYSQL_LIBDIR=/usr/local/lib
28126                    fi
28127                    MYSQL_BINDIR=/usr/local/bin
28128            else
28129               { echo "$as_me:$LINENO: result: no" >&5
28130 echo "${ECHO_T}no" >&6; }
28131               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28132 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28133    { (exit 1); exit 1; }; }
28134            fi
28135         else
28136            if test -f $withval/include/mysql/mysql.h; then
28137               MYSQL_INCDIR=$withval/include/mysql
28138               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28139                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28140                  MYSQL_LIBDIR=$withval/lib64/mysql
28141               elif test -f $withval/lib64/libmysqlclient_r.a \
28142                    -o -f $withval/lib64/libmysqlclient_r.so; then
28143                  MYSQL_LIBDIR=$withval/lib64
28144               elif test -f $withval/lib/libmysqlclient_r.a \
28145                    -o -f $withval/lib/libmysqlclient_r.so; then
28146                  MYSQL_LIBDIR=$withval/lib
28147               else
28148                  MYSQL_LIBDIR=$withval/lib/mysql
28149               fi
28150               MYSQL_BINDIR=$withval/bin
28151            elif test -f $withval/include/mysql.h; then
28152               MYSQL_INCDIR=$withval/include
28153               if test -f $withval/lib64/libmysqlclient_r.a \
28154                    -o -f $withval/lib64/libmysqlclient_r.so; then
28155                  MYSQL_LIBDIR=$withval/lib64
28156               else
28157                  MYSQL_LIBDIR=$withval/lib
28158               fi
28159               MYSQL_BINDIR=$withval/bin
28160            else
28161               { echo "$as_me:$LINENO: result: no" >&5
28162 echo "${ECHO_T}no" >&6; }
28163               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28164 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28165    { (exit 1); exit 1; }; }
28166            fi
28167         fi
28168     SQL_INCLUDE=-I$MYSQL_INCDIR
28169     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28170          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28171        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28172        cat >>confdefs.h <<\_ACEOF
28173 #define HAVE_THREAD_SAFE_MYSQL 1
28174 _ACEOF
28175
28176     fi
28177     SQL_BINDIR=$MYSQL_BINDIR
28178     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28179
28180
28181 cat >>confdefs.h <<\_ACEOF
28182 #define HAVE_MYSQL 1
28183 _ACEOF
28184
28185     { echo "$as_me:$LINENO: result: yes" >&5
28186 echo "${ECHO_T}yes" >&6; }
28187     db_found=yes
28188     support_mysql=yes
28189     db_type=MySQL
28190     DB_TYPE=mysql
28191
28192   else
28193         { echo "$as_me:$LINENO: result: no" >&5
28194 echo "${ECHO_T}no" >&6; }
28195   fi
28196
28197
28198 fi
28199
28200
28201
28202 # Check whether --with-embedded-mysql was given.
28203 if test "${with_embedded_mysql+set}" = set; then
28204   withval=$with_embedded_mysql;
28205   if test "$withval" != "no"; then
28206         if test "$withval" = "yes"; then
28207                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28208                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28209                         if test -d /usr/local/mysql/lib64/mysql; then
28210                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28211                         else
28212                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28213                         fi
28214                         MYSQL_BINDIR=/usr/local/mysql/bin
28215                 elif test -f /usr/include/mysql/mysql.h; then
28216                         MYSQL_INCDIR=/usr/include/mysql
28217                         if test -d /usr/lib64/mysql; then
28218                                 MYSQL_LIBDIR=/usr/lib64/mysql
28219                         else
28220                                 MYSQL_LIBDIR=/usr/lib/mysql
28221                         fi
28222                         MYSQL_BINDIR=/usr/bin
28223                 elif test -f /usr/include/mysql.h; then
28224                         MYSQL_INCDIR=/usr/include
28225                         if test -d /usr/lib64; then
28226                                 MYSQL_LIBDIR=/usr/lib64
28227                         else
28228                                 MYSQL_LIBDIR=/usr/lib
28229                         fi
28230                         MYSQL_BINDIR=/usr/bin
28231                 elif test -f /usr/local/include/mysql/mysql.h; then
28232                         MYSQL_INCDIR=/usr/local/include/mysql
28233                         if test -d /usr/local/lib64/mysql; then
28234                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28235                         else
28236                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28237                         fi
28238                         MYSQL_BINDIR=/usr/local/bin
28239                 elif test -f /usr/local/include/mysql.h; then
28240                         MYSQL_INCDIR=/usr/local/include
28241                         if test -d /usr/local/lib64; then
28242                                 MYSQL_LIBDIR=/usr/local/lib64
28243                         else
28244                                 MYSQL_LIBDIR=/usr/local/lib
28245                         fi
28246                         MYSQL_BINDIR=/usr/local/bin
28247                 else
28248                    { echo "$as_me:$LINENO: result: no" >&5
28249 echo "${ECHO_T}no" >&6; }
28250                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28251 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28252    { (exit 1); exit 1; }; }
28253                 fi
28254         else
28255                 if test -f $withval/include/mysql/mysql.h; then
28256                         MYSQL_INCDIR=$withval/include/mysql
28257                         if test -d $withval/lib64/mysql; then
28258                                 MYSQL_LIBDIR=$withval/lib64/mysql
28259                         else
28260                                 MYSQL_LIBDIR=$withval/lib/mysql
28261                         fi
28262                         MYSQL_BINDIR=$withval/bin
28263                 elif test -f $withval/include/mysql.h; then
28264                         MYSQL_INCDIR=$withval/include
28265                         if test -d $withval/lib64; then
28266                                 MYSQL_LIBDIR=$withval/lib64
28267                         else
28268                                 MYSQL_LIBDIR=$withval/lib
28269                         fi
28270                         MYSQL_BINDIR=$withval/bin
28271                 else
28272                    { echo "$as_me:$LINENO: result: no" >&5
28273 echo "${ECHO_T}no" >&6; }
28274                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28275 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28276    { (exit 1); exit 1; }; }
28277                 fi
28278         fi
28279     SQL_INCLUDE=-I$MYSQL_INCDIR
28280     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28281     SQL_BINDIR=$MYSQL_BINDIR
28282     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28283
28284     cat >>confdefs.h <<\_ACEOF
28285 #define HAVE_MYSQL 1
28286 _ACEOF
28287
28288     cat >>confdefs.h <<\_ACEOF
28289 #define HAVE_EMBEDDED_MYSQL 1
28290 _ACEOF
28291
28292     { echo "$as_me:$LINENO: result: yes" >&5
28293 echo "${ECHO_T}yes" >&6; }
28294     db_found=yes
28295     support_mysql=yes
28296     db_type=MySQL
28297     DB_TYPE=mysql
28298
28299   else
28300         { echo "$as_me:$LINENO: result: no" >&5
28301 echo "${ECHO_T}no" >&6; }
28302   fi
28303
28304
28305 fi
28306
28307
28308
28309
28310
28311
28312
28313
28314
28315
28316 db_found=no
28317 { echo "$as_me:$LINENO: checking for Ingres support" >&5
28318 echo $ECHO_N "checking for Ingres support... $ECHO_C" >&6; }
28319
28320 # Check whether --with-ingres was given.
28321 if test "${with_ingres+set}" = set; then
28322   withval=$with_ingres;
28323   if test "$withval" != "no"; then
28324      if test "$withval" = "yes"; then
28325         if test -f ${II_SYSTEM}/files/eqdefc.h; then
28326            INGRES_INCDIR=${II_SYSTEM}/files
28327            INGRES_LIBDIR=${II_SYSTEM}/lib
28328            INGRES_BINDIR=${II_SYSTEM}/bin
28329         elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
28330            INGRES_INCDIR=${II_SYSTEM}/ingres/files
28331            INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
28332            INGRES_BINDIR=${II_SYSTEM}/bin
28333         else
28334            { echo "$as_me:$LINENO: result: no" >&5
28335 echo "${ECHO_T}no" >&6; }
28336            { { echo "$as_me:$LINENO: error: Unable to find eqdefc.h in standard locations" >&5
28337 echo "$as_me: error: Unable to find eqdefc.h in standard locations" >&2;}
28338    { (exit 1); exit 1; }; }
28339         fi
28340      else
28341         if test -f $withval/files/eqdefc.h; then
28342            INGRES_INCDIR=$withval/files
28343            INGRES_LIBDIR=$withval/lib
28344            INGRES_BINDIR=$withval/bin
28345         else
28346            { echo "$as_me:$LINENO: result: no" >&5
28347 echo "${ECHO_T}no" >&6; }
28348            { { echo "$as_me:$LINENO: error: Invalid Ingres directory $withval - unable to find sqlite3.h under $withval" >&5
28349 echo "$as_me: error: Invalid Ingres directory $withval - unable to find sqlite3.h under $withval" >&2;}
28350    { (exit 1); exit 1; }; }
28351         fi
28352      fi
28353      SQL_INCLUDE=-I$INGRES_INCDIR
28354      SQL_LFLAGS="-L$INGRES_LIBDIR -lingres"
28355      SQL_BINDIR=$INGRES_BINDIR
28356      SQL_LIB=$INGRES_LIBDIR/libingres.a
28357
28358 cat >>confdefs.h <<\_ACEOF
28359 #define HAVE_INGRES 1
28360 _ACEOF
28361
28362      { echo "$as_me:$LINENO: result: yes" >&5
28363 echo "${ECHO_T}yes" >&6; }
28364      db_found=yes
28365      support_ingres=yes
28366      db_type=Ingres
28367      DB_TYPE=ingres
28368
28369   else
28370      { echo "$as_me:$LINENO: result: no" >&5
28371 echo "${ECHO_T}no" >&6; }
28372   fi
28373
28374 else
28375
28376   { echo "$as_me:$LINENO: result: no" >&5
28377 echo "${ECHO_T}no" >&6; }
28378
28379 fi
28380
28381
28382
28383
28384
28385
28386
28387
28388 db_found=no
28389 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28390 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28391
28392 # Check whether --with-sqlite3 was given.
28393 if test "${with_sqlite3+set}" = set; then
28394   withval=$with_sqlite3;
28395   if test "$withval" != "no"; then
28396      if test "$withval" = "yes"; then
28397         if test -f /usr/local/include/sqlite3.h; then
28398            SQLITE_INCDIR=/usr/local/include
28399            if test -d /usr/local/lib64; then
28400               SQLITE_LIBDIR=/usr/local/lib64
28401            else
28402               SQLITE_LIBDIR=/usr/local/lib
28403            fi
28404            SQLITE_BINDIR=/usr/local/bin
28405         elif test -f /usr/include/sqlite3.h; then
28406            SQLITE_INCDIR=/usr/include
28407            if test -d /usr/lib64; then
28408               SQLITE_LIBDIR=/usr/lib64
28409            else
28410               SQLITE_LIBDIR=/usr/lib
28411            fi
28412            SQLITE_BINDIR=/usr/bin
28413         elif test -f $prefix/include/sqlite3.h; then
28414            SQLITE_INCDIR=$prefix/include
28415            if test -d $prefix/lib64; then
28416               SQLITE_LIBDIR=$prefix/lib64
28417            else
28418               SQLITE_LIBDIR=$prefix/lib
28419            fi
28420            SQLITE_BINDIR=$prefix/bin
28421         else
28422            { echo "$as_me:$LINENO: result: no" >&5
28423 echo "${ECHO_T}no" >&6; }
28424            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28425 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28426    { (exit 1); exit 1; }; }
28427         fi
28428      else
28429         if test -f $withval/sqlite3.h; then
28430            SQLITE_INCDIR=$withval
28431            SQLITE_LIBDIR=$withval
28432            SQLITE_BINDIR=$withval
28433         elif test -f $withval/include/sqlite3.h; then
28434            SQLITE_INCDIR=$withval/include
28435            if test -d $withval/lib64; then
28436               SQLITE_LIBDIR=$withval/lib64
28437            else
28438               SQLITE_LIBDIR=$withval/lib
28439            fi
28440            SQLITE_BINDIR=$withval/bin
28441         else
28442            { echo "$as_me:$LINENO: result: no" >&5
28443 echo "${ECHO_T}no" >&6; }
28444            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28445 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28446    { (exit 1); exit 1; }; }
28447         fi
28448      fi
28449      SQL_INCLUDE=-I$SQLITE_INCDIR
28450      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28451      SQL_BINDIR=$SQLITE_BINDIR
28452      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28453
28454      cat >>confdefs.h <<\_ACEOF
28455 #define HAVE_SQLITE3 1
28456 _ACEOF
28457
28458      { echo "$as_me:$LINENO: result: yes" >&5
28459 echo "${ECHO_T}yes" >&6; }
28460      db_found=yes
28461      support_sqlite3=yes
28462      db_type=SQLite3
28463      DB_TYPE=sqlite3
28464
28465   else
28466      { echo "$as_me:$LINENO: result: no" >&5
28467 echo "${ECHO_T}no" >&6; }
28468   fi
28469
28470 else
28471
28472   { echo "$as_me:$LINENO: result: no" >&5
28473 echo "${ECHO_T}no" >&6; }
28474
28475 fi
28476
28477
28478
28479
28480
28481
28482
28483 # BA_CHECK_SQLITE_DB
28484
28485
28486 db_found=no
28487 { echo "$as_me:$LINENO: checking for DBI support" >&5
28488 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28489
28490 # Check whether --with-dbi was given.
28491 if test "${with_dbi+set}" = set; then
28492   withval=$with_dbi;
28493   if test "$withval" != "no"; then
28494      if test "$withval" = "yes"; then
28495         if test -f /usr/local/include/dbi/dbi.h; then
28496            DBI_INCDIR=/usr/local/dbi/include
28497            if test -d /usr/local/lib64; then
28498               DBI_LIBDIR=/usr/local/lib64
28499            else
28500               DBI_LIBDIR=/usr/local/lib
28501            fi
28502            DBI_BINDIR=/usr/local/bin
28503         elif test -f /usr/include/dbi/dbi.h; then
28504            DBI_INCDIR=/usr/include
28505            if test -d /usr/lib64; then
28506               DBI_LIBDIR=/usr/lib64
28507            else
28508               DBI_LIBDIR=/usr/lib
28509            fi
28510            DBI_BINDIR=/usr/bin
28511         elif test -f $prefix/include/dbi/dbi.h; then
28512            DBI_INCDIR=$prefix/include
28513            if test -d $prefix/lib64; then
28514               DBI_LIBDIR=$prefix/lib64
28515            else
28516               DBI_LIBDIR=$prefix/lib
28517            fi
28518            DBI_BINDIR=$prefix/bin
28519         else
28520            { echo "$as_me:$LINENO: result: no" >&5
28521 echo "${ECHO_T}no" >&6; }
28522            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28523 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28524    { (exit 1); exit 1; }; }
28525         fi
28526         if test -d /usr/local/lib/dbd; then
28527            DRIVERDIR=/usr/local/lib/dbd
28528            if test -d /usr/local/lib64/dbd; then
28529               DRIVERDIR=/usr/local/lib64/dbd
28530            else
28531               DRIVERDIR=/usr/local/lib/dbd
28532            fi
28533         elif test -d /usr/lib/dbd; then
28534            DRIVERDIR=/usr/lib/dbd
28535            if test -d /usr/lib64/dbd; then
28536               DRIVERDIR=/usr/lib64/dbd
28537            else
28538               DRIVERDIR=/usr/lib/dbd
28539            fi
28540         elif test -d $prefix/lib/dbd; then
28541            if test -d $prefix/lib64/dbd; then
28542               DRIVERDIR=$prefix/lib64/dbd
28543            else
28544               DRIVERDIR=$prefix/lib/dbd
28545            fi
28546         elif test -d /usr/local/lib64/dbd; then
28547            DRIVERDIR=/usr/local/lib64/dbd
28548         elif test -d /usr/lib64/dbd; then
28549            DRIVERDIR=/usr/lib64/dbd
28550         elif test -d $prefix/lib64/dbd; then
28551            DRIVERDIR=$prefix/lib64/dbd
28552         else
28553            { echo "$as_me:$LINENO: result: no" >&5
28554 echo "${ECHO_T}no" >&6; }
28555            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28556 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28557    { (exit 1); exit 1; }; }
28558         fi
28559      else
28560         if test -f $withval/dbi.h; then
28561            DBI_INCDIR=$withval
28562            DBI_LIBDIR=$withval
28563            DBI_BINDIR=$withval
28564         elif test -f $withval/include/dbi/dbi.h; then
28565            DBI_INCDIR=$withval/include
28566            if test -d $withval/lib64; then
28567               DBI_LIBDIR=$withval/lib64
28568            else
28569               DBI_LIBDIR=$withval/lib
28570            fi
28571            DBI_BINDIR=$withval/bin
28572         else
28573            { echo "$as_me:$LINENO: result: no" >&5
28574 echo "${ECHO_T}no" >&6; }
28575            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28576 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28577    { (exit 1); exit 1; }; }
28578         fi
28579         if test -d $withval/dbd; then
28580            DRIVERDIR=$withval/dbd
28581         elif test -d $withval/lib/; then
28582            if test -d $withval/lib64/dbd; then
28583               DRIVERDIR=$withval/lib64/dbd
28584            else
28585               DRIVERDIR=$withval/lib/dbd
28586            fi
28587         elif test -d $withval/lib64/dbd; then
28588            DRIVERDIR=$withval/lib64/dbd
28589         else
28590            { echo "$as_me:$LINENO: result: no" >&5
28591 echo "${ECHO_T}no" >&6; }
28592            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28593 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28594    { (exit 1); exit 1; }; }
28595         fi
28596      fi
28597      SQL_INCLUDE=-I$DBI_INCDIR
28598      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28599      SQL_BINDIR=$DBI_BINDIR
28600      SQL_LIB=$DBI_LIBDIR/libdbi.a
28601      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28602
28603
28604 cat >>confdefs.h <<\_ACEOF
28605 #define HAVE_DBI 1
28606 _ACEOF
28607
28608      { echo "$as_me:$LINENO: result: yes" >&5
28609 echo "${ECHO_T}yes" >&6; }
28610      db_found=yes
28611      support_dbi=yes
28612      db_type=DBI
28613      DB_TYPE=dbi
28614      uncomment_dbi=" "
28615
28616   else
28617      { echo "$as_me:$LINENO: result: no" >&5
28618 echo "${ECHO_T}no" >&6; }
28619   fi
28620
28621 else
28622
28623   { echo "$as_me:$LINENO: result: no" >&5
28624 echo "${ECHO_T}no" >&6; }
28625
28626 fi
28627
28628
28629
28630
28631
28632
28633
28634
28635
28636
28637 db_found=no
28638 db_prog=no
28639 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28640 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28641
28642 # Check whether --with-dbi-driver was given.
28643 if test "${with_dbi_driver+set}" = set; then
28644   withval=$with_dbi_driver;
28645   if test "$withval" != "no"; then
28646      case $withval in
28647         "mysql")
28648            db_prog="mysql"
28649            if test -f /usr/local/mysql/bin/mysql; then
28650               SQL_BINDIR=/usr/local/mysql/bin
28651               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28652                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28653                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28654               else
28655                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28656               fi
28657            elif test -f /usr/bin/mysql; then
28658               SQL_BINDIR=/usr/bin
28659               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28660                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28661                   SQL_LIBDIR=/usr/lib64/mysql
28662               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28663                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28664                   SQL_LIBDIR=/usr/lib/mysql
28665               else
28666                   SQL_LIBDIR=/usr/lib
28667               fi
28668            elif test -f /usr/local/bin/mysql; then
28669               SQL_BINDIR=/usr/local/bin
28670               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28671                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28672                   SQL_LIBDIR=/usr/local/lib64/mysql
28673               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28674                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28675                   SQL_LIBDIR=/usr/local/lib/mysql
28676               else
28677                   SQL_LIBDIR=/usr/local/lib
28678               fi
28679            elif test -f $withval/bin/mysql; then
28680               SQL_BINDIR=$withval/bin
28681               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28682                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28683                   SQL_LIBDIR=$withval/lib64/mysql
28684               elif test -f $withval/lib64/libmysqlclient_r.a \
28685                   -o -f $withval/lib64/libmysqlclient_r.so; then
28686                   SQL_LIBDIR=$withval/lib64
28687               elif test -f $withval/lib/libmysqlclient_r.a \
28688                   -o -f $withval/lib/libmysqlclient_r.so; then
28689                   SQL_LIBDIR=$withval/lib/
28690               else
28691                   SQL_LIBDIR=$withval/lib/mysql
28692               fi
28693            else
28694               { echo "$as_me:$LINENO: result: no" >&5
28695 echo "${ECHO_T}no" >&6; }
28696               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28697 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28698    { (exit 1); exit 1; }; }
28699            fi
28700            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28701               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28702            else
28703               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28704            fi
28705         ;;
28706         "postgresql")
28707            db_prog="postgresql"
28708            PG_CONFIG=`which pg_config`
28709            if test -n "$PG_CONFIG"; then
28710               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28711               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28712            elif test -f /usr/local/bin/psql; then
28713               SQL_BINDIR=/usr/local/bin
28714               if test -d /usr/local/lib64; then
28715                  SQL_LIBDIR=/usr/local/lib64
28716               else
28717                  SQL_LIBDIR=/usr/local/lib
28718               fi
28719            elif test -f /usr/bin/psql; then
28720               SQL_BINDIR=/usr/local/bin
28721               if test -d /usr/lib64/postgresql; then
28722                  SQL_LIBDIR=/usr/lib64/postgresql
28723               elif test -d /usr/lib/postgresql; then
28724                  SQL_LIBDIR=/usr/lib/postgresql
28725               elif test -d /usr/lib64; then
28726                  SQL_LIBDIR=/usr/lib64
28727               else
28728                  SQL_LIBDIR=/usr/lib
28729               fi
28730            elif test -f $withval/bin/psql; then
28731               SQL_BINDIR=$withval/bin
28732               if test -d $withval/lib64; then
28733                  SQL_LIBDIR=$withval/lib64
28734               else
28735                  SQL_LIBDIR=$withval/lib
28736               fi
28737            else
28738               { echo "$as_me:$LINENO: result: no" >&5
28739 echo "${ECHO_T}no" >&6; }
28740               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28741 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28742    { (exit 1); exit 1; }; }
28743            fi
28744            if test -f $SQL_LIBDIR/libpq.so; then
28745               DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28746            else
28747               DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28748            fi
28749         ;;
28750         "sqlite")
28751            db_prog="sqlite"
28752            if test -f /usr/local/bin/sqlite; then
28753               SQL_BINDIR=/usr/local/bin
28754               if test -d /usr/local/lib64; then
28755                  SQL_LIBDIR=/usr/local/lib64
28756               else
28757                  SQL_LIBDIR=/usr/local/lib
28758               fi
28759            elif test -f /usr/bin/sqlite; then
28760               SQL_BINDIR=/usr/bin
28761               if test -d /usr/lib64; then
28762                  SQL_LIBDIR=/usr/lib64
28763               else
28764                  SQL_LIBDIR=/usr/lib
28765               fi
28766            elif test -f $withval/bin/sqlite; then
28767               SQL_BINDIR=$withval/bin
28768               if test -d $withval/lib64; then
28769                  SQL_LIBDIR=$withval/lib64
28770               else
28771                  SQL_LIBDIR=$withval/lib
28772               fi
28773            else
28774               { echo "$as_me:$LINENO: result: no" >&5
28775 echo "${ECHO_T}no" >&6; }
28776               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28777 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28778    { (exit 1); exit 1; }; }
28779            fi
28780            if test -f $SQL_LIBDIR/libsqlite.so; then
28781               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28782            else
28783               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28784            fi
28785         ;;
28786         "sqlite3")
28787            db_prog="sqlite3"
28788            if test -f /usr/local/bin/sqlite3; then
28789               SQL_BINDIR=/usr/local/bin
28790               if test -d /usr/local/lib64; then
28791                  SQL_LIBDIR=/usr/local/lib64
28792               else
28793                  SQL_LIBDIR=/usr/local/lib
28794               fi
28795            elif test -f /usr/bin/sqlite3; then
28796               SQL_BINDIR=/usr/bin
28797               if test -d /usr/lib64; then
28798                  SQL_LIBDIR=/usr/lib64
28799               else
28800                  SQL_LIBDIR=/usr/lib
28801               fi
28802            elif test -f $withval/bin/sqlite3; then
28803               SQL_BINDIR=$withval/bin
28804               if test -d $withval/lib64; then
28805                  SQL_LIBDIR=$withval/lib64
28806               else
28807                  SQL_LIBDIR=$withval/lib
28808               fi
28809            else
28810               { echo "$as_me:$LINENO: result: no" >&5
28811 echo "${ECHO_T}no" >&6; }
28812               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28813 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28814    { (exit 1); exit 1; }; }
28815            fi
28816            if test -f $SQL_LIBDIR/libsqlite3.so; then
28817               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28818            else
28819               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28820            fi
28821         ;;
28822         *)
28823            { echo "$as_me:$LINENO: result: no" >&5
28824 echo "${ECHO_T}no" >&6; }
28825            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28826 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28827    { (exit 1); exit 1; }; }
28828         ;;
28829      esac
28830
28831      { echo "$as_me:$LINENO: result: yes" >&5
28832 echo "${ECHO_T}yes" >&6; }
28833      DB_PROG=$db_prog
28834   else
28835      { echo "$as_me:$LINENO: result: no" >&5
28836 echo "${ECHO_T}no" >&6; }
28837   fi
28838
28839 else
28840
28841   { echo "$as_me:$LINENO: result: no" >&5
28842 echo "${ECHO_T}no" >&6; }
28843
28844 fi
28845
28846
28847
28848
28849
28850
28851
28852
28853
28854
28855 support_batch_insert=no
28856 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28857 pkg=$?
28858 if test $pkg = 0; then
28859    support_batch_insert=yes
28860    # Check whether --enable-batch-insert was given.
28861 if test "${enable_batch_insert+set}" = set; then
28862   enableval=$enable_batch_insert;
28863           if test x$enableval = xno; then
28864              support_batch_insert=no
28865           else
28866              support_batch_insert=yes
28867           fi
28868
28869
28870 fi
28871
28872 fi
28873
28874 if test x$DB_TYPE = xpostgresql; then
28875    { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
28876 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
28877 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
28878   echo $ECHO_N "(cached) $ECHO_C" >&6
28879 else
28880   ac_check_lib_save_LIBS=$LIBS
28881 LIBS="-lpq  $LIBS"
28882 cat >conftest.$ac_ext <<_ACEOF
28883 /* confdefs.h.  */
28884 _ACEOF
28885 cat confdefs.h >>conftest.$ac_ext
28886 cat >>conftest.$ac_ext <<_ACEOF
28887 /* end confdefs.h.  */
28888
28889 /* Override any GCC internal prototype to avoid an error.
28890    Use char because int might match the return type of a GCC
28891    builtin and then its argument prototype would still apply.  */
28892 #ifdef __cplusplus
28893 extern "C"
28894 #endif
28895 char PQisthreadsafe ();
28896 int
28897 main ()
28898 {
28899 return PQisthreadsafe ();
28900   ;
28901   return 0;
28902 }
28903 _ACEOF
28904 rm -f conftest.$ac_objext conftest$ac_exeext
28905 if { (ac_try="$ac_link"
28906 case "(($ac_try" in
28907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28908   *) ac_try_echo=$ac_try;;
28909 esac
28910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28911   (eval "$ac_link") 2>conftest.er1
28912   ac_status=$?
28913   grep -v '^ *+' conftest.er1 >conftest.err
28914   rm -f conftest.er1
28915   cat conftest.err >&5
28916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28917   (exit $ac_status); } && {
28918          test -z "$ac_c_werror_flag" ||
28919          test ! -s conftest.err
28920        } && test -s conftest$ac_exeext &&
28921        $as_test_x conftest$ac_exeext; then
28922   ac_cv_lib_pq_PQisthreadsafe=yes
28923 else
28924   echo "$as_me: failed program was:" >&5
28925 sed 's/^/| /' conftest.$ac_ext >&5
28926
28927         ac_cv_lib_pq_PQisthreadsafe=no
28928 fi
28929
28930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28931       conftest$ac_exeext conftest.$ac_ext
28932 LIBS=$ac_check_lib_save_LIBS
28933 fi
28934 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
28935 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
28936 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
28937
28938 cat >>confdefs.h <<\_ACEOF
28939 #define HAVE_PQISTHREADSAFE 1
28940 _ACEOF
28941
28942 fi
28943
28944    { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
28945 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
28946 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
28947   echo $ECHO_N "(cached) $ECHO_C" >&6
28948 else
28949   ac_check_lib_save_LIBS=$LIBS
28950 LIBS="-lpq  $LIBS"
28951 cat >conftest.$ac_ext <<_ACEOF
28952 /* confdefs.h.  */
28953 _ACEOF
28954 cat confdefs.h >>conftest.$ac_ext
28955 cat >>conftest.$ac_ext <<_ACEOF
28956 /* end confdefs.h.  */
28957
28958 /* Override any GCC internal prototype to avoid an error.
28959    Use char because int might match the return type of a GCC
28960    builtin and then its argument prototype would still apply.  */
28961 #ifdef __cplusplus
28962 extern "C"
28963 #endif
28964 char PQputCopyData ();
28965 int
28966 main ()
28967 {
28968 return PQputCopyData ();
28969   ;
28970   return 0;
28971 }
28972 _ACEOF
28973 rm -f conftest.$ac_objext conftest$ac_exeext
28974 if { (ac_try="$ac_link"
28975 case "(($ac_try" in
28976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28977   *) ac_try_echo=$ac_try;;
28978 esac
28979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28980   (eval "$ac_link") 2>conftest.er1
28981   ac_status=$?
28982   grep -v '^ *+' conftest.er1 >conftest.err
28983   rm -f conftest.er1
28984   cat conftest.err >&5
28985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28986   (exit $ac_status); } && {
28987          test -z "$ac_c_werror_flag" ||
28988          test ! -s conftest.err
28989        } && test -s conftest$ac_exeext &&
28990        $as_test_x conftest$ac_exeext; then
28991   ac_cv_lib_pq_PQputCopyData=yes
28992 else
28993   echo "$as_me: failed program was:" >&5
28994 sed 's/^/| /' conftest.$ac_ext >&5
28995
28996         ac_cv_lib_pq_PQputCopyData=no
28997 fi
28998
28999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29000       conftest$ac_exeext conftest.$ac_ext
29001 LIBS=$ac_check_lib_save_LIBS
29002 fi
29003 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29004 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29005 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29006
29007 cat >>confdefs.h <<\_ACEOF
29008 #define HAVE_PQ_COPY 1
29009 _ACEOF
29010
29011 fi
29012
29013    if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29014     then
29015         support_batch_insert=no
29016    fi
29017 fi
29018
29019 if test x$DB_TYPE = xdbi; then
29020    DB_TYPE=$DB_PROG
29021    db_type=$DB_PROG
29022    pkg=1
29023       if test $DB_PROG = postgresql; then
29024       { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29025 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
29026 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29027   echo $ECHO_N "(cached) $ECHO_C" >&6
29028 else
29029   ac_check_lib_save_LIBS=$LIBS
29030 LIBS="-lpq  $LIBS"
29031 cat >conftest.$ac_ext <<_ACEOF
29032 /* confdefs.h.  */
29033 _ACEOF
29034 cat confdefs.h >>conftest.$ac_ext
29035 cat >>conftest.$ac_ext <<_ACEOF
29036 /* end confdefs.h.  */
29037
29038 /* Override any GCC internal prototype to avoid an error.
29039    Use char because int might match the return type of a GCC
29040    builtin and then its argument prototype would still apply.  */
29041 #ifdef __cplusplus
29042 extern "C"
29043 #endif
29044 char PQisthreadsafe ();
29045 int
29046 main ()
29047 {
29048 return PQisthreadsafe ();
29049   ;
29050   return 0;
29051 }
29052 _ACEOF
29053 rm -f conftest.$ac_objext conftest$ac_exeext
29054 if { (ac_try="$ac_link"
29055 case "(($ac_try" in
29056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29057   *) ac_try_echo=$ac_try;;
29058 esac
29059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29060   (eval "$ac_link") 2>conftest.er1
29061   ac_status=$?
29062   grep -v '^ *+' conftest.er1 >conftest.err
29063   rm -f conftest.er1
29064   cat conftest.err >&5
29065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29066   (exit $ac_status); } && {
29067          test -z "$ac_c_werror_flag" ||
29068          test ! -s conftest.err
29069        } && test -s conftest$ac_exeext &&
29070        $as_test_x conftest$ac_exeext; then
29071   ac_cv_lib_pq_PQisthreadsafe=yes
29072 else
29073   echo "$as_me: failed program was:" >&5
29074 sed 's/^/| /' conftest.$ac_ext >&5
29075
29076         ac_cv_lib_pq_PQisthreadsafe=no
29077 fi
29078
29079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29080       conftest$ac_exeext conftest.$ac_ext
29081 LIBS=$ac_check_lib_save_LIBS
29082 fi
29083 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29084 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29085 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
29086   cat >>confdefs.h <<\_ACEOF
29087 #define HAVE_PQISTHREADSAFE 1
29088 _ACEOF
29089
29090 fi
29091
29092       { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29093 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
29094 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29095   echo $ECHO_N "(cached) $ECHO_C" >&6
29096 else
29097   ac_check_lib_save_LIBS=$LIBS
29098 LIBS="-lpq  $LIBS"
29099 cat >conftest.$ac_ext <<_ACEOF
29100 /* confdefs.h.  */
29101 _ACEOF
29102 cat confdefs.h >>conftest.$ac_ext
29103 cat >>conftest.$ac_ext <<_ACEOF
29104 /* end confdefs.h.  */
29105
29106 /* Override any GCC internal prototype to avoid an error.
29107    Use char because int might match the return type of a GCC
29108    builtin and then its argument prototype would still apply.  */
29109 #ifdef __cplusplus
29110 extern "C"
29111 #endif
29112 char PQputCopyData ();
29113 int
29114 main ()
29115 {
29116 return PQputCopyData ();
29117   ;
29118   return 0;
29119 }
29120 _ACEOF
29121 rm -f conftest.$ac_objext conftest$ac_exeext
29122 if { (ac_try="$ac_link"
29123 case "(($ac_try" in
29124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29125   *) ac_try_echo=$ac_try;;
29126 esac
29127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29128   (eval "$ac_link") 2>conftest.er1
29129   ac_status=$?
29130   grep -v '^ *+' conftest.er1 >conftest.err
29131   rm -f conftest.er1
29132   cat conftest.err >&5
29133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134   (exit $ac_status); } && {
29135          test -z "$ac_c_werror_flag" ||
29136          test ! -s conftest.err
29137        } && test -s conftest$ac_exeext &&
29138        $as_test_x conftest$ac_exeext; then
29139   ac_cv_lib_pq_PQputCopyData=yes
29140 else
29141   echo "$as_me: failed program was:" >&5
29142 sed 's/^/| /' conftest.$ac_ext >&5
29143
29144         ac_cv_lib_pq_PQputCopyData=no
29145 fi
29146
29147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29148       conftest$ac_exeext conftest.$ac_ext
29149 LIBS=$ac_check_lib_save_LIBS
29150 fi
29151 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29152 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29153 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29154   cat >>confdefs.h <<\_ACEOF
29155 #define HAVE_PQ_COPY 1
29156 _ACEOF
29157
29158 fi
29159
29160       test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29161       pkg=$?
29162    fi
29163
29164    if test $DB_PROG = mysql; then
29165       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29166       pkg=$?
29167    fi
29168
29169    if test $DB_PROG = sqlite3; then
29170       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29171       pkg=$?
29172    fi
29173
29174    if test $pkg = 0; then
29175       # Check whether --enable-batch-insert was given.
29176 if test "${enable_batch_insert+set}" = set; then
29177   enableval=$enable_batch_insert;
29178              if test x$enableval = xno; then
29179                 support_batch_insert=no
29180              else
29181                 support_batch_insert=yes
29182              fi
29183
29184
29185 fi
29186
29187    fi
29188 else
29189       uncomment_dbi="#"
29190 fi
29191
29192
29193
29194 if test $support_batch_insert = yes ; then
29195
29196 cat >>confdefs.h <<\_ACEOF
29197 #define HAVE_BATCH_FILE_INSERT 1
29198 _ACEOF
29199
29200 fi
29201
29202 cat >>confdefs.h <<\_ACEOF
29203 #define PROTOTYPES 1
29204 _ACEOF
29205
29206
29207 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
29208    if test -z "$CCOPTS"; then
29209       CCOPTS='-g -O2 -Wall'
29210    fi
29211    CFLAGS="$CCOPTS"
29212 fi
29213
29214
29215
29216 largefile_support="no"
29217
29218    # Check whether --enable-largefile was given.
29219 if test "${enable_largefile+set}" = set; then
29220   enableval=$enable_largefile;
29221 fi
29222
29223    if test "$enable_largefile" != no; then
29224      if test -n "$ac_tool_prefix"; then
29225   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29226 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29229 if test "${ac_cv_prog_GETCONF+set}" = set; then
29230   echo $ECHO_N "(cached) $ECHO_C" >&6
29231 else
29232   if test -n "$GETCONF"; then
29233   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29234 else
29235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29236 for as_dir in $PATH
29237 do
29238   IFS=$as_save_IFS
29239   test -z "$as_dir" && as_dir=.
29240   for ac_exec_ext in '' $ac_executable_extensions; do
29241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29242     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29244     break 2
29245   fi
29246 done
29247 done
29248 IFS=$as_save_IFS
29249
29250 fi
29251 fi
29252 GETCONF=$ac_cv_prog_GETCONF
29253 if test -n "$GETCONF"; then
29254   { echo "$as_me:$LINENO: result: $GETCONF" >&5
29255 echo "${ECHO_T}$GETCONF" >&6; }
29256 else
29257   { echo "$as_me:$LINENO: result: no" >&5
29258 echo "${ECHO_T}no" >&6; }
29259 fi
29260
29261
29262 fi
29263 if test -z "$ac_cv_prog_GETCONF"; then
29264   ac_ct_GETCONF=$GETCONF
29265   # Extract the first word of "getconf", so it can be a program name with args.
29266 set dummy getconf; ac_word=$2
29267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29269 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29270   echo $ECHO_N "(cached) $ECHO_C" >&6
29271 else
29272   if test -n "$ac_ct_GETCONF"; then
29273   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29274 else
29275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29276 for as_dir in $PATH
29277 do
29278   IFS=$as_save_IFS
29279   test -z "$as_dir" && as_dir=.
29280   for ac_exec_ext in '' $ac_executable_extensions; do
29281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29282     ac_cv_prog_ac_ct_GETCONF="getconf"
29283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29284     break 2
29285   fi
29286 done
29287 done
29288 IFS=$as_save_IFS
29289
29290 fi
29291 fi
29292 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29293 if test -n "$ac_ct_GETCONF"; then
29294   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29295 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29296 else
29297   { echo "$as_me:$LINENO: result: no" >&5
29298 echo "${ECHO_T}no" >&6; }
29299 fi
29300
29301   if test "x$ac_ct_GETCONF" = x; then
29302     GETCONF=""
29303   else
29304     case $cross_compiling:$ac_tool_warned in
29305 yes:)
29306 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29307 whose name does not start with the host triplet.  If you think this
29308 configuration is useful to you, please write to autoconf@gnu.org." >&5
29309 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29310 whose name does not start with the host triplet.  If you think this
29311 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29312 ac_tool_warned=yes ;;
29313 esac
29314     GETCONF=$ac_ct_GETCONF
29315   fi
29316 else
29317   GETCONF="$ac_cv_prog_GETCONF"
29318 fi
29319
29320      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29321 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29322 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29323   echo $ECHO_N "(cached) $ECHO_C" >&6
29324 else
29325   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29326         ac_cv_sys_largefile_CFLAGS=no
29327         case "$host_os" in
29328            # IRIX 6.2 and later require cc -n32.
29329            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29330              if test "$GCC" != yes; then
29331                ac_cv_sys_largefile_CFLAGS=-n32
29332              fi
29333              ac_save_CC="$CC"
29334              CC="$CC $ac_cv_sys_largefile_CFLAGS"
29335              cat >conftest.$ac_ext <<_ACEOF
29336 /* confdefs.h.  */
29337 _ACEOF
29338 cat confdefs.h >>conftest.$ac_ext
29339 cat >>conftest.$ac_ext <<_ACEOF
29340 /* end confdefs.h.  */
29341
29342 int
29343 main ()
29344 {
29345
29346   ;
29347   return 0;
29348 }
29349 _ACEOF
29350 rm -f conftest.$ac_objext conftest$ac_exeext
29351 if { (ac_try="$ac_link"
29352 case "(($ac_try" in
29353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29354   *) ac_try_echo=$ac_try;;
29355 esac
29356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29357   (eval "$ac_link") 2>conftest.er1
29358   ac_status=$?
29359   grep -v '^ *+' conftest.er1 >conftest.err
29360   rm -f conftest.er1
29361   cat conftest.err >&5
29362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29363   (exit $ac_status); } && {
29364          test -z "$ac_c_werror_flag" ||
29365          test ! -s conftest.err
29366        } && test -s conftest$ac_exeext &&
29367        $as_test_x conftest$ac_exeext; then
29368   :
29369 else
29370   echo "$as_me: failed program was:" >&5
29371 sed 's/^/| /' conftest.$ac_ext >&5
29372
29373         ac_cv_sys_largefile_CFLAGS=no
29374 fi
29375
29376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29377       conftest$ac_exeext conftest.$ac_ext
29378              CC="$ac_save_CC"
29379            esac
29380       }
29381 fi
29382 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29383 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29384      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29385 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29386 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29387   echo $ECHO_N "(cached) $ECHO_C" >&6
29388 else
29389   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29390         ac_cv_sys_largefile_LDFLAGS=no
29391
29392       }
29393 fi
29394 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29395 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29396      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29397 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29398 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29399   echo $ECHO_N "(cached) $ECHO_C" >&6
29400 else
29401   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29402         ac_cv_sys_largefile_LIBS=no
29403
29404       }
29405 fi
29406 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29407 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29408
29409      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29410        case "$ac_flag" in
29411        no) ;;
29412        -D_FILE_OFFSET_BITS=*) ;;
29413        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29414        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29415        -D?* | -I?*)
29416          case "$ac_flag" in
29417    no) ;;
29418    ?*)
29419      case "$CPPFLAGS" in
29420      '') CPPFLAGS="$ac_flag" ;;
29421      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29422      esac ;;
29423    esac ;;
29424        *)
29425          case "$ac_flag" in
29426    no) ;;
29427    ?*)
29428      case "$CFLAGS" in
29429      '') CFLAGS="$ac_flag" ;;
29430      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29431      esac ;;
29432    esac ;;
29433        esac
29434      done
29435      case "$ac_cv_sys_largefile_LDFLAGS" in
29436    no) ;;
29437    ?*)
29438      case "$LDFLAGS" in
29439      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29440      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29441      esac ;;
29442    esac
29443      case "$ac_cv_sys_largefile_LIBS" in
29444    no) ;;
29445    ?*)
29446      case "$LIBS" in
29447      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29448      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29449      esac ;;
29450    esac
29451      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29452 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29453 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29454   echo $ECHO_N "(cached) $ECHO_C" >&6
29455 else
29456   ac_cv_sys_file_offset_bits=no
29457       ac_cv_sys_file_offset_bits=64
29458       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29459         case "$ac_flag" in
29460         -D_FILE_OFFSET_BITS)
29461           ac_cv_sys_file_offset_bits=1 ;;
29462         -D_FILE_OFFSET_BITS=*)
29463           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29464         esac
29465       done
29466
29467 fi
29468 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29469 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29470    if test "$ac_cv_sys_file_offset_bits" != no; then
29471
29472 cat >>confdefs.h <<_ACEOF
29473 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29474 _ACEOF
29475
29476    fi
29477      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29478 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29479 if test "${ac_cv_sys_largefile_source+set}" = set; then
29480   echo $ECHO_N "(cached) $ECHO_C" >&6
29481 else
29482   ac_cv_sys_largefile_source=no
29483       ac_cv_sys_largefile_source=1
29484       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29485         case "$ac_flag" in
29486         -D_LARGEFILE_SOURCE)
29487           ac_cv_sys_largefile_source=1 ;;
29488         -D_LARGEFILE_SOURCE=*)
29489           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29490         esac
29491       done
29492
29493 fi
29494 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29495 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29496    if test "$ac_cv_sys_largefile_source" != no; then
29497
29498 cat >>confdefs.h <<_ACEOF
29499 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29500 _ACEOF
29501
29502    fi
29503      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29504 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29505 if test "${ac_cv_sys_large_files+set}" = set; then
29506   echo $ECHO_N "(cached) $ECHO_C" >&6
29507 else
29508   ac_cv_sys_large_files=no
29509       ac_cv_sys_large_files=1
29510       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29511         case "$ac_flag" in
29512         -D_LARGE_FILES)
29513           ac_cv_sys_large_files=1 ;;
29514         -D_LARGE_FILES=*)
29515           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29516         esac
29517       done
29518
29519 fi
29520 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29521 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29522    if test "$ac_cv_sys_large_files" != no; then
29523
29524 cat >>confdefs.h <<_ACEOF
29525 #define _LARGE_FILES $ac_cv_sys_large_files
29526 _ACEOF
29527
29528    fi
29529    fi
29530
29531
29532 { echo "$as_me:$LINENO: checking for X" >&5
29533 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29534
29535
29536 # Check whether --with-x was given.
29537 if test "${with_x+set}" = set; then
29538   withval=$with_x;
29539 fi
29540
29541 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29542 if test "x$with_x" = xno; then
29543   # The user explicitly disabled X.
29544   have_x=disabled
29545 else
29546   case $x_includes,$x_libraries in #(
29547     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29548 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29549    { (exit 1); exit 1; }; };; #(
29550     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29551   echo $ECHO_N "(cached) $ECHO_C" >&6
29552 else
29553   # One or both of the vars are not set, and there is no cached value.
29554 ac_x_includes=no ac_x_libraries=no
29555 rm -f -r conftest.dir
29556 if mkdir conftest.dir; then
29557   cd conftest.dir
29558   cat >Imakefile <<'_ACEOF'
29559 incroot:
29560         @echo incroot='${INCROOT}'
29561 usrlibdir:
29562         @echo usrlibdir='${USRLIBDIR}'
29563 libdir:
29564         @echo libdir='${LIBDIR}'
29565 _ACEOF
29566   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29567     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29568     for ac_var in incroot usrlibdir libdir; do
29569       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29570     done
29571     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29572     for ac_extension in a so sl; do
29573       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29574          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29575         ac_im_usrlibdir=$ac_im_libdir; break
29576       fi
29577     done
29578     # Screen out bogus values from the imake configuration.  They are
29579     # bogus both because they are the default anyway, and because
29580     # using them would break gcc on systems where it needs fixed includes.
29581     case $ac_im_incroot in
29582         /usr/include) ac_x_includes= ;;
29583         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29584     esac
29585     case $ac_im_usrlibdir in
29586         /usr/lib | /lib) ;;
29587         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29588     esac
29589   fi
29590   cd ..
29591   rm -f -r conftest.dir
29592 fi
29593
29594 # Standard set of common directories for X headers.
29595 # Check X11 before X11Rn because it is often a symlink to the current release.
29596 ac_x_header_dirs='
29597 /usr/X11/include
29598 /usr/X11R6/include
29599 /usr/X11R5/include
29600 /usr/X11R4/include
29601
29602 /usr/include/X11
29603 /usr/include/X11R6
29604 /usr/include/X11R5
29605 /usr/include/X11R4
29606
29607 /usr/local/X11/include
29608 /usr/local/X11R6/include
29609 /usr/local/X11R5/include
29610 /usr/local/X11R4/include
29611
29612 /usr/local/include/X11
29613 /usr/local/include/X11R6
29614 /usr/local/include/X11R5
29615 /usr/local/include/X11R4
29616
29617 /usr/X386/include
29618 /usr/x386/include
29619 /usr/XFree86/include/X11
29620
29621 /usr/include
29622 /usr/local/include
29623 /usr/unsupported/include
29624 /usr/athena/include
29625 /usr/local/x11r5/include
29626 /usr/lpp/Xamples/include
29627
29628 /usr/openwin/include
29629 /usr/openwin/share/include'
29630
29631 if test "$ac_x_includes" = no; then
29632   # Guess where to find include files, by looking for Xlib.h.
29633   # First, try using that file with no special directory specified.
29634   cat >conftest.$ac_ext <<_ACEOF
29635 /* confdefs.h.  */
29636 _ACEOF
29637 cat confdefs.h >>conftest.$ac_ext
29638 cat >>conftest.$ac_ext <<_ACEOF
29639 /* end confdefs.h.  */
29640 #include <X11/Xlib.h>
29641 _ACEOF
29642 if { (ac_try="$ac_cpp conftest.$ac_ext"
29643 case "(($ac_try" in
29644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29645   *) ac_try_echo=$ac_try;;
29646 esac
29647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29648   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29649   ac_status=$?
29650   grep -v '^ *+' conftest.er1 >conftest.err
29651   rm -f conftest.er1
29652   cat conftest.err >&5
29653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654   (exit $ac_status); } >/dev/null && {
29655          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29656          test ! -s conftest.err
29657        }; then
29658   # We can compile using X headers with no special include directory.
29659 ac_x_includes=
29660 else
29661   echo "$as_me: failed program was:" >&5
29662 sed 's/^/| /' conftest.$ac_ext >&5
29663
29664   for ac_dir in $ac_x_header_dirs; do
29665   if test -r "$ac_dir/X11/Xlib.h"; then
29666     ac_x_includes=$ac_dir
29667     break
29668   fi
29669 done
29670 fi
29671
29672 rm -f conftest.err conftest.$ac_ext
29673 fi # $ac_x_includes = no
29674
29675 if test "$ac_x_libraries" = no; then
29676   # Check for the libraries.
29677   # See if we find them without any special options.
29678   # Don't add to $LIBS permanently.
29679   ac_save_LIBS=$LIBS
29680   LIBS="-lX11 $LIBS"
29681   cat >conftest.$ac_ext <<_ACEOF
29682 /* confdefs.h.  */
29683 _ACEOF
29684 cat confdefs.h >>conftest.$ac_ext
29685 cat >>conftest.$ac_ext <<_ACEOF
29686 /* end confdefs.h.  */
29687 #include <X11/Xlib.h>
29688 int
29689 main ()
29690 {
29691 XrmInitialize ()
29692   ;
29693   return 0;
29694 }
29695 _ACEOF
29696 rm -f conftest.$ac_objext conftest$ac_exeext
29697 if { (ac_try="$ac_link"
29698 case "(($ac_try" in
29699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29700   *) ac_try_echo=$ac_try;;
29701 esac
29702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29703   (eval "$ac_link") 2>conftest.er1
29704   ac_status=$?
29705   grep -v '^ *+' conftest.er1 >conftest.err
29706   rm -f conftest.er1
29707   cat conftest.err >&5
29708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29709   (exit $ac_status); } && {
29710          test -z "$ac_c_werror_flag" ||
29711          test ! -s conftest.err
29712        } && test -s conftest$ac_exeext &&
29713        $as_test_x conftest$ac_exeext; then
29714   LIBS=$ac_save_LIBS
29715 # We can link X programs with no special library path.
29716 ac_x_libraries=
29717 else
29718   echo "$as_me: failed program was:" >&5
29719 sed 's/^/| /' conftest.$ac_ext >&5
29720
29721         LIBS=$ac_save_LIBS
29722 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29723 do
29724   # Don't even attempt the hair of trying to link an X program!
29725   for ac_extension in a so sl; do
29726     if test -r "$ac_dir/libX11.$ac_extension"; then
29727       ac_x_libraries=$ac_dir
29728       break 2
29729     fi
29730   done
29731 done
29732 fi
29733
29734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29735       conftest$ac_exeext conftest.$ac_ext
29736 fi # $ac_x_libraries = no
29737
29738 case $ac_x_includes,$ac_x_libraries in #(
29739   no,* | *,no | *\'*)
29740     # Didn't find X, or a directory has "'" in its name.
29741     ac_cv_have_x="have_x=no";; #(
29742   *)
29743     # Record where we found X for the cache.
29744     ac_cv_have_x="have_x=yes\
29745         ac_x_includes='$ac_x_includes'\
29746         ac_x_libraries='$ac_x_libraries'"
29747 esac
29748 fi
29749 ;; #(
29750     *) have_x=yes;;
29751   esac
29752   eval "$ac_cv_have_x"
29753 fi # $with_x != no
29754
29755 if test "$have_x" != yes; then
29756   { echo "$as_me:$LINENO: result: $have_x" >&5
29757 echo "${ECHO_T}$have_x" >&6; }
29758   no_x=yes
29759 else
29760   # If each of the values was on the command line, it overrides each guess.
29761   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29762   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29763   # Update the cache value to reflect the command line values.
29764   ac_cv_have_x="have_x=yes\
29765         ac_x_includes='$x_includes'\
29766         ac_x_libraries='$x_libraries'"
29767   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29768 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29769 fi
29770
29771 if test "$no_x" = yes; then
29772   # Not all programs may use this symbol, but it does not hurt to define it.
29773
29774 cat >>confdefs.h <<\_ACEOF
29775 #define X_DISPLAY_MISSING 1
29776 _ACEOF
29777
29778   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29779 else
29780   if test -n "$x_includes"; then
29781     X_CFLAGS="$X_CFLAGS -I$x_includes"
29782   fi
29783
29784   # It would also be nice to do this for all -L options, not just this one.
29785   if test -n "$x_libraries"; then
29786     X_LIBS="$X_LIBS -L$x_libraries"
29787     # For Solaris; some versions of Sun CC require a space after -R and
29788     # others require no space.  Words are not sufficient . . . .
29789     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29790 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29791     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29792     ac_xsave_c_werror_flag=$ac_c_werror_flag
29793     ac_c_werror_flag=yes
29794     cat >conftest.$ac_ext <<_ACEOF
29795 /* confdefs.h.  */
29796 _ACEOF
29797 cat confdefs.h >>conftest.$ac_ext
29798 cat >>conftest.$ac_ext <<_ACEOF
29799 /* end confdefs.h.  */
29800
29801 int
29802 main ()
29803 {
29804
29805   ;
29806   return 0;
29807 }
29808 _ACEOF
29809 rm -f conftest.$ac_objext conftest$ac_exeext
29810 if { (ac_try="$ac_link"
29811 case "(($ac_try" in
29812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29813   *) ac_try_echo=$ac_try;;
29814 esac
29815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29816   (eval "$ac_link") 2>conftest.er1
29817   ac_status=$?
29818   grep -v '^ *+' conftest.er1 >conftest.err
29819   rm -f conftest.er1
29820   cat conftest.err >&5
29821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822   (exit $ac_status); } && {
29823          test -z "$ac_c_werror_flag" ||
29824          test ! -s conftest.err
29825        } && test -s conftest$ac_exeext &&
29826        $as_test_x conftest$ac_exeext; then
29827   { echo "$as_me:$LINENO: result: no" >&5
29828 echo "${ECHO_T}no" >&6; }
29829        X_LIBS="$X_LIBS -R$x_libraries"
29830 else
29831   echo "$as_me: failed program was:" >&5
29832 sed 's/^/| /' conftest.$ac_ext >&5
29833
29834         LIBS="$ac_xsave_LIBS -R $x_libraries"
29835        cat >conftest.$ac_ext <<_ACEOF
29836 /* confdefs.h.  */
29837 _ACEOF
29838 cat confdefs.h >>conftest.$ac_ext
29839 cat >>conftest.$ac_ext <<_ACEOF
29840 /* end confdefs.h.  */
29841
29842 int
29843 main ()
29844 {
29845
29846   ;
29847   return 0;
29848 }
29849 _ACEOF
29850 rm -f conftest.$ac_objext conftest$ac_exeext
29851 if { (ac_try="$ac_link"
29852 case "(($ac_try" in
29853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29854   *) ac_try_echo=$ac_try;;
29855 esac
29856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29857   (eval "$ac_link") 2>conftest.er1
29858   ac_status=$?
29859   grep -v '^ *+' conftest.er1 >conftest.err
29860   rm -f conftest.er1
29861   cat conftest.err >&5
29862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29863   (exit $ac_status); } && {
29864          test -z "$ac_c_werror_flag" ||
29865          test ! -s conftest.err
29866        } && test -s conftest$ac_exeext &&
29867        $as_test_x conftest$ac_exeext; then
29868   { echo "$as_me:$LINENO: result: yes" >&5
29869 echo "${ECHO_T}yes" >&6; }
29870           X_LIBS="$X_LIBS -R $x_libraries"
29871 else
29872   echo "$as_me: failed program was:" >&5
29873 sed 's/^/| /' conftest.$ac_ext >&5
29874
29875         { echo "$as_me:$LINENO: result: neither works" >&5
29876 echo "${ECHO_T}neither works" >&6; }
29877 fi
29878
29879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29880       conftest$ac_exeext conftest.$ac_ext
29881 fi
29882
29883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29884       conftest$ac_exeext conftest.$ac_ext
29885     ac_c_werror_flag=$ac_xsave_c_werror_flag
29886     LIBS=$ac_xsave_LIBS
29887   fi
29888
29889   # Check for system-dependent libraries X programs must link with.
29890   # Do this before checking for the system-independent R6 libraries
29891   # (-lICE), since we may need -lsocket or whatever for X linking.
29892
29893   if test "$ISC" = yes; then
29894     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29895   else
29896     # Martyn Johnson says this is needed for Ultrix, if the X
29897     # libraries were built with DECnet support.  And Karl Berry says
29898     # the Alpha needs dnet_stub (dnet does not exist).
29899     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29900     cat >conftest.$ac_ext <<_ACEOF
29901 /* confdefs.h.  */
29902 _ACEOF
29903 cat confdefs.h >>conftest.$ac_ext
29904 cat >>conftest.$ac_ext <<_ACEOF
29905 /* end confdefs.h.  */
29906
29907 /* Override any GCC internal prototype to avoid an error.
29908    Use char because int might match the return type of a GCC
29909    builtin and then its argument prototype would still apply.  */
29910 #ifdef __cplusplus
29911 extern "C"
29912 #endif
29913 char XOpenDisplay ();
29914 int
29915 main ()
29916 {
29917 return XOpenDisplay ();
29918   ;
29919   return 0;
29920 }
29921 _ACEOF
29922 rm -f conftest.$ac_objext conftest$ac_exeext
29923 if { (ac_try="$ac_link"
29924 case "(($ac_try" in
29925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29926   *) ac_try_echo=$ac_try;;
29927 esac
29928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29929   (eval "$ac_link") 2>conftest.er1
29930   ac_status=$?
29931   grep -v '^ *+' conftest.er1 >conftest.err
29932   rm -f conftest.er1
29933   cat conftest.err >&5
29934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29935   (exit $ac_status); } && {
29936          test -z "$ac_c_werror_flag" ||
29937          test ! -s conftest.err
29938        } && test -s conftest$ac_exeext &&
29939        $as_test_x conftest$ac_exeext; then
29940   :
29941 else
29942   echo "$as_me: failed program was:" >&5
29943 sed 's/^/| /' conftest.$ac_ext >&5
29944
29945         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29946 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29947 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29948   echo $ECHO_N "(cached) $ECHO_C" >&6
29949 else
29950   ac_check_lib_save_LIBS=$LIBS
29951 LIBS="-ldnet  $LIBS"
29952 cat >conftest.$ac_ext <<_ACEOF
29953 /* confdefs.h.  */
29954 _ACEOF
29955 cat confdefs.h >>conftest.$ac_ext
29956 cat >>conftest.$ac_ext <<_ACEOF
29957 /* end confdefs.h.  */
29958
29959 /* Override any GCC internal prototype to avoid an error.
29960    Use char because int might match the return type of a GCC
29961    builtin and then its argument prototype would still apply.  */
29962 #ifdef __cplusplus
29963 extern "C"
29964 #endif
29965 char dnet_ntoa ();
29966 int
29967 main ()
29968 {
29969 return dnet_ntoa ();
29970   ;
29971   return 0;
29972 }
29973 _ACEOF
29974 rm -f conftest.$ac_objext conftest$ac_exeext
29975 if { (ac_try="$ac_link"
29976 case "(($ac_try" in
29977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29978   *) ac_try_echo=$ac_try;;
29979 esac
29980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29981   (eval "$ac_link") 2>conftest.er1
29982   ac_status=$?
29983   grep -v '^ *+' conftest.er1 >conftest.err
29984   rm -f conftest.er1
29985   cat conftest.err >&5
29986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29987   (exit $ac_status); } && {
29988          test -z "$ac_c_werror_flag" ||
29989          test ! -s conftest.err
29990        } && test -s conftest$ac_exeext &&
29991        $as_test_x conftest$ac_exeext; then
29992   ac_cv_lib_dnet_dnet_ntoa=yes
29993 else
29994   echo "$as_me: failed program was:" >&5
29995 sed 's/^/| /' conftest.$ac_ext >&5
29996
29997         ac_cv_lib_dnet_dnet_ntoa=no
29998 fi
29999
30000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30001       conftest$ac_exeext conftest.$ac_ext
30002 LIBS=$ac_check_lib_save_LIBS
30003 fi
30004 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30005 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30006 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30007   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30008 fi
30009
30010     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30011       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30012 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30013 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30014   echo $ECHO_N "(cached) $ECHO_C" >&6
30015 else
30016   ac_check_lib_save_LIBS=$LIBS
30017 LIBS="-ldnet_stub  $LIBS"
30018 cat >conftest.$ac_ext <<_ACEOF
30019 /* confdefs.h.  */
30020 _ACEOF
30021 cat confdefs.h >>conftest.$ac_ext
30022 cat >>conftest.$ac_ext <<_ACEOF
30023 /* end confdefs.h.  */
30024
30025 /* Override any GCC internal prototype to avoid an error.
30026    Use char because int might match the return type of a GCC
30027    builtin and then its argument prototype would still apply.  */
30028 #ifdef __cplusplus
30029 extern "C"
30030 #endif
30031 char dnet_ntoa ();
30032 int
30033 main ()
30034 {
30035 return dnet_ntoa ();
30036   ;
30037   return 0;
30038 }
30039 _ACEOF
30040 rm -f conftest.$ac_objext conftest$ac_exeext
30041 if { (ac_try="$ac_link"
30042 case "(($ac_try" in
30043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30044   *) ac_try_echo=$ac_try;;
30045 esac
30046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30047   (eval "$ac_link") 2>conftest.er1
30048   ac_status=$?
30049   grep -v '^ *+' conftest.er1 >conftest.err
30050   rm -f conftest.er1
30051   cat conftest.err >&5
30052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053   (exit $ac_status); } && {
30054          test -z "$ac_c_werror_flag" ||
30055          test ! -s conftest.err
30056        } && test -s conftest$ac_exeext &&
30057        $as_test_x conftest$ac_exeext; then
30058   ac_cv_lib_dnet_stub_dnet_ntoa=yes
30059 else
30060   echo "$as_me: failed program was:" >&5
30061 sed 's/^/| /' conftest.$ac_ext >&5
30062
30063         ac_cv_lib_dnet_stub_dnet_ntoa=no
30064 fi
30065
30066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30067       conftest$ac_exeext conftest.$ac_ext
30068 LIBS=$ac_check_lib_save_LIBS
30069 fi
30070 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30071 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30072 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30073   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30074 fi
30075
30076     fi
30077 fi
30078
30079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30080       conftest$ac_exeext conftest.$ac_ext
30081     LIBS="$ac_xsave_LIBS"
30082
30083     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30084     # to get the SysV transport functions.
30085     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30086     # needs -lnsl.
30087     # The nsl library prevents programs from opening the X display
30088     # on Irix 5.2, according to T.E. Dickey.
30089     # The functions gethostbyname, getservbyname, and inet_addr are
30090     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30091     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30092 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30093 if test "${ac_cv_func_gethostbyname+set}" = set; then
30094   echo $ECHO_N "(cached) $ECHO_C" >&6
30095 else
30096   cat >conftest.$ac_ext <<_ACEOF
30097 /* confdefs.h.  */
30098 _ACEOF
30099 cat confdefs.h >>conftest.$ac_ext
30100 cat >>conftest.$ac_ext <<_ACEOF
30101 /* end confdefs.h.  */
30102 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30103    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30104 #define gethostbyname innocuous_gethostbyname
30105
30106 /* System header to define __stub macros and hopefully few prototypes,
30107     which can conflict with char gethostbyname (); below.
30108     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30109     <limits.h> exists even on freestanding compilers.  */
30110
30111 #ifdef __STDC__
30112 # include <limits.h>
30113 #else
30114 # include <assert.h>
30115 #endif
30116
30117 #undef gethostbyname
30118
30119 /* Override any GCC internal prototype to avoid an error.
30120    Use char because int might match the return type of a GCC
30121    builtin and then its argument prototype would still apply.  */
30122 #ifdef __cplusplus
30123 extern "C"
30124 #endif
30125 char gethostbyname ();
30126 /* The GNU C library defines this for functions which it implements
30127     to always fail with ENOSYS.  Some functions are actually named
30128     something starting with __ and the normal name is an alias.  */
30129 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30130 choke me
30131 #endif
30132
30133 int
30134 main ()
30135 {
30136 return gethostbyname ();
30137   ;
30138   return 0;
30139 }
30140 _ACEOF
30141 rm -f conftest.$ac_objext conftest$ac_exeext
30142 if { (ac_try="$ac_link"
30143 case "(($ac_try" in
30144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30145   *) ac_try_echo=$ac_try;;
30146 esac
30147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30148   (eval "$ac_link") 2>conftest.er1
30149   ac_status=$?
30150   grep -v '^ *+' conftest.er1 >conftest.err
30151   rm -f conftest.er1
30152   cat conftest.err >&5
30153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30154   (exit $ac_status); } && {
30155          test -z "$ac_c_werror_flag" ||
30156          test ! -s conftest.err
30157        } && test -s conftest$ac_exeext &&
30158        $as_test_x conftest$ac_exeext; then
30159   ac_cv_func_gethostbyname=yes
30160 else
30161   echo "$as_me: failed program was:" >&5
30162 sed 's/^/| /' conftest.$ac_ext >&5
30163
30164         ac_cv_func_gethostbyname=no
30165 fi
30166
30167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30168       conftest$ac_exeext conftest.$ac_ext
30169 fi
30170 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30171 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30172
30173     if test $ac_cv_func_gethostbyname = no; then
30174       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30175 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30176 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30177   echo $ECHO_N "(cached) $ECHO_C" >&6
30178 else
30179   ac_check_lib_save_LIBS=$LIBS
30180 LIBS="-lnsl  $LIBS"
30181 cat >conftest.$ac_ext <<_ACEOF
30182 /* confdefs.h.  */
30183 _ACEOF
30184 cat confdefs.h >>conftest.$ac_ext
30185 cat >>conftest.$ac_ext <<_ACEOF
30186 /* end confdefs.h.  */
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 gethostbyname ();
30195 int
30196 main ()
30197 {
30198 return gethostbyname ();
30199   ;
30200   return 0;
30201 }
30202 _ACEOF
30203 rm -f conftest.$ac_objext conftest$ac_exeext
30204 if { (ac_try="$ac_link"
30205 case "(($ac_try" in
30206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30207   *) ac_try_echo=$ac_try;;
30208 esac
30209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30210   (eval "$ac_link") 2>conftest.er1
30211   ac_status=$?
30212   grep -v '^ *+' conftest.er1 >conftest.err
30213   rm -f conftest.er1
30214   cat conftest.err >&5
30215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216   (exit $ac_status); } && {
30217          test -z "$ac_c_werror_flag" ||
30218          test ! -s conftest.err
30219        } && test -s conftest$ac_exeext &&
30220        $as_test_x conftest$ac_exeext; then
30221   ac_cv_lib_nsl_gethostbyname=yes
30222 else
30223   echo "$as_me: failed program was:" >&5
30224 sed 's/^/| /' conftest.$ac_ext >&5
30225
30226         ac_cv_lib_nsl_gethostbyname=no
30227 fi
30228
30229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30230       conftest$ac_exeext conftest.$ac_ext
30231 LIBS=$ac_check_lib_save_LIBS
30232 fi
30233 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30234 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30235 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30236   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30237 fi
30238
30239       if test $ac_cv_lib_nsl_gethostbyname = no; then
30240         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30241 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30242 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30243   echo $ECHO_N "(cached) $ECHO_C" >&6
30244 else
30245   ac_check_lib_save_LIBS=$LIBS
30246 LIBS="-lbsd  $LIBS"
30247 cat >conftest.$ac_ext <<_ACEOF
30248 /* confdefs.h.  */
30249 _ACEOF
30250 cat confdefs.h >>conftest.$ac_ext
30251 cat >>conftest.$ac_ext <<_ACEOF
30252 /* end confdefs.h.  */
30253
30254 /* Override any GCC internal prototype to avoid an error.
30255    Use char because int might match the return type of a GCC
30256    builtin and then its argument prototype would still apply.  */
30257 #ifdef __cplusplus
30258 extern "C"
30259 #endif
30260 char gethostbyname ();
30261 int
30262 main ()
30263 {
30264 return gethostbyname ();
30265   ;
30266   return 0;
30267 }
30268 _ACEOF
30269 rm -f conftest.$ac_objext conftest$ac_exeext
30270 if { (ac_try="$ac_link"
30271 case "(($ac_try" in
30272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30273   *) ac_try_echo=$ac_try;;
30274 esac
30275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30276   (eval "$ac_link") 2>conftest.er1
30277   ac_status=$?
30278   grep -v '^ *+' conftest.er1 >conftest.err
30279   rm -f conftest.er1
30280   cat conftest.err >&5
30281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282   (exit $ac_status); } && {
30283          test -z "$ac_c_werror_flag" ||
30284          test ! -s conftest.err
30285        } && test -s conftest$ac_exeext &&
30286        $as_test_x conftest$ac_exeext; then
30287   ac_cv_lib_bsd_gethostbyname=yes
30288 else
30289   echo "$as_me: failed program was:" >&5
30290 sed 's/^/| /' conftest.$ac_ext >&5
30291
30292         ac_cv_lib_bsd_gethostbyname=no
30293 fi
30294
30295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30296       conftest$ac_exeext conftest.$ac_ext
30297 LIBS=$ac_check_lib_save_LIBS
30298 fi
30299 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30300 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30301 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30302   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30303 fi
30304
30305       fi
30306     fi
30307
30308     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30309     # socket/setsockopt and other routines are undefined under SCO ODT
30310     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30311     # on later versions), says Simon Leinen: it contains gethostby*
30312     # variants that don't use the name server (or something).  -lsocket
30313     # must be given before -lnsl if both are needed.  We assume that
30314     # if connect needs -lnsl, so does gethostbyname.
30315     { echo "$as_me:$LINENO: checking for connect" >&5
30316 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30317 if test "${ac_cv_func_connect+set}" = set; then
30318   echo $ECHO_N "(cached) $ECHO_C" >&6
30319 else
30320   cat >conftest.$ac_ext <<_ACEOF
30321 /* confdefs.h.  */
30322 _ACEOF
30323 cat confdefs.h >>conftest.$ac_ext
30324 cat >>conftest.$ac_ext <<_ACEOF
30325 /* end confdefs.h.  */
30326 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30327    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30328 #define connect innocuous_connect
30329
30330 /* System header to define __stub macros and hopefully few prototypes,
30331     which can conflict with char connect (); below.
30332     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30333     <limits.h> exists even on freestanding compilers.  */
30334
30335 #ifdef __STDC__
30336 # include <limits.h>
30337 #else
30338 # include <assert.h>
30339 #endif
30340
30341 #undef connect
30342
30343 /* Override any GCC internal prototype to avoid an error.
30344    Use char because int might match the return type of a GCC
30345    builtin and then its argument prototype would still apply.  */
30346 #ifdef __cplusplus
30347 extern "C"
30348 #endif
30349 char connect ();
30350 /* The GNU C library defines this for functions which it implements
30351     to always fail with ENOSYS.  Some functions are actually named
30352     something starting with __ and the normal name is an alias.  */
30353 #if defined __stub_connect || defined __stub___connect
30354 choke me
30355 #endif
30356
30357 int
30358 main ()
30359 {
30360 return connect ();
30361   ;
30362   return 0;
30363 }
30364 _ACEOF
30365 rm -f conftest.$ac_objext conftest$ac_exeext
30366 if { (ac_try="$ac_link"
30367 case "(($ac_try" in
30368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30369   *) ac_try_echo=$ac_try;;
30370 esac
30371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30372   (eval "$ac_link") 2>conftest.er1
30373   ac_status=$?
30374   grep -v '^ *+' conftest.er1 >conftest.err
30375   rm -f conftest.er1
30376   cat conftest.err >&5
30377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30378   (exit $ac_status); } && {
30379          test -z "$ac_c_werror_flag" ||
30380          test ! -s conftest.err
30381        } && test -s conftest$ac_exeext &&
30382        $as_test_x conftest$ac_exeext; then
30383   ac_cv_func_connect=yes
30384 else
30385   echo "$as_me: failed program was:" >&5
30386 sed 's/^/| /' conftest.$ac_ext >&5
30387
30388         ac_cv_func_connect=no
30389 fi
30390
30391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30392       conftest$ac_exeext conftest.$ac_ext
30393 fi
30394 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30395 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30396
30397     if test $ac_cv_func_connect = no; then
30398       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30399 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30400 if test "${ac_cv_lib_socket_connect+set}" = set; then
30401   echo $ECHO_N "(cached) $ECHO_C" >&6
30402 else
30403   ac_check_lib_save_LIBS=$LIBS
30404 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30405 cat >conftest.$ac_ext <<_ACEOF
30406 /* confdefs.h.  */
30407 _ACEOF
30408 cat confdefs.h >>conftest.$ac_ext
30409 cat >>conftest.$ac_ext <<_ACEOF
30410 /* end confdefs.h.  */
30411
30412 /* Override any GCC internal prototype to avoid an error.
30413    Use char because int might match the return type of a GCC
30414    builtin and then its argument prototype would still apply.  */
30415 #ifdef __cplusplus
30416 extern "C"
30417 #endif
30418 char connect ();
30419 int
30420 main ()
30421 {
30422 return connect ();
30423   ;
30424   return 0;
30425 }
30426 _ACEOF
30427 rm -f conftest.$ac_objext conftest$ac_exeext
30428 if { (ac_try="$ac_link"
30429 case "(($ac_try" in
30430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30431   *) ac_try_echo=$ac_try;;
30432 esac
30433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30434   (eval "$ac_link") 2>conftest.er1
30435   ac_status=$?
30436   grep -v '^ *+' conftest.er1 >conftest.err
30437   rm -f conftest.er1
30438   cat conftest.err >&5
30439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30440   (exit $ac_status); } && {
30441          test -z "$ac_c_werror_flag" ||
30442          test ! -s conftest.err
30443        } && test -s conftest$ac_exeext &&
30444        $as_test_x conftest$ac_exeext; then
30445   ac_cv_lib_socket_connect=yes
30446 else
30447   echo "$as_me: failed program was:" >&5
30448 sed 's/^/| /' conftest.$ac_ext >&5
30449
30450         ac_cv_lib_socket_connect=no
30451 fi
30452
30453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30454       conftest$ac_exeext conftest.$ac_ext
30455 LIBS=$ac_check_lib_save_LIBS
30456 fi
30457 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30458 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30459 if test $ac_cv_lib_socket_connect = yes; then
30460   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30461 fi
30462
30463     fi
30464
30465     # Guillermo Gomez says -lposix is necessary on A/UX.
30466     { echo "$as_me:$LINENO: checking for remove" >&5
30467 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30468 if test "${ac_cv_func_remove+set}" = set; then
30469   echo $ECHO_N "(cached) $ECHO_C" >&6
30470 else
30471   cat >conftest.$ac_ext <<_ACEOF
30472 /* confdefs.h.  */
30473 _ACEOF
30474 cat confdefs.h >>conftest.$ac_ext
30475 cat >>conftest.$ac_ext <<_ACEOF
30476 /* end confdefs.h.  */
30477 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30478    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30479 #define remove innocuous_remove
30480
30481 /* System header to define __stub macros and hopefully few prototypes,
30482     which can conflict with char remove (); below.
30483     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30484     <limits.h> exists even on freestanding compilers.  */
30485
30486 #ifdef __STDC__
30487 # include <limits.h>
30488 #else
30489 # include <assert.h>
30490 #endif
30491
30492 #undef remove
30493
30494 /* Override any GCC internal prototype to avoid an error.
30495    Use char because int might match the return type of a GCC
30496    builtin and then its argument prototype would still apply.  */
30497 #ifdef __cplusplus
30498 extern "C"
30499 #endif
30500 char remove ();
30501 /* The GNU C library defines this for functions which it implements
30502     to always fail with ENOSYS.  Some functions are actually named
30503     something starting with __ and the normal name is an alias.  */
30504 #if defined __stub_remove || defined __stub___remove
30505 choke me
30506 #endif
30507
30508 int
30509 main ()
30510 {
30511 return remove ();
30512   ;
30513   return 0;
30514 }
30515 _ACEOF
30516 rm -f conftest.$ac_objext conftest$ac_exeext
30517 if { (ac_try="$ac_link"
30518 case "(($ac_try" in
30519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30520   *) ac_try_echo=$ac_try;;
30521 esac
30522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30523   (eval "$ac_link") 2>conftest.er1
30524   ac_status=$?
30525   grep -v '^ *+' conftest.er1 >conftest.err
30526   rm -f conftest.er1
30527   cat conftest.err >&5
30528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30529   (exit $ac_status); } && {
30530          test -z "$ac_c_werror_flag" ||
30531          test ! -s conftest.err
30532        } && test -s conftest$ac_exeext &&
30533        $as_test_x conftest$ac_exeext; then
30534   ac_cv_func_remove=yes
30535 else
30536   echo "$as_me: failed program was:" >&5
30537 sed 's/^/| /' conftest.$ac_ext >&5
30538
30539         ac_cv_func_remove=no
30540 fi
30541
30542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30543       conftest$ac_exeext conftest.$ac_ext
30544 fi
30545 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30546 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30547
30548     if test $ac_cv_func_remove = no; then
30549       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30550 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30551 if test "${ac_cv_lib_posix_remove+set}" = set; then
30552   echo $ECHO_N "(cached) $ECHO_C" >&6
30553 else
30554   ac_check_lib_save_LIBS=$LIBS
30555 LIBS="-lposix  $LIBS"
30556 cat >conftest.$ac_ext <<_ACEOF
30557 /* confdefs.h.  */
30558 _ACEOF
30559 cat confdefs.h >>conftest.$ac_ext
30560 cat >>conftest.$ac_ext <<_ACEOF
30561 /* end confdefs.h.  */
30562
30563 /* Override any GCC internal prototype to avoid an error.
30564    Use char because int might match the return type of a GCC
30565    builtin and then its argument prototype would still apply.  */
30566 #ifdef __cplusplus
30567 extern "C"
30568 #endif
30569 char remove ();
30570 int
30571 main ()
30572 {
30573 return remove ();
30574   ;
30575   return 0;
30576 }
30577 _ACEOF
30578 rm -f conftest.$ac_objext conftest$ac_exeext
30579 if { (ac_try="$ac_link"
30580 case "(($ac_try" in
30581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30582   *) ac_try_echo=$ac_try;;
30583 esac
30584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30585   (eval "$ac_link") 2>conftest.er1
30586   ac_status=$?
30587   grep -v '^ *+' conftest.er1 >conftest.err
30588   rm -f conftest.er1
30589   cat conftest.err >&5
30590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30591   (exit $ac_status); } && {
30592          test -z "$ac_c_werror_flag" ||
30593          test ! -s conftest.err
30594        } && test -s conftest$ac_exeext &&
30595        $as_test_x conftest$ac_exeext; then
30596   ac_cv_lib_posix_remove=yes
30597 else
30598   echo "$as_me: failed program was:" >&5
30599 sed 's/^/| /' conftest.$ac_ext >&5
30600
30601         ac_cv_lib_posix_remove=no
30602 fi
30603
30604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30605       conftest$ac_exeext conftest.$ac_ext
30606 LIBS=$ac_check_lib_save_LIBS
30607 fi
30608 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30609 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30610 if test $ac_cv_lib_posix_remove = yes; then
30611   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30612 fi
30613
30614     fi
30615
30616     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30617     { echo "$as_me:$LINENO: checking for shmat" >&5
30618 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30619 if test "${ac_cv_func_shmat+set}" = set; then
30620   echo $ECHO_N "(cached) $ECHO_C" >&6
30621 else
30622   cat >conftest.$ac_ext <<_ACEOF
30623 /* confdefs.h.  */
30624 _ACEOF
30625 cat confdefs.h >>conftest.$ac_ext
30626 cat >>conftest.$ac_ext <<_ACEOF
30627 /* end confdefs.h.  */
30628 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30629    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30630 #define shmat innocuous_shmat
30631
30632 /* System header to define __stub macros and hopefully few prototypes,
30633     which can conflict with char shmat (); below.
30634     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30635     <limits.h> exists even on freestanding compilers.  */
30636
30637 #ifdef __STDC__
30638 # include <limits.h>
30639 #else
30640 # include <assert.h>
30641 #endif
30642
30643 #undef shmat
30644
30645 /* Override any GCC internal prototype to avoid an error.
30646    Use char because int might match the return type of a GCC
30647    builtin and then its argument prototype would still apply.  */
30648 #ifdef __cplusplus
30649 extern "C"
30650 #endif
30651 char shmat ();
30652 /* The GNU C library defines this for functions which it implements
30653     to always fail with ENOSYS.  Some functions are actually named
30654     something starting with __ and the normal name is an alias.  */
30655 #if defined __stub_shmat || defined __stub___shmat
30656 choke me
30657 #endif
30658
30659 int
30660 main ()
30661 {
30662 return shmat ();
30663   ;
30664   return 0;
30665 }
30666 _ACEOF
30667 rm -f conftest.$ac_objext conftest$ac_exeext
30668 if { (ac_try="$ac_link"
30669 case "(($ac_try" in
30670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30671   *) ac_try_echo=$ac_try;;
30672 esac
30673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30674   (eval "$ac_link") 2>conftest.er1
30675   ac_status=$?
30676   grep -v '^ *+' conftest.er1 >conftest.err
30677   rm -f conftest.er1
30678   cat conftest.err >&5
30679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680   (exit $ac_status); } && {
30681          test -z "$ac_c_werror_flag" ||
30682          test ! -s conftest.err
30683        } && test -s conftest$ac_exeext &&
30684        $as_test_x conftest$ac_exeext; then
30685   ac_cv_func_shmat=yes
30686 else
30687   echo "$as_me: failed program was:" >&5
30688 sed 's/^/| /' conftest.$ac_ext >&5
30689
30690         ac_cv_func_shmat=no
30691 fi
30692
30693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30694       conftest$ac_exeext conftest.$ac_ext
30695 fi
30696 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30697 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30698
30699     if test $ac_cv_func_shmat = no; then
30700       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30701 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30702 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30703   echo $ECHO_N "(cached) $ECHO_C" >&6
30704 else
30705   ac_check_lib_save_LIBS=$LIBS
30706 LIBS="-lipc  $LIBS"
30707 cat >conftest.$ac_ext <<_ACEOF
30708 /* confdefs.h.  */
30709 _ACEOF
30710 cat confdefs.h >>conftest.$ac_ext
30711 cat >>conftest.$ac_ext <<_ACEOF
30712 /* end confdefs.h.  */
30713
30714 /* Override any GCC internal prototype to avoid an error.
30715    Use char because int might match the return type of a GCC
30716    builtin and then its argument prototype would still apply.  */
30717 #ifdef __cplusplus
30718 extern "C"
30719 #endif
30720 char shmat ();
30721 int
30722 main ()
30723 {
30724 return shmat ();
30725   ;
30726   return 0;
30727 }
30728 _ACEOF
30729 rm -f conftest.$ac_objext conftest$ac_exeext
30730 if { (ac_try="$ac_link"
30731 case "(($ac_try" in
30732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30733   *) ac_try_echo=$ac_try;;
30734 esac
30735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30736   (eval "$ac_link") 2>conftest.er1
30737   ac_status=$?
30738   grep -v '^ *+' conftest.er1 >conftest.err
30739   rm -f conftest.er1
30740   cat conftest.err >&5
30741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30742   (exit $ac_status); } && {
30743          test -z "$ac_c_werror_flag" ||
30744          test ! -s conftest.err
30745        } && test -s conftest$ac_exeext &&
30746        $as_test_x conftest$ac_exeext; then
30747   ac_cv_lib_ipc_shmat=yes
30748 else
30749   echo "$as_me: failed program was:" >&5
30750 sed 's/^/| /' conftest.$ac_ext >&5
30751
30752         ac_cv_lib_ipc_shmat=no
30753 fi
30754
30755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30756       conftest$ac_exeext conftest.$ac_ext
30757 LIBS=$ac_check_lib_save_LIBS
30758 fi
30759 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30760 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30761 if test $ac_cv_lib_ipc_shmat = yes; then
30762   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30763 fi
30764
30765     fi
30766   fi
30767
30768   # Check for libraries that X11R6 Xt/Xaw programs need.
30769   ac_save_LDFLAGS=$LDFLAGS
30770   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30771   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30772   # check for ICE first), but we must link in the order -lSM -lICE or
30773   # we get undefined symbols.  So assume we have SM if we have ICE.
30774   # These have to be linked with before -lX11, unlike the other
30775   # libraries we check for below, so use a different variable.
30776   # John Interrante, Karl Berry
30777   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30778 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30779 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30780   echo $ECHO_N "(cached) $ECHO_C" >&6
30781 else
30782   ac_check_lib_save_LIBS=$LIBS
30783 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30784 cat >conftest.$ac_ext <<_ACEOF
30785 /* confdefs.h.  */
30786 _ACEOF
30787 cat confdefs.h >>conftest.$ac_ext
30788 cat >>conftest.$ac_ext <<_ACEOF
30789 /* end confdefs.h.  */
30790
30791 /* Override any GCC internal prototype to avoid an error.
30792    Use char because int might match the return type of a GCC
30793    builtin and then its argument prototype would still apply.  */
30794 #ifdef __cplusplus
30795 extern "C"
30796 #endif
30797 char IceConnectionNumber ();
30798 int
30799 main ()
30800 {
30801 return IceConnectionNumber ();
30802   ;
30803   return 0;
30804 }
30805 _ACEOF
30806 rm -f conftest.$ac_objext conftest$ac_exeext
30807 if { (ac_try="$ac_link"
30808 case "(($ac_try" in
30809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30810   *) ac_try_echo=$ac_try;;
30811 esac
30812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30813   (eval "$ac_link") 2>conftest.er1
30814   ac_status=$?
30815   grep -v '^ *+' conftest.er1 >conftest.err
30816   rm -f conftest.er1
30817   cat conftest.err >&5
30818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30819   (exit $ac_status); } && {
30820          test -z "$ac_c_werror_flag" ||
30821          test ! -s conftest.err
30822        } && test -s conftest$ac_exeext &&
30823        $as_test_x conftest$ac_exeext; then
30824   ac_cv_lib_ICE_IceConnectionNumber=yes
30825 else
30826   echo "$as_me: failed program was:" >&5
30827 sed 's/^/| /' conftest.$ac_ext >&5
30828
30829         ac_cv_lib_ICE_IceConnectionNumber=no
30830 fi
30831
30832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30833       conftest$ac_exeext conftest.$ac_ext
30834 LIBS=$ac_check_lib_save_LIBS
30835 fi
30836 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30837 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30838 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30839   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30840 fi
30841
30842   LDFLAGS=$ac_save_LDFLAGS
30843
30844 fi
30845
30846
30847
30848
30849
30850
30851
30852
30853
30854
30855
30856
30857
30858
30859
30860
30861
30862
30863
30864
30865
30866
30867
30868
30869
30870
30871
30872
30873
30874
30875
30876 for ac_header in \
30877    assert.h \
30878    fcntl.h \
30879    grp.h \
30880    pwd.h \
30881    libc.h \
30882    limits.h \
30883    stdarg.h \
30884    stdlib.h \
30885    stdint.h \
30886    string.h \
30887    strings.h \
30888    termios.h \
30889    termcap.h \
30890    term.h \
30891    unistd.h \
30892    sys/bitypes.h \
30893    sys/byteorder.h \
30894    sys/ioctl.h \
30895    sys/select.h \
30896    sys/socket.h \
30897    sys/sockio.h \
30898    sys/stat.h \
30899    sys/time.h \
30900    sys/types.h \
30901    arpa/nameser.h \
30902    mtio.h \
30903    sys/mtio.h \
30904    sys/tape.h \
30905    regex.h \
30906
30907 do
30908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30910   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30913   echo $ECHO_N "(cached) $ECHO_C" >&6
30914 fi
30915 ac_res=`eval echo '${'$as_ac_Header'}'`
30916                { echo "$as_me:$LINENO: result: $ac_res" >&5
30917 echo "${ECHO_T}$ac_res" >&6; }
30918 else
30919   # Is the header compilable?
30920 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30922 cat >conftest.$ac_ext <<_ACEOF
30923 /* confdefs.h.  */
30924 _ACEOF
30925 cat confdefs.h >>conftest.$ac_ext
30926 cat >>conftest.$ac_ext <<_ACEOF
30927 /* end confdefs.h.  */
30928 $ac_includes_default
30929 #include <$ac_header>
30930 _ACEOF
30931 rm -f conftest.$ac_objext
30932 if { (ac_try="$ac_compile"
30933 case "(($ac_try" in
30934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30935   *) ac_try_echo=$ac_try;;
30936 esac
30937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30938   (eval "$ac_compile") 2>conftest.er1
30939   ac_status=$?
30940   grep -v '^ *+' conftest.er1 >conftest.err
30941   rm -f conftest.er1
30942   cat conftest.err >&5
30943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30944   (exit $ac_status); } && {
30945          test -z "$ac_c_werror_flag" ||
30946          test ! -s conftest.err
30947        } && test -s conftest.$ac_objext; then
30948   ac_header_compiler=yes
30949 else
30950   echo "$as_me: failed program was:" >&5
30951 sed 's/^/| /' conftest.$ac_ext >&5
30952
30953         ac_header_compiler=no
30954 fi
30955
30956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30957 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30958 echo "${ECHO_T}$ac_header_compiler" >&6; }
30959
30960 # Is the header present?
30961 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30963 cat >conftest.$ac_ext <<_ACEOF
30964 /* confdefs.h.  */
30965 _ACEOF
30966 cat confdefs.h >>conftest.$ac_ext
30967 cat >>conftest.$ac_ext <<_ACEOF
30968 /* end confdefs.h.  */
30969 #include <$ac_header>
30970 _ACEOF
30971 if { (ac_try="$ac_cpp conftest.$ac_ext"
30972 case "(($ac_try" in
30973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30974   *) ac_try_echo=$ac_try;;
30975 esac
30976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30977   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30978   ac_status=$?
30979   grep -v '^ *+' conftest.er1 >conftest.err
30980   rm -f conftest.er1
30981   cat conftest.err >&5
30982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30983   (exit $ac_status); } >/dev/null && {
30984          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30985          test ! -s conftest.err
30986        }; then
30987   ac_header_preproc=yes
30988 else
30989   echo "$as_me: failed program was:" >&5
30990 sed 's/^/| /' conftest.$ac_ext >&5
30991
30992   ac_header_preproc=no
30993 fi
30994
30995 rm -f conftest.err conftest.$ac_ext
30996 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30997 echo "${ECHO_T}$ac_header_preproc" >&6; }
30998
30999 # So?  What about this header?
31000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31001   yes:no: )
31002     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31004     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31006     ac_header_preproc=yes
31007     ;;
31008   no:yes:* )
31009     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31011     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31012 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31013     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31015     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31016 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31017     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31019     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31021
31022     ;;
31023 esac
31024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31027   echo $ECHO_N "(cached) $ECHO_C" >&6
31028 else
31029   eval "$as_ac_Header=\$ac_header_preproc"
31030 fi
31031 ac_res=`eval echo '${'$as_ac_Header'}'`
31032                { echo "$as_me:$LINENO: result: $ac_res" >&5
31033 echo "${ECHO_T}$ac_res" >&6; }
31034
31035 fi
31036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31037   cat >>confdefs.h <<_ACEOF
31038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31039 _ACEOF
31040
31041 fi
31042
31043 done
31044
31045 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31046 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
31047 if test "${ac_cv_header_stdc+set}" = set; then
31048   echo $ECHO_N "(cached) $ECHO_C" >&6
31049 else
31050   cat >conftest.$ac_ext <<_ACEOF
31051 /* confdefs.h.  */
31052 _ACEOF
31053 cat confdefs.h >>conftest.$ac_ext
31054 cat >>conftest.$ac_ext <<_ACEOF
31055 /* end confdefs.h.  */
31056 #include <stdlib.h>
31057 #include <stdarg.h>
31058 #include <string.h>
31059 #include <float.h>
31060
31061 int
31062 main ()
31063 {
31064
31065   ;
31066   return 0;
31067 }
31068 _ACEOF
31069 rm -f conftest.$ac_objext
31070 if { (ac_try="$ac_compile"
31071 case "(($ac_try" in
31072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31073   *) ac_try_echo=$ac_try;;
31074 esac
31075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31076   (eval "$ac_compile") 2>conftest.er1
31077   ac_status=$?
31078   grep -v '^ *+' conftest.er1 >conftest.err
31079   rm -f conftest.er1
31080   cat conftest.err >&5
31081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31082   (exit $ac_status); } && {
31083          test -z "$ac_c_werror_flag" ||
31084          test ! -s conftest.err
31085        } && test -s conftest.$ac_objext; then
31086   ac_cv_header_stdc=yes
31087 else
31088   echo "$as_me: failed program was:" >&5
31089 sed 's/^/| /' conftest.$ac_ext >&5
31090
31091         ac_cv_header_stdc=no
31092 fi
31093
31094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31095
31096 if test $ac_cv_header_stdc = yes; then
31097   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
31098   cat >conftest.$ac_ext <<_ACEOF
31099 /* confdefs.h.  */
31100 _ACEOF
31101 cat confdefs.h >>conftest.$ac_ext
31102 cat >>conftest.$ac_ext <<_ACEOF
31103 /* end confdefs.h.  */
31104 #include <string.h>
31105
31106 _ACEOF
31107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31108   $EGREP "memchr" >/dev/null 2>&1; then
31109   :
31110 else
31111   ac_cv_header_stdc=no
31112 fi
31113 rm -f conftest*
31114
31115 fi
31116
31117 if test $ac_cv_header_stdc = yes; then
31118   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
31119   cat >conftest.$ac_ext <<_ACEOF
31120 /* confdefs.h.  */
31121 _ACEOF
31122 cat confdefs.h >>conftest.$ac_ext
31123 cat >>conftest.$ac_ext <<_ACEOF
31124 /* end confdefs.h.  */
31125 #include <stdlib.h>
31126
31127 _ACEOF
31128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31129   $EGREP "free" >/dev/null 2>&1; then
31130   :
31131 else
31132   ac_cv_header_stdc=no
31133 fi
31134 rm -f conftest*
31135
31136 fi
31137
31138 if test $ac_cv_header_stdc = yes; then
31139   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
31140   if test "$cross_compiling" = yes; then
31141   :
31142 else
31143   cat >conftest.$ac_ext <<_ACEOF
31144 /* confdefs.h.  */
31145 _ACEOF
31146 cat confdefs.h >>conftest.$ac_ext
31147 cat >>conftest.$ac_ext <<_ACEOF
31148 /* end confdefs.h.  */
31149 #include <ctype.h>
31150 #include <stdlib.h>
31151 #if ((' ' & 0x0FF) == 0x020)
31152 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
31153 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
31154 #else
31155 # define ISLOWER(c) \
31156                    (('a' <= (c) && (c) <= 'i') \
31157                      || ('j' <= (c) && (c) <= 'r') \
31158                      || ('s' <= (c) && (c) <= 'z'))
31159 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
31160 #endif
31161
31162 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
31163 int
31164 main ()
31165 {
31166   int i;
31167   for (i = 0; i < 256; i++)
31168     if (XOR (islower (i), ISLOWER (i))
31169         || toupper (i) != TOUPPER (i))
31170       return 2;
31171   return 0;
31172 }
31173 _ACEOF
31174 rm -f conftest$ac_exeext
31175 if { (ac_try="$ac_link"
31176 case "(($ac_try" in
31177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31178   *) ac_try_echo=$ac_try;;
31179 esac
31180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31181   (eval "$ac_link") 2>&5
31182   ac_status=$?
31183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31184   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31185   { (case "(($ac_try" in
31186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31187   *) ac_try_echo=$ac_try;;
31188 esac
31189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31190   (eval "$ac_try") 2>&5
31191   ac_status=$?
31192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193   (exit $ac_status); }; }; then
31194   :
31195 else
31196   echo "$as_me: program exited with status $ac_status" >&5
31197 echo "$as_me: failed program was:" >&5
31198 sed 's/^/| /' conftest.$ac_ext >&5
31199
31200 ( exit $ac_status )
31201 ac_cv_header_stdc=no
31202 fi
31203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31204 fi
31205
31206
31207 fi
31208 fi
31209 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31210 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
31211 if test $ac_cv_header_stdc = yes; then
31212
31213 cat >>confdefs.h <<\_ACEOF
31214 #define STDC_HEADERS 1
31215 _ACEOF
31216
31217 fi
31218
31219 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31220 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31221 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31222   echo $ECHO_N "(cached) $ECHO_C" >&6
31223 else
31224   cat >conftest.$ac_ext <<_ACEOF
31225 /* confdefs.h.  */
31226 _ACEOF
31227 cat confdefs.h >>conftest.$ac_ext
31228 cat >>conftest.$ac_ext <<_ACEOF
31229 /* end confdefs.h.  */
31230 #include <sys/types.h>
31231 int
31232 main ()
31233 {
31234 return makedev(0, 0);
31235   ;
31236   return 0;
31237 }
31238 _ACEOF
31239 rm -f conftest.$ac_objext conftest$ac_exeext
31240 if { (ac_try="$ac_link"
31241 case "(($ac_try" in
31242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31243   *) ac_try_echo=$ac_try;;
31244 esac
31245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31246   (eval "$ac_link") 2>conftest.er1
31247   ac_status=$?
31248   grep -v '^ *+' conftest.er1 >conftest.err
31249   rm -f conftest.er1
31250   cat conftest.err >&5
31251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252   (exit $ac_status); } && {
31253          test -z "$ac_c_werror_flag" ||
31254          test ! -s conftest.err
31255        } && test -s conftest$ac_exeext &&
31256        $as_test_x conftest$ac_exeext; then
31257   ac_cv_header_sys_types_h_makedev=yes
31258 else
31259   echo "$as_me: failed program was:" >&5
31260 sed 's/^/| /' conftest.$ac_ext >&5
31261
31262         ac_cv_header_sys_types_h_makedev=no
31263 fi
31264
31265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31266       conftest$ac_exeext conftest.$ac_ext
31267
31268 fi
31269 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31270 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31271
31272 if test $ac_cv_header_sys_types_h_makedev = no; then
31273 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31274   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31275 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31276 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31277   echo $ECHO_N "(cached) $ECHO_C" >&6
31278 fi
31279 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31280 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31281 else
31282   # Is the header compilable?
31283 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31284 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31285 cat >conftest.$ac_ext <<_ACEOF
31286 /* confdefs.h.  */
31287 _ACEOF
31288 cat confdefs.h >>conftest.$ac_ext
31289 cat >>conftest.$ac_ext <<_ACEOF
31290 /* end confdefs.h.  */
31291 $ac_includes_default
31292 #include <sys/mkdev.h>
31293 _ACEOF
31294 rm -f conftest.$ac_objext
31295 if { (ac_try="$ac_compile"
31296 case "(($ac_try" in
31297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31298   *) ac_try_echo=$ac_try;;
31299 esac
31300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31301   (eval "$ac_compile") 2>conftest.er1
31302   ac_status=$?
31303   grep -v '^ *+' conftest.er1 >conftest.err
31304   rm -f conftest.er1
31305   cat conftest.err >&5
31306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31307   (exit $ac_status); } && {
31308          test -z "$ac_c_werror_flag" ||
31309          test ! -s conftest.err
31310        } && test -s conftest.$ac_objext; then
31311   ac_header_compiler=yes
31312 else
31313   echo "$as_me: failed program was:" >&5
31314 sed 's/^/| /' conftest.$ac_ext >&5
31315
31316         ac_header_compiler=no
31317 fi
31318
31319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31321 echo "${ECHO_T}$ac_header_compiler" >&6; }
31322
31323 # Is the header present?
31324 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31325 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31326 cat >conftest.$ac_ext <<_ACEOF
31327 /* confdefs.h.  */
31328 _ACEOF
31329 cat confdefs.h >>conftest.$ac_ext
31330 cat >>conftest.$ac_ext <<_ACEOF
31331 /* end confdefs.h.  */
31332 #include <sys/mkdev.h>
31333 _ACEOF
31334 if { (ac_try="$ac_cpp conftest.$ac_ext"
31335 case "(($ac_try" in
31336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31337   *) ac_try_echo=$ac_try;;
31338 esac
31339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31340   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31341   ac_status=$?
31342   grep -v '^ *+' conftest.er1 >conftest.err
31343   rm -f conftest.er1
31344   cat conftest.err >&5
31345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31346   (exit $ac_status); } >/dev/null && {
31347          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31348          test ! -s conftest.err
31349        }; then
31350   ac_header_preproc=yes
31351 else
31352   echo "$as_me: failed program was:" >&5
31353 sed 's/^/| /' conftest.$ac_ext >&5
31354
31355   ac_header_preproc=no
31356 fi
31357
31358 rm -f conftest.err conftest.$ac_ext
31359 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31360 echo "${ECHO_T}$ac_header_preproc" >&6; }
31361
31362 # So?  What about this header?
31363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31364   yes:no: )
31365     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31366 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31367     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31368 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31369     ac_header_preproc=yes
31370     ;;
31371   no:yes:* )
31372     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31373 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31374     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
31375 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
31376     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31377 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31378     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
31379 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31380     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31381 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31382     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31383 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31384
31385     ;;
31386 esac
31387 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31388 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31389 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31390   echo $ECHO_N "(cached) $ECHO_C" >&6
31391 else
31392   ac_cv_header_sys_mkdev_h=$ac_header_preproc
31393 fi
31394 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31395 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31396
31397 fi
31398 if test $ac_cv_header_sys_mkdev_h = yes; then
31399
31400 cat >>confdefs.h <<\_ACEOF
31401 #define MAJOR_IN_MKDEV 1
31402 _ACEOF
31403
31404 fi
31405
31406
31407
31408   if test $ac_cv_header_sys_mkdev_h = no; then
31409     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31410   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31411 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31412 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31413   echo $ECHO_N "(cached) $ECHO_C" >&6
31414 fi
31415 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31416 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31417 else
31418   # Is the header compilable?
31419 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31420 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31421 cat >conftest.$ac_ext <<_ACEOF
31422 /* confdefs.h.  */
31423 _ACEOF
31424 cat confdefs.h >>conftest.$ac_ext
31425 cat >>conftest.$ac_ext <<_ACEOF
31426 /* end confdefs.h.  */
31427 $ac_includes_default
31428 #include <sys/sysmacros.h>
31429 _ACEOF
31430 rm -f conftest.$ac_objext
31431 if { (ac_try="$ac_compile"
31432 case "(($ac_try" in
31433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31434   *) ac_try_echo=$ac_try;;
31435 esac
31436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31437   (eval "$ac_compile") 2>conftest.er1
31438   ac_status=$?
31439   grep -v '^ *+' conftest.er1 >conftest.err
31440   rm -f conftest.er1
31441   cat conftest.err >&5
31442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443   (exit $ac_status); } && {
31444          test -z "$ac_c_werror_flag" ||
31445          test ! -s conftest.err
31446        } && test -s conftest.$ac_objext; then
31447   ac_header_compiler=yes
31448 else
31449   echo "$as_me: failed program was:" >&5
31450 sed 's/^/| /' conftest.$ac_ext >&5
31451
31452         ac_header_compiler=no
31453 fi
31454
31455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31456 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31457 echo "${ECHO_T}$ac_header_compiler" >&6; }
31458
31459 # Is the header present?
31460 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31461 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31462 cat >conftest.$ac_ext <<_ACEOF
31463 /* confdefs.h.  */
31464 _ACEOF
31465 cat confdefs.h >>conftest.$ac_ext
31466 cat >>conftest.$ac_ext <<_ACEOF
31467 /* end confdefs.h.  */
31468 #include <sys/sysmacros.h>
31469 _ACEOF
31470 if { (ac_try="$ac_cpp conftest.$ac_ext"
31471 case "(($ac_try" in
31472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31473   *) ac_try_echo=$ac_try;;
31474 esac
31475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31476   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31477   ac_status=$?
31478   grep -v '^ *+' conftest.er1 >conftest.err
31479   rm -f conftest.er1
31480   cat conftest.err >&5
31481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31482   (exit $ac_status); } >/dev/null && {
31483          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31484          test ! -s conftest.err
31485        }; then
31486   ac_header_preproc=yes
31487 else
31488   echo "$as_me: failed program was:" >&5
31489 sed 's/^/| /' conftest.$ac_ext >&5
31490
31491   ac_header_preproc=no
31492 fi
31493
31494 rm -f conftest.err conftest.$ac_ext
31495 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31496 echo "${ECHO_T}$ac_header_preproc" >&6; }
31497
31498 # So?  What about this header?
31499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31500   yes:no: )
31501     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31502 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31503     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31504 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31505     ac_header_preproc=yes
31506     ;;
31507   no:yes:* )
31508     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31509 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31510     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31511 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31512     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31513 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31514     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31515 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31516     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31517 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31518     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31519 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31520
31521     ;;
31522 esac
31523 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31524 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31525 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31526   echo $ECHO_N "(cached) $ECHO_C" >&6
31527 else
31528   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31529 fi
31530 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31531 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31532
31533 fi
31534 if test $ac_cv_header_sys_sysmacros_h = yes; then
31535
31536 cat >>confdefs.h <<\_ACEOF
31537 #define MAJOR_IN_SYSMACROS 1
31538 _ACEOF
31539
31540 fi
31541
31542
31543   fi
31544 fi
31545
31546
31547
31548
31549
31550
31551 ac_header_dirent=no
31552 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31553   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31554 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31555 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31557   echo $ECHO_N "(cached) $ECHO_C" >&6
31558 else
31559   cat >conftest.$ac_ext <<_ACEOF
31560 /* confdefs.h.  */
31561 _ACEOF
31562 cat confdefs.h >>conftest.$ac_ext
31563 cat >>conftest.$ac_ext <<_ACEOF
31564 /* end confdefs.h.  */
31565 #include <sys/types.h>
31566 #include <$ac_hdr>
31567
31568 int
31569 main ()
31570 {
31571 if ((DIR *) 0)
31572 return 0;
31573   ;
31574   return 0;
31575 }
31576 _ACEOF
31577 rm -f conftest.$ac_objext
31578 if { (ac_try="$ac_compile"
31579 case "(($ac_try" in
31580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31581   *) ac_try_echo=$ac_try;;
31582 esac
31583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31584   (eval "$ac_compile") 2>conftest.er1
31585   ac_status=$?
31586   grep -v '^ *+' conftest.er1 >conftest.err
31587   rm -f conftest.er1
31588   cat conftest.err >&5
31589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31590   (exit $ac_status); } && {
31591          test -z "$ac_c_werror_flag" ||
31592          test ! -s conftest.err
31593        } && test -s conftest.$ac_objext; then
31594   eval "$as_ac_Header=yes"
31595 else
31596   echo "$as_me: failed program was:" >&5
31597 sed 's/^/| /' conftest.$ac_ext >&5
31598
31599         eval "$as_ac_Header=no"
31600 fi
31601
31602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31603 fi
31604 ac_res=`eval echo '${'$as_ac_Header'}'`
31605                { echo "$as_me:$LINENO: result: $ac_res" >&5
31606 echo "${ECHO_T}$ac_res" >&6; }
31607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31608   cat >>confdefs.h <<_ACEOF
31609 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31610 _ACEOF
31611
31612 ac_header_dirent=$ac_hdr; break
31613 fi
31614
31615 done
31616 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31617 if test $ac_header_dirent = dirent.h; then
31618   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31619 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31620 if test "${ac_cv_search_opendir+set}" = set; then
31621   echo $ECHO_N "(cached) $ECHO_C" >&6
31622 else
31623   ac_func_search_save_LIBS=$LIBS
31624 cat >conftest.$ac_ext <<_ACEOF
31625 /* confdefs.h.  */
31626 _ACEOF
31627 cat confdefs.h >>conftest.$ac_ext
31628 cat >>conftest.$ac_ext <<_ACEOF
31629 /* end confdefs.h.  */
31630
31631 /* Override any GCC internal prototype to avoid an error.
31632    Use char because int might match the return type of a GCC
31633    builtin and then its argument prototype would still apply.  */
31634 #ifdef __cplusplus
31635 extern "C"
31636 #endif
31637 char opendir ();
31638 int
31639 main ()
31640 {
31641 return opendir ();
31642   ;
31643   return 0;
31644 }
31645 _ACEOF
31646 for ac_lib in '' dir; do
31647   if test -z "$ac_lib"; then
31648     ac_res="none required"
31649   else
31650     ac_res=-l$ac_lib
31651     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31652   fi
31653   rm -f conftest.$ac_objext conftest$ac_exeext
31654 if { (ac_try="$ac_link"
31655 case "(($ac_try" in
31656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31657   *) ac_try_echo=$ac_try;;
31658 esac
31659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31660   (eval "$ac_link") 2>conftest.er1
31661   ac_status=$?
31662   grep -v '^ *+' conftest.er1 >conftest.err
31663   rm -f conftest.er1
31664   cat conftest.err >&5
31665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31666   (exit $ac_status); } && {
31667          test -z "$ac_c_werror_flag" ||
31668          test ! -s conftest.err
31669        } && test -s conftest$ac_exeext &&
31670        $as_test_x conftest$ac_exeext; then
31671   ac_cv_search_opendir=$ac_res
31672 else
31673   echo "$as_me: failed program was:" >&5
31674 sed 's/^/| /' conftest.$ac_ext >&5
31675
31676
31677 fi
31678
31679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31680       conftest$ac_exeext
31681   if test "${ac_cv_search_opendir+set}" = set; then
31682   break
31683 fi
31684 done
31685 if test "${ac_cv_search_opendir+set}" = set; then
31686   :
31687 else
31688   ac_cv_search_opendir=no
31689 fi
31690 rm conftest.$ac_ext
31691 LIBS=$ac_func_search_save_LIBS
31692 fi
31693 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31694 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31695 ac_res=$ac_cv_search_opendir
31696 if test "$ac_res" != no; then
31697   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31698
31699 fi
31700
31701 else
31702   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31703 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31704 if test "${ac_cv_search_opendir+set}" = set; then
31705   echo $ECHO_N "(cached) $ECHO_C" >&6
31706 else
31707   ac_func_search_save_LIBS=$LIBS
31708 cat >conftest.$ac_ext <<_ACEOF
31709 /* confdefs.h.  */
31710 _ACEOF
31711 cat confdefs.h >>conftest.$ac_ext
31712 cat >>conftest.$ac_ext <<_ACEOF
31713 /* end confdefs.h.  */
31714
31715 /* Override any GCC internal prototype to avoid an error.
31716    Use char because int might match the return type of a GCC
31717    builtin and then its argument prototype would still apply.  */
31718 #ifdef __cplusplus
31719 extern "C"
31720 #endif
31721 char opendir ();
31722 int
31723 main ()
31724 {
31725 return opendir ();
31726   ;
31727   return 0;
31728 }
31729 _ACEOF
31730 for ac_lib in '' x; do
31731   if test -z "$ac_lib"; then
31732     ac_res="none required"
31733   else
31734     ac_res=-l$ac_lib
31735     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31736   fi
31737   rm -f conftest.$ac_objext conftest$ac_exeext
31738 if { (ac_try="$ac_link"
31739 case "(($ac_try" in
31740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31741   *) ac_try_echo=$ac_try;;
31742 esac
31743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31744   (eval "$ac_link") 2>conftest.er1
31745   ac_status=$?
31746   grep -v '^ *+' conftest.er1 >conftest.err
31747   rm -f conftest.er1
31748   cat conftest.err >&5
31749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31750   (exit $ac_status); } && {
31751          test -z "$ac_c_werror_flag" ||
31752          test ! -s conftest.err
31753        } && test -s conftest$ac_exeext &&
31754        $as_test_x conftest$ac_exeext; then
31755   ac_cv_search_opendir=$ac_res
31756 else
31757   echo "$as_me: failed program was:" >&5
31758 sed 's/^/| /' conftest.$ac_ext >&5
31759
31760
31761 fi
31762
31763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31764       conftest$ac_exeext
31765   if test "${ac_cv_search_opendir+set}" = set; then
31766   break
31767 fi
31768 done
31769 if test "${ac_cv_search_opendir+set}" = set; then
31770   :
31771 else
31772   ac_cv_search_opendir=no
31773 fi
31774 rm conftest.$ac_ext
31775 LIBS=$ac_func_search_save_LIBS
31776 fi
31777 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31778 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31779 ac_res=$ac_cv_search_opendir
31780 if test "$ac_res" != no; then
31781   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31782
31783 fi
31784
31785 fi
31786
31787 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31788 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31789 if test "${ac_cv_header_stat_broken+set}" = set; then
31790   echo $ECHO_N "(cached) $ECHO_C" >&6
31791 else
31792   cat >conftest.$ac_ext <<_ACEOF
31793 /* confdefs.h.  */
31794 _ACEOF
31795 cat confdefs.h >>conftest.$ac_ext
31796 cat >>conftest.$ac_ext <<_ACEOF
31797 /* end confdefs.h.  */
31798 #include <sys/types.h>
31799 #include <sys/stat.h>
31800
31801 #if defined S_ISBLK && defined S_IFDIR
31802 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31803 #endif
31804
31805 #if defined S_ISBLK && defined S_IFCHR
31806 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31807 #endif
31808
31809 #if defined S_ISLNK && defined S_IFREG
31810 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31811 #endif
31812
31813 #if defined S_ISSOCK && defined S_IFREG
31814 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31815 #endif
31816
31817 _ACEOF
31818 rm -f conftest.$ac_objext
31819 if { (ac_try="$ac_compile"
31820 case "(($ac_try" in
31821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31822   *) ac_try_echo=$ac_try;;
31823 esac
31824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31825   (eval "$ac_compile") 2>conftest.er1
31826   ac_status=$?
31827   grep -v '^ *+' conftest.er1 >conftest.err
31828   rm -f conftest.er1
31829   cat conftest.err >&5
31830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31831   (exit $ac_status); } && {
31832          test -z "$ac_c_werror_flag" ||
31833          test ! -s conftest.err
31834        } && test -s conftest.$ac_objext; then
31835   ac_cv_header_stat_broken=no
31836 else
31837   echo "$as_me: failed program was:" >&5
31838 sed 's/^/| /' conftest.$ac_ext >&5
31839
31840         ac_cv_header_stat_broken=yes
31841 fi
31842
31843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31844 fi
31845 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31846 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31847 if test $ac_cv_header_stat_broken = yes; then
31848
31849 cat >>confdefs.h <<\_ACEOF
31850 #define STAT_MACROS_BROKEN 1
31851 _ACEOF
31852
31853 fi
31854
31855 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31856 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31857 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31858   echo $ECHO_N "(cached) $ECHO_C" >&6
31859 else
31860   cat >conftest.$ac_ext <<_ACEOF
31861 /* confdefs.h.  */
31862 _ACEOF
31863 cat confdefs.h >>conftest.$ac_ext
31864 cat >>conftest.$ac_ext <<_ACEOF
31865 /* end confdefs.h.  */
31866 #include <sys/types.h>
31867 #include <sys/wait.h>
31868 #ifndef WEXITSTATUS
31869 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31870 #endif
31871 #ifndef WIFEXITED
31872 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31873 #endif
31874
31875 int
31876 main ()
31877 {
31878   int s;
31879   wait (&s);
31880   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31881   ;
31882   return 0;
31883 }
31884 _ACEOF
31885 rm -f conftest.$ac_objext
31886 if { (ac_try="$ac_compile"
31887 case "(($ac_try" in
31888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31889   *) ac_try_echo=$ac_try;;
31890 esac
31891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31892   (eval "$ac_compile") 2>conftest.er1
31893   ac_status=$?
31894   grep -v '^ *+' conftest.er1 >conftest.err
31895   rm -f conftest.er1
31896   cat conftest.err >&5
31897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31898   (exit $ac_status); } && {
31899          test -z "$ac_c_werror_flag" ||
31900          test ! -s conftest.err
31901        } && test -s conftest.$ac_objext; then
31902   ac_cv_header_sys_wait_h=yes
31903 else
31904   echo "$as_me: failed program was:" >&5
31905 sed 's/^/| /' conftest.$ac_ext >&5
31906
31907         ac_cv_header_sys_wait_h=no
31908 fi
31909
31910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31911 fi
31912 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31913 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31914 if test $ac_cv_header_sys_wait_h = yes; then
31915
31916 cat >>confdefs.h <<\_ACEOF
31917 #define HAVE_SYS_WAIT_H 1
31918 _ACEOF
31919
31920 fi
31921
31922 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31923 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31924 if test "${ac_cv_header_time+set}" = set; then
31925   echo $ECHO_N "(cached) $ECHO_C" >&6
31926 else
31927   cat >conftest.$ac_ext <<_ACEOF
31928 /* confdefs.h.  */
31929 _ACEOF
31930 cat confdefs.h >>conftest.$ac_ext
31931 cat >>conftest.$ac_ext <<_ACEOF
31932 /* end confdefs.h.  */
31933 #include <sys/types.h>
31934 #include <sys/time.h>
31935 #include <time.h>
31936
31937 int
31938 main ()
31939 {
31940 if ((struct tm *) 0)
31941 return 0;
31942   ;
31943   return 0;
31944 }
31945 _ACEOF
31946 rm -f conftest.$ac_objext
31947 if { (ac_try="$ac_compile"
31948 case "(($ac_try" in
31949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31950   *) ac_try_echo=$ac_try;;
31951 esac
31952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31953   (eval "$ac_compile") 2>conftest.er1
31954   ac_status=$?
31955   grep -v '^ *+' conftest.er1 >conftest.err
31956   rm -f conftest.er1
31957   cat conftest.err >&5
31958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31959   (exit $ac_status); } && {
31960          test -z "$ac_c_werror_flag" ||
31961          test ! -s conftest.err
31962        } && test -s conftest.$ac_objext; then
31963   ac_cv_header_time=yes
31964 else
31965   echo "$as_me: failed program was:" >&5
31966 sed 's/^/| /' conftest.$ac_ext >&5
31967
31968         ac_cv_header_time=no
31969 fi
31970
31971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31972 fi
31973 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31974 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31975 if test $ac_cv_header_time = yes; then
31976
31977 cat >>confdefs.h <<\_ACEOF
31978 #define TIME_WITH_SYS_TIME 1
31979 _ACEOF
31980
31981 fi
31982
31983 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31984 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31985 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31986   echo $ECHO_N "(cached) $ECHO_C" >&6
31987 else
31988   cat >conftest.$ac_ext <<_ACEOF
31989 /* confdefs.h.  */
31990 _ACEOF
31991 cat confdefs.h >>conftest.$ac_ext
31992 cat >>conftest.$ac_ext <<_ACEOF
31993 /* end confdefs.h.  */
31994 $ac_includes_default
31995 int
31996 main ()
31997 {
31998 static struct stat ac_aggr;
31999 if (ac_aggr.st_blksize)
32000 return 0;
32001   ;
32002   return 0;
32003 }
32004 _ACEOF
32005 rm -f conftest.$ac_objext
32006 if { (ac_try="$ac_compile"
32007 case "(($ac_try" in
32008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32009   *) ac_try_echo=$ac_try;;
32010 esac
32011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32012   (eval "$ac_compile") 2>conftest.er1
32013   ac_status=$?
32014   grep -v '^ *+' conftest.er1 >conftest.err
32015   rm -f conftest.er1
32016   cat conftest.err >&5
32017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32018   (exit $ac_status); } && {
32019          test -z "$ac_c_werror_flag" ||
32020          test ! -s conftest.err
32021        } && test -s conftest.$ac_objext; then
32022   ac_cv_member_struct_stat_st_blksize=yes
32023 else
32024   echo "$as_me: failed program was:" >&5
32025 sed 's/^/| /' conftest.$ac_ext >&5
32026
32027         cat >conftest.$ac_ext <<_ACEOF
32028 /* confdefs.h.  */
32029 _ACEOF
32030 cat confdefs.h >>conftest.$ac_ext
32031 cat >>conftest.$ac_ext <<_ACEOF
32032 /* end confdefs.h.  */
32033 $ac_includes_default
32034 int
32035 main ()
32036 {
32037 static struct stat ac_aggr;
32038 if (sizeof ac_aggr.st_blksize)
32039 return 0;
32040   ;
32041   return 0;
32042 }
32043 _ACEOF
32044 rm -f conftest.$ac_objext
32045 if { (ac_try="$ac_compile"
32046 case "(($ac_try" in
32047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32048   *) ac_try_echo=$ac_try;;
32049 esac
32050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32051   (eval "$ac_compile") 2>conftest.er1
32052   ac_status=$?
32053   grep -v '^ *+' conftest.er1 >conftest.err
32054   rm -f conftest.er1
32055   cat conftest.err >&5
32056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32057   (exit $ac_status); } && {
32058          test -z "$ac_c_werror_flag" ||
32059          test ! -s conftest.err
32060        } && test -s conftest.$ac_objext; then
32061   ac_cv_member_struct_stat_st_blksize=yes
32062 else
32063   echo "$as_me: failed program was:" >&5
32064 sed 's/^/| /' conftest.$ac_ext >&5
32065
32066         ac_cv_member_struct_stat_st_blksize=no
32067 fi
32068
32069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32070 fi
32071
32072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32073 fi
32074 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32075 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32076 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32077
32078 cat >>confdefs.h <<_ACEOF
32079 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32080 _ACEOF
32081
32082
32083 cat >>confdefs.h <<\_ACEOF
32084 #define HAVE_ST_BLKSIZE 1
32085 _ACEOF
32086
32087 fi
32088
32089
32090 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
32091 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
32092 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
32093   echo $ECHO_N "(cached) $ECHO_C" >&6
32094 else
32095   cat >conftest.$ac_ext <<_ACEOF
32096 /* confdefs.h.  */
32097 _ACEOF
32098 cat confdefs.h >>conftest.$ac_ext
32099 cat >>conftest.$ac_ext <<_ACEOF
32100 /* end confdefs.h.  */
32101 $ac_includes_default
32102 int
32103 main ()
32104 {
32105 static struct stat ac_aggr;
32106 if (ac_aggr.st_blocks)
32107 return 0;
32108   ;
32109   return 0;
32110 }
32111 _ACEOF
32112 rm -f conftest.$ac_objext
32113 if { (ac_try="$ac_compile"
32114 case "(($ac_try" in
32115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32116   *) ac_try_echo=$ac_try;;
32117 esac
32118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32119   (eval "$ac_compile") 2>conftest.er1
32120   ac_status=$?
32121   grep -v '^ *+' conftest.er1 >conftest.err
32122   rm -f conftest.er1
32123   cat conftest.err >&5
32124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32125   (exit $ac_status); } && {
32126          test -z "$ac_c_werror_flag" ||
32127          test ! -s conftest.err
32128        } && test -s conftest.$ac_objext; then
32129   ac_cv_member_struct_stat_st_blocks=yes
32130 else
32131   echo "$as_me: failed program was:" >&5
32132 sed 's/^/| /' conftest.$ac_ext >&5
32133
32134         cat >conftest.$ac_ext <<_ACEOF
32135 /* confdefs.h.  */
32136 _ACEOF
32137 cat confdefs.h >>conftest.$ac_ext
32138 cat >>conftest.$ac_ext <<_ACEOF
32139 /* end confdefs.h.  */
32140 $ac_includes_default
32141 int
32142 main ()
32143 {
32144 static struct stat ac_aggr;
32145 if (sizeof ac_aggr.st_blocks)
32146 return 0;
32147   ;
32148   return 0;
32149 }
32150 _ACEOF
32151 rm -f conftest.$ac_objext
32152 if { (ac_try="$ac_compile"
32153 case "(($ac_try" in
32154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32155   *) ac_try_echo=$ac_try;;
32156 esac
32157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32158   (eval "$ac_compile") 2>conftest.er1
32159   ac_status=$?
32160   grep -v '^ *+' conftest.er1 >conftest.err
32161   rm -f conftest.er1
32162   cat conftest.err >&5
32163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32164   (exit $ac_status); } && {
32165          test -z "$ac_c_werror_flag" ||
32166          test ! -s conftest.err
32167        } && test -s conftest.$ac_objext; then
32168   ac_cv_member_struct_stat_st_blocks=yes
32169 else
32170   echo "$as_me: failed program was:" >&5
32171 sed 's/^/| /' conftest.$ac_ext >&5
32172
32173         ac_cv_member_struct_stat_st_blocks=no
32174 fi
32175
32176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32177 fi
32178
32179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32180 fi
32181 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
32182 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
32183 if test $ac_cv_member_struct_stat_st_blocks = yes; then
32184
32185 cat >>confdefs.h <<_ACEOF
32186 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
32187 _ACEOF
32188
32189
32190 cat >>confdefs.h <<\_ACEOF
32191 #define HAVE_ST_BLOCKS 1
32192 _ACEOF
32193
32194 else
32195   case " $LIBOBJS " in
32196   *" fileblocks.$ac_objext "* ) ;;
32197   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
32198  ;;
32199 esac
32200
32201 fi
32202
32203
32204 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32205 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32206 if test "${ac_cv_struct_tm+set}" = set; then
32207   echo $ECHO_N "(cached) $ECHO_C" >&6
32208 else
32209   cat >conftest.$ac_ext <<_ACEOF
32210 /* confdefs.h.  */
32211 _ACEOF
32212 cat confdefs.h >>conftest.$ac_ext
32213 cat >>conftest.$ac_ext <<_ACEOF
32214 /* end confdefs.h.  */
32215 #include <sys/types.h>
32216 #include <time.h>
32217
32218 int
32219 main ()
32220 {
32221 struct tm tm;
32222                                      int *p = &tm.tm_sec;
32223                                      return !p;
32224   ;
32225   return 0;
32226 }
32227 _ACEOF
32228 rm -f conftest.$ac_objext
32229 if { (ac_try="$ac_compile"
32230 case "(($ac_try" in
32231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32232   *) ac_try_echo=$ac_try;;
32233 esac
32234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32235   (eval "$ac_compile") 2>conftest.er1
32236   ac_status=$?
32237   grep -v '^ *+' conftest.er1 >conftest.err
32238   rm -f conftest.er1
32239   cat conftest.err >&5
32240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32241   (exit $ac_status); } && {
32242          test -z "$ac_c_werror_flag" ||
32243          test ! -s conftest.err
32244        } && test -s conftest.$ac_objext; then
32245   ac_cv_struct_tm=time.h
32246 else
32247   echo "$as_me: failed program was:" >&5
32248 sed 's/^/| /' conftest.$ac_ext >&5
32249
32250         ac_cv_struct_tm=sys/time.h
32251 fi
32252
32253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32254 fi
32255 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32256 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32257 if test $ac_cv_struct_tm = sys/time.h; then
32258
32259 cat >>confdefs.h <<\_ACEOF
32260 #define TM_IN_SYS_TIME 1
32261 _ACEOF
32262
32263 fi
32264
32265 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32266 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32267 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32268   echo $ECHO_N "(cached) $ECHO_C" >&6
32269 else
32270   cat >conftest.$ac_ext <<_ACEOF
32271 /* confdefs.h.  */
32272 _ACEOF
32273 cat confdefs.h >>conftest.$ac_ext
32274 cat >>conftest.$ac_ext <<_ACEOF
32275 /* end confdefs.h.  */
32276 #include <sys/types.h>
32277 #include <$ac_cv_struct_tm>
32278
32279
32280 int
32281 main ()
32282 {
32283 static struct tm ac_aggr;
32284 if (ac_aggr.tm_zone)
32285 return 0;
32286   ;
32287   return 0;
32288 }
32289 _ACEOF
32290 rm -f conftest.$ac_objext
32291 if { (ac_try="$ac_compile"
32292 case "(($ac_try" in
32293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32294   *) ac_try_echo=$ac_try;;
32295 esac
32296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32297   (eval "$ac_compile") 2>conftest.er1
32298   ac_status=$?
32299   grep -v '^ *+' conftest.er1 >conftest.err
32300   rm -f conftest.er1
32301   cat conftest.err >&5
32302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32303   (exit $ac_status); } && {
32304          test -z "$ac_c_werror_flag" ||
32305          test ! -s conftest.err
32306        } && test -s conftest.$ac_objext; then
32307   ac_cv_member_struct_tm_tm_zone=yes
32308 else
32309   echo "$as_me: failed program was:" >&5
32310 sed 's/^/| /' conftest.$ac_ext >&5
32311
32312         cat >conftest.$ac_ext <<_ACEOF
32313 /* confdefs.h.  */
32314 _ACEOF
32315 cat confdefs.h >>conftest.$ac_ext
32316 cat >>conftest.$ac_ext <<_ACEOF
32317 /* end confdefs.h.  */
32318 #include <sys/types.h>
32319 #include <$ac_cv_struct_tm>
32320
32321
32322 int
32323 main ()
32324 {
32325 static struct tm ac_aggr;
32326 if (sizeof ac_aggr.tm_zone)
32327 return 0;
32328   ;
32329   return 0;
32330 }
32331 _ACEOF
32332 rm -f conftest.$ac_objext
32333 if { (ac_try="$ac_compile"
32334 case "(($ac_try" in
32335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32336   *) ac_try_echo=$ac_try;;
32337 esac
32338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32339   (eval "$ac_compile") 2>conftest.er1
32340   ac_status=$?
32341   grep -v '^ *+' conftest.er1 >conftest.err
32342   rm -f conftest.er1
32343   cat conftest.err >&5
32344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32345   (exit $ac_status); } && {
32346          test -z "$ac_c_werror_flag" ||
32347          test ! -s conftest.err
32348        } && test -s conftest.$ac_objext; then
32349   ac_cv_member_struct_tm_tm_zone=yes
32350 else
32351   echo "$as_me: failed program was:" >&5
32352 sed 's/^/| /' conftest.$ac_ext >&5
32353
32354         ac_cv_member_struct_tm_tm_zone=no
32355 fi
32356
32357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32358 fi
32359
32360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32361 fi
32362 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32363 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32364 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32365
32366 cat >>confdefs.h <<_ACEOF
32367 #define HAVE_STRUCT_TM_TM_ZONE 1
32368 _ACEOF
32369
32370
32371 fi
32372
32373 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32374
32375 cat >>confdefs.h <<\_ACEOF
32376 #define HAVE_TM_ZONE 1
32377 _ACEOF
32378
32379 else
32380   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32381 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32382 if test "${ac_cv_have_decl_tzname+set}" = set; then
32383   echo $ECHO_N "(cached) $ECHO_C" >&6
32384 else
32385   cat >conftest.$ac_ext <<_ACEOF
32386 /* confdefs.h.  */
32387 _ACEOF
32388 cat confdefs.h >>conftest.$ac_ext
32389 cat >>conftest.$ac_ext <<_ACEOF
32390 /* end confdefs.h.  */
32391 #include <time.h>
32392
32393 int
32394 main ()
32395 {
32396 #ifndef tzname
32397   (void) tzname;
32398 #endif
32399
32400   ;
32401   return 0;
32402 }
32403 _ACEOF
32404 rm -f conftest.$ac_objext
32405 if { (ac_try="$ac_compile"
32406 case "(($ac_try" in
32407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32408   *) ac_try_echo=$ac_try;;
32409 esac
32410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32411   (eval "$ac_compile") 2>conftest.er1
32412   ac_status=$?
32413   grep -v '^ *+' conftest.er1 >conftest.err
32414   rm -f conftest.er1
32415   cat conftest.err >&5
32416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32417   (exit $ac_status); } && {
32418          test -z "$ac_c_werror_flag" ||
32419          test ! -s conftest.err
32420        } && test -s conftest.$ac_objext; then
32421   ac_cv_have_decl_tzname=yes
32422 else
32423   echo "$as_me: failed program was:" >&5
32424 sed 's/^/| /' conftest.$ac_ext >&5
32425
32426         ac_cv_have_decl_tzname=no
32427 fi
32428
32429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32430 fi
32431 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32432 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32433 if test $ac_cv_have_decl_tzname = yes; then
32434
32435 cat >>confdefs.h <<_ACEOF
32436 #define HAVE_DECL_TZNAME 1
32437 _ACEOF
32438
32439
32440 else
32441   cat >>confdefs.h <<_ACEOF
32442 #define HAVE_DECL_TZNAME 0
32443 _ACEOF
32444
32445
32446 fi
32447
32448
32449   { echo "$as_me:$LINENO: checking for tzname" >&5
32450 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32451 if test "${ac_cv_var_tzname+set}" = set; then
32452   echo $ECHO_N "(cached) $ECHO_C" >&6
32453 else
32454   cat >conftest.$ac_ext <<_ACEOF
32455 /* confdefs.h.  */
32456 _ACEOF
32457 cat confdefs.h >>conftest.$ac_ext
32458 cat >>conftest.$ac_ext <<_ACEOF
32459 /* end confdefs.h.  */
32460 #include <time.h>
32461 #if !HAVE_DECL_TZNAME
32462 extern char *tzname[];
32463 #endif
32464
32465 int
32466 main ()
32467 {
32468 return tzname[0][0];
32469   ;
32470   return 0;
32471 }
32472 _ACEOF
32473 rm -f conftest.$ac_objext conftest$ac_exeext
32474 if { (ac_try="$ac_link"
32475 case "(($ac_try" in
32476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32477   *) ac_try_echo=$ac_try;;
32478 esac
32479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32480   (eval "$ac_link") 2>conftest.er1
32481   ac_status=$?
32482   grep -v '^ *+' conftest.er1 >conftest.err
32483   rm -f conftest.er1
32484   cat conftest.err >&5
32485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32486   (exit $ac_status); } && {
32487          test -z "$ac_c_werror_flag" ||
32488          test ! -s conftest.err
32489        } && test -s conftest$ac_exeext &&
32490        $as_test_x conftest$ac_exeext; then
32491   ac_cv_var_tzname=yes
32492 else
32493   echo "$as_me: failed program was:" >&5
32494 sed 's/^/| /' conftest.$ac_ext >&5
32495
32496         ac_cv_var_tzname=no
32497 fi
32498
32499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32500       conftest$ac_exeext conftest.$ac_ext
32501 fi
32502 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32503 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32504   if test $ac_cv_var_tzname = yes; then
32505
32506 cat >>confdefs.h <<\_ACEOF
32507 #define HAVE_TZNAME 1
32508 _ACEOF
32509
32510   fi
32511 fi
32512
32513
32514 { echo "$as_me:$LINENO: checking for utime.h" >&5
32515 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32516 if test "${ba_cv_header_utime_h+set}" = set; then
32517   echo $ECHO_N "(cached) $ECHO_C" >&6
32518 else
32519
32520        cat >conftest.$ac_ext <<_ACEOF
32521 /* confdefs.h.  */
32522 _ACEOF
32523 cat confdefs.h >>conftest.$ac_ext
32524 cat >>conftest.$ac_ext <<_ACEOF
32525 /* end confdefs.h.  */
32526
32527               #include <sys/types.h>
32528               #include <utime.h>
32529
32530 int
32531 main ()
32532 {
32533
32534               struct utimbuf foo
32535
32536   ;
32537   return 0;
32538 }
32539 _ACEOF
32540 rm -f conftest.$ac_objext
32541 if { (ac_try="$ac_compile"
32542 case "(($ac_try" in
32543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32544   *) ac_try_echo=$ac_try;;
32545 esac
32546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32547   (eval "$ac_compile") 2>conftest.er1
32548   ac_status=$?
32549   grep -v '^ *+' conftest.er1 >conftest.err
32550   rm -f conftest.er1
32551   cat conftest.err >&5
32552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32553   (exit $ac_status); } && {
32554          test -z "$ac_c_werror_flag" ||
32555          test ! -s conftest.err
32556        } && test -s conftest.$ac_objext; then
32557
32558               ba_cv_header_utime_h=yes
32559
32560 else
32561   echo "$as_me: failed program was:" >&5
32562 sed 's/^/| /' conftest.$ac_ext >&5
32563
32564
32565               ba_cv_header_utime_h=no
32566
32567
32568 fi
32569
32570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32571
32572
32573 fi
32574 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32575 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32576 test $ba_cv_header_utime_h = yes &&
32577 cat >>confdefs.h <<\_ACEOF
32578 #define HAVE_UTIME_H 1
32579 _ACEOF
32580
32581
32582 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32583 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32584 if test "${ba_cv_header_socklen_t+set}" = set; then
32585   echo $ECHO_N "(cached) $ECHO_C" >&6
32586 else
32587
32588        cat >conftest.$ac_ext <<_ACEOF
32589 /* confdefs.h.  */
32590 _ACEOF
32591 cat confdefs.h >>conftest.$ac_ext
32592 cat >>conftest.$ac_ext <<_ACEOF
32593 /* end confdefs.h.  */
32594
32595               #include <sys/types.h>
32596               #include <sys/socket.h>
32597
32598 int
32599 main ()
32600 {
32601
32602               socklen_t x
32603
32604   ;
32605   return 0;
32606 }
32607 _ACEOF
32608 rm -f conftest.$ac_objext
32609 if { (ac_try="$ac_compile"
32610 case "(($ac_try" in
32611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32612   *) ac_try_echo=$ac_try;;
32613 esac
32614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32615   (eval "$ac_compile") 2>conftest.er1
32616   ac_status=$?
32617   grep -v '^ *+' conftest.er1 >conftest.err
32618   rm -f conftest.er1
32619   cat conftest.err >&5
32620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32621   (exit $ac_status); } && {
32622          test -z "$ac_c_werror_flag" ||
32623          test ! -s conftest.err
32624        } && test -s conftest.$ac_objext; then
32625
32626              ba_cv_header_socklen_t=yes
32627
32628 else
32629   echo "$as_me: failed program was:" >&5
32630 sed 's/^/| /' conftest.$ac_ext >&5
32631
32632
32633              ba_cv_header_socklen_t=no
32634
32635
32636 fi
32637
32638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32639
32640
32641 fi
32642 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32643 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32644 test $ba_cv_header_socklen_t = yes &&
32645 cat >>confdefs.h <<\_ACEOF
32646 #define HAVE_SOCKLEN_T 1
32647 _ACEOF
32648
32649
32650 ac_ext=cpp
32651 ac_cpp='$CXXCPP $CPPFLAGS'
32652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32655
32656 { echo "$as_me:$LINENO: checking for ioctl_req_t" >&5
32657 echo $ECHO_N "checking for ioctl_req_t... $ECHO_C" >&6; }
32658 if test "${ba_cv_header_ioctl_req_t+set}" = set; then
32659   echo $ECHO_N "(cached) $ECHO_C" >&6
32660 else
32661
32662        cat >conftest.$ac_ext <<_ACEOF
32663 /* confdefs.h.  */
32664 _ACEOF
32665 cat confdefs.h >>conftest.$ac_ext
32666 cat >>conftest.$ac_ext <<_ACEOF
32667 /* end confdefs.h.  */
32668
32669               #include <unistd.h>
32670               #include <sys/types.h>
32671               #include <sys/ioctl.h>
32672
32673 int
32674 main ()
32675 {
32676
32677               int (*d_ioctl)(int fd, unsigned long int request, ...);
32678               d_ioctl = ::ioctl;
32679
32680   ;
32681   return 0;
32682 }
32683 _ACEOF
32684 rm -f conftest.$ac_objext
32685 if { (ac_try="$ac_compile"
32686 case "(($ac_try" in
32687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32688   *) ac_try_echo=$ac_try;;
32689 esac
32690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32691   (eval "$ac_compile") 2>conftest.er1
32692   ac_status=$?
32693   grep -v '^ *+' conftest.er1 >conftest.err
32694   rm -f conftest.er1
32695   cat conftest.err >&5
32696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32697   (exit $ac_status); } && {
32698          test -z "$ac_cxx_werror_flag" ||
32699          test ! -s conftest.err
32700        } && test -s conftest.$ac_objext; then
32701
32702              ba_cv_header_ioctl_req_t=yes
32703
32704 else
32705   echo "$as_me: failed program was:" >&5
32706 sed 's/^/| /' conftest.$ac_ext >&5
32707
32708
32709              ba_cv_header_ioctl_req_t=no
32710
32711
32712 fi
32713
32714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32715
32716
32717 fi
32718 { echo "$as_me:$LINENO: result: $ba_cv_header_ioctl_req_t" >&5
32719 echo "${ECHO_T}$ba_cv_header_ioctl_req_t" >&6; }
32720 test $ba_cv_header_ioctl_req_t = yes &&
32721 cat >>confdefs.h <<\_ACEOF
32722 #define HAVE_IOCTL_ULINT_REQUEST 1
32723 _ACEOF
32724
32725
32726 ac_ext=c
32727 ac_cpp='$CPP $CPPFLAGS'
32728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32731
32732
32733 ac_ext=cpp
32734 ac_cpp='$CXXCPP $CPPFLAGS'
32735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32738
32739 { echo "$as_me:$LINENO: checking for typeof" >&5
32740 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32741 if test "${ba_cv_have_typeof+set}" = set; then
32742   echo $ECHO_N "(cached) $ECHO_C" >&6
32743 else
32744
32745        if test "$cross_compiling" = yes; then
32746
32747               ba_cv_have_typeof=no
32748
32749
32750 else
32751   cat >conftest.$ac_ext <<_ACEOF
32752 /* confdefs.h.  */
32753 _ACEOF
32754 cat confdefs.h >>conftest.$ac_ext
32755 cat >>conftest.$ac_ext <<_ACEOF
32756 /* end confdefs.h.  */
32757
32758               main(){char *a = 0; a = (typeof a)a;}
32759
32760 _ACEOF
32761 rm -f conftest$ac_exeext
32762 if { (ac_try="$ac_link"
32763 case "(($ac_try" in
32764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32765   *) ac_try_echo=$ac_try;;
32766 esac
32767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32768   (eval "$ac_link") 2>&5
32769   ac_status=$?
32770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32771   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32772   { (case "(($ac_try" in
32773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32774   *) ac_try_echo=$ac_try;;
32775 esac
32776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32777   (eval "$ac_try") 2>&5
32778   ac_status=$?
32779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780   (exit $ac_status); }; }; then
32781
32782               ba_cv_have_typeof=yes
32783
32784 else
32785   echo "$as_me: program exited with status $ac_status" >&5
32786 echo "$as_me: failed program was:" >&5
32787 sed 's/^/| /' conftest.$ac_ext >&5
32788
32789 ( exit $ac_status )
32790
32791               ba_cv_have_typeof=no
32792
32793 fi
32794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32795 fi
32796
32797
32798
32799
32800 fi
32801 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32802 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32803 test $ba_cv_have_typeof = yes &&
32804 cat >>confdefs.h <<\_ACEOF
32805 #define HAVE_TYPEOF 1
32806 _ACEOF
32807
32808 ac_ext=c
32809 ac_cpp='$CPP $CPPFLAGS'
32810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32813
32814
32815 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32816 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32817 if test "${ac_cv_c_const+set}" = set; then
32818   echo $ECHO_N "(cached) $ECHO_C" >&6
32819 else
32820   cat >conftest.$ac_ext <<_ACEOF
32821 /* confdefs.h.  */
32822 _ACEOF
32823 cat confdefs.h >>conftest.$ac_ext
32824 cat >>conftest.$ac_ext <<_ACEOF
32825 /* end confdefs.h.  */
32826
32827 int
32828 main ()
32829 {
32830 /* FIXME: Include the comments suggested by Paul. */
32831 #ifndef __cplusplus
32832   /* Ultrix mips cc rejects this.  */
32833   typedef int charset[2];
32834   const charset cs;
32835   /* SunOS 4.1.1 cc rejects this.  */
32836   char const *const *pcpcc;
32837   char **ppc;
32838   /* NEC SVR4.0.2 mips cc rejects this.  */
32839   struct point {int x, y;};
32840   static struct point const zero = {0,0};
32841   /* AIX XL C 1.02.0.0 rejects this.
32842      It does not let you subtract one const X* pointer from another in
32843      an arm of an if-expression whose if-part is not a constant
32844      expression */
32845   const char *g = "string";
32846   pcpcc = &g + (g ? g-g : 0);
32847   /* HPUX 7.0 cc rejects these. */
32848   ++pcpcc;
32849   ppc = (char**) pcpcc;
32850   pcpcc = (char const *const *) ppc;
32851   { /* SCO 3.2v4 cc rejects this.  */
32852     char *t;
32853     char const *s = 0 ? (char *) 0 : (char const *) 0;
32854
32855     *t++ = 0;
32856     if (s) return 0;
32857   }
32858   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32859     int x[] = {25, 17};
32860     const int *foo = &x[0];
32861     ++foo;
32862   }
32863   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32864     typedef const int *iptr;
32865     iptr p = 0;
32866     ++p;
32867   }
32868   { /* AIX XL C 1.02.0.0 rejects this saying
32869        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32870     struct s { int j; const int *ap[3]; };
32871     struct s *b; b->j = 5;
32872   }
32873   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32874     const int foo = 10;
32875     if (!foo) return 0;
32876   }
32877   return !cs[0] && !zero.x;
32878 #endif
32879
32880   ;
32881   return 0;
32882 }
32883 _ACEOF
32884 rm -f conftest.$ac_objext
32885 if { (ac_try="$ac_compile"
32886 case "(($ac_try" in
32887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32888   *) ac_try_echo=$ac_try;;
32889 esac
32890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32891   (eval "$ac_compile") 2>conftest.er1
32892   ac_status=$?
32893   grep -v '^ *+' conftest.er1 >conftest.err
32894   rm -f conftest.er1
32895   cat conftest.err >&5
32896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32897   (exit $ac_status); } && {
32898          test -z "$ac_c_werror_flag" ||
32899          test ! -s conftest.err
32900        } && test -s conftest.$ac_objext; then
32901   ac_cv_c_const=yes
32902 else
32903   echo "$as_me: failed program was:" >&5
32904 sed 's/^/| /' conftest.$ac_ext >&5
32905
32906         ac_cv_c_const=no
32907 fi
32908
32909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32910 fi
32911 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32912 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32913 if test $ac_cv_c_const = no; then
32914
32915 cat >>confdefs.h <<\_ACEOF
32916 #define const
32917 _ACEOF
32918
32919 fi
32920
32921
32922 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32923 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32924 fstype=no
32925 # The order of these tests is important.
32926 cat >conftest.$ac_ext <<_ACEOF
32927 /* confdefs.h.  */
32928 _ACEOF
32929 cat confdefs.h >>conftest.$ac_ext
32930 cat >>conftest.$ac_ext <<_ACEOF
32931 /* end confdefs.h.  */
32932
32933        #include <sys/statvfs.h>
32934        #include <sys/fstyp.h>
32935
32936 _ACEOF
32937 if { (ac_try="$ac_cpp conftest.$ac_ext"
32938 case "(($ac_try" in
32939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32940   *) ac_try_echo=$ac_try;;
32941 esac
32942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32943   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32944   ac_status=$?
32945   grep -v '^ *+' conftest.er1 >conftest.err
32946   rm -f conftest.er1
32947   cat conftest.err >&5
32948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32949   (exit $ac_status); } >/dev/null && {
32950          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32951          test ! -s conftest.err
32952        }; then
32953   cat >>confdefs.h <<\_ACEOF
32954 #define FSTYPE_STATVFS 1
32955 _ACEOF
32956  fstype=SVR4
32957
32958 else
32959   echo "$as_me: failed program was:" >&5
32960 sed 's/^/| /' conftest.$ac_ext >&5
32961
32962
32963 fi
32964
32965 rm -f conftest.err conftest.$ac_ext
32966 if test $fstype = no; then
32967    cat >conftest.$ac_ext <<_ACEOF
32968 /* confdefs.h.  */
32969 _ACEOF
32970 cat confdefs.h >>conftest.$ac_ext
32971 cat >>conftest.$ac_ext <<_ACEOF
32972 /* end confdefs.h.  */
32973
32974           #include <sys/statfs.h>
32975           #include <sys/fstyp.h>
32976
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   cat >>confdefs.h <<\_ACEOF
32995 #define FSTYPE_USG_STATFS 1
32996 _ACEOF
32997  fstype=SVR3
32998
32999 else
33000   echo "$as_me: failed program was:" >&5
33001 sed 's/^/| /' conftest.$ac_ext >&5
33002
33003
33004 fi
33005
33006 rm -f conftest.err conftest.$ac_ext
33007 fi
33008 if test $fstype = no; then
33009    cat >conftest.$ac_ext <<_ACEOF
33010 /* confdefs.h.  */
33011 _ACEOF
33012 cat confdefs.h >>conftest.$ac_ext
33013 cat >>conftest.$ac_ext <<_ACEOF
33014 /* end confdefs.h.  */
33015
33016           #include <sys/statfs.h>
33017           #include <sys/vmount.h>
33018
33019 _ACEOF
33020 if { (ac_try="$ac_cpp conftest.$ac_ext"
33021 case "(($ac_try" in
33022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33023   *) ac_try_echo=$ac_try;;
33024 esac
33025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33026   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33027   ac_status=$?
33028   grep -v '^ *+' conftest.er1 >conftest.err
33029   rm -f conftest.er1
33030   cat conftest.err >&5
33031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33032   (exit $ac_status); } >/dev/null && {
33033          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33034          test ! -s conftest.err
33035        }; then
33036   cat >>confdefs.h <<\_ACEOF
33037 #define FSTYPE_AIX_STATFS 1
33038 _ACEOF
33039  fstype=AIX
33040
33041 else
33042   echo "$as_me: failed program was:" >&5
33043 sed 's/^/| /' conftest.$ac_ext >&5
33044
33045
33046 fi
33047
33048 rm -f conftest.err conftest.$ac_ext
33049 fi
33050 if test $fstype = no; then
33051    cat >conftest.$ac_ext <<_ACEOF
33052 /* confdefs.h.  */
33053 _ACEOF
33054 cat confdefs.h >>conftest.$ac_ext
33055 cat >>conftest.$ac_ext <<_ACEOF
33056 /* end confdefs.h.  */
33057
33058           #include <mntent.h>
33059
33060 _ACEOF
33061 if { (ac_try="$ac_cpp conftest.$ac_ext"
33062 case "(($ac_try" in
33063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33064   *) ac_try_echo=$ac_try;;
33065 esac
33066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33067   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33068   ac_status=$?
33069   grep -v '^ *+' conftest.er1 >conftest.err
33070   rm -f conftest.er1
33071   cat conftest.err >&5
33072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33073   (exit $ac_status); } >/dev/null && {
33074          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33075          test ! -s conftest.err
33076        }; then
33077   cat >>confdefs.h <<\_ACEOF
33078 #define FSTYPE_MNTENT 1
33079 _ACEOF
33080  fstype=4.3BSD
33081
33082 else
33083   echo "$as_me: failed program was:" >&5
33084 sed 's/^/| /' conftest.$ac_ext >&5
33085
33086
33087 fi
33088
33089 rm -f conftest.err conftest.$ac_ext
33090 fi
33091 if test $fstype = no; then
33092    cat >conftest.$ac_ext <<_ACEOF
33093 /* confdefs.h.  */
33094 _ACEOF
33095 cat confdefs.h >>conftest.$ac_ext
33096 cat >>conftest.$ac_ext <<_ACEOF
33097 /* end confdefs.h.  */
33098 #include <sys/mount.h>
33099
33100 _ACEOF
33101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33102   $EGREP "f_type;" >/dev/null 2>&1; then
33103   cat >>confdefs.h <<\_ACEOF
33104 #define FSTYPE_STATFS 1
33105 _ACEOF
33106  fstype=4.4BSD/OSF1
33107 fi
33108 rm -f conftest*
33109
33110 fi
33111 if test $fstype = no; then
33112    cat >conftest.$ac_ext <<_ACEOF
33113 /* confdefs.h.  */
33114 _ACEOF
33115 cat confdefs.h >>conftest.$ac_ext
33116 cat >>conftest.$ac_ext <<_ACEOF
33117 /* end confdefs.h.  */
33118
33119           #include <sys/mount.h>
33120           #include <sys/fs_types.h>
33121
33122 _ACEOF
33123 if { (ac_try="$ac_cpp conftest.$ac_ext"
33124 case "(($ac_try" in
33125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33126   *) ac_try_echo=$ac_try;;
33127 esac
33128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33129   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33130   ac_status=$?
33131   grep -v '^ *+' conftest.er1 >conftest.err
33132   rm -f conftest.er1
33133   cat conftest.err >&5
33134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33135   (exit $ac_status); } >/dev/null && {
33136          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33137          test ! -s conftest.err
33138        }; then
33139   cat >>confdefs.h <<\_ACEOF
33140 #define FSTYPE_GETMNT 1
33141 _ACEOF
33142  fstype=Ultrix
33143
33144 else
33145   echo "$as_me: failed program was:" >&5
33146 sed 's/^/| /' conftest.$ac_ext >&5
33147
33148
33149 fi
33150
33151 rm -f conftest.err conftest.$ac_ext
33152 fi
33153 { echo "$as_me:$LINENO: result: $fstype" >&5
33154 echo "${ECHO_T}$fstype" >&6; }
33155
33156 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33157   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33158 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33159 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33160   echo $ECHO_N "(cached) $ECHO_C" >&6
33161 fi
33162 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33163 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33164 else
33165   # Is the header compilable?
33166 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
33167 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
33168 cat >conftest.$ac_ext <<_ACEOF
33169 /* confdefs.h.  */
33170 _ACEOF
33171 cat confdefs.h >>conftest.$ac_ext
33172 cat >>conftest.$ac_ext <<_ACEOF
33173 /* end confdefs.h.  */
33174 $ac_includes_default
33175 #include <sys/statvfs.h>
33176 _ACEOF
33177 rm -f conftest.$ac_objext
33178 if { (ac_try="$ac_compile"
33179 case "(($ac_try" in
33180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33181   *) ac_try_echo=$ac_try;;
33182 esac
33183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33184   (eval "$ac_compile") 2>conftest.er1
33185   ac_status=$?
33186   grep -v '^ *+' conftest.er1 >conftest.err
33187   rm -f conftest.er1
33188   cat conftest.err >&5
33189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33190   (exit $ac_status); } && {
33191          test -z "$ac_c_werror_flag" ||
33192          test ! -s conftest.err
33193        } && test -s conftest.$ac_objext; then
33194   ac_header_compiler=yes
33195 else
33196   echo "$as_me: failed program was:" >&5
33197 sed 's/^/| /' conftest.$ac_ext >&5
33198
33199         ac_header_compiler=no
33200 fi
33201
33202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33203 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33204 echo "${ECHO_T}$ac_header_compiler" >&6; }
33205
33206 # Is the header present?
33207 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
33208 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
33209 cat >conftest.$ac_ext <<_ACEOF
33210 /* confdefs.h.  */
33211 _ACEOF
33212 cat confdefs.h >>conftest.$ac_ext
33213 cat >>conftest.$ac_ext <<_ACEOF
33214 /* end confdefs.h.  */
33215 #include <sys/statvfs.h>
33216 _ACEOF
33217 if { (ac_try="$ac_cpp conftest.$ac_ext"
33218 case "(($ac_try" in
33219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33220   *) ac_try_echo=$ac_try;;
33221 esac
33222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33223   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33224   ac_status=$?
33225   grep -v '^ *+' conftest.er1 >conftest.err
33226   rm -f conftest.er1
33227   cat conftest.err >&5
33228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229   (exit $ac_status); } >/dev/null && {
33230          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33231          test ! -s conftest.err
33232        }; then
33233   ac_header_preproc=yes
33234 else
33235   echo "$as_me: failed program was:" >&5
33236 sed 's/^/| /' conftest.$ac_ext >&5
33237
33238   ac_header_preproc=no
33239 fi
33240
33241 rm -f conftest.err conftest.$ac_ext
33242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33243 echo "${ECHO_T}$ac_header_preproc" >&6; }
33244
33245 # So?  What about this header?
33246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33247   yes:no: )
33248     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
33249 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33250     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33251 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33252     ac_header_preproc=yes
33253     ;;
33254   no:yes:* )
33255     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33256 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33257     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
33258 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
33259     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33260 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33261     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
33262 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33263     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33264 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33265     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33266 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33267
33268     ;;
33269 esac
33270 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33271 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33272 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33273   echo $ECHO_N "(cached) $ECHO_C" >&6
33274 else
33275   ac_cv_header_sys_statvfs_h=$ac_header_preproc
33276 fi
33277 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33278 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33279
33280 fi
33281 if test $ac_cv_header_sys_statvfs_h = yes; then
33282
33283 cat >>confdefs.h <<\_ACEOF
33284 #define HAVE_SYS_STATVFS_H 1
33285 _ACEOF
33286
33287 fi
33288
33289
33290
33291 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33292 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33293 if test "${ac_cv_type_signal+set}" = set; then
33294   echo $ECHO_N "(cached) $ECHO_C" >&6
33295 else
33296   cat >conftest.$ac_ext <<_ACEOF
33297 /* confdefs.h.  */
33298 _ACEOF
33299 cat confdefs.h >>conftest.$ac_ext
33300 cat >>conftest.$ac_ext <<_ACEOF
33301 /* end confdefs.h.  */
33302 #include <sys/types.h>
33303 #include <signal.h>
33304
33305 int
33306 main ()
33307 {
33308 return *(signal (0, 0)) (0) == 1;
33309   ;
33310   return 0;
33311 }
33312 _ACEOF
33313 rm -f conftest.$ac_objext
33314 if { (ac_try="$ac_compile"
33315 case "(($ac_try" in
33316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33317   *) ac_try_echo=$ac_try;;
33318 esac
33319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33320   (eval "$ac_compile") 2>conftest.er1
33321   ac_status=$?
33322   grep -v '^ *+' conftest.er1 >conftest.err
33323   rm -f conftest.er1
33324   cat conftest.err >&5
33325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33326   (exit $ac_status); } && {
33327          test -z "$ac_c_werror_flag" ||
33328          test ! -s conftest.err
33329        } && test -s conftest.$ac_objext; then
33330   ac_cv_type_signal=int
33331 else
33332   echo "$as_me: failed program was:" >&5
33333 sed 's/^/| /' conftest.$ac_ext >&5
33334
33335         ac_cv_type_signal=void
33336 fi
33337
33338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33339 fi
33340 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33341 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33342
33343 cat >>confdefs.h <<_ACEOF
33344 #define RETSIGTYPE $ac_cv_type_signal
33345 _ACEOF
33346
33347
33348
33349   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33350 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33351   if test "${bash_cv_signal_vintage+set}" = set; then
33352   echo $ECHO_N "(cached) $ECHO_C" >&6
33353 else
33354
33355     cat >conftest.$ac_ext <<_ACEOF
33356 /* confdefs.h.  */
33357 _ACEOF
33358 cat confdefs.h >>conftest.$ac_ext
33359 cat >>conftest.$ac_ext <<_ACEOF
33360 /* end confdefs.h.  */
33361 #include <signal.h>
33362 int
33363 main ()
33364 {
33365
33366       sigset_t ss;
33367       struct sigaction sa;
33368       sigemptyset(&ss); sigsuspend(&ss);
33369       sigaction(SIGINT, &sa, (struct sigaction *) 0);
33370       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33371
33372   ;
33373   return 0;
33374 }
33375 _ACEOF
33376 rm -f conftest.$ac_objext conftest$ac_exeext
33377 if { (ac_try="$ac_link"
33378 case "(($ac_try" in
33379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33380   *) ac_try_echo=$ac_try;;
33381 esac
33382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33383   (eval "$ac_link") 2>conftest.er1
33384   ac_status=$?
33385   grep -v '^ *+' conftest.er1 >conftest.err
33386   rm -f conftest.er1
33387   cat conftest.err >&5
33388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33389   (exit $ac_status); } && {
33390          test -z "$ac_c_werror_flag" ||
33391          test ! -s conftest.err
33392        } && test -s conftest$ac_exeext &&
33393        $as_test_x conftest$ac_exeext; then
33394   bash_cv_signal_vintage="posix"
33395 else
33396   echo "$as_me: failed program was:" >&5
33397 sed 's/^/| /' conftest.$ac_ext >&5
33398
33399
33400       cat >conftest.$ac_ext <<_ACEOF
33401 /* confdefs.h.  */
33402 _ACEOF
33403 cat confdefs.h >>conftest.$ac_ext
33404 cat >>conftest.$ac_ext <<_ACEOF
33405 /* end confdefs.h.  */
33406 #include <signal.h>
33407 int
33408 main ()
33409 {
33410
33411           int mask = sigmask(SIGINT);
33412           sigsetmask(mask); sigblock(mask); sigpause(mask);
33413
33414   ;
33415   return 0;
33416 }
33417 _ACEOF
33418 rm -f conftest.$ac_objext conftest$ac_exeext
33419 if { (ac_try="$ac_link"
33420 case "(($ac_try" in
33421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33422   *) ac_try_echo=$ac_try;;
33423 esac
33424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33425   (eval "$ac_link") 2>conftest.er1
33426   ac_status=$?
33427   grep -v '^ *+' conftest.er1 >conftest.err
33428   rm -f conftest.er1
33429   cat conftest.err >&5
33430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33431   (exit $ac_status); } && {
33432          test -z "$ac_c_werror_flag" ||
33433          test ! -s conftest.err
33434        } && test -s conftest$ac_exeext &&
33435        $as_test_x conftest$ac_exeext; then
33436   bash_cv_signal_vintage="4.2bsd"
33437 else
33438   echo "$as_me: failed program was:" >&5
33439 sed 's/^/| /' conftest.$ac_ext >&5
33440
33441
33442         cat >conftest.$ac_ext <<_ACEOF
33443 /* confdefs.h.  */
33444 _ACEOF
33445 cat confdefs.h >>conftest.$ac_ext
33446 cat >>conftest.$ac_ext <<_ACEOF
33447 /* end confdefs.h.  */
33448
33449           #include <signal.h>
33450           RETSIGTYPE foo() { }
33451 int
33452 main ()
33453 {
33454
33455                   int mask = sigmask(SIGINT);
33456                   sigset(SIGINT, foo); sigrelse(SIGINT);
33457                   sighold(SIGINT); sigpause(SIGINT);
33458
33459   ;
33460   return 0;
33461 }
33462 _ACEOF
33463 rm -f conftest.$ac_objext conftest$ac_exeext
33464 if { (ac_try="$ac_link"
33465 case "(($ac_try" in
33466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33467   *) ac_try_echo=$ac_try;;
33468 esac
33469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33470   (eval "$ac_link") 2>conftest.er1
33471   ac_status=$?
33472   grep -v '^ *+' conftest.er1 >conftest.err
33473   rm -f conftest.er1
33474   cat conftest.err >&5
33475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33476   (exit $ac_status); } && {
33477          test -z "$ac_c_werror_flag" ||
33478          test ! -s conftest.err
33479        } && test -s conftest$ac_exeext &&
33480        $as_test_x conftest$ac_exeext; then
33481   bash_cv_signal_vintage="svr3"
33482 else
33483   echo "$as_me: failed program was:" >&5
33484 sed 's/^/| /' conftest.$ac_ext >&5
33485
33486         bash_cv_signal_vintage="v7"
33487
33488 fi
33489
33490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33491       conftest$ac_exeext conftest.$ac_ext
33492
33493 fi
33494
33495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33496       conftest$ac_exeext conftest.$ac_ext
33497
33498 fi
33499
33500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33501       conftest$ac_exeext conftest.$ac_ext
33502
33503 fi
33504
33505   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33506 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33507   if test "$bash_cv_signal_vintage" = "posix"; then
33508     cat >>confdefs.h <<\_ACEOF
33509 #define HAVE_POSIX_SIGNALS 1
33510 _ACEOF
33511
33512   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33513     cat >>confdefs.h <<\_ACEOF
33514 #define HAVE_BSD_SIGNALS 1
33515 _ACEOF
33516
33517   elif test "$bash_cv_signal_vintage" = "svr3"; then
33518     cat >>confdefs.h <<\_ACEOF
33519 #define HAVE_USG_SIGHOLD 1
33520 _ACEOF
33521
33522   fi
33523
33524 { echo "$as_me:$LINENO: checking for mode_t" >&5
33525 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33526 if test "${ac_cv_type_mode_t+set}" = set; then
33527   echo $ECHO_N "(cached) $ECHO_C" >&6
33528 else
33529   cat >conftest.$ac_ext <<_ACEOF
33530 /* confdefs.h.  */
33531 _ACEOF
33532 cat confdefs.h >>conftest.$ac_ext
33533 cat >>conftest.$ac_ext <<_ACEOF
33534 /* end confdefs.h.  */
33535 $ac_includes_default
33536 typedef mode_t ac__type_new_;
33537 int
33538 main ()
33539 {
33540 if ((ac__type_new_ *) 0)
33541   return 0;
33542 if (sizeof (ac__type_new_))
33543   return 0;
33544   ;
33545   return 0;
33546 }
33547 _ACEOF
33548 rm -f conftest.$ac_objext
33549 if { (ac_try="$ac_compile"
33550 case "(($ac_try" in
33551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33552   *) ac_try_echo=$ac_try;;
33553 esac
33554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33555   (eval "$ac_compile") 2>conftest.er1
33556   ac_status=$?
33557   grep -v '^ *+' conftest.er1 >conftest.err
33558   rm -f conftest.er1
33559   cat conftest.err >&5
33560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33561   (exit $ac_status); } && {
33562          test -z "$ac_c_werror_flag" ||
33563          test ! -s conftest.err
33564        } && test -s conftest.$ac_objext; then
33565   ac_cv_type_mode_t=yes
33566 else
33567   echo "$as_me: failed program was:" >&5
33568 sed 's/^/| /' conftest.$ac_ext >&5
33569
33570         ac_cv_type_mode_t=no
33571 fi
33572
33573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33574 fi
33575 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33576 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33577 if test $ac_cv_type_mode_t = yes; then
33578   :
33579 else
33580
33581 cat >>confdefs.h <<_ACEOF
33582 #define mode_t int
33583 _ACEOF
33584
33585 fi
33586
33587 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33588 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33589 if test "${ac_cv_type_uid_t+set}" = set; then
33590   echo $ECHO_N "(cached) $ECHO_C" >&6
33591 else
33592   cat >conftest.$ac_ext <<_ACEOF
33593 /* confdefs.h.  */
33594 _ACEOF
33595 cat confdefs.h >>conftest.$ac_ext
33596 cat >>conftest.$ac_ext <<_ACEOF
33597 /* end confdefs.h.  */
33598 #include <sys/types.h>
33599
33600 _ACEOF
33601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33602   $EGREP "uid_t" >/dev/null 2>&1; then
33603   ac_cv_type_uid_t=yes
33604 else
33605   ac_cv_type_uid_t=no
33606 fi
33607 rm -f conftest*
33608
33609 fi
33610 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33611 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33612 if test $ac_cv_type_uid_t = no; then
33613
33614 cat >>confdefs.h <<\_ACEOF
33615 #define uid_t int
33616 _ACEOF
33617
33618
33619 cat >>confdefs.h <<\_ACEOF
33620 #define gid_t int
33621 _ACEOF
33622
33623 fi
33624
33625 { echo "$as_me:$LINENO: checking for size_t" >&5
33626 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33627 if test "${ac_cv_type_size_t+set}" = set; then
33628   echo $ECHO_N "(cached) $ECHO_C" >&6
33629 else
33630   cat >conftest.$ac_ext <<_ACEOF
33631 /* confdefs.h.  */
33632 _ACEOF
33633 cat confdefs.h >>conftest.$ac_ext
33634 cat >>conftest.$ac_ext <<_ACEOF
33635 /* end confdefs.h.  */
33636 $ac_includes_default
33637 typedef size_t ac__type_new_;
33638 int
33639 main ()
33640 {
33641 if ((ac__type_new_ *) 0)
33642   return 0;
33643 if (sizeof (ac__type_new_))
33644   return 0;
33645   ;
33646   return 0;
33647 }
33648 _ACEOF
33649 rm -f conftest.$ac_objext
33650 if { (ac_try="$ac_compile"
33651 case "(($ac_try" in
33652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33653   *) ac_try_echo=$ac_try;;
33654 esac
33655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33656   (eval "$ac_compile") 2>conftest.er1
33657   ac_status=$?
33658   grep -v '^ *+' conftest.er1 >conftest.err
33659   rm -f conftest.er1
33660   cat conftest.err >&5
33661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33662   (exit $ac_status); } && {
33663          test -z "$ac_c_werror_flag" ||
33664          test ! -s conftest.err
33665        } && test -s conftest.$ac_objext; then
33666   ac_cv_type_size_t=yes
33667 else
33668   echo "$as_me: failed program was:" >&5
33669 sed 's/^/| /' conftest.$ac_ext >&5
33670
33671         ac_cv_type_size_t=no
33672 fi
33673
33674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33675 fi
33676 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33677 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33678 if test $ac_cv_type_size_t = yes; then
33679   :
33680 else
33681
33682 cat >>confdefs.h <<_ACEOF
33683 #define size_t unsigned int
33684 _ACEOF
33685
33686 fi
33687
33688 { echo "$as_me:$LINENO: checking for pid_t" >&5
33689 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33690 if test "${ac_cv_type_pid_t+set}" = set; then
33691   echo $ECHO_N "(cached) $ECHO_C" >&6
33692 else
33693   cat >conftest.$ac_ext <<_ACEOF
33694 /* confdefs.h.  */
33695 _ACEOF
33696 cat confdefs.h >>conftest.$ac_ext
33697 cat >>conftest.$ac_ext <<_ACEOF
33698 /* end confdefs.h.  */
33699 $ac_includes_default
33700 typedef pid_t ac__type_new_;
33701 int
33702 main ()
33703 {
33704 if ((ac__type_new_ *) 0)
33705   return 0;
33706 if (sizeof (ac__type_new_))
33707   return 0;
33708   ;
33709   return 0;
33710 }
33711 _ACEOF
33712 rm -f conftest.$ac_objext
33713 if { (ac_try="$ac_compile"
33714 case "(($ac_try" in
33715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33716   *) ac_try_echo=$ac_try;;
33717 esac
33718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33719   (eval "$ac_compile") 2>conftest.er1
33720   ac_status=$?
33721   grep -v '^ *+' conftest.er1 >conftest.err
33722   rm -f conftest.er1
33723   cat conftest.err >&5
33724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33725   (exit $ac_status); } && {
33726          test -z "$ac_c_werror_flag" ||
33727          test ! -s conftest.err
33728        } && test -s conftest.$ac_objext; then
33729   ac_cv_type_pid_t=yes
33730 else
33731   echo "$as_me: failed program was:" >&5
33732 sed 's/^/| /' conftest.$ac_ext >&5
33733
33734         ac_cv_type_pid_t=no
33735 fi
33736
33737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33738 fi
33739 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33740 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33741 if test $ac_cv_type_pid_t = yes; then
33742   :
33743 else
33744
33745 cat >>confdefs.h <<_ACEOF
33746 #define pid_t int
33747 _ACEOF
33748
33749 fi
33750
33751 { echo "$as_me:$LINENO: checking for off_t" >&5
33752 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33753 if test "${ac_cv_type_off_t+set}" = set; then
33754   echo $ECHO_N "(cached) $ECHO_C" >&6
33755 else
33756   cat >conftest.$ac_ext <<_ACEOF
33757 /* confdefs.h.  */
33758 _ACEOF
33759 cat confdefs.h >>conftest.$ac_ext
33760 cat >>conftest.$ac_ext <<_ACEOF
33761 /* end confdefs.h.  */
33762 $ac_includes_default
33763 typedef off_t ac__type_new_;
33764 int
33765 main ()
33766 {
33767 if ((ac__type_new_ *) 0)
33768   return 0;
33769 if (sizeof (ac__type_new_))
33770   return 0;
33771   ;
33772   return 0;
33773 }
33774 _ACEOF
33775 rm -f conftest.$ac_objext
33776 if { (ac_try="$ac_compile"
33777 case "(($ac_try" in
33778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33779   *) ac_try_echo=$ac_try;;
33780 esac
33781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33782   (eval "$ac_compile") 2>conftest.er1
33783   ac_status=$?
33784   grep -v '^ *+' conftest.er1 >conftest.err
33785   rm -f conftest.er1
33786   cat conftest.err >&5
33787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33788   (exit $ac_status); } && {
33789          test -z "$ac_c_werror_flag" ||
33790          test ! -s conftest.err
33791        } && test -s conftest.$ac_objext; then
33792   ac_cv_type_off_t=yes
33793 else
33794   echo "$as_me: failed program was:" >&5
33795 sed 's/^/| /' conftest.$ac_ext >&5
33796
33797         ac_cv_type_off_t=no
33798 fi
33799
33800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33801 fi
33802 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33803 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33804 if test $ac_cv_type_off_t = yes; then
33805   :
33806 else
33807
33808 cat >>confdefs.h <<_ACEOF
33809 #define off_t long int
33810 _ACEOF
33811
33812 fi
33813
33814
33815   { echo "$as_me:$LINENO: checking for intptr_t" >&5
33816 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33817 if test "${ac_cv_type_intptr_t+set}" = set; then
33818   echo $ECHO_N "(cached) $ECHO_C" >&6
33819 else
33820   cat >conftest.$ac_ext <<_ACEOF
33821 /* confdefs.h.  */
33822 _ACEOF
33823 cat confdefs.h >>conftest.$ac_ext
33824 cat >>conftest.$ac_ext <<_ACEOF
33825 /* end confdefs.h.  */
33826 $ac_includes_default
33827 typedef intptr_t ac__type_new_;
33828 int
33829 main ()
33830 {
33831 if ((ac__type_new_ *) 0)
33832   return 0;
33833 if (sizeof (ac__type_new_))
33834   return 0;
33835   ;
33836   return 0;
33837 }
33838 _ACEOF
33839 rm -f conftest.$ac_objext
33840 if { (ac_try="$ac_compile"
33841 case "(($ac_try" in
33842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33843   *) ac_try_echo=$ac_try;;
33844 esac
33845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33846   (eval "$ac_compile") 2>conftest.er1
33847   ac_status=$?
33848   grep -v '^ *+' conftest.er1 >conftest.err
33849   rm -f conftest.er1
33850   cat conftest.err >&5
33851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33852   (exit $ac_status); } && {
33853          test -z "$ac_c_werror_flag" ||
33854          test ! -s conftest.err
33855        } && test -s conftest.$ac_objext; then
33856   ac_cv_type_intptr_t=yes
33857 else
33858   echo "$as_me: failed program was:" >&5
33859 sed 's/^/| /' conftest.$ac_ext >&5
33860
33861         ac_cv_type_intptr_t=no
33862 fi
33863
33864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33865 fi
33866 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33867 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33868 if test $ac_cv_type_intptr_t = yes; then
33869
33870 cat >>confdefs.h <<\_ACEOF
33871 #define HAVE_INTPTR_T 1
33872 _ACEOF
33873
33874 else
33875   for ac_type in 'int' 'long int' 'long long int'; do
33876        cat >conftest.$ac_ext <<_ACEOF
33877 /* confdefs.h.  */
33878 _ACEOF
33879 cat confdefs.h >>conftest.$ac_ext
33880 cat >>conftest.$ac_ext <<_ACEOF
33881 /* end confdefs.h.  */
33882 $ac_includes_default
33883 int
33884 main ()
33885 {
33886 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33887 test_array [0] = 0
33888
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
33911 cat >>confdefs.h <<_ACEOF
33912 #define intptr_t $ac_type
33913 _ACEOF
33914
33915           ac_type=
33916 else
33917   echo "$as_me: failed program was:" >&5
33918 sed 's/^/| /' conftest.$ac_ext >&5
33919
33920
33921 fi
33922
33923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33924        test -z "$ac_type" && break
33925      done
33926 fi
33927
33928
33929
33930   { echo "$as_me:$LINENO: checking for uintptr_t" >&5
33931 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
33932 if test "${ac_cv_type_uintptr_t+set}" = set; then
33933   echo $ECHO_N "(cached) $ECHO_C" >&6
33934 else
33935   cat >conftest.$ac_ext <<_ACEOF
33936 /* confdefs.h.  */
33937 _ACEOF
33938 cat confdefs.h >>conftest.$ac_ext
33939 cat >>conftest.$ac_ext <<_ACEOF
33940 /* end confdefs.h.  */
33941 $ac_includes_default
33942 typedef uintptr_t ac__type_new_;
33943 int
33944 main ()
33945 {
33946 if ((ac__type_new_ *) 0)
33947   return 0;
33948 if (sizeof (ac__type_new_))
33949   return 0;
33950   ;
33951   return 0;
33952 }
33953 _ACEOF
33954 rm -f conftest.$ac_objext
33955 if { (ac_try="$ac_compile"
33956 case "(($ac_try" in
33957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33958   *) ac_try_echo=$ac_try;;
33959 esac
33960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33961   (eval "$ac_compile") 2>conftest.er1
33962   ac_status=$?
33963   grep -v '^ *+' conftest.er1 >conftest.err
33964   rm -f conftest.er1
33965   cat conftest.err >&5
33966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33967   (exit $ac_status); } && {
33968          test -z "$ac_c_werror_flag" ||
33969          test ! -s conftest.err
33970        } && test -s conftest.$ac_objext; then
33971   ac_cv_type_uintptr_t=yes
33972 else
33973   echo "$as_me: failed program was:" >&5
33974 sed 's/^/| /' conftest.$ac_ext >&5
33975
33976         ac_cv_type_uintptr_t=no
33977 fi
33978
33979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33980 fi
33981 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
33982 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
33983 if test $ac_cv_type_uintptr_t = yes; then
33984
33985 cat >>confdefs.h <<\_ACEOF
33986 #define HAVE_UINTPTR_T 1
33987 _ACEOF
33988
33989 else
33990   for ac_type in 'unsigned int' 'unsigned long int' \
33991         'unsigned long long int'; do
33992        cat >conftest.$ac_ext <<_ACEOF
33993 /* confdefs.h.  */
33994 _ACEOF
33995 cat confdefs.h >>conftest.$ac_ext
33996 cat >>conftest.$ac_ext <<_ACEOF
33997 /* end confdefs.h.  */
33998 $ac_includes_default
33999 int
34000 main ()
34001 {
34002 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
34003 test_array [0] = 0
34004
34005   ;
34006   return 0;
34007 }
34008 _ACEOF
34009 rm -f conftest.$ac_objext
34010 if { (ac_try="$ac_compile"
34011 case "(($ac_try" in
34012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34013   *) ac_try_echo=$ac_try;;
34014 esac
34015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34016   (eval "$ac_compile") 2>conftest.er1
34017   ac_status=$?
34018   grep -v '^ *+' conftest.er1 >conftest.err
34019   rm -f conftest.er1
34020   cat conftest.err >&5
34021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34022   (exit $ac_status); } && {
34023          test -z "$ac_c_werror_flag" ||
34024          test ! -s conftest.err
34025        } && test -s conftest.$ac_objext; then
34026
34027 cat >>confdefs.h <<_ACEOF
34028 #define uintptr_t $ac_type
34029 _ACEOF
34030
34031           ac_type=
34032 else
34033   echo "$as_me: failed program was:" >&5
34034 sed 's/^/| /' conftest.$ac_ext >&5
34035
34036
34037 fi
34038
34039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34040        test -z "$ac_type" && break
34041      done
34042 fi
34043
34044
34045 { echo "$as_me:$LINENO: checking for ino_t" >&5
34046 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
34047 if test "${ac_cv_type_ino_t+set}" = set; then
34048   echo $ECHO_N "(cached) $ECHO_C" >&6
34049 else
34050   cat >conftest.$ac_ext <<_ACEOF
34051 /* confdefs.h.  */
34052 _ACEOF
34053 cat confdefs.h >>conftest.$ac_ext
34054 cat >>conftest.$ac_ext <<_ACEOF
34055 /* end confdefs.h.  */
34056 $ac_includes_default
34057 typedef ino_t ac__type_new_;
34058 int
34059 main ()
34060 {
34061 if ((ac__type_new_ *) 0)
34062   return 0;
34063 if (sizeof (ac__type_new_))
34064   return 0;
34065   ;
34066   return 0;
34067 }
34068 _ACEOF
34069 rm -f conftest.$ac_objext
34070 if { (ac_try="$ac_compile"
34071 case "(($ac_try" in
34072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34073   *) ac_try_echo=$ac_try;;
34074 esac
34075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34076   (eval "$ac_compile") 2>conftest.er1
34077   ac_status=$?
34078   grep -v '^ *+' conftest.er1 >conftest.err
34079   rm -f conftest.er1
34080   cat conftest.err >&5
34081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34082   (exit $ac_status); } && {
34083          test -z "$ac_c_werror_flag" ||
34084          test ! -s conftest.err
34085        } && test -s conftest.$ac_objext; then
34086   ac_cv_type_ino_t=yes
34087 else
34088   echo "$as_me: failed program was:" >&5
34089 sed 's/^/| /' conftest.$ac_ext >&5
34090
34091         ac_cv_type_ino_t=no
34092 fi
34093
34094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34095 fi
34096 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
34097 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
34098 if test $ac_cv_type_ino_t = yes; then
34099   :
34100 else
34101
34102 cat >>confdefs.h <<_ACEOF
34103 #define ino_t unsigned long
34104 _ACEOF
34105
34106 fi
34107
34108 { echo "$as_me:$LINENO: checking for dev_t" >&5
34109 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
34110 if test "${ac_cv_type_dev_t+set}" = set; then
34111   echo $ECHO_N "(cached) $ECHO_C" >&6
34112 else
34113   cat >conftest.$ac_ext <<_ACEOF
34114 /* confdefs.h.  */
34115 _ACEOF
34116 cat confdefs.h >>conftest.$ac_ext
34117 cat >>conftest.$ac_ext <<_ACEOF
34118 /* end confdefs.h.  */
34119 $ac_includes_default
34120 typedef dev_t ac__type_new_;
34121 int
34122 main ()
34123 {
34124 if ((ac__type_new_ *) 0)
34125   return 0;
34126 if (sizeof (ac__type_new_))
34127   return 0;
34128   ;
34129   return 0;
34130 }
34131 _ACEOF
34132 rm -f conftest.$ac_objext
34133 if { (ac_try="$ac_compile"
34134 case "(($ac_try" in
34135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34136   *) ac_try_echo=$ac_try;;
34137 esac
34138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34139   (eval "$ac_compile") 2>conftest.er1
34140   ac_status=$?
34141   grep -v '^ *+' conftest.er1 >conftest.err
34142   rm -f conftest.er1
34143   cat conftest.err >&5
34144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34145   (exit $ac_status); } && {
34146          test -z "$ac_c_werror_flag" ||
34147          test ! -s conftest.err
34148        } && test -s conftest.$ac_objext; then
34149   ac_cv_type_dev_t=yes
34150 else
34151   echo "$as_me: failed program was:" >&5
34152 sed 's/^/| /' conftest.$ac_ext >&5
34153
34154         ac_cv_type_dev_t=no
34155 fi
34156
34157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34158 fi
34159 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
34160 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
34161 if test $ac_cv_type_dev_t = yes; then
34162   :
34163 else
34164
34165 cat >>confdefs.h <<_ACEOF
34166 #define dev_t unsigned long
34167 _ACEOF
34168
34169 fi
34170
34171 { echo "$as_me:$LINENO: checking for daddr_t" >&5
34172 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
34173 if test "${ac_cv_type_daddr_t+set}" = set; then
34174   echo $ECHO_N "(cached) $ECHO_C" >&6
34175 else
34176   cat >conftest.$ac_ext <<_ACEOF
34177 /* confdefs.h.  */
34178 _ACEOF
34179 cat confdefs.h >>conftest.$ac_ext
34180 cat >>conftest.$ac_ext <<_ACEOF
34181 /* end confdefs.h.  */
34182 $ac_includes_default
34183 typedef daddr_t ac__type_new_;
34184 int
34185 main ()
34186 {
34187 if ((ac__type_new_ *) 0)
34188   return 0;
34189 if (sizeof (ac__type_new_))
34190   return 0;
34191   ;
34192   return 0;
34193 }
34194 _ACEOF
34195 rm -f conftest.$ac_objext
34196 if { (ac_try="$ac_compile"
34197 case "(($ac_try" in
34198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34199   *) ac_try_echo=$ac_try;;
34200 esac
34201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34202   (eval "$ac_compile") 2>conftest.er1
34203   ac_status=$?
34204   grep -v '^ *+' conftest.er1 >conftest.err
34205   rm -f conftest.er1
34206   cat conftest.err >&5
34207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34208   (exit $ac_status); } && {
34209          test -z "$ac_c_werror_flag" ||
34210          test ! -s conftest.err
34211        } && test -s conftest.$ac_objext; then
34212   ac_cv_type_daddr_t=yes
34213 else
34214   echo "$as_me: failed program was:" >&5
34215 sed 's/^/| /' conftest.$ac_ext >&5
34216
34217         ac_cv_type_daddr_t=no
34218 fi
34219
34220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34221 fi
34222 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
34223 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
34224 if test $ac_cv_type_daddr_t = yes; then
34225   :
34226 else
34227
34228 cat >>confdefs.h <<_ACEOF
34229 #define daddr_t long
34230 _ACEOF
34231
34232 fi
34233
34234 { echo "$as_me:$LINENO: checking for major_t" >&5
34235 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
34236 if test "${ac_cv_type_major_t+set}" = set; then
34237   echo $ECHO_N "(cached) $ECHO_C" >&6
34238 else
34239   cat >conftest.$ac_ext <<_ACEOF
34240 /* confdefs.h.  */
34241 _ACEOF
34242 cat confdefs.h >>conftest.$ac_ext
34243 cat >>conftest.$ac_ext <<_ACEOF
34244 /* end confdefs.h.  */
34245 $ac_includes_default
34246 typedef major_t ac__type_new_;
34247 int
34248 main ()
34249 {
34250 if ((ac__type_new_ *) 0)
34251   return 0;
34252 if (sizeof (ac__type_new_))
34253   return 0;
34254   ;
34255   return 0;
34256 }
34257 _ACEOF
34258 rm -f conftest.$ac_objext
34259 if { (ac_try="$ac_compile"
34260 case "(($ac_try" in
34261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34262   *) ac_try_echo=$ac_try;;
34263 esac
34264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34265   (eval "$ac_compile") 2>conftest.er1
34266   ac_status=$?
34267   grep -v '^ *+' conftest.er1 >conftest.err
34268   rm -f conftest.er1
34269   cat conftest.err >&5
34270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34271   (exit $ac_status); } && {
34272          test -z "$ac_c_werror_flag" ||
34273          test ! -s conftest.err
34274        } && test -s conftest.$ac_objext; then
34275   ac_cv_type_major_t=yes
34276 else
34277   echo "$as_me: failed program was:" >&5
34278 sed 's/^/| /' conftest.$ac_ext >&5
34279
34280         ac_cv_type_major_t=no
34281 fi
34282
34283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34284 fi
34285 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34286 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34287 if test $ac_cv_type_major_t = yes; then
34288   :
34289 else
34290
34291 cat >>confdefs.h <<_ACEOF
34292 #define major_t int
34293 _ACEOF
34294
34295 fi
34296
34297 { echo "$as_me:$LINENO: checking for minor_t" >&5
34298 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34299 if test "${ac_cv_type_minor_t+set}" = set; then
34300   echo $ECHO_N "(cached) $ECHO_C" >&6
34301 else
34302   cat >conftest.$ac_ext <<_ACEOF
34303 /* confdefs.h.  */
34304 _ACEOF
34305 cat confdefs.h >>conftest.$ac_ext
34306 cat >>conftest.$ac_ext <<_ACEOF
34307 /* end confdefs.h.  */
34308 $ac_includes_default
34309 typedef minor_t ac__type_new_;
34310 int
34311 main ()
34312 {
34313 if ((ac__type_new_ *) 0)
34314   return 0;
34315 if (sizeof (ac__type_new_))
34316   return 0;
34317   ;
34318   return 0;
34319 }
34320 _ACEOF
34321 rm -f conftest.$ac_objext
34322 if { (ac_try="$ac_compile"
34323 case "(($ac_try" in
34324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34325   *) ac_try_echo=$ac_try;;
34326 esac
34327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34328   (eval "$ac_compile") 2>conftest.er1
34329   ac_status=$?
34330   grep -v '^ *+' conftest.er1 >conftest.err
34331   rm -f conftest.er1
34332   cat conftest.err >&5
34333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34334   (exit $ac_status); } && {
34335          test -z "$ac_c_werror_flag" ||
34336          test ! -s conftest.err
34337        } && test -s conftest.$ac_objext; then
34338   ac_cv_type_minor_t=yes
34339 else
34340   echo "$as_me: failed program was:" >&5
34341 sed 's/^/| /' conftest.$ac_ext >&5
34342
34343         ac_cv_type_minor_t=no
34344 fi
34345
34346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34347 fi
34348 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34349 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34350 if test $ac_cv_type_minor_t = yes; then
34351   :
34352 else
34353
34354 cat >>confdefs.h <<_ACEOF
34355 #define minor_t int
34356 _ACEOF
34357
34358 fi
34359
34360 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34361 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34362 if test "${ac_cv_type_ssize_t+set}" = set; then
34363   echo $ECHO_N "(cached) $ECHO_C" >&6
34364 else
34365   cat >conftest.$ac_ext <<_ACEOF
34366 /* confdefs.h.  */
34367 _ACEOF
34368 cat confdefs.h >>conftest.$ac_ext
34369 cat >>conftest.$ac_ext <<_ACEOF
34370 /* end confdefs.h.  */
34371 $ac_includes_default
34372 typedef ssize_t ac__type_new_;
34373 int
34374 main ()
34375 {
34376 if ((ac__type_new_ *) 0)
34377   return 0;
34378 if (sizeof (ac__type_new_))
34379   return 0;
34380   ;
34381   return 0;
34382 }
34383 _ACEOF
34384 rm -f conftest.$ac_objext
34385 if { (ac_try="$ac_compile"
34386 case "(($ac_try" in
34387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34388   *) ac_try_echo=$ac_try;;
34389 esac
34390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34391   (eval "$ac_compile") 2>conftest.er1
34392   ac_status=$?
34393   grep -v '^ *+' conftest.er1 >conftest.err
34394   rm -f conftest.er1
34395   cat conftest.err >&5
34396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34397   (exit $ac_status); } && {
34398          test -z "$ac_c_werror_flag" ||
34399          test ! -s conftest.err
34400        } && test -s conftest.$ac_objext; then
34401   ac_cv_type_ssize_t=yes
34402 else
34403   echo "$as_me: failed program was:" >&5
34404 sed 's/^/| /' conftest.$ac_ext >&5
34405
34406         ac_cv_type_ssize_t=no
34407 fi
34408
34409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34410 fi
34411 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34412 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34413 if test $ac_cv_type_ssize_t = yes; then
34414   :
34415 else
34416
34417 cat >>confdefs.h <<_ACEOF
34418 #define ssize_t int
34419 _ACEOF
34420
34421 fi
34422
34423 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34424 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34425 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34426   echo $ECHO_N "(cached) $ECHO_C" >&6
34427 else
34428   cat >conftest.$ac_ext <<_ACEOF
34429 /* confdefs.h.  */
34430 _ACEOF
34431 cat confdefs.h >>conftest.$ac_ext
34432 cat >>conftest.$ac_ext <<_ACEOF
34433 /* end confdefs.h.  */
34434 $ac_includes_default
34435 int
34436 main ()
34437 {
34438 static struct stat ac_aggr;
34439 if (ac_aggr.st_blocks)
34440 return 0;
34441   ;
34442   return 0;
34443 }
34444 _ACEOF
34445 rm -f conftest.$ac_objext
34446 if { (ac_try="$ac_compile"
34447 case "(($ac_try" in
34448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34449   *) ac_try_echo=$ac_try;;
34450 esac
34451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34452   (eval "$ac_compile") 2>conftest.er1
34453   ac_status=$?
34454   grep -v '^ *+' conftest.er1 >conftest.err
34455   rm -f conftest.er1
34456   cat conftest.err >&5
34457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34458   (exit $ac_status); } && {
34459          test -z "$ac_c_werror_flag" ||
34460          test ! -s conftest.err
34461        } && test -s conftest.$ac_objext; then
34462   ac_cv_member_struct_stat_st_blocks=yes
34463 else
34464   echo "$as_me: failed program was:" >&5
34465 sed 's/^/| /' conftest.$ac_ext >&5
34466
34467         cat >conftest.$ac_ext <<_ACEOF
34468 /* confdefs.h.  */
34469 _ACEOF
34470 cat confdefs.h >>conftest.$ac_ext
34471 cat >>conftest.$ac_ext <<_ACEOF
34472 /* end confdefs.h.  */
34473 $ac_includes_default
34474 int
34475 main ()
34476 {
34477 static struct stat ac_aggr;
34478 if (sizeof ac_aggr.st_blocks)
34479 return 0;
34480   ;
34481   return 0;
34482 }
34483 _ACEOF
34484 rm -f conftest.$ac_objext
34485 if { (ac_try="$ac_compile"
34486 case "(($ac_try" in
34487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34488   *) ac_try_echo=$ac_try;;
34489 esac
34490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34491   (eval "$ac_compile") 2>conftest.er1
34492   ac_status=$?
34493   grep -v '^ *+' conftest.er1 >conftest.err
34494   rm -f conftest.er1
34495   cat conftest.err >&5
34496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34497   (exit $ac_status); } && {
34498          test -z "$ac_c_werror_flag" ||
34499          test ! -s conftest.err
34500        } && test -s conftest.$ac_objext; then
34501   ac_cv_member_struct_stat_st_blocks=yes
34502 else
34503   echo "$as_me: failed program was:" >&5
34504 sed 's/^/| /' conftest.$ac_ext >&5
34505
34506         ac_cv_member_struct_stat_st_blocks=no
34507 fi
34508
34509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34510 fi
34511
34512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34513 fi
34514 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34515 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34516 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34517
34518 cat >>confdefs.h <<_ACEOF
34519 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34520 _ACEOF
34521
34522
34523 cat >>confdefs.h <<\_ACEOF
34524 #define HAVE_ST_BLOCKS 1
34525 _ACEOF
34526
34527 else
34528   case " $LIBOBJS " in
34529   *" fileblocks.$ac_objext "* ) ;;
34530   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34531  ;;
34532 esac
34533
34534 fi
34535
34536
34537 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34538 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34539 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34540   echo $ECHO_N "(cached) $ECHO_C" >&6
34541 else
34542   cat >conftest.$ac_ext <<_ACEOF
34543 /* confdefs.h.  */
34544 _ACEOF
34545 cat confdefs.h >>conftest.$ac_ext
34546 cat >>conftest.$ac_ext <<_ACEOF
34547 /* end confdefs.h.  */
34548 $ac_includes_default
34549 int
34550 main ()
34551 {
34552 static struct stat ac_aggr;
34553 if (ac_aggr.st_rdev)
34554 return 0;
34555   ;
34556   return 0;
34557 }
34558 _ACEOF
34559 rm -f conftest.$ac_objext
34560 if { (ac_try="$ac_compile"
34561 case "(($ac_try" in
34562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34563   *) ac_try_echo=$ac_try;;
34564 esac
34565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34566   (eval "$ac_compile") 2>conftest.er1
34567   ac_status=$?
34568   grep -v '^ *+' conftest.er1 >conftest.err
34569   rm -f conftest.er1
34570   cat conftest.err >&5
34571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34572   (exit $ac_status); } && {
34573          test -z "$ac_c_werror_flag" ||
34574          test ! -s conftest.err
34575        } && test -s conftest.$ac_objext; then
34576   ac_cv_member_struct_stat_st_rdev=yes
34577 else
34578   echo "$as_me: failed program was:" >&5
34579 sed 's/^/| /' conftest.$ac_ext >&5
34580
34581         cat >conftest.$ac_ext <<_ACEOF
34582 /* confdefs.h.  */
34583 _ACEOF
34584 cat confdefs.h >>conftest.$ac_ext
34585 cat >>conftest.$ac_ext <<_ACEOF
34586 /* end confdefs.h.  */
34587 $ac_includes_default
34588 int
34589 main ()
34590 {
34591 static struct stat ac_aggr;
34592 if (sizeof ac_aggr.st_rdev)
34593 return 0;
34594   ;
34595   return 0;
34596 }
34597 _ACEOF
34598 rm -f conftest.$ac_objext
34599 if { (ac_try="$ac_compile"
34600 case "(($ac_try" in
34601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34602   *) ac_try_echo=$ac_try;;
34603 esac
34604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34605   (eval "$ac_compile") 2>conftest.er1
34606   ac_status=$?
34607   grep -v '^ *+' conftest.er1 >conftest.err
34608   rm -f conftest.er1
34609   cat conftest.err >&5
34610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34611   (exit $ac_status); } && {
34612          test -z "$ac_c_werror_flag" ||
34613          test ! -s conftest.err
34614        } && test -s conftest.$ac_objext; then
34615   ac_cv_member_struct_stat_st_rdev=yes
34616 else
34617   echo "$as_me: failed program was:" >&5
34618 sed 's/^/| /' conftest.$ac_ext >&5
34619
34620         ac_cv_member_struct_stat_st_rdev=no
34621 fi
34622
34623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34624 fi
34625
34626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34627 fi
34628 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34629 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34630 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34631
34632 cat >>confdefs.h <<_ACEOF
34633 #define HAVE_STRUCT_STAT_ST_RDEV 1
34634 _ACEOF
34635
34636
34637 cat >>confdefs.h <<\_ACEOF
34638 #define HAVE_ST_RDEV 1
34639 _ACEOF
34640
34641 fi
34642
34643
34644 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34645 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34646 if test "${ac_cv_struct_tm+set}" = set; then
34647   echo $ECHO_N "(cached) $ECHO_C" >&6
34648 else
34649   cat >conftest.$ac_ext <<_ACEOF
34650 /* confdefs.h.  */
34651 _ACEOF
34652 cat confdefs.h >>conftest.$ac_ext
34653 cat >>conftest.$ac_ext <<_ACEOF
34654 /* end confdefs.h.  */
34655 #include <sys/types.h>
34656 #include <time.h>
34657
34658 int
34659 main ()
34660 {
34661 struct tm tm;
34662                                      int *p = &tm.tm_sec;
34663                                      return !p;
34664   ;
34665   return 0;
34666 }
34667 _ACEOF
34668 rm -f conftest.$ac_objext
34669 if { (ac_try="$ac_compile"
34670 case "(($ac_try" in
34671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34672   *) ac_try_echo=$ac_try;;
34673 esac
34674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34675   (eval "$ac_compile") 2>conftest.er1
34676   ac_status=$?
34677   grep -v '^ *+' conftest.er1 >conftest.err
34678   rm -f conftest.er1
34679   cat conftest.err >&5
34680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34681   (exit $ac_status); } && {
34682          test -z "$ac_c_werror_flag" ||
34683          test ! -s conftest.err
34684        } && test -s conftest.$ac_objext; then
34685   ac_cv_struct_tm=time.h
34686 else
34687   echo "$as_me: failed program was:" >&5
34688 sed 's/^/| /' conftest.$ac_ext >&5
34689
34690         ac_cv_struct_tm=sys/time.h
34691 fi
34692
34693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34694 fi
34695 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34696 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34697 if test $ac_cv_struct_tm = sys/time.h; then
34698
34699 cat >>confdefs.h <<\_ACEOF
34700 #define TM_IN_SYS_TIME 1
34701 _ACEOF
34702
34703 fi
34704
34705 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34706 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34707 if test "${ac_cv_c_const+set}" = set; then
34708   echo $ECHO_N "(cached) $ECHO_C" >&6
34709 else
34710   cat >conftest.$ac_ext <<_ACEOF
34711 /* confdefs.h.  */
34712 _ACEOF
34713 cat confdefs.h >>conftest.$ac_ext
34714 cat >>conftest.$ac_ext <<_ACEOF
34715 /* end confdefs.h.  */
34716
34717 int
34718 main ()
34719 {
34720 /* FIXME: Include the comments suggested by Paul. */
34721 #ifndef __cplusplus
34722   /* Ultrix mips cc rejects this.  */
34723   typedef int charset[2];
34724   const charset cs;
34725   /* SunOS 4.1.1 cc rejects this.  */
34726   char const *const *pcpcc;
34727   char **ppc;
34728   /* NEC SVR4.0.2 mips cc rejects this.  */
34729   struct point {int x, y;};
34730   static struct point const zero = {0,0};
34731   /* AIX XL C 1.02.0.0 rejects this.
34732      It does not let you subtract one const X* pointer from another in
34733      an arm of an if-expression whose if-part is not a constant
34734      expression */
34735   const char *g = "string";
34736   pcpcc = &g + (g ? g-g : 0);
34737   /* HPUX 7.0 cc rejects these. */
34738   ++pcpcc;
34739   ppc = (char**) pcpcc;
34740   pcpcc = (char const *const *) ppc;
34741   { /* SCO 3.2v4 cc rejects this.  */
34742     char *t;
34743     char const *s = 0 ? (char *) 0 : (char const *) 0;
34744
34745     *t++ = 0;
34746     if (s) return 0;
34747   }
34748   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34749     int x[] = {25, 17};
34750     const int *foo = &x[0];
34751     ++foo;
34752   }
34753   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34754     typedef const int *iptr;
34755     iptr p = 0;
34756     ++p;
34757   }
34758   { /* AIX XL C 1.02.0.0 rejects this saying
34759        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34760     struct s { int j; const int *ap[3]; };
34761     struct s *b; b->j = 5;
34762   }
34763   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34764     const int foo = 10;
34765     if (!foo) return 0;
34766   }
34767   return !cs[0] && !zero.x;
34768 #endif
34769
34770   ;
34771   return 0;
34772 }
34773 _ACEOF
34774 rm -f conftest.$ac_objext
34775 if { (ac_try="$ac_compile"
34776 case "(($ac_try" in
34777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34778   *) ac_try_echo=$ac_try;;
34779 esac
34780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34781   (eval "$ac_compile") 2>conftest.er1
34782   ac_status=$?
34783   grep -v '^ *+' conftest.er1 >conftest.err
34784   rm -f conftest.er1
34785   cat conftest.err >&5
34786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34787   (exit $ac_status); } && {
34788          test -z "$ac_c_werror_flag" ||
34789          test ! -s conftest.err
34790        } && test -s conftest.$ac_objext; then
34791   ac_cv_c_const=yes
34792 else
34793   echo "$as_me: failed program was:" >&5
34794 sed 's/^/| /' conftest.$ac_ext >&5
34795
34796         ac_cv_c_const=no
34797 fi
34798
34799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34800 fi
34801 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34802 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34803 if test $ac_cv_c_const = no; then
34804
34805 cat >>confdefs.h <<\_ACEOF
34806 #define const
34807 _ACEOF
34808
34809 fi
34810
34811
34812 { echo "$as_me:$LINENO: checking for char" >&5
34813 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34814 if test "${ac_cv_type_char+set}" = set; then
34815   echo $ECHO_N "(cached) $ECHO_C" >&6
34816 else
34817   cat >conftest.$ac_ext <<_ACEOF
34818 /* confdefs.h.  */
34819 _ACEOF
34820 cat confdefs.h >>conftest.$ac_ext
34821 cat >>conftest.$ac_ext <<_ACEOF
34822 /* end confdefs.h.  */
34823 $ac_includes_default
34824 typedef char ac__type_new_;
34825 int
34826 main ()
34827 {
34828 if ((ac__type_new_ *) 0)
34829   return 0;
34830 if (sizeof (ac__type_new_))
34831   return 0;
34832   ;
34833   return 0;
34834 }
34835 _ACEOF
34836 rm -f conftest.$ac_objext
34837 if { (ac_try="$ac_compile"
34838 case "(($ac_try" in
34839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34840   *) ac_try_echo=$ac_try;;
34841 esac
34842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34843   (eval "$ac_compile") 2>conftest.er1
34844   ac_status=$?
34845   grep -v '^ *+' conftest.er1 >conftest.err
34846   rm -f conftest.er1
34847   cat conftest.err >&5
34848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34849   (exit $ac_status); } && {
34850          test -z "$ac_c_werror_flag" ||
34851          test ! -s conftest.err
34852        } && test -s conftest.$ac_objext; then
34853   ac_cv_type_char=yes
34854 else
34855   echo "$as_me: failed program was:" >&5
34856 sed 's/^/| /' conftest.$ac_ext >&5
34857
34858         ac_cv_type_char=no
34859 fi
34860
34861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34862 fi
34863 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34864 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34865
34866 # The cast to long int works around a bug in the HP C Compiler
34867 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34868 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34869 # This bug is HP SR number 8606223364.
34870 { echo "$as_me:$LINENO: checking size of char" >&5
34871 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34872 if test "${ac_cv_sizeof_char+set}" = set; then
34873   echo $ECHO_N "(cached) $ECHO_C" >&6
34874 else
34875   if test "$cross_compiling" = yes; then
34876   # Depending upon the size, compute the lo and hi bounds.
34877 cat >conftest.$ac_ext <<_ACEOF
34878 /* confdefs.h.  */
34879 _ACEOF
34880 cat confdefs.h >>conftest.$ac_ext
34881 cat >>conftest.$ac_ext <<_ACEOF
34882 /* end confdefs.h.  */
34883 $ac_includes_default
34884    typedef char ac__type_sizeof_;
34885 int
34886 main ()
34887 {
34888 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34889 test_array [0] = 0
34890
34891   ;
34892   return 0;
34893 }
34894 _ACEOF
34895 rm -f conftest.$ac_objext
34896 if { (ac_try="$ac_compile"
34897 case "(($ac_try" in
34898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34899   *) ac_try_echo=$ac_try;;
34900 esac
34901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34902   (eval "$ac_compile") 2>conftest.er1
34903   ac_status=$?
34904   grep -v '^ *+' conftest.er1 >conftest.err
34905   rm -f conftest.er1
34906   cat conftest.err >&5
34907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34908   (exit $ac_status); } && {
34909          test -z "$ac_c_werror_flag" ||
34910          test ! -s conftest.err
34911        } && test -s conftest.$ac_objext; then
34912   ac_lo=0 ac_mid=0
34913   while :; do
34914     cat >conftest.$ac_ext <<_ACEOF
34915 /* confdefs.h.  */
34916 _ACEOF
34917 cat confdefs.h >>conftest.$ac_ext
34918 cat >>conftest.$ac_ext <<_ACEOF
34919 /* end confdefs.h.  */
34920 $ac_includes_default
34921    typedef char ac__type_sizeof_;
34922 int
34923 main ()
34924 {
34925 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34926 test_array [0] = 0
34927
34928   ;
34929   return 0;
34930 }
34931 _ACEOF
34932 rm -f conftest.$ac_objext
34933 if { (ac_try="$ac_compile"
34934 case "(($ac_try" in
34935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34936   *) ac_try_echo=$ac_try;;
34937 esac
34938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34939   (eval "$ac_compile") 2>conftest.er1
34940   ac_status=$?
34941   grep -v '^ *+' conftest.er1 >conftest.err
34942   rm -f conftest.er1
34943   cat conftest.err >&5
34944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34945   (exit $ac_status); } && {
34946          test -z "$ac_c_werror_flag" ||
34947          test ! -s conftest.err
34948        } && test -s conftest.$ac_objext; then
34949   ac_hi=$ac_mid; break
34950 else
34951   echo "$as_me: failed program was:" >&5
34952 sed 's/^/| /' conftest.$ac_ext >&5
34953
34954         ac_lo=`expr $ac_mid + 1`
34955                         if test $ac_lo -le $ac_mid; then
34956                           ac_lo= ac_hi=
34957                           break
34958                         fi
34959                         ac_mid=`expr 2 '*' $ac_mid + 1`
34960 fi
34961
34962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34963   done
34964 else
34965   echo "$as_me: failed program was:" >&5
34966 sed 's/^/| /' conftest.$ac_ext >&5
34967
34968         cat >conftest.$ac_ext <<_ACEOF
34969 /* confdefs.h.  */
34970 _ACEOF
34971 cat confdefs.h >>conftest.$ac_ext
34972 cat >>conftest.$ac_ext <<_ACEOF
34973 /* end confdefs.h.  */
34974 $ac_includes_default
34975    typedef char ac__type_sizeof_;
34976 int
34977 main ()
34978 {
34979 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34980 test_array [0] = 0
34981
34982   ;
34983   return 0;
34984 }
34985 _ACEOF
34986 rm -f conftest.$ac_objext
34987 if { (ac_try="$ac_compile"
34988 case "(($ac_try" in
34989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34990   *) ac_try_echo=$ac_try;;
34991 esac
34992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34993   (eval "$ac_compile") 2>conftest.er1
34994   ac_status=$?
34995   grep -v '^ *+' conftest.er1 >conftest.err
34996   rm -f conftest.er1
34997   cat conftest.err >&5
34998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34999   (exit $ac_status); } && {
35000          test -z "$ac_c_werror_flag" ||
35001          test ! -s conftest.err
35002        } && test -s conftest.$ac_objext; then
35003   ac_hi=-1 ac_mid=-1
35004   while :; do
35005     cat >conftest.$ac_ext <<_ACEOF
35006 /* confdefs.h.  */
35007 _ACEOF
35008 cat confdefs.h >>conftest.$ac_ext
35009 cat >>conftest.$ac_ext <<_ACEOF
35010 /* end confdefs.h.  */
35011 $ac_includes_default
35012    typedef char ac__type_sizeof_;
35013 int
35014 main ()
35015 {
35016 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35017 test_array [0] = 0
35018
35019   ;
35020   return 0;
35021 }
35022 _ACEOF
35023 rm -f conftest.$ac_objext
35024 if { (ac_try="$ac_compile"
35025 case "(($ac_try" in
35026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35027   *) ac_try_echo=$ac_try;;
35028 esac
35029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35030   (eval "$ac_compile") 2>conftest.er1
35031   ac_status=$?
35032   grep -v '^ *+' conftest.er1 >conftest.err
35033   rm -f conftest.er1
35034   cat conftest.err >&5
35035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35036   (exit $ac_status); } && {
35037          test -z "$ac_c_werror_flag" ||
35038          test ! -s conftest.err
35039        } && test -s conftest.$ac_objext; then
35040   ac_lo=$ac_mid; break
35041 else
35042   echo "$as_me: failed program was:" >&5
35043 sed 's/^/| /' conftest.$ac_ext >&5
35044
35045         ac_hi=`expr '(' $ac_mid ')' - 1`
35046                         if test $ac_mid -le $ac_hi; then
35047                           ac_lo= ac_hi=
35048                           break
35049                         fi
35050                         ac_mid=`expr 2 '*' $ac_mid`
35051 fi
35052
35053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35054   done
35055 else
35056   echo "$as_me: failed program was:" >&5
35057 sed 's/^/| /' conftest.$ac_ext >&5
35058
35059         ac_lo= ac_hi=
35060 fi
35061
35062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35063 fi
35064
35065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35066 # Binary search between lo and hi bounds.
35067 while test "x$ac_lo" != "x$ac_hi"; do
35068   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35069   cat >conftest.$ac_ext <<_ACEOF
35070 /* confdefs.h.  */
35071 _ACEOF
35072 cat confdefs.h >>conftest.$ac_ext
35073 cat >>conftest.$ac_ext <<_ACEOF
35074 /* end confdefs.h.  */
35075 $ac_includes_default
35076    typedef char ac__type_sizeof_;
35077 int
35078 main ()
35079 {
35080 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35081 test_array [0] = 0
35082
35083   ;
35084   return 0;
35085 }
35086 _ACEOF
35087 rm -f conftest.$ac_objext
35088 if { (ac_try="$ac_compile"
35089 case "(($ac_try" in
35090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35091   *) ac_try_echo=$ac_try;;
35092 esac
35093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35094   (eval "$ac_compile") 2>conftest.er1
35095   ac_status=$?
35096   grep -v '^ *+' conftest.er1 >conftest.err
35097   rm -f conftest.er1
35098   cat conftest.err >&5
35099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35100   (exit $ac_status); } && {
35101          test -z "$ac_c_werror_flag" ||
35102          test ! -s conftest.err
35103        } && test -s conftest.$ac_objext; then
35104   ac_hi=$ac_mid
35105 else
35106   echo "$as_me: failed program was:" >&5
35107 sed 's/^/| /' conftest.$ac_ext >&5
35108
35109         ac_lo=`expr '(' $ac_mid ')' + 1`
35110 fi
35111
35112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35113 done
35114 case $ac_lo in
35115 ?*) ac_cv_sizeof_char=$ac_lo;;
35116 '') if test "$ac_cv_type_char" = yes; then
35117      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35118 See \`config.log' for more details." >&5
35119 echo "$as_me: error: cannot compute sizeof (char)
35120 See \`config.log' for more details." >&2;}
35121    { (exit 77); exit 77; }; }
35122    else
35123      ac_cv_sizeof_char=0
35124    fi ;;
35125 esac
35126 else
35127   cat >conftest.$ac_ext <<_ACEOF
35128 /* confdefs.h.  */
35129 _ACEOF
35130 cat confdefs.h >>conftest.$ac_ext
35131 cat >>conftest.$ac_ext <<_ACEOF
35132 /* end confdefs.h.  */
35133 $ac_includes_default
35134    typedef char ac__type_sizeof_;
35135 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35136 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35137 #include <stdio.h>
35138 #include <stdlib.h>
35139 int
35140 main ()
35141 {
35142
35143   FILE *f = fopen ("conftest.val", "w");
35144   if (! f)
35145     return 1;
35146   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35147     {
35148       long int i = longval ();
35149       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35150         return 1;
35151       fprintf (f, "%ld\n", i);
35152     }
35153   else
35154     {
35155       unsigned long int i = ulongval ();
35156       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35157         return 1;
35158       fprintf (f, "%lu\n", i);
35159     }
35160   return ferror (f) || fclose (f) != 0;
35161
35162   ;
35163   return 0;
35164 }
35165 _ACEOF
35166 rm -f conftest$ac_exeext
35167 if { (ac_try="$ac_link"
35168 case "(($ac_try" in
35169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35170   *) ac_try_echo=$ac_try;;
35171 esac
35172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35173   (eval "$ac_link") 2>&5
35174   ac_status=$?
35175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35176   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35177   { (case "(($ac_try" in
35178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35179   *) ac_try_echo=$ac_try;;
35180 esac
35181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35182   (eval "$ac_try") 2>&5
35183   ac_status=$?
35184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35185   (exit $ac_status); }; }; then
35186   ac_cv_sizeof_char=`cat conftest.val`
35187 else
35188   echo "$as_me: program exited with status $ac_status" >&5
35189 echo "$as_me: failed program was:" >&5
35190 sed 's/^/| /' conftest.$ac_ext >&5
35191
35192 ( exit $ac_status )
35193 if test "$ac_cv_type_char" = yes; then
35194      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35195 See \`config.log' for more details." >&5
35196 echo "$as_me: error: cannot compute sizeof (char)
35197 See \`config.log' for more details." >&2;}
35198    { (exit 77); exit 77; }; }
35199    else
35200      ac_cv_sizeof_char=0
35201    fi
35202 fi
35203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35204 fi
35205 rm -f conftest.val
35206 fi
35207 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
35208 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
35209
35210
35211
35212 cat >>confdefs.h <<_ACEOF
35213 #define SIZEOF_CHAR $ac_cv_sizeof_char
35214 _ACEOF
35215
35216
35217 { echo "$as_me:$LINENO: checking for short int" >&5
35218 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
35219 if test "${ac_cv_type_short_int+set}" = set; then
35220   echo $ECHO_N "(cached) $ECHO_C" >&6
35221 else
35222   cat >conftest.$ac_ext <<_ACEOF
35223 /* confdefs.h.  */
35224 _ACEOF
35225 cat confdefs.h >>conftest.$ac_ext
35226 cat >>conftest.$ac_ext <<_ACEOF
35227 /* end confdefs.h.  */
35228 $ac_includes_default
35229 typedef short int ac__type_new_;
35230 int
35231 main ()
35232 {
35233 if ((ac__type_new_ *) 0)
35234   return 0;
35235 if (sizeof (ac__type_new_))
35236   return 0;
35237   ;
35238   return 0;
35239 }
35240 _ACEOF
35241 rm -f conftest.$ac_objext
35242 if { (ac_try="$ac_compile"
35243 case "(($ac_try" in
35244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35245   *) ac_try_echo=$ac_try;;
35246 esac
35247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35248   (eval "$ac_compile") 2>conftest.er1
35249   ac_status=$?
35250   grep -v '^ *+' conftest.er1 >conftest.err
35251   rm -f conftest.er1
35252   cat conftest.err >&5
35253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35254   (exit $ac_status); } && {
35255          test -z "$ac_c_werror_flag" ||
35256          test ! -s conftest.err
35257        } && test -s conftest.$ac_objext; then
35258   ac_cv_type_short_int=yes
35259 else
35260   echo "$as_me: failed program was:" >&5
35261 sed 's/^/| /' conftest.$ac_ext >&5
35262
35263         ac_cv_type_short_int=no
35264 fi
35265
35266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35267 fi
35268 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35269 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35270
35271 # The cast to long int works around a bug in the HP C Compiler
35272 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35273 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35274 # This bug is HP SR number 8606223364.
35275 { echo "$as_me:$LINENO: checking size of short int" >&5
35276 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35277 if test "${ac_cv_sizeof_short_int+set}" = set; then
35278   echo $ECHO_N "(cached) $ECHO_C" >&6
35279 else
35280   if test "$cross_compiling" = yes; then
35281   # Depending upon the size, compute the lo and hi bounds.
35282 cat >conftest.$ac_ext <<_ACEOF
35283 /* confdefs.h.  */
35284 _ACEOF
35285 cat confdefs.h >>conftest.$ac_ext
35286 cat >>conftest.$ac_ext <<_ACEOF
35287 /* end confdefs.h.  */
35288 $ac_includes_default
35289    typedef short int ac__type_sizeof_;
35290 int
35291 main ()
35292 {
35293 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35294 test_array [0] = 0
35295
35296   ;
35297   return 0;
35298 }
35299 _ACEOF
35300 rm -f conftest.$ac_objext
35301 if { (ac_try="$ac_compile"
35302 case "(($ac_try" in
35303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35304   *) ac_try_echo=$ac_try;;
35305 esac
35306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35307   (eval "$ac_compile") 2>conftest.er1
35308   ac_status=$?
35309   grep -v '^ *+' conftest.er1 >conftest.err
35310   rm -f conftest.er1
35311   cat conftest.err >&5
35312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35313   (exit $ac_status); } && {
35314          test -z "$ac_c_werror_flag" ||
35315          test ! -s conftest.err
35316        } && test -s conftest.$ac_objext; then
35317   ac_lo=0 ac_mid=0
35318   while :; do
35319     cat >conftest.$ac_ext <<_ACEOF
35320 /* confdefs.h.  */
35321 _ACEOF
35322 cat confdefs.h >>conftest.$ac_ext
35323 cat >>conftest.$ac_ext <<_ACEOF
35324 /* end confdefs.h.  */
35325 $ac_includes_default
35326    typedef short int ac__type_sizeof_;
35327 int
35328 main ()
35329 {
35330 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35331 test_array [0] = 0
35332
35333   ;
35334   return 0;
35335 }
35336 _ACEOF
35337 rm -f conftest.$ac_objext
35338 if { (ac_try="$ac_compile"
35339 case "(($ac_try" in
35340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35341   *) ac_try_echo=$ac_try;;
35342 esac
35343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35344   (eval "$ac_compile") 2>conftest.er1
35345   ac_status=$?
35346   grep -v '^ *+' conftest.er1 >conftest.err
35347   rm -f conftest.er1
35348   cat conftest.err >&5
35349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35350   (exit $ac_status); } && {
35351          test -z "$ac_c_werror_flag" ||
35352          test ! -s conftest.err
35353        } && test -s conftest.$ac_objext; then
35354   ac_hi=$ac_mid; break
35355 else
35356   echo "$as_me: failed program was:" >&5
35357 sed 's/^/| /' conftest.$ac_ext >&5
35358
35359         ac_lo=`expr $ac_mid + 1`
35360                         if test $ac_lo -le $ac_mid; then
35361                           ac_lo= ac_hi=
35362                           break
35363                         fi
35364                         ac_mid=`expr 2 '*' $ac_mid + 1`
35365 fi
35366
35367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35368   done
35369 else
35370   echo "$as_me: failed program was:" >&5
35371 sed 's/^/| /' conftest.$ac_ext >&5
35372
35373         cat >conftest.$ac_ext <<_ACEOF
35374 /* confdefs.h.  */
35375 _ACEOF
35376 cat confdefs.h >>conftest.$ac_ext
35377 cat >>conftest.$ac_ext <<_ACEOF
35378 /* end confdefs.h.  */
35379 $ac_includes_default
35380    typedef short int ac__type_sizeof_;
35381 int
35382 main ()
35383 {
35384 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35385 test_array [0] = 0
35386
35387   ;
35388   return 0;
35389 }
35390 _ACEOF
35391 rm -f conftest.$ac_objext
35392 if { (ac_try="$ac_compile"
35393 case "(($ac_try" in
35394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35395   *) ac_try_echo=$ac_try;;
35396 esac
35397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35398   (eval "$ac_compile") 2>conftest.er1
35399   ac_status=$?
35400   grep -v '^ *+' conftest.er1 >conftest.err
35401   rm -f conftest.er1
35402   cat conftest.err >&5
35403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35404   (exit $ac_status); } && {
35405          test -z "$ac_c_werror_flag" ||
35406          test ! -s conftest.err
35407        } && test -s conftest.$ac_objext; then
35408   ac_hi=-1 ac_mid=-1
35409   while :; do
35410     cat >conftest.$ac_ext <<_ACEOF
35411 /* confdefs.h.  */
35412 _ACEOF
35413 cat confdefs.h >>conftest.$ac_ext
35414 cat >>conftest.$ac_ext <<_ACEOF
35415 /* end confdefs.h.  */
35416 $ac_includes_default
35417    typedef short int ac__type_sizeof_;
35418 int
35419 main ()
35420 {
35421 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35422 test_array [0] = 0
35423
35424   ;
35425   return 0;
35426 }
35427 _ACEOF
35428 rm -f conftest.$ac_objext
35429 if { (ac_try="$ac_compile"
35430 case "(($ac_try" in
35431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35432   *) ac_try_echo=$ac_try;;
35433 esac
35434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35435   (eval "$ac_compile") 2>conftest.er1
35436   ac_status=$?
35437   grep -v '^ *+' conftest.er1 >conftest.err
35438   rm -f conftest.er1
35439   cat conftest.err >&5
35440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35441   (exit $ac_status); } && {
35442          test -z "$ac_c_werror_flag" ||
35443          test ! -s conftest.err
35444        } && test -s conftest.$ac_objext; then
35445   ac_lo=$ac_mid; break
35446 else
35447   echo "$as_me: failed program was:" >&5
35448 sed 's/^/| /' conftest.$ac_ext >&5
35449
35450         ac_hi=`expr '(' $ac_mid ')' - 1`
35451                         if test $ac_mid -le $ac_hi; then
35452                           ac_lo= ac_hi=
35453                           break
35454                         fi
35455                         ac_mid=`expr 2 '*' $ac_mid`
35456 fi
35457
35458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35459   done
35460 else
35461   echo "$as_me: failed program was:" >&5
35462 sed 's/^/| /' conftest.$ac_ext >&5
35463
35464         ac_lo= ac_hi=
35465 fi
35466
35467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35468 fi
35469
35470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35471 # Binary search between lo and hi bounds.
35472 while test "x$ac_lo" != "x$ac_hi"; do
35473   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35474   cat >conftest.$ac_ext <<_ACEOF
35475 /* confdefs.h.  */
35476 _ACEOF
35477 cat confdefs.h >>conftest.$ac_ext
35478 cat >>conftest.$ac_ext <<_ACEOF
35479 /* end confdefs.h.  */
35480 $ac_includes_default
35481    typedef short int ac__type_sizeof_;
35482 int
35483 main ()
35484 {
35485 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35486 test_array [0] = 0
35487
35488   ;
35489   return 0;
35490 }
35491 _ACEOF
35492 rm -f conftest.$ac_objext
35493 if { (ac_try="$ac_compile"
35494 case "(($ac_try" in
35495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35496   *) ac_try_echo=$ac_try;;
35497 esac
35498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35499   (eval "$ac_compile") 2>conftest.er1
35500   ac_status=$?
35501   grep -v '^ *+' conftest.er1 >conftest.err
35502   rm -f conftest.er1
35503   cat conftest.err >&5
35504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35505   (exit $ac_status); } && {
35506          test -z "$ac_c_werror_flag" ||
35507          test ! -s conftest.err
35508        } && test -s conftest.$ac_objext; then
35509   ac_hi=$ac_mid
35510 else
35511   echo "$as_me: failed program was:" >&5
35512 sed 's/^/| /' conftest.$ac_ext >&5
35513
35514         ac_lo=`expr '(' $ac_mid ')' + 1`
35515 fi
35516
35517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35518 done
35519 case $ac_lo in
35520 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35521 '') if test "$ac_cv_type_short_int" = yes; then
35522      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35523 See \`config.log' for more details." >&5
35524 echo "$as_me: error: cannot compute sizeof (short int)
35525 See \`config.log' for more details." >&2;}
35526    { (exit 77); exit 77; }; }
35527    else
35528      ac_cv_sizeof_short_int=0
35529    fi ;;
35530 esac
35531 else
35532   cat >conftest.$ac_ext <<_ACEOF
35533 /* confdefs.h.  */
35534 _ACEOF
35535 cat confdefs.h >>conftest.$ac_ext
35536 cat >>conftest.$ac_ext <<_ACEOF
35537 /* end confdefs.h.  */
35538 $ac_includes_default
35539    typedef short int ac__type_sizeof_;
35540 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35541 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35542 #include <stdio.h>
35543 #include <stdlib.h>
35544 int
35545 main ()
35546 {
35547
35548   FILE *f = fopen ("conftest.val", "w");
35549   if (! f)
35550     return 1;
35551   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35552     {
35553       long int i = longval ();
35554       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35555         return 1;
35556       fprintf (f, "%ld\n", i);
35557     }
35558   else
35559     {
35560       unsigned long int i = ulongval ();
35561       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35562         return 1;
35563       fprintf (f, "%lu\n", i);
35564     }
35565   return ferror (f) || fclose (f) != 0;
35566
35567   ;
35568   return 0;
35569 }
35570 _ACEOF
35571 rm -f conftest$ac_exeext
35572 if { (ac_try="$ac_link"
35573 case "(($ac_try" in
35574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35575   *) ac_try_echo=$ac_try;;
35576 esac
35577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35578   (eval "$ac_link") 2>&5
35579   ac_status=$?
35580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35581   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35582   { (case "(($ac_try" in
35583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35584   *) ac_try_echo=$ac_try;;
35585 esac
35586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35587   (eval "$ac_try") 2>&5
35588   ac_status=$?
35589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35590   (exit $ac_status); }; }; then
35591   ac_cv_sizeof_short_int=`cat conftest.val`
35592 else
35593   echo "$as_me: program exited with status $ac_status" >&5
35594 echo "$as_me: failed program was:" >&5
35595 sed 's/^/| /' conftest.$ac_ext >&5
35596
35597 ( exit $ac_status )
35598 if test "$ac_cv_type_short_int" = yes; then
35599      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35600 See \`config.log' for more details." >&5
35601 echo "$as_me: error: cannot compute sizeof (short int)
35602 See \`config.log' for more details." >&2;}
35603    { (exit 77); exit 77; }; }
35604    else
35605      ac_cv_sizeof_short_int=0
35606    fi
35607 fi
35608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35609 fi
35610 rm -f conftest.val
35611 fi
35612 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35613 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35614
35615
35616
35617 cat >>confdefs.h <<_ACEOF
35618 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35619 _ACEOF
35620
35621
35622 { echo "$as_me:$LINENO: checking for int" >&5
35623 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35624 if test "${ac_cv_type_int+set}" = set; then
35625   echo $ECHO_N "(cached) $ECHO_C" >&6
35626 else
35627   cat >conftest.$ac_ext <<_ACEOF
35628 /* confdefs.h.  */
35629 _ACEOF
35630 cat confdefs.h >>conftest.$ac_ext
35631 cat >>conftest.$ac_ext <<_ACEOF
35632 /* end confdefs.h.  */
35633 $ac_includes_default
35634 typedef int ac__type_new_;
35635 int
35636 main ()
35637 {
35638 if ((ac__type_new_ *) 0)
35639   return 0;
35640 if (sizeof (ac__type_new_))
35641   return 0;
35642   ;
35643   return 0;
35644 }
35645 _ACEOF
35646 rm -f conftest.$ac_objext
35647 if { (ac_try="$ac_compile"
35648 case "(($ac_try" in
35649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35650   *) ac_try_echo=$ac_try;;
35651 esac
35652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35653   (eval "$ac_compile") 2>conftest.er1
35654   ac_status=$?
35655   grep -v '^ *+' conftest.er1 >conftest.err
35656   rm -f conftest.er1
35657   cat conftest.err >&5
35658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35659   (exit $ac_status); } && {
35660          test -z "$ac_c_werror_flag" ||
35661          test ! -s conftest.err
35662        } && test -s conftest.$ac_objext; then
35663   ac_cv_type_int=yes
35664 else
35665   echo "$as_me: failed program was:" >&5
35666 sed 's/^/| /' conftest.$ac_ext >&5
35667
35668         ac_cv_type_int=no
35669 fi
35670
35671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35672 fi
35673 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35674 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35675
35676 # The cast to long int works around a bug in the HP C Compiler
35677 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35678 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35679 # This bug is HP SR number 8606223364.
35680 { echo "$as_me:$LINENO: checking size of int" >&5
35681 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35682 if test "${ac_cv_sizeof_int+set}" = set; then
35683   echo $ECHO_N "(cached) $ECHO_C" >&6
35684 else
35685   if test "$cross_compiling" = yes; then
35686   # Depending upon the size, compute the lo and hi bounds.
35687 cat >conftest.$ac_ext <<_ACEOF
35688 /* confdefs.h.  */
35689 _ACEOF
35690 cat confdefs.h >>conftest.$ac_ext
35691 cat >>conftest.$ac_ext <<_ACEOF
35692 /* end confdefs.h.  */
35693 $ac_includes_default
35694    typedef int ac__type_sizeof_;
35695 int
35696 main ()
35697 {
35698 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35699 test_array [0] = 0
35700
35701   ;
35702   return 0;
35703 }
35704 _ACEOF
35705 rm -f conftest.$ac_objext
35706 if { (ac_try="$ac_compile"
35707 case "(($ac_try" in
35708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35709   *) ac_try_echo=$ac_try;;
35710 esac
35711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35712   (eval "$ac_compile") 2>conftest.er1
35713   ac_status=$?
35714   grep -v '^ *+' conftest.er1 >conftest.err
35715   rm -f conftest.er1
35716   cat conftest.err >&5
35717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35718   (exit $ac_status); } && {
35719          test -z "$ac_c_werror_flag" ||
35720          test ! -s conftest.err
35721        } && test -s conftest.$ac_objext; then
35722   ac_lo=0 ac_mid=0
35723   while :; do
35724     cat >conftest.$ac_ext <<_ACEOF
35725 /* confdefs.h.  */
35726 _ACEOF
35727 cat confdefs.h >>conftest.$ac_ext
35728 cat >>conftest.$ac_ext <<_ACEOF
35729 /* end confdefs.h.  */
35730 $ac_includes_default
35731    typedef int ac__type_sizeof_;
35732 int
35733 main ()
35734 {
35735 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35736 test_array [0] = 0
35737
35738   ;
35739   return 0;
35740 }
35741 _ACEOF
35742 rm -f conftest.$ac_objext
35743 if { (ac_try="$ac_compile"
35744 case "(($ac_try" in
35745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35746   *) ac_try_echo=$ac_try;;
35747 esac
35748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35749   (eval "$ac_compile") 2>conftest.er1
35750   ac_status=$?
35751   grep -v '^ *+' conftest.er1 >conftest.err
35752   rm -f conftest.er1
35753   cat conftest.err >&5
35754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35755   (exit $ac_status); } && {
35756          test -z "$ac_c_werror_flag" ||
35757          test ! -s conftest.err
35758        } && test -s conftest.$ac_objext; then
35759   ac_hi=$ac_mid; break
35760 else
35761   echo "$as_me: failed program was:" >&5
35762 sed 's/^/| /' conftest.$ac_ext >&5
35763
35764         ac_lo=`expr $ac_mid + 1`
35765                         if test $ac_lo -le $ac_mid; then
35766                           ac_lo= ac_hi=
35767                           break
35768                         fi
35769                         ac_mid=`expr 2 '*' $ac_mid + 1`
35770 fi
35771
35772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35773   done
35774 else
35775   echo "$as_me: failed program was:" >&5
35776 sed 's/^/| /' conftest.$ac_ext >&5
35777
35778         cat >conftest.$ac_ext <<_ACEOF
35779 /* confdefs.h.  */
35780 _ACEOF
35781 cat confdefs.h >>conftest.$ac_ext
35782 cat >>conftest.$ac_ext <<_ACEOF
35783 /* end confdefs.h.  */
35784 $ac_includes_default
35785    typedef int ac__type_sizeof_;
35786 int
35787 main ()
35788 {
35789 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35790 test_array [0] = 0
35791
35792   ;
35793   return 0;
35794 }
35795 _ACEOF
35796 rm -f conftest.$ac_objext
35797 if { (ac_try="$ac_compile"
35798 case "(($ac_try" in
35799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35800   *) ac_try_echo=$ac_try;;
35801 esac
35802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35803   (eval "$ac_compile") 2>conftest.er1
35804   ac_status=$?
35805   grep -v '^ *+' conftest.er1 >conftest.err
35806   rm -f conftest.er1
35807   cat conftest.err >&5
35808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35809   (exit $ac_status); } && {
35810          test -z "$ac_c_werror_flag" ||
35811          test ! -s conftest.err
35812        } && test -s conftest.$ac_objext; then
35813   ac_hi=-1 ac_mid=-1
35814   while :; do
35815     cat >conftest.$ac_ext <<_ACEOF
35816 /* confdefs.h.  */
35817 _ACEOF
35818 cat confdefs.h >>conftest.$ac_ext
35819 cat >>conftest.$ac_ext <<_ACEOF
35820 /* end confdefs.h.  */
35821 $ac_includes_default
35822    typedef int ac__type_sizeof_;
35823 int
35824 main ()
35825 {
35826 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35827 test_array [0] = 0
35828
35829   ;
35830   return 0;
35831 }
35832 _ACEOF
35833 rm -f conftest.$ac_objext
35834 if { (ac_try="$ac_compile"
35835 case "(($ac_try" in
35836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35837   *) ac_try_echo=$ac_try;;
35838 esac
35839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35840   (eval "$ac_compile") 2>conftest.er1
35841   ac_status=$?
35842   grep -v '^ *+' conftest.er1 >conftest.err
35843   rm -f conftest.er1
35844   cat conftest.err >&5
35845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35846   (exit $ac_status); } && {
35847          test -z "$ac_c_werror_flag" ||
35848          test ! -s conftest.err
35849        } && test -s conftest.$ac_objext; then
35850   ac_lo=$ac_mid; break
35851 else
35852   echo "$as_me: failed program was:" >&5
35853 sed 's/^/| /' conftest.$ac_ext >&5
35854
35855         ac_hi=`expr '(' $ac_mid ')' - 1`
35856                         if test $ac_mid -le $ac_hi; then
35857                           ac_lo= ac_hi=
35858                           break
35859                         fi
35860                         ac_mid=`expr 2 '*' $ac_mid`
35861 fi
35862
35863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35864   done
35865 else
35866   echo "$as_me: failed program was:" >&5
35867 sed 's/^/| /' conftest.$ac_ext >&5
35868
35869         ac_lo= ac_hi=
35870 fi
35871
35872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35873 fi
35874
35875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35876 # Binary search between lo and hi bounds.
35877 while test "x$ac_lo" != "x$ac_hi"; do
35878   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35879   cat >conftest.$ac_ext <<_ACEOF
35880 /* confdefs.h.  */
35881 _ACEOF
35882 cat confdefs.h >>conftest.$ac_ext
35883 cat >>conftest.$ac_ext <<_ACEOF
35884 /* end confdefs.h.  */
35885 $ac_includes_default
35886    typedef int ac__type_sizeof_;
35887 int
35888 main ()
35889 {
35890 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35891 test_array [0] = 0
35892
35893   ;
35894   return 0;
35895 }
35896 _ACEOF
35897 rm -f conftest.$ac_objext
35898 if { (ac_try="$ac_compile"
35899 case "(($ac_try" in
35900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35901   *) ac_try_echo=$ac_try;;
35902 esac
35903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35904   (eval "$ac_compile") 2>conftest.er1
35905   ac_status=$?
35906   grep -v '^ *+' conftest.er1 >conftest.err
35907   rm -f conftest.er1
35908   cat conftest.err >&5
35909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35910   (exit $ac_status); } && {
35911          test -z "$ac_c_werror_flag" ||
35912          test ! -s conftest.err
35913        } && test -s conftest.$ac_objext; then
35914   ac_hi=$ac_mid
35915 else
35916   echo "$as_me: failed program was:" >&5
35917 sed 's/^/| /' conftest.$ac_ext >&5
35918
35919         ac_lo=`expr '(' $ac_mid ')' + 1`
35920 fi
35921
35922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35923 done
35924 case $ac_lo in
35925 ?*) ac_cv_sizeof_int=$ac_lo;;
35926 '') if test "$ac_cv_type_int" = yes; then
35927      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35928 See \`config.log' for more details." >&5
35929 echo "$as_me: error: cannot compute sizeof (int)
35930 See \`config.log' for more details." >&2;}
35931    { (exit 77); exit 77; }; }
35932    else
35933      ac_cv_sizeof_int=0
35934    fi ;;
35935 esac
35936 else
35937   cat >conftest.$ac_ext <<_ACEOF
35938 /* confdefs.h.  */
35939 _ACEOF
35940 cat confdefs.h >>conftest.$ac_ext
35941 cat >>conftest.$ac_ext <<_ACEOF
35942 /* end confdefs.h.  */
35943 $ac_includes_default
35944    typedef int ac__type_sizeof_;
35945 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35946 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35947 #include <stdio.h>
35948 #include <stdlib.h>
35949 int
35950 main ()
35951 {
35952
35953   FILE *f = fopen ("conftest.val", "w");
35954   if (! f)
35955     return 1;
35956   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35957     {
35958       long int i = longval ();
35959       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35960         return 1;
35961       fprintf (f, "%ld\n", i);
35962     }
35963   else
35964     {
35965       unsigned long int i = ulongval ();
35966       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35967         return 1;
35968       fprintf (f, "%lu\n", i);
35969     }
35970   return ferror (f) || fclose (f) != 0;
35971
35972   ;
35973   return 0;
35974 }
35975 _ACEOF
35976 rm -f conftest$ac_exeext
35977 if { (ac_try="$ac_link"
35978 case "(($ac_try" in
35979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35980   *) ac_try_echo=$ac_try;;
35981 esac
35982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35983   (eval "$ac_link") 2>&5
35984   ac_status=$?
35985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35986   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35987   { (case "(($ac_try" in
35988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35989   *) ac_try_echo=$ac_try;;
35990 esac
35991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35992   (eval "$ac_try") 2>&5
35993   ac_status=$?
35994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35995   (exit $ac_status); }; }; then
35996   ac_cv_sizeof_int=`cat conftest.val`
35997 else
35998   echo "$as_me: program exited with status $ac_status" >&5
35999 echo "$as_me: failed program was:" >&5
36000 sed 's/^/| /' conftest.$ac_ext >&5
36001
36002 ( exit $ac_status )
36003 if test "$ac_cv_type_int" = yes; then
36004      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36005 See \`config.log' for more details." >&5
36006 echo "$as_me: error: cannot compute sizeof (int)
36007 See \`config.log' for more details." >&2;}
36008    { (exit 77); exit 77; }; }
36009    else
36010      ac_cv_sizeof_int=0
36011    fi
36012 fi
36013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36014 fi
36015 rm -f conftest.val
36016 fi
36017 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36018 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
36019
36020
36021
36022 cat >>confdefs.h <<_ACEOF
36023 #define SIZEOF_INT $ac_cv_sizeof_int
36024 _ACEOF
36025
36026
36027 { echo "$as_me:$LINENO: checking for long int" >&5
36028 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
36029 if test "${ac_cv_type_long_int+set}" = set; then
36030   echo $ECHO_N "(cached) $ECHO_C" >&6
36031 else
36032   cat >conftest.$ac_ext <<_ACEOF
36033 /* confdefs.h.  */
36034 _ACEOF
36035 cat confdefs.h >>conftest.$ac_ext
36036 cat >>conftest.$ac_ext <<_ACEOF
36037 /* end confdefs.h.  */
36038 $ac_includes_default
36039 typedef long int ac__type_new_;
36040 int
36041 main ()
36042 {
36043 if ((ac__type_new_ *) 0)
36044   return 0;
36045 if (sizeof (ac__type_new_))
36046   return 0;
36047   ;
36048   return 0;
36049 }
36050 _ACEOF
36051 rm -f conftest.$ac_objext
36052 if { (ac_try="$ac_compile"
36053 case "(($ac_try" in
36054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36055   *) ac_try_echo=$ac_try;;
36056 esac
36057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36058   (eval "$ac_compile") 2>conftest.er1
36059   ac_status=$?
36060   grep -v '^ *+' conftest.er1 >conftest.err
36061   rm -f conftest.er1
36062   cat conftest.err >&5
36063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36064   (exit $ac_status); } && {
36065          test -z "$ac_c_werror_flag" ||
36066          test ! -s conftest.err
36067        } && test -s conftest.$ac_objext; then
36068   ac_cv_type_long_int=yes
36069 else
36070   echo "$as_me: failed program was:" >&5
36071 sed 's/^/| /' conftest.$ac_ext >&5
36072
36073         ac_cv_type_long_int=no
36074 fi
36075
36076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36077 fi
36078 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
36079 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
36080
36081 # The cast to long int works around a bug in the HP C Compiler
36082 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36083 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36084 # This bug is HP SR number 8606223364.
36085 { echo "$as_me:$LINENO: checking size of long int" >&5
36086 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
36087 if test "${ac_cv_sizeof_long_int+set}" = set; then
36088   echo $ECHO_N "(cached) $ECHO_C" >&6
36089 else
36090   if test "$cross_compiling" = yes; then
36091   # Depending upon the size, compute the lo and hi bounds.
36092 cat >conftest.$ac_ext <<_ACEOF
36093 /* confdefs.h.  */
36094 _ACEOF
36095 cat confdefs.h >>conftest.$ac_ext
36096 cat >>conftest.$ac_ext <<_ACEOF
36097 /* end confdefs.h.  */
36098 $ac_includes_default
36099    typedef long int ac__type_sizeof_;
36100 int
36101 main ()
36102 {
36103 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36104 test_array [0] = 0
36105
36106   ;
36107   return 0;
36108 }
36109 _ACEOF
36110 rm -f conftest.$ac_objext
36111 if { (ac_try="$ac_compile"
36112 case "(($ac_try" in
36113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36114   *) ac_try_echo=$ac_try;;
36115 esac
36116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36117   (eval "$ac_compile") 2>conftest.er1
36118   ac_status=$?
36119   grep -v '^ *+' conftest.er1 >conftest.err
36120   rm -f conftest.er1
36121   cat conftest.err >&5
36122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36123   (exit $ac_status); } && {
36124          test -z "$ac_c_werror_flag" ||
36125          test ! -s conftest.err
36126        } && test -s conftest.$ac_objext; then
36127   ac_lo=0 ac_mid=0
36128   while :; do
36129     cat >conftest.$ac_ext <<_ACEOF
36130 /* confdefs.h.  */
36131 _ACEOF
36132 cat confdefs.h >>conftest.$ac_ext
36133 cat >>conftest.$ac_ext <<_ACEOF
36134 /* end confdefs.h.  */
36135 $ac_includes_default
36136    typedef long int ac__type_sizeof_;
36137 int
36138 main ()
36139 {
36140 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36141 test_array [0] = 0
36142
36143   ;
36144   return 0;
36145 }
36146 _ACEOF
36147 rm -f conftest.$ac_objext
36148 if { (ac_try="$ac_compile"
36149 case "(($ac_try" in
36150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36151   *) ac_try_echo=$ac_try;;
36152 esac
36153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36154   (eval "$ac_compile") 2>conftest.er1
36155   ac_status=$?
36156   grep -v '^ *+' conftest.er1 >conftest.err
36157   rm -f conftest.er1
36158   cat conftest.err >&5
36159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36160   (exit $ac_status); } && {
36161          test -z "$ac_c_werror_flag" ||
36162          test ! -s conftest.err
36163        } && test -s conftest.$ac_objext; then
36164   ac_hi=$ac_mid; break
36165 else
36166   echo "$as_me: failed program was:" >&5
36167 sed 's/^/| /' conftest.$ac_ext >&5
36168
36169         ac_lo=`expr $ac_mid + 1`
36170                         if test $ac_lo -le $ac_mid; then
36171                           ac_lo= ac_hi=
36172                           break
36173                         fi
36174                         ac_mid=`expr 2 '*' $ac_mid + 1`
36175 fi
36176
36177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36178   done
36179 else
36180   echo "$as_me: failed program was:" >&5
36181 sed 's/^/| /' conftest.$ac_ext >&5
36182
36183         cat >conftest.$ac_ext <<_ACEOF
36184 /* confdefs.h.  */
36185 _ACEOF
36186 cat confdefs.h >>conftest.$ac_ext
36187 cat >>conftest.$ac_ext <<_ACEOF
36188 /* end confdefs.h.  */
36189 $ac_includes_default
36190    typedef long int ac__type_sizeof_;
36191 int
36192 main ()
36193 {
36194 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36195 test_array [0] = 0
36196
36197   ;
36198   return 0;
36199 }
36200 _ACEOF
36201 rm -f conftest.$ac_objext
36202 if { (ac_try="$ac_compile"
36203 case "(($ac_try" in
36204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36205   *) ac_try_echo=$ac_try;;
36206 esac
36207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36208   (eval "$ac_compile") 2>conftest.er1
36209   ac_status=$?
36210   grep -v '^ *+' conftest.er1 >conftest.err
36211   rm -f conftest.er1
36212   cat conftest.err >&5
36213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36214   (exit $ac_status); } && {
36215          test -z "$ac_c_werror_flag" ||
36216          test ! -s conftest.err
36217        } && test -s conftest.$ac_objext; then
36218   ac_hi=-1 ac_mid=-1
36219   while :; do
36220     cat >conftest.$ac_ext <<_ACEOF
36221 /* confdefs.h.  */
36222 _ACEOF
36223 cat confdefs.h >>conftest.$ac_ext
36224 cat >>conftest.$ac_ext <<_ACEOF
36225 /* end confdefs.h.  */
36226 $ac_includes_default
36227    typedef long int ac__type_sizeof_;
36228 int
36229 main ()
36230 {
36231 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36232 test_array [0] = 0
36233
36234   ;
36235   return 0;
36236 }
36237 _ACEOF
36238 rm -f conftest.$ac_objext
36239 if { (ac_try="$ac_compile"
36240 case "(($ac_try" in
36241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36242   *) ac_try_echo=$ac_try;;
36243 esac
36244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36245   (eval "$ac_compile") 2>conftest.er1
36246   ac_status=$?
36247   grep -v '^ *+' conftest.er1 >conftest.err
36248   rm -f conftest.er1
36249   cat conftest.err >&5
36250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36251   (exit $ac_status); } && {
36252          test -z "$ac_c_werror_flag" ||
36253          test ! -s conftest.err
36254        } && test -s conftest.$ac_objext; then
36255   ac_lo=$ac_mid; break
36256 else
36257   echo "$as_me: failed program was:" >&5
36258 sed 's/^/| /' conftest.$ac_ext >&5
36259
36260         ac_hi=`expr '(' $ac_mid ')' - 1`
36261                         if test $ac_mid -le $ac_hi; then
36262                           ac_lo= ac_hi=
36263                           break
36264                         fi
36265                         ac_mid=`expr 2 '*' $ac_mid`
36266 fi
36267
36268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36269   done
36270 else
36271   echo "$as_me: failed program was:" >&5
36272 sed 's/^/| /' conftest.$ac_ext >&5
36273
36274         ac_lo= ac_hi=
36275 fi
36276
36277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36278 fi
36279
36280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36281 # Binary search between lo and hi bounds.
36282 while test "x$ac_lo" != "x$ac_hi"; do
36283   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36284   cat >conftest.$ac_ext <<_ACEOF
36285 /* confdefs.h.  */
36286 _ACEOF
36287 cat confdefs.h >>conftest.$ac_ext
36288 cat >>conftest.$ac_ext <<_ACEOF
36289 /* end confdefs.h.  */
36290 $ac_includes_default
36291    typedef long int ac__type_sizeof_;
36292 int
36293 main ()
36294 {
36295 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36296 test_array [0] = 0
36297
36298   ;
36299   return 0;
36300 }
36301 _ACEOF
36302 rm -f conftest.$ac_objext
36303 if { (ac_try="$ac_compile"
36304 case "(($ac_try" in
36305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36306   *) ac_try_echo=$ac_try;;
36307 esac
36308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36309   (eval "$ac_compile") 2>conftest.er1
36310   ac_status=$?
36311   grep -v '^ *+' conftest.er1 >conftest.err
36312   rm -f conftest.er1
36313   cat conftest.err >&5
36314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36315   (exit $ac_status); } && {
36316          test -z "$ac_c_werror_flag" ||
36317          test ! -s conftest.err
36318        } && test -s conftest.$ac_objext; then
36319   ac_hi=$ac_mid
36320 else
36321   echo "$as_me: failed program was:" >&5
36322 sed 's/^/| /' conftest.$ac_ext >&5
36323
36324         ac_lo=`expr '(' $ac_mid ')' + 1`
36325 fi
36326
36327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36328 done
36329 case $ac_lo in
36330 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36331 '') if test "$ac_cv_type_long_int" = yes; then
36332      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36333 See \`config.log' for more details." >&5
36334 echo "$as_me: error: cannot compute sizeof (long int)
36335 See \`config.log' for more details." >&2;}
36336    { (exit 77); exit 77; }; }
36337    else
36338      ac_cv_sizeof_long_int=0
36339    fi ;;
36340 esac
36341 else
36342   cat >conftest.$ac_ext <<_ACEOF
36343 /* confdefs.h.  */
36344 _ACEOF
36345 cat confdefs.h >>conftest.$ac_ext
36346 cat >>conftest.$ac_ext <<_ACEOF
36347 /* end confdefs.h.  */
36348 $ac_includes_default
36349    typedef long int ac__type_sizeof_;
36350 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36351 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36352 #include <stdio.h>
36353 #include <stdlib.h>
36354 int
36355 main ()
36356 {
36357
36358   FILE *f = fopen ("conftest.val", "w");
36359   if (! f)
36360     return 1;
36361   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36362     {
36363       long int i = longval ();
36364       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36365         return 1;
36366       fprintf (f, "%ld\n", i);
36367     }
36368   else
36369     {
36370       unsigned long int i = ulongval ();
36371       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36372         return 1;
36373       fprintf (f, "%lu\n", i);
36374     }
36375   return ferror (f) || fclose (f) != 0;
36376
36377   ;
36378   return 0;
36379 }
36380 _ACEOF
36381 rm -f conftest$ac_exeext
36382 if { (ac_try="$ac_link"
36383 case "(($ac_try" in
36384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36385   *) ac_try_echo=$ac_try;;
36386 esac
36387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36388   (eval "$ac_link") 2>&5
36389   ac_status=$?
36390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36391   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36392   { (case "(($ac_try" in
36393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36394   *) ac_try_echo=$ac_try;;
36395 esac
36396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36397   (eval "$ac_try") 2>&5
36398   ac_status=$?
36399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36400   (exit $ac_status); }; }; then
36401   ac_cv_sizeof_long_int=`cat conftest.val`
36402 else
36403   echo "$as_me: program exited with status $ac_status" >&5
36404 echo "$as_me: failed program was:" >&5
36405 sed 's/^/| /' conftest.$ac_ext >&5
36406
36407 ( exit $ac_status )
36408 if test "$ac_cv_type_long_int" = yes; then
36409      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36410 See \`config.log' for more details." >&5
36411 echo "$as_me: error: cannot compute sizeof (long int)
36412 See \`config.log' for more details." >&2;}
36413    { (exit 77); exit 77; }; }
36414    else
36415      ac_cv_sizeof_long_int=0
36416    fi
36417 fi
36418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36419 fi
36420 rm -f conftest.val
36421 fi
36422 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36423 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36424
36425
36426
36427 cat >>confdefs.h <<_ACEOF
36428 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36429 _ACEOF
36430
36431
36432 { echo "$as_me:$LINENO: checking for long long int" >&5
36433 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36434 if test "${ac_cv_type_long_long_int+set}" = set; then
36435   echo $ECHO_N "(cached) $ECHO_C" >&6
36436 else
36437   cat >conftest.$ac_ext <<_ACEOF
36438 /* confdefs.h.  */
36439 _ACEOF
36440 cat confdefs.h >>conftest.$ac_ext
36441 cat >>conftest.$ac_ext <<_ACEOF
36442 /* end confdefs.h.  */
36443 $ac_includes_default
36444 typedef long long int ac__type_new_;
36445 int
36446 main ()
36447 {
36448 if ((ac__type_new_ *) 0)
36449   return 0;
36450 if (sizeof (ac__type_new_))
36451   return 0;
36452   ;
36453   return 0;
36454 }
36455 _ACEOF
36456 rm -f conftest.$ac_objext
36457 if { (ac_try="$ac_compile"
36458 case "(($ac_try" in
36459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36460   *) ac_try_echo=$ac_try;;
36461 esac
36462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36463   (eval "$ac_compile") 2>conftest.er1
36464   ac_status=$?
36465   grep -v '^ *+' conftest.er1 >conftest.err
36466   rm -f conftest.er1
36467   cat conftest.err >&5
36468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36469   (exit $ac_status); } && {
36470          test -z "$ac_c_werror_flag" ||
36471          test ! -s conftest.err
36472        } && test -s conftest.$ac_objext; then
36473   ac_cv_type_long_long_int=yes
36474 else
36475   echo "$as_me: failed program was:" >&5
36476 sed 's/^/| /' conftest.$ac_ext >&5
36477
36478         ac_cv_type_long_long_int=no
36479 fi
36480
36481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36482 fi
36483 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36484 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36485
36486 # The cast to long int works around a bug in the HP C Compiler
36487 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36488 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36489 # This bug is HP SR number 8606223364.
36490 { echo "$as_me:$LINENO: checking size of long long int" >&5
36491 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36492 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36493   echo $ECHO_N "(cached) $ECHO_C" >&6
36494 else
36495   if test "$cross_compiling" = yes; then
36496   # Depending upon the size, compute the lo and hi bounds.
36497 cat >conftest.$ac_ext <<_ACEOF
36498 /* confdefs.h.  */
36499 _ACEOF
36500 cat confdefs.h >>conftest.$ac_ext
36501 cat >>conftest.$ac_ext <<_ACEOF
36502 /* end confdefs.h.  */
36503 $ac_includes_default
36504    typedef long long int ac__type_sizeof_;
36505 int
36506 main ()
36507 {
36508 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36509 test_array [0] = 0
36510
36511   ;
36512   return 0;
36513 }
36514 _ACEOF
36515 rm -f conftest.$ac_objext
36516 if { (ac_try="$ac_compile"
36517 case "(($ac_try" in
36518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36519   *) ac_try_echo=$ac_try;;
36520 esac
36521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36522   (eval "$ac_compile") 2>conftest.er1
36523   ac_status=$?
36524   grep -v '^ *+' conftest.er1 >conftest.err
36525   rm -f conftest.er1
36526   cat conftest.err >&5
36527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36528   (exit $ac_status); } && {
36529          test -z "$ac_c_werror_flag" ||
36530          test ! -s conftest.err
36531        } && test -s conftest.$ac_objext; then
36532   ac_lo=0 ac_mid=0
36533   while :; do
36534     cat >conftest.$ac_ext <<_ACEOF
36535 /* confdefs.h.  */
36536 _ACEOF
36537 cat confdefs.h >>conftest.$ac_ext
36538 cat >>conftest.$ac_ext <<_ACEOF
36539 /* end confdefs.h.  */
36540 $ac_includes_default
36541    typedef long long int ac__type_sizeof_;
36542 int
36543 main ()
36544 {
36545 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36546 test_array [0] = 0
36547
36548   ;
36549   return 0;
36550 }
36551 _ACEOF
36552 rm -f conftest.$ac_objext
36553 if { (ac_try="$ac_compile"
36554 case "(($ac_try" in
36555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36556   *) ac_try_echo=$ac_try;;
36557 esac
36558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36559   (eval "$ac_compile") 2>conftest.er1
36560   ac_status=$?
36561   grep -v '^ *+' conftest.er1 >conftest.err
36562   rm -f conftest.er1
36563   cat conftest.err >&5
36564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36565   (exit $ac_status); } && {
36566          test -z "$ac_c_werror_flag" ||
36567          test ! -s conftest.err
36568        } && test -s conftest.$ac_objext; then
36569   ac_hi=$ac_mid; break
36570 else
36571   echo "$as_me: failed program was:" >&5
36572 sed 's/^/| /' conftest.$ac_ext >&5
36573
36574         ac_lo=`expr $ac_mid + 1`
36575                         if test $ac_lo -le $ac_mid; then
36576                           ac_lo= ac_hi=
36577                           break
36578                         fi
36579                         ac_mid=`expr 2 '*' $ac_mid + 1`
36580 fi
36581
36582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36583   done
36584 else
36585   echo "$as_me: failed program was:" >&5
36586 sed 's/^/| /' conftest.$ac_ext >&5
36587
36588         cat >conftest.$ac_ext <<_ACEOF
36589 /* confdefs.h.  */
36590 _ACEOF
36591 cat confdefs.h >>conftest.$ac_ext
36592 cat >>conftest.$ac_ext <<_ACEOF
36593 /* end confdefs.h.  */
36594 $ac_includes_default
36595    typedef long long int ac__type_sizeof_;
36596 int
36597 main ()
36598 {
36599 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36600 test_array [0] = 0
36601
36602   ;
36603   return 0;
36604 }
36605 _ACEOF
36606 rm -f conftest.$ac_objext
36607 if { (ac_try="$ac_compile"
36608 case "(($ac_try" in
36609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36610   *) ac_try_echo=$ac_try;;
36611 esac
36612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36613   (eval "$ac_compile") 2>conftest.er1
36614   ac_status=$?
36615   grep -v '^ *+' conftest.er1 >conftest.err
36616   rm -f conftest.er1
36617   cat conftest.err >&5
36618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36619   (exit $ac_status); } && {
36620          test -z "$ac_c_werror_flag" ||
36621          test ! -s conftest.err
36622        } && test -s conftest.$ac_objext; then
36623   ac_hi=-1 ac_mid=-1
36624   while :; do
36625     cat >conftest.$ac_ext <<_ACEOF
36626 /* confdefs.h.  */
36627 _ACEOF
36628 cat confdefs.h >>conftest.$ac_ext
36629 cat >>conftest.$ac_ext <<_ACEOF
36630 /* end confdefs.h.  */
36631 $ac_includes_default
36632    typedef long long int ac__type_sizeof_;
36633 int
36634 main ()
36635 {
36636 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36637 test_array [0] = 0
36638
36639   ;
36640   return 0;
36641 }
36642 _ACEOF
36643 rm -f conftest.$ac_objext
36644 if { (ac_try="$ac_compile"
36645 case "(($ac_try" in
36646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36647   *) ac_try_echo=$ac_try;;
36648 esac
36649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36650   (eval "$ac_compile") 2>conftest.er1
36651   ac_status=$?
36652   grep -v '^ *+' conftest.er1 >conftest.err
36653   rm -f conftest.er1
36654   cat conftest.err >&5
36655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36656   (exit $ac_status); } && {
36657          test -z "$ac_c_werror_flag" ||
36658          test ! -s conftest.err
36659        } && test -s conftest.$ac_objext; then
36660   ac_lo=$ac_mid; break
36661 else
36662   echo "$as_me: failed program was:" >&5
36663 sed 's/^/| /' conftest.$ac_ext >&5
36664
36665         ac_hi=`expr '(' $ac_mid ')' - 1`
36666                         if test $ac_mid -le $ac_hi; then
36667                           ac_lo= ac_hi=
36668                           break
36669                         fi
36670                         ac_mid=`expr 2 '*' $ac_mid`
36671 fi
36672
36673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36674   done
36675 else
36676   echo "$as_me: failed program was:" >&5
36677 sed 's/^/| /' conftest.$ac_ext >&5
36678
36679         ac_lo= ac_hi=
36680 fi
36681
36682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36683 fi
36684
36685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36686 # Binary search between lo and hi bounds.
36687 while test "x$ac_lo" != "x$ac_hi"; do
36688   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36689   cat >conftest.$ac_ext <<_ACEOF
36690 /* confdefs.h.  */
36691 _ACEOF
36692 cat confdefs.h >>conftest.$ac_ext
36693 cat >>conftest.$ac_ext <<_ACEOF
36694 /* end confdefs.h.  */
36695 $ac_includes_default
36696    typedef long long int ac__type_sizeof_;
36697 int
36698 main ()
36699 {
36700 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36701 test_array [0] = 0
36702
36703   ;
36704   return 0;
36705 }
36706 _ACEOF
36707 rm -f conftest.$ac_objext
36708 if { (ac_try="$ac_compile"
36709 case "(($ac_try" in
36710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36711   *) ac_try_echo=$ac_try;;
36712 esac
36713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36714   (eval "$ac_compile") 2>conftest.er1
36715   ac_status=$?
36716   grep -v '^ *+' conftest.er1 >conftest.err
36717   rm -f conftest.er1
36718   cat conftest.err >&5
36719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36720   (exit $ac_status); } && {
36721          test -z "$ac_c_werror_flag" ||
36722          test ! -s conftest.err
36723        } && test -s conftest.$ac_objext; then
36724   ac_hi=$ac_mid
36725 else
36726   echo "$as_me: failed program was:" >&5
36727 sed 's/^/| /' conftest.$ac_ext >&5
36728
36729         ac_lo=`expr '(' $ac_mid ')' + 1`
36730 fi
36731
36732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36733 done
36734 case $ac_lo in
36735 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36736 '') if test "$ac_cv_type_long_long_int" = yes; then
36737      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36738 See \`config.log' for more details." >&5
36739 echo "$as_me: error: cannot compute sizeof (long long int)
36740 See \`config.log' for more details." >&2;}
36741    { (exit 77); exit 77; }; }
36742    else
36743      ac_cv_sizeof_long_long_int=0
36744    fi ;;
36745 esac
36746 else
36747   cat >conftest.$ac_ext <<_ACEOF
36748 /* confdefs.h.  */
36749 _ACEOF
36750 cat confdefs.h >>conftest.$ac_ext
36751 cat >>conftest.$ac_ext <<_ACEOF
36752 /* end confdefs.h.  */
36753 $ac_includes_default
36754    typedef long long int ac__type_sizeof_;
36755 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36756 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36757 #include <stdio.h>
36758 #include <stdlib.h>
36759 int
36760 main ()
36761 {
36762
36763   FILE *f = fopen ("conftest.val", "w");
36764   if (! f)
36765     return 1;
36766   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36767     {
36768       long int i = longval ();
36769       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36770         return 1;
36771       fprintf (f, "%ld\n", i);
36772     }
36773   else
36774     {
36775       unsigned long int i = ulongval ();
36776       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36777         return 1;
36778       fprintf (f, "%lu\n", i);
36779     }
36780   return ferror (f) || fclose (f) != 0;
36781
36782   ;
36783   return 0;
36784 }
36785 _ACEOF
36786 rm -f conftest$ac_exeext
36787 if { (ac_try="$ac_link"
36788 case "(($ac_try" in
36789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36790   *) ac_try_echo=$ac_try;;
36791 esac
36792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36793   (eval "$ac_link") 2>&5
36794   ac_status=$?
36795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36796   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36797   { (case "(($ac_try" in
36798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36799   *) ac_try_echo=$ac_try;;
36800 esac
36801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36802   (eval "$ac_try") 2>&5
36803   ac_status=$?
36804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36805   (exit $ac_status); }; }; then
36806   ac_cv_sizeof_long_long_int=`cat conftest.val`
36807 else
36808   echo "$as_me: program exited with status $ac_status" >&5
36809 echo "$as_me: failed program was:" >&5
36810 sed 's/^/| /' conftest.$ac_ext >&5
36811
36812 ( exit $ac_status )
36813 if test "$ac_cv_type_long_long_int" = yes; then
36814      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36815 See \`config.log' for more details." >&5
36816 echo "$as_me: error: cannot compute sizeof (long long int)
36817 See \`config.log' for more details." >&2;}
36818    { (exit 77); exit 77; }; }
36819    else
36820      ac_cv_sizeof_long_long_int=0
36821    fi
36822 fi
36823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36824 fi
36825 rm -f conftest.val
36826 fi
36827 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36828 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36829
36830
36831
36832 cat >>confdefs.h <<_ACEOF
36833 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36834 _ACEOF
36835
36836
36837 { echo "$as_me:$LINENO: checking for int *" >&5
36838 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36839 if test "${ac_cv_type_int_p+set}" = set; then
36840   echo $ECHO_N "(cached) $ECHO_C" >&6
36841 else
36842   cat >conftest.$ac_ext <<_ACEOF
36843 /* confdefs.h.  */
36844 _ACEOF
36845 cat confdefs.h >>conftest.$ac_ext
36846 cat >>conftest.$ac_ext <<_ACEOF
36847 /* end confdefs.h.  */
36848 $ac_includes_default
36849 typedef int * ac__type_new_;
36850 int
36851 main ()
36852 {
36853 if ((ac__type_new_ *) 0)
36854   return 0;
36855 if (sizeof (ac__type_new_))
36856   return 0;
36857   ;
36858   return 0;
36859 }
36860 _ACEOF
36861 rm -f conftest.$ac_objext
36862 if { (ac_try="$ac_compile"
36863 case "(($ac_try" in
36864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36865   *) ac_try_echo=$ac_try;;
36866 esac
36867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36868   (eval "$ac_compile") 2>conftest.er1
36869   ac_status=$?
36870   grep -v '^ *+' conftest.er1 >conftest.err
36871   rm -f conftest.er1
36872   cat conftest.err >&5
36873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36874   (exit $ac_status); } && {
36875          test -z "$ac_c_werror_flag" ||
36876          test ! -s conftest.err
36877        } && test -s conftest.$ac_objext; then
36878   ac_cv_type_int_p=yes
36879 else
36880   echo "$as_me: failed program was:" >&5
36881 sed 's/^/| /' conftest.$ac_ext >&5
36882
36883         ac_cv_type_int_p=no
36884 fi
36885
36886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36887 fi
36888 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36889 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36890
36891 # The cast to long int works around a bug in the HP C Compiler
36892 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36893 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36894 # This bug is HP SR number 8606223364.
36895 { echo "$as_me:$LINENO: checking size of int *" >&5
36896 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36897 if test "${ac_cv_sizeof_int_p+set}" = set; then
36898   echo $ECHO_N "(cached) $ECHO_C" >&6
36899 else
36900   if test "$cross_compiling" = yes; then
36901   # Depending upon the size, compute the lo and hi bounds.
36902 cat >conftest.$ac_ext <<_ACEOF
36903 /* confdefs.h.  */
36904 _ACEOF
36905 cat confdefs.h >>conftest.$ac_ext
36906 cat >>conftest.$ac_ext <<_ACEOF
36907 /* end confdefs.h.  */
36908 $ac_includes_default
36909    typedef int * ac__type_sizeof_;
36910 int
36911 main ()
36912 {
36913 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36914 test_array [0] = 0
36915
36916   ;
36917   return 0;
36918 }
36919 _ACEOF
36920 rm -f conftest.$ac_objext
36921 if { (ac_try="$ac_compile"
36922 case "(($ac_try" in
36923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36924   *) ac_try_echo=$ac_try;;
36925 esac
36926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36927   (eval "$ac_compile") 2>conftest.er1
36928   ac_status=$?
36929   grep -v '^ *+' conftest.er1 >conftest.err
36930   rm -f conftest.er1
36931   cat conftest.err >&5
36932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36933   (exit $ac_status); } && {
36934          test -z "$ac_c_werror_flag" ||
36935          test ! -s conftest.err
36936        } && test -s conftest.$ac_objext; then
36937   ac_lo=0 ac_mid=0
36938   while :; do
36939     cat >conftest.$ac_ext <<_ACEOF
36940 /* confdefs.h.  */
36941 _ACEOF
36942 cat confdefs.h >>conftest.$ac_ext
36943 cat >>conftest.$ac_ext <<_ACEOF
36944 /* end confdefs.h.  */
36945 $ac_includes_default
36946    typedef int * ac__type_sizeof_;
36947 int
36948 main ()
36949 {
36950 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36951 test_array [0] = 0
36952
36953   ;
36954   return 0;
36955 }
36956 _ACEOF
36957 rm -f conftest.$ac_objext
36958 if { (ac_try="$ac_compile"
36959 case "(($ac_try" in
36960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36961   *) ac_try_echo=$ac_try;;
36962 esac
36963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36964   (eval "$ac_compile") 2>conftest.er1
36965   ac_status=$?
36966   grep -v '^ *+' conftest.er1 >conftest.err
36967   rm -f conftest.er1
36968   cat conftest.err >&5
36969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36970   (exit $ac_status); } && {
36971          test -z "$ac_c_werror_flag" ||
36972          test ! -s conftest.err
36973        } && test -s conftest.$ac_objext; then
36974   ac_hi=$ac_mid; break
36975 else
36976   echo "$as_me: failed program was:" >&5
36977 sed 's/^/| /' conftest.$ac_ext >&5
36978
36979         ac_lo=`expr $ac_mid + 1`
36980                         if test $ac_lo -le $ac_mid; then
36981                           ac_lo= ac_hi=
36982                           break
36983                         fi
36984                         ac_mid=`expr 2 '*' $ac_mid + 1`
36985 fi
36986
36987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36988   done
36989 else
36990   echo "$as_me: failed program was:" >&5
36991 sed 's/^/| /' conftest.$ac_ext >&5
36992
36993         cat >conftest.$ac_ext <<_ACEOF
36994 /* confdefs.h.  */
36995 _ACEOF
36996 cat confdefs.h >>conftest.$ac_ext
36997 cat >>conftest.$ac_ext <<_ACEOF
36998 /* end confdefs.h.  */
36999 $ac_includes_default
37000    typedef int * ac__type_sizeof_;
37001 int
37002 main ()
37003 {
37004 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
37005 test_array [0] = 0
37006
37007   ;
37008   return 0;
37009 }
37010 _ACEOF
37011 rm -f conftest.$ac_objext
37012 if { (ac_try="$ac_compile"
37013 case "(($ac_try" in
37014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37015   *) ac_try_echo=$ac_try;;
37016 esac
37017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37018   (eval "$ac_compile") 2>conftest.er1
37019   ac_status=$?
37020   grep -v '^ *+' conftest.er1 >conftest.err
37021   rm -f conftest.er1
37022   cat conftest.err >&5
37023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37024   (exit $ac_status); } && {
37025          test -z "$ac_c_werror_flag" ||
37026          test ! -s conftest.err
37027        } && test -s conftest.$ac_objext; then
37028   ac_hi=-1 ac_mid=-1
37029   while :; do
37030     cat >conftest.$ac_ext <<_ACEOF
37031 /* confdefs.h.  */
37032 _ACEOF
37033 cat confdefs.h >>conftest.$ac_ext
37034 cat >>conftest.$ac_ext <<_ACEOF
37035 /* end confdefs.h.  */
37036 $ac_includes_default
37037    typedef int * ac__type_sizeof_;
37038 int
37039 main ()
37040 {
37041 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
37042 test_array [0] = 0
37043
37044   ;
37045   return 0;
37046 }
37047 _ACEOF
37048 rm -f conftest.$ac_objext
37049 if { (ac_try="$ac_compile"
37050 case "(($ac_try" in
37051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37052   *) ac_try_echo=$ac_try;;
37053 esac
37054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37055   (eval "$ac_compile") 2>conftest.er1
37056   ac_status=$?
37057   grep -v '^ *+' conftest.er1 >conftest.err
37058   rm -f conftest.er1
37059   cat conftest.err >&5
37060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37061   (exit $ac_status); } && {
37062          test -z "$ac_c_werror_flag" ||
37063          test ! -s conftest.err
37064        } && test -s conftest.$ac_objext; then
37065   ac_lo=$ac_mid; break
37066 else
37067   echo "$as_me: failed program was:" >&5
37068 sed 's/^/| /' conftest.$ac_ext >&5
37069
37070         ac_hi=`expr '(' $ac_mid ')' - 1`
37071                         if test $ac_mid -le $ac_hi; then
37072                           ac_lo= ac_hi=
37073                           break
37074                         fi
37075                         ac_mid=`expr 2 '*' $ac_mid`
37076 fi
37077
37078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37079   done
37080 else
37081   echo "$as_me: failed program was:" >&5
37082 sed 's/^/| /' conftest.$ac_ext >&5
37083
37084         ac_lo= ac_hi=
37085 fi
37086
37087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37088 fi
37089
37090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37091 # Binary search between lo and hi bounds.
37092 while test "x$ac_lo" != "x$ac_hi"; do
37093   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37094   cat >conftest.$ac_ext <<_ACEOF
37095 /* confdefs.h.  */
37096 _ACEOF
37097 cat confdefs.h >>conftest.$ac_ext
37098 cat >>conftest.$ac_ext <<_ACEOF
37099 /* end confdefs.h.  */
37100 $ac_includes_default
37101    typedef int * ac__type_sizeof_;
37102 int
37103 main ()
37104 {
37105 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37106 test_array [0] = 0
37107
37108   ;
37109   return 0;
37110 }
37111 _ACEOF
37112 rm -f conftest.$ac_objext
37113 if { (ac_try="$ac_compile"
37114 case "(($ac_try" in
37115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37116   *) ac_try_echo=$ac_try;;
37117 esac
37118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37119   (eval "$ac_compile") 2>conftest.er1
37120   ac_status=$?
37121   grep -v '^ *+' conftest.er1 >conftest.err
37122   rm -f conftest.er1
37123   cat conftest.err >&5
37124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37125   (exit $ac_status); } && {
37126          test -z "$ac_c_werror_flag" ||
37127          test ! -s conftest.err
37128        } && test -s conftest.$ac_objext; then
37129   ac_hi=$ac_mid
37130 else
37131   echo "$as_me: failed program was:" >&5
37132 sed 's/^/| /' conftest.$ac_ext >&5
37133
37134         ac_lo=`expr '(' $ac_mid ')' + 1`
37135 fi
37136
37137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37138 done
37139 case $ac_lo in
37140 ?*) ac_cv_sizeof_int_p=$ac_lo;;
37141 '') if test "$ac_cv_type_int_p" = yes; then
37142      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37143 See \`config.log' for more details." >&5
37144 echo "$as_me: error: cannot compute sizeof (int *)
37145 See \`config.log' for more details." >&2;}
37146    { (exit 77); exit 77; }; }
37147    else
37148      ac_cv_sizeof_int_p=0
37149    fi ;;
37150 esac
37151 else
37152   cat >conftest.$ac_ext <<_ACEOF
37153 /* confdefs.h.  */
37154 _ACEOF
37155 cat confdefs.h >>conftest.$ac_ext
37156 cat >>conftest.$ac_ext <<_ACEOF
37157 /* end confdefs.h.  */
37158 $ac_includes_default
37159    typedef int * ac__type_sizeof_;
37160 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
37161 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
37162 #include <stdio.h>
37163 #include <stdlib.h>
37164 int
37165 main ()
37166 {
37167
37168   FILE *f = fopen ("conftest.val", "w");
37169   if (! f)
37170     return 1;
37171   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
37172     {
37173       long int i = longval ();
37174       if (i != ((long int) (sizeof (ac__type_sizeof_))))
37175         return 1;
37176       fprintf (f, "%ld\n", i);
37177     }
37178   else
37179     {
37180       unsigned long int i = ulongval ();
37181       if (i != ((long int) (sizeof (ac__type_sizeof_))))
37182         return 1;
37183       fprintf (f, "%lu\n", i);
37184     }
37185   return ferror (f) || fclose (f) != 0;
37186
37187   ;
37188   return 0;
37189 }
37190 _ACEOF
37191 rm -f conftest$ac_exeext
37192 if { (ac_try="$ac_link"
37193 case "(($ac_try" in
37194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37195   *) ac_try_echo=$ac_try;;
37196 esac
37197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37198   (eval "$ac_link") 2>&5
37199   ac_status=$?
37200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37201   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37202   { (case "(($ac_try" in
37203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37204   *) ac_try_echo=$ac_try;;
37205 esac
37206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37207   (eval "$ac_try") 2>&5
37208   ac_status=$?
37209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37210   (exit $ac_status); }; }; then
37211   ac_cv_sizeof_int_p=`cat conftest.val`
37212 else
37213   echo "$as_me: program exited with status $ac_status" >&5
37214 echo "$as_me: failed program was:" >&5
37215 sed 's/^/| /' conftest.$ac_ext >&5
37216
37217 ( exit $ac_status )
37218 if test "$ac_cv_type_int_p" = yes; then
37219      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37220 See \`config.log' for more details." >&5
37221 echo "$as_me: error: cannot compute sizeof (int *)
37222 See \`config.log' for more details." >&2;}
37223    { (exit 77); exit 77; }; }
37224    else
37225      ac_cv_sizeof_int_p=0
37226    fi
37227 fi
37228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37229 fi
37230 rm -f conftest.val
37231 fi
37232 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
37233 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
37234
37235
37236
37237 cat >>confdefs.h <<_ACEOF
37238 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
37239 _ACEOF
37240
37241
37242
37243 { echo "$as_me:$LINENO: checking for u_int type" >&5
37244 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
37245 if test "${ac_cv_have_u_int+set}" = set; then
37246   echo $ECHO_N "(cached) $ECHO_C" >&6
37247 else
37248
37249        cat >conftest.$ac_ext <<_ACEOF
37250 /* confdefs.h.  */
37251 _ACEOF
37252 cat confdefs.h >>conftest.$ac_ext
37253 cat >>conftest.$ac_ext <<_ACEOF
37254 /* end confdefs.h.  */
37255
37256               #include <sys/types.h>
37257
37258 int
37259 main ()
37260 {
37261
37262               u_int a; a = 1;
37263
37264   ;
37265   return 0;
37266 }
37267 _ACEOF
37268 rm -f conftest.$ac_objext
37269 if { (ac_try="$ac_compile"
37270 case "(($ac_try" in
37271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37272   *) ac_try_echo=$ac_try;;
37273 esac
37274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37275   (eval "$ac_compile") 2>conftest.er1
37276   ac_status=$?
37277   grep -v '^ *+' conftest.er1 >conftest.err
37278   rm -f conftest.er1
37279   cat conftest.err >&5
37280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37281   (exit $ac_status); } && {
37282          test -z "$ac_c_werror_flag" ||
37283          test ! -s conftest.err
37284        } && test -s conftest.$ac_objext; then
37285
37286               ac_cv_have_u_int="yes"
37287
37288 else
37289   echo "$as_me: failed program was:" >&5
37290 sed 's/^/| /' conftest.$ac_ext >&5
37291
37292
37293               ac_cv_have_u_int="no"
37294
37295
37296 fi
37297
37298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37299
37300
37301 fi
37302 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37303 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37304 if test "x$ac_cv_have_u_int" = "xyes" ; then
37305    cat >>confdefs.h <<\_ACEOF
37306 #define HAVE_U_INT 1
37307 _ACEOF
37308
37309    have_u_int=1
37310 fi
37311
37312 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37313 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37314 if test "${ac_cv_have_intmax_t+set}" = set; then
37315   echo $ECHO_N "(cached) $ECHO_C" >&6
37316 else
37317
37318        cat >conftest.$ac_ext <<_ACEOF
37319 /* confdefs.h.  */
37320 _ACEOF
37321 cat confdefs.h >>conftest.$ac_ext
37322 cat >>conftest.$ac_ext <<_ACEOF
37323 /* end confdefs.h.  */
37324
37325               #include <sys/types.h>
37326
37327 int
37328 main ()
37329 {
37330
37331               intmax_t a; a = 1;
37332
37333   ;
37334   return 0;
37335 }
37336 _ACEOF
37337 rm -f conftest.$ac_objext
37338 if { (ac_try="$ac_compile"
37339 case "(($ac_try" in
37340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37341   *) ac_try_echo=$ac_try;;
37342 esac
37343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37344   (eval "$ac_compile") 2>conftest.er1
37345   ac_status=$?
37346   grep -v '^ *+' conftest.er1 >conftest.err
37347   rm -f conftest.er1
37348   cat conftest.err >&5
37349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37350   (exit $ac_status); } && {
37351          test -z "$ac_c_werror_flag" ||
37352          test ! -s conftest.err
37353        } && test -s conftest.$ac_objext; then
37354
37355               ac_cv_have_intmax_t="yes"
37356
37357 else
37358   echo "$as_me: failed program was:" >&5
37359 sed 's/^/| /' conftest.$ac_ext >&5
37360
37361
37362               cat >conftest.$ac_ext <<_ACEOF
37363 /* confdefs.h.  */
37364 _ACEOF
37365 cat confdefs.h >>conftest.$ac_ext
37366 cat >>conftest.$ac_ext <<_ACEOF
37367 /* end confdefs.h.  */
37368
37369                      #include <stdint.h>
37370
37371 int
37372 main ()
37373 {
37374
37375                      intmax_t a; a = 1;
37376
37377   ;
37378   return 0;
37379 }
37380 _ACEOF
37381 rm -f conftest.$ac_objext
37382 if { (ac_try="$ac_compile"
37383 case "(($ac_try" in
37384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37385   *) ac_try_echo=$ac_try;;
37386 esac
37387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37388   (eval "$ac_compile") 2>conftest.er1
37389   ac_status=$?
37390   grep -v '^ *+' conftest.er1 >conftest.err
37391   rm -f conftest.er1
37392   cat conftest.err >&5
37393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37394   (exit $ac_status); } && {
37395          test -z "$ac_c_werror_flag" ||
37396          test ! -s conftest.err
37397        } && test -s conftest.$ac_objext; then
37398
37399                      ac_cv_have_intmax_t="yes"
37400
37401 else
37402   echo "$as_me: failed program was:" >&5
37403 sed 's/^/| /' conftest.$ac_ext >&5
37404
37405
37406                      ac_cv_have_intmax_t="no"
37407
37408
37409 fi
37410
37411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37412
37413
37414 fi
37415
37416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37417
37418
37419 fi
37420 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37421 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37422 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37423    cat >>confdefs.h <<\_ACEOF
37424 #define HAVE_INTMAX_T 1
37425 _ACEOF
37426
37427    have_intmax_t=1
37428 fi
37429
37430 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37431 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37432 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37433   echo $ECHO_N "(cached) $ECHO_C" >&6
37434 else
37435
37436        cat >conftest.$ac_ext <<_ACEOF
37437 /* confdefs.h.  */
37438 _ACEOF
37439 cat confdefs.h >>conftest.$ac_ext
37440 cat >>conftest.$ac_ext <<_ACEOF
37441 /* end confdefs.h.  */
37442
37443               #include <sys/types.h>
37444
37445 int
37446 main ()
37447 {
37448
37449               u_intmax_t a; a = 1;
37450
37451   ;
37452   return 0;
37453 }
37454 _ACEOF
37455 rm -f conftest.$ac_objext
37456 if { (ac_try="$ac_compile"
37457 case "(($ac_try" in
37458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37459   *) ac_try_echo=$ac_try;;
37460 esac
37461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37462   (eval "$ac_compile") 2>conftest.er1
37463   ac_status=$?
37464   grep -v '^ *+' conftest.er1 >conftest.err
37465   rm -f conftest.er1
37466   cat conftest.err >&5
37467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37468   (exit $ac_status); } && {
37469          test -z "$ac_c_werror_flag" ||
37470          test ! -s conftest.err
37471        } && test -s conftest.$ac_objext; then
37472
37473               ac_cv_have_u_intmax_t="yes"
37474
37475 else
37476   echo "$as_me: failed program was:" >&5
37477 sed 's/^/| /' conftest.$ac_ext >&5
37478
37479
37480               cat >conftest.$ac_ext <<_ACEOF
37481 /* confdefs.h.  */
37482 _ACEOF
37483 cat confdefs.h >>conftest.$ac_ext
37484 cat >>conftest.$ac_ext <<_ACEOF
37485 /* end confdefs.h.  */
37486
37487                      #include <stdint.h>
37488
37489 int
37490 main ()
37491 {
37492
37493                     u_intmax_t a; a = 1;
37494
37495   ;
37496   return 0;
37497 }
37498 _ACEOF
37499 rm -f conftest.$ac_objext
37500 if { (ac_try="$ac_compile"
37501 case "(($ac_try" in
37502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37503   *) ac_try_echo=$ac_try;;
37504 esac
37505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37506   (eval "$ac_compile") 2>conftest.er1
37507   ac_status=$?
37508   grep -v '^ *+' conftest.er1 >conftest.err
37509   rm -f conftest.er1
37510   cat conftest.err >&5
37511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37512   (exit $ac_status); } && {
37513          test -z "$ac_c_werror_flag" ||
37514          test ! -s conftest.err
37515        } && test -s conftest.$ac_objext; then
37516
37517                     ac_cv_have_u_intmax_t="yes"
37518
37519 else
37520   echo "$as_me: failed program was:" >&5
37521 sed 's/^/| /' conftest.$ac_ext >&5
37522
37523
37524                     ac_cv_have_u_intmax_t="no"
37525
37526
37527 fi
37528
37529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37530
37531
37532 fi
37533
37534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37535
37536
37537 fi
37538 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37539 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37540 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37541    cat >>confdefs.h <<\_ACEOF
37542 #define HAVE_U_INTMAX_T 1
37543 _ACEOF
37544
37545    have_u_intmax_t=1
37546 fi
37547
37548 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37549 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37550 if test "${ac_cv_have_intxx_t+set}" = set; then
37551   echo $ECHO_N "(cached) $ECHO_C" >&6
37552 else
37553
37554        cat >conftest.$ac_ext <<_ACEOF
37555 /* confdefs.h.  */
37556 _ACEOF
37557 cat confdefs.h >>conftest.$ac_ext
37558 cat >>conftest.$ac_ext <<_ACEOF
37559 /* end confdefs.h.  */
37560
37561               #include <sys/types.h>
37562
37563 int
37564 main ()
37565 {
37566
37567               int8_t a; int16_t b; int32_t c; a = b = c = 1;
37568
37569   ;
37570   return 0;
37571 }
37572 _ACEOF
37573 rm -f conftest.$ac_objext
37574 if { (ac_try="$ac_compile"
37575 case "(($ac_try" in
37576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37577   *) ac_try_echo=$ac_try;;
37578 esac
37579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37580   (eval "$ac_compile") 2>conftest.er1
37581   ac_status=$?
37582   grep -v '^ *+' conftest.er1 >conftest.err
37583   rm -f conftest.er1
37584   cat conftest.err >&5
37585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37586   (exit $ac_status); } && {
37587          test -z "$ac_c_werror_flag" ||
37588          test ! -s conftest.err
37589        } && test -s conftest.$ac_objext; then
37590
37591               ac_cv_have_intxx_t="yes"
37592
37593 else
37594   echo "$as_me: failed program was:" >&5
37595 sed 's/^/| /' conftest.$ac_ext >&5
37596
37597
37598               ac_cv_have_intxx_t="no"
37599
37600
37601 fi
37602
37603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37604
37605
37606 fi
37607 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37608 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37609 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37610    cat >>confdefs.h <<\_ACEOF
37611 #define HAVE_INTXX_T 1
37612 _ACEOF
37613
37614    have_intxx_t=1
37615 fi
37616
37617 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37618 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37619 if test "${ac_cv_have_int64_t+set}" = set; then
37620   echo $ECHO_N "(cached) $ECHO_C" >&6
37621 else
37622
37623        cat >conftest.$ac_ext <<_ACEOF
37624 /* confdefs.h.  */
37625 _ACEOF
37626 cat confdefs.h >>conftest.$ac_ext
37627 cat >>conftest.$ac_ext <<_ACEOF
37628 /* end confdefs.h.  */
37629
37630               #include <sys/types.h>
37631
37632 int
37633 main ()
37634 {
37635
37636               int64_t a; a = 1;
37637
37638   ;
37639   return 0;
37640 }
37641 _ACEOF
37642 rm -f conftest.$ac_objext
37643 if { (ac_try="$ac_compile"
37644 case "(($ac_try" in
37645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37646   *) ac_try_echo=$ac_try;;
37647 esac
37648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37649   (eval "$ac_compile") 2>conftest.er1
37650   ac_status=$?
37651   grep -v '^ *+' conftest.er1 >conftest.err
37652   rm -f conftest.er1
37653   cat conftest.err >&5
37654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37655   (exit $ac_status); } && {
37656          test -z "$ac_c_werror_flag" ||
37657          test ! -s conftest.err
37658        } && test -s conftest.$ac_objext; then
37659
37660               ac_cv_have_int64_t="yes"
37661
37662 else
37663   echo "$as_me: failed program was:" >&5
37664 sed 's/^/| /' conftest.$ac_ext >&5
37665
37666
37667               ac_cv_have_int64_t="no"
37668
37669
37670 fi
37671
37672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37673
37674
37675 fi
37676 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37677 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37678 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37679    cat >>confdefs.h <<\_ACEOF
37680 #define HAVE_INT64_T 1
37681 _ACEOF
37682
37683    have_int64_t=1
37684 fi
37685
37686 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37687 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37688 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37689   echo $ECHO_N "(cached) $ECHO_C" >&6
37690 else
37691
37692        cat >conftest.$ac_ext <<_ACEOF
37693 /* confdefs.h.  */
37694 _ACEOF
37695 cat confdefs.h >>conftest.$ac_ext
37696 cat >>conftest.$ac_ext <<_ACEOF
37697 /* end confdefs.h.  */
37698
37699               #include <sys/types.h>
37700
37701 int
37702 main ()
37703 {
37704
37705               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37706
37707   ;
37708   return 0;
37709 }
37710 _ACEOF
37711 rm -f conftest.$ac_objext
37712 if { (ac_try="$ac_compile"
37713 case "(($ac_try" in
37714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37715   *) ac_try_echo=$ac_try;;
37716 esac
37717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37718   (eval "$ac_compile") 2>conftest.er1
37719   ac_status=$?
37720   grep -v '^ *+' conftest.er1 >conftest.err
37721   rm -f conftest.er1
37722   cat conftest.err >&5
37723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37724   (exit $ac_status); } && {
37725          test -z "$ac_c_werror_flag" ||
37726          test ! -s conftest.err
37727        } && test -s conftest.$ac_objext; then
37728
37729              ac_cv_have_u_intxx_t="yes"
37730
37731 else
37732   echo "$as_me: failed program was:" >&5
37733 sed 's/^/| /' conftest.$ac_ext >&5
37734
37735
37736              ac_cv_have_u_intxx_t="no"
37737
37738
37739 fi
37740
37741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37742
37743
37744 fi
37745 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37746 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37747 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37748    cat >>confdefs.h <<\_ACEOF
37749 #define HAVE_U_INTXX_T 1
37750 _ACEOF
37751
37752    have_u_intxx_t=1
37753 fi
37754
37755 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37756 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37757 if test "${ac_cv_have_u_int64_t+set}" = set; then
37758   echo $ECHO_N "(cached) $ECHO_C" >&6
37759 else
37760
37761        cat >conftest.$ac_ext <<_ACEOF
37762 /* confdefs.h.  */
37763 _ACEOF
37764 cat confdefs.h >>conftest.$ac_ext
37765 cat >>conftest.$ac_ext <<_ACEOF
37766 /* end confdefs.h.  */
37767
37768               #include <sys/types.h>
37769
37770 int
37771 main ()
37772 {
37773
37774               u_int64_t a; a = 1;
37775
37776   ;
37777   return 0;
37778 }
37779 _ACEOF
37780 rm -f conftest.$ac_objext
37781 if { (ac_try="$ac_compile"
37782 case "(($ac_try" in
37783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37784   *) ac_try_echo=$ac_try;;
37785 esac
37786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37787   (eval "$ac_compile") 2>conftest.er1
37788   ac_status=$?
37789   grep -v '^ *+' conftest.er1 >conftest.err
37790   rm -f conftest.er1
37791   cat conftest.err >&5
37792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37793   (exit $ac_status); } && {
37794          test -z "$ac_c_werror_flag" ||
37795          test ! -s conftest.err
37796        } && test -s conftest.$ac_objext; then
37797
37798              ac_cv_have_u_int64_t="yes"
37799
37800 else
37801   echo "$as_me: failed program was:" >&5
37802 sed 's/^/| /' conftest.$ac_ext >&5
37803
37804
37805              ac_cv_have_u_int64_t="no"
37806
37807
37808 fi
37809
37810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37811
37812
37813 fi
37814 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37815 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37816 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37817    cat >>confdefs.h <<\_ACEOF
37818 #define HAVE_U_INT64_T 1
37819 _ACEOF
37820
37821    have_u_int64_t=1
37822 fi
37823
37824 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37825     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37826 then
37827    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37828 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37829    cat >conftest.$ac_ext <<_ACEOF
37830 /* confdefs.h.  */
37831 _ACEOF
37832 cat confdefs.h >>conftest.$ac_ext
37833 cat >>conftest.$ac_ext <<_ACEOF
37834 /* end confdefs.h.  */
37835
37836           #include <sys/bitypes.h>
37837
37838 int
37839 main ()
37840 {
37841
37842           int8_t a; int16_t b; int32_t c;
37843           u_int8_t e; u_int16_t f; u_int32_t g;
37844           a = b = c = e = f = g = 1;
37845
37846   ;
37847   return 0;
37848 }
37849 _ACEOF
37850 rm -f conftest.$ac_objext
37851 if { (ac_try="$ac_compile"
37852 case "(($ac_try" in
37853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37854   *) ac_try_echo=$ac_try;;
37855 esac
37856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37857   (eval "$ac_compile") 2>conftest.er1
37858   ac_status=$?
37859   grep -v '^ *+' conftest.er1 >conftest.err
37860   rm -f conftest.er1
37861   cat conftest.err >&5
37862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37863   (exit $ac_status); } && {
37864          test -z "$ac_c_werror_flag" ||
37865          test ! -s conftest.err
37866        } && test -s conftest.$ac_objext; then
37867
37868           cat >>confdefs.h <<\_ACEOF
37869 #define HAVE_U_INTXX_T 1
37870 _ACEOF
37871
37872           cat >>confdefs.h <<\_ACEOF
37873 #define HAVE_INTXX_T 1
37874 _ACEOF
37875
37876           cat >>confdefs.h <<\_ACEOF
37877 #define HAVE_SYS_BITYPES_H 1
37878 _ACEOF
37879
37880           { echo "$as_me:$LINENO: result: yes" >&5
37881 echo "${ECHO_T}yes" >&6; }
37882
37883 else
37884   echo "$as_me: failed program was:" >&5
37885 sed 's/^/| /' conftest.$ac_ext >&5
37886
37887
37888           { echo "$as_me:$LINENO: result: no" >&5
37889 echo "${ECHO_T}no" >&6; }
37890
37891
37892 fi
37893
37894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37895 fi
37896
37897 if test -z "$have_u_intxx_t" ; then
37898    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37899 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37900 if test "${ac_cv_have_uintxx_t+set}" = set; then
37901   echo $ECHO_N "(cached) $ECHO_C" >&6
37902 else
37903
37904           cat >conftest.$ac_ext <<_ACEOF
37905 /* confdefs.h.  */
37906 _ACEOF
37907 cat confdefs.h >>conftest.$ac_ext
37908 cat >>conftest.$ac_ext <<_ACEOF
37909 /* end confdefs.h.  */
37910
37911                  #include <sys/types.h>
37912
37913 int
37914 main ()
37915 {
37916
37917                  uint8_t a; uint16_t b;
37918                  uint32_t c; a = b = c = 1;
37919
37920   ;
37921   return 0;
37922 }
37923 _ACEOF
37924 rm -f conftest.$ac_objext
37925 if { (ac_try="$ac_compile"
37926 case "(($ac_try" in
37927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37928   *) ac_try_echo=$ac_try;;
37929 esac
37930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37931   (eval "$ac_compile") 2>conftest.er1
37932   ac_status=$?
37933   grep -v '^ *+' conftest.er1 >conftest.err
37934   rm -f conftest.er1
37935   cat conftest.err >&5
37936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37937   (exit $ac_status); } && {
37938          test -z "$ac_c_werror_flag" ||
37939          test ! -s conftest.err
37940        } && test -s conftest.$ac_objext; then
37941
37942                 ac_cv_have_uintxx_t="yes"
37943
37944 else
37945   echo "$as_me: failed program was:" >&5
37946 sed 's/^/| /' conftest.$ac_ext >&5
37947
37948
37949                 ac_cv_have_uintxx_t="no"
37950
37951
37952 fi
37953
37954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37955
37956
37957 fi
37958 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37959 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37960    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37961       cat >>confdefs.h <<\_ACEOF
37962 #define HAVE_UINTXX_T 1
37963 _ACEOF
37964
37965    fi
37966 fi
37967
37968 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37969     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37970 then
37971    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37972 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37973    cat >conftest.$ac_ext <<_ACEOF
37974 /* confdefs.h.  */
37975 _ACEOF
37976 cat confdefs.h >>conftest.$ac_ext
37977 cat >>conftest.$ac_ext <<_ACEOF
37978 /* end confdefs.h.  */
37979
37980           #include <sys/bitypes.h>
37981
37982 int
37983 main ()
37984 {
37985
37986           int64_t a; u_int64_t b;
37987           a = b = 1;
37988
37989   ;
37990   return 0;
37991 }
37992 _ACEOF
37993 rm -f conftest.$ac_objext
37994 if { (ac_try="$ac_compile"
37995 case "(($ac_try" in
37996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37997   *) ac_try_echo=$ac_try;;
37998 esac
37999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38000   (eval "$ac_compile") 2>conftest.er1
38001   ac_status=$?
38002   grep -v '^ *+' conftest.er1 >conftest.err
38003   rm -f conftest.er1
38004   cat conftest.err >&5
38005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38006   (exit $ac_status); } && {
38007          test -z "$ac_c_werror_flag" ||
38008          test ! -s conftest.err
38009        } && test -s conftest.$ac_objext; then
38010
38011           cat >>confdefs.h <<\_ACEOF
38012 #define HAVE_U_INT64_T 1
38013 _ACEOF
38014
38015           cat >>confdefs.h <<\_ACEOF
38016 #define HAVE_INT64_T 1
38017 _ACEOF
38018
38019           { echo "$as_me:$LINENO: result: yes" >&5
38020 echo "${ECHO_T}yes" >&6; }
38021
38022 else
38023   echo "$as_me: failed program was:" >&5
38024 sed 's/^/| /' conftest.$ac_ext >&5
38025
38026
38027           { echo "$as_me:$LINENO: result: no" >&5
38028 echo "${ECHO_T}no" >&6; }
38029
38030
38031 fi
38032
38033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38034 fi
38035
38036 if (test -z "$have_uintxx_t" && \
38037     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38038 then
38039    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
38040 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
38041    cat >conftest.$ac_ext <<_ACEOF
38042 /* confdefs.h.  */
38043 _ACEOF
38044 cat confdefs.h >>conftest.$ac_ext
38045 cat >>conftest.$ac_ext <<_ACEOF
38046 /* end confdefs.h.  */
38047
38048           #include <sys/bitypes.h>
38049
38050 int
38051 main ()
38052 {
38053
38054           uint8_t a; uint16_t b;
38055           uint32_t c; a = b = c = 1;
38056
38057   ;
38058   return 0;
38059 }
38060 _ACEOF
38061 rm -f conftest.$ac_objext
38062 if { (ac_try="$ac_compile"
38063 case "(($ac_try" in
38064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38065   *) ac_try_echo=$ac_try;;
38066 esac
38067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38068   (eval "$ac_compile") 2>conftest.er1
38069   ac_status=$?
38070   grep -v '^ *+' conftest.er1 >conftest.err
38071   rm -f conftest.er1
38072   cat conftest.err >&5
38073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38074   (exit $ac_status); } && {
38075          test -z "$ac_c_werror_flag" ||
38076          test ! -s conftest.err
38077        } && test -s conftest.$ac_objext; then
38078
38079           cat >>confdefs.h <<\_ACEOF
38080 #define HAVE_UINTXX_T 1
38081 _ACEOF
38082
38083           { echo "$as_me:$LINENO: result: yes" >&5
38084 echo "${ECHO_T}yes" >&6; }
38085
38086 else
38087   echo "$as_me: failed program was:" >&5
38088 sed 's/^/| /' conftest.$ac_ext >&5
38089
38090
38091           { echo "$as_me:$LINENO: result: no" >&5
38092 echo "${ECHO_T}no" >&6; }
38093
38094
38095 fi
38096
38097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38098 fi
38099
38100
38101
38102
38103
38104
38105
38106
38107
38108
38109
38110
38111
38112
38113 for ac_func in \
38114    fork \
38115    getcwd \
38116    gethostname \
38117    getpid \
38118    gettimeofday \
38119    setpgid \
38120    setpgrp \
38121    setsid \
38122    signal \
38123    strerror \
38124    strncmp \
38125    strncpy \
38126    vfprintf \
38127
38128 do
38129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38130 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38133   echo $ECHO_N "(cached) $ECHO_C" >&6
38134 else
38135   cat >conftest.$ac_ext <<_ACEOF
38136 /* confdefs.h.  */
38137 _ACEOF
38138 cat confdefs.h >>conftest.$ac_ext
38139 cat >>conftest.$ac_ext <<_ACEOF
38140 /* end confdefs.h.  */
38141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38142    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38143 #define $ac_func innocuous_$ac_func
38144
38145 /* System header to define __stub macros and hopefully few prototypes,
38146     which can conflict with char $ac_func (); below.
38147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38148     <limits.h> exists even on freestanding compilers.  */
38149
38150 #ifdef __STDC__
38151 # include <limits.h>
38152 #else
38153 # include <assert.h>
38154 #endif
38155
38156 #undef $ac_func
38157
38158 /* Override any GCC internal prototype to avoid an error.
38159    Use char because int might match the return type of a GCC
38160    builtin and then its argument prototype would still apply.  */
38161 #ifdef __cplusplus
38162 extern "C"
38163 #endif
38164 char $ac_func ();
38165 /* The GNU C library defines this for functions which it implements
38166     to always fail with ENOSYS.  Some functions are actually named
38167     something starting with __ and the normal name is an alias.  */
38168 #if defined __stub_$ac_func || defined __stub___$ac_func
38169 choke me
38170 #endif
38171
38172 int
38173 main ()
38174 {
38175 return $ac_func ();
38176   ;
38177   return 0;
38178 }
38179 _ACEOF
38180 rm -f conftest.$ac_objext conftest$ac_exeext
38181 if { (ac_try="$ac_link"
38182 case "(($ac_try" in
38183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38184   *) ac_try_echo=$ac_try;;
38185 esac
38186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38187   (eval "$ac_link") 2>conftest.er1
38188   ac_status=$?
38189   grep -v '^ *+' conftest.er1 >conftest.err
38190   rm -f conftest.er1
38191   cat conftest.err >&5
38192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38193   (exit $ac_status); } && {
38194          test -z "$ac_c_werror_flag" ||
38195          test ! -s conftest.err
38196        } && test -s conftest$ac_exeext &&
38197        $as_test_x conftest$ac_exeext; then
38198   eval "$as_ac_var=yes"
38199 else
38200   echo "$as_me: failed program was:" >&5
38201 sed 's/^/| /' conftest.$ac_ext >&5
38202
38203         eval "$as_ac_var=no"
38204 fi
38205
38206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38207       conftest$ac_exeext conftest.$ac_ext
38208 fi
38209 ac_res=`eval echo '${'$as_ac_var'}'`
38210                { echo "$as_me:$LINENO: result: $ac_res" >&5
38211 echo "${ECHO_T}$ac_res" >&6; }
38212 if test `eval echo '${'$as_ac_var'}'` = yes; then
38213   cat >>confdefs.h <<_ACEOF
38214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38215 _ACEOF
38216
38217 else
38218   echo 'configure: cannot find needed function.'; exit 1
38219
38220 fi
38221 done
38222
38223
38224
38225 for ac_func in fchdir
38226 do
38227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38228 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38230 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38231   echo $ECHO_N "(cached) $ECHO_C" >&6
38232 else
38233   cat >conftest.$ac_ext <<_ACEOF
38234 /* confdefs.h.  */
38235 _ACEOF
38236 cat confdefs.h >>conftest.$ac_ext
38237 cat >>conftest.$ac_ext <<_ACEOF
38238 /* end confdefs.h.  */
38239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38240    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38241 #define $ac_func innocuous_$ac_func
38242
38243 /* System header to define __stub macros and hopefully few prototypes,
38244     which can conflict with char $ac_func (); below.
38245     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38246     <limits.h> exists even on freestanding compilers.  */
38247
38248 #ifdef __STDC__
38249 # include <limits.h>
38250 #else
38251 # include <assert.h>
38252 #endif
38253
38254 #undef $ac_func
38255
38256 /* Override any GCC internal prototype to avoid an error.
38257    Use char because int might match the return type of a GCC
38258    builtin and then its argument prototype would still apply.  */
38259 #ifdef __cplusplus
38260 extern "C"
38261 #endif
38262 char $ac_func ();
38263 /* The GNU C library defines this for functions which it implements
38264     to always fail with ENOSYS.  Some functions are actually named
38265     something starting with __ and the normal name is an alias.  */
38266 #if defined __stub_$ac_func || defined __stub___$ac_func
38267 choke me
38268 #endif
38269
38270 int
38271 main ()
38272 {
38273 return $ac_func ();
38274   ;
38275   return 0;
38276 }
38277 _ACEOF
38278 rm -f conftest.$ac_objext conftest$ac_exeext
38279 if { (ac_try="$ac_link"
38280 case "(($ac_try" in
38281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38282   *) ac_try_echo=$ac_try;;
38283 esac
38284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38285   (eval "$ac_link") 2>conftest.er1
38286   ac_status=$?
38287   grep -v '^ *+' conftest.er1 >conftest.err
38288   rm -f conftest.er1
38289   cat conftest.err >&5
38290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38291   (exit $ac_status); } && {
38292          test -z "$ac_c_werror_flag" ||
38293          test ! -s conftest.err
38294        } && test -s conftest$ac_exeext &&
38295        $as_test_x conftest$ac_exeext; then
38296   eval "$as_ac_var=yes"
38297 else
38298   echo "$as_me: failed program was:" >&5
38299 sed 's/^/| /' conftest.$ac_ext >&5
38300
38301         eval "$as_ac_var=no"
38302 fi
38303
38304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38305       conftest$ac_exeext conftest.$ac_ext
38306 fi
38307 ac_res=`eval echo '${'$as_ac_var'}'`
38308                { echo "$as_me:$LINENO: result: $ac_res" >&5
38309 echo "${ECHO_T}$ac_res" >&6; }
38310 if test `eval echo '${'$as_ac_var'}'` = yes; then
38311   cat >>confdefs.h <<_ACEOF
38312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38313 _ACEOF
38314  cat >>confdefs.h <<\_ACEOF
38315 #define HAVE_FCHDIR 1
38316 _ACEOF
38317
38318 fi
38319 done
38320
38321
38322 for ac_func in strtoll
38323 do
38324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38325 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38328   echo $ECHO_N "(cached) $ECHO_C" >&6
38329 else
38330   cat >conftest.$ac_ext <<_ACEOF
38331 /* confdefs.h.  */
38332 _ACEOF
38333 cat confdefs.h >>conftest.$ac_ext
38334 cat >>conftest.$ac_ext <<_ACEOF
38335 /* end confdefs.h.  */
38336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38337    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38338 #define $ac_func innocuous_$ac_func
38339
38340 /* System header to define __stub macros and hopefully few prototypes,
38341     which can conflict with char $ac_func (); below.
38342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38343     <limits.h> exists even on freestanding compilers.  */
38344
38345 #ifdef __STDC__
38346 # include <limits.h>
38347 #else
38348 # include <assert.h>
38349 #endif
38350
38351 #undef $ac_func
38352
38353 /* Override any GCC internal prototype to avoid an error.
38354    Use char because int might match the return type of a GCC
38355    builtin and then its argument prototype would still apply.  */
38356 #ifdef __cplusplus
38357 extern "C"
38358 #endif
38359 char $ac_func ();
38360 /* The GNU C library defines this for functions which it implements
38361     to always fail with ENOSYS.  Some functions are actually named
38362     something starting with __ and the normal name is an alias.  */
38363 #if defined __stub_$ac_func || defined __stub___$ac_func
38364 choke me
38365 #endif
38366
38367 int
38368 main ()
38369 {
38370 return $ac_func ();
38371   ;
38372   return 0;
38373 }
38374 _ACEOF
38375 rm -f conftest.$ac_objext conftest$ac_exeext
38376 if { (ac_try="$ac_link"
38377 case "(($ac_try" in
38378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38379   *) ac_try_echo=$ac_try;;
38380 esac
38381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38382   (eval "$ac_link") 2>conftest.er1
38383   ac_status=$?
38384   grep -v '^ *+' conftest.er1 >conftest.err
38385   rm -f conftest.er1
38386   cat conftest.err >&5
38387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38388   (exit $ac_status); } && {
38389          test -z "$ac_c_werror_flag" ||
38390          test ! -s conftest.err
38391        } && test -s conftest$ac_exeext &&
38392        $as_test_x conftest$ac_exeext; then
38393   eval "$as_ac_var=yes"
38394 else
38395   echo "$as_me: failed program was:" >&5
38396 sed 's/^/| /' conftest.$ac_ext >&5
38397
38398         eval "$as_ac_var=no"
38399 fi
38400
38401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38402       conftest$ac_exeext conftest.$ac_ext
38403 fi
38404 ac_res=`eval echo '${'$as_ac_var'}'`
38405                { echo "$as_me:$LINENO: result: $ac_res" >&5
38406 echo "${ECHO_T}$ac_res" >&6; }
38407 if test `eval echo '${'$as_ac_var'}'` = yes; then
38408   cat >>confdefs.h <<_ACEOF
38409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38410 _ACEOF
38411  cat >>confdefs.h <<\_ACEOF
38412 #define HAVE_STRTOLL 1
38413 _ACEOF
38414
38415 fi
38416 done
38417
38418
38419 for ac_func in posix_fadvise
38420 do
38421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38422 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38424 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38425   echo $ECHO_N "(cached) $ECHO_C" >&6
38426 else
38427   cat >conftest.$ac_ext <<_ACEOF
38428 /* confdefs.h.  */
38429 _ACEOF
38430 cat confdefs.h >>conftest.$ac_ext
38431 cat >>conftest.$ac_ext <<_ACEOF
38432 /* end confdefs.h.  */
38433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38434    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38435 #define $ac_func innocuous_$ac_func
38436
38437 /* System header to define __stub macros and hopefully few prototypes,
38438     which can conflict with char $ac_func (); below.
38439     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38440     <limits.h> exists even on freestanding compilers.  */
38441
38442 #ifdef __STDC__
38443 # include <limits.h>
38444 #else
38445 # include <assert.h>
38446 #endif
38447
38448 #undef $ac_func
38449
38450 /* Override any GCC internal prototype to avoid an error.
38451    Use char because int might match the return type of a GCC
38452    builtin and then its argument prototype would still apply.  */
38453 #ifdef __cplusplus
38454 extern "C"
38455 #endif
38456 char $ac_func ();
38457 /* The GNU C library defines this for functions which it implements
38458     to always fail with ENOSYS.  Some functions are actually named
38459     something starting with __ and the normal name is an alias.  */
38460 #if defined __stub_$ac_func || defined __stub___$ac_func
38461 choke me
38462 #endif
38463
38464 int
38465 main ()
38466 {
38467 return $ac_func ();
38468   ;
38469   return 0;
38470 }
38471 _ACEOF
38472 rm -f conftest.$ac_objext conftest$ac_exeext
38473 if { (ac_try="$ac_link"
38474 case "(($ac_try" in
38475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38476   *) ac_try_echo=$ac_try;;
38477 esac
38478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38479   (eval "$ac_link") 2>conftest.er1
38480   ac_status=$?
38481   grep -v '^ *+' conftest.er1 >conftest.err
38482   rm -f conftest.er1
38483   cat conftest.err >&5
38484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38485   (exit $ac_status); } && {
38486          test -z "$ac_c_werror_flag" ||
38487          test ! -s conftest.err
38488        } && test -s conftest$ac_exeext &&
38489        $as_test_x conftest$ac_exeext; then
38490   eval "$as_ac_var=yes"
38491 else
38492   echo "$as_me: failed program was:" >&5
38493 sed 's/^/| /' conftest.$ac_ext >&5
38494
38495         eval "$as_ac_var=no"
38496 fi
38497
38498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38499       conftest$ac_exeext conftest.$ac_ext
38500 fi
38501 ac_res=`eval echo '${'$as_ac_var'}'`
38502                { echo "$as_me:$LINENO: result: $ac_res" >&5
38503 echo "${ECHO_T}$ac_res" >&6; }
38504 if test `eval echo '${'$as_ac_var'}'` = yes; then
38505   cat >>confdefs.h <<_ACEOF
38506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38507 _ACEOF
38508
38509 fi
38510 done
38511
38512
38513 for ac_func in fdatasync
38514 do
38515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38516 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38518 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38519   echo $ECHO_N "(cached) $ECHO_C" >&6
38520 else
38521   cat >conftest.$ac_ext <<_ACEOF
38522 /* confdefs.h.  */
38523 _ACEOF
38524 cat confdefs.h >>conftest.$ac_ext
38525 cat >>conftest.$ac_ext <<_ACEOF
38526 /* end confdefs.h.  */
38527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38528    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38529 #define $ac_func innocuous_$ac_func
38530
38531 /* System header to define __stub macros and hopefully few prototypes,
38532     which can conflict with char $ac_func (); below.
38533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38534     <limits.h> exists even on freestanding compilers.  */
38535
38536 #ifdef __STDC__
38537 # include <limits.h>
38538 #else
38539 # include <assert.h>
38540 #endif
38541
38542 #undef $ac_func
38543
38544 /* Override any GCC internal prototype to avoid an error.
38545    Use char because int might match the return type of a GCC
38546    builtin and then its argument prototype would still apply.  */
38547 #ifdef __cplusplus
38548 extern "C"
38549 #endif
38550 char $ac_func ();
38551 /* The GNU C library defines this for functions which it implements
38552     to always fail with ENOSYS.  Some functions are actually named
38553     something starting with __ and the normal name is an alias.  */
38554 #if defined __stub_$ac_func || defined __stub___$ac_func
38555 choke me
38556 #endif
38557
38558 int
38559 main ()
38560 {
38561 return $ac_func ();
38562   ;
38563   return 0;
38564 }
38565 _ACEOF
38566 rm -f conftest.$ac_objext conftest$ac_exeext
38567 if { (ac_try="$ac_link"
38568 case "(($ac_try" in
38569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38570   *) ac_try_echo=$ac_try;;
38571 esac
38572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38573   (eval "$ac_link") 2>conftest.er1
38574   ac_status=$?
38575   grep -v '^ *+' conftest.er1 >conftest.err
38576   rm -f conftest.er1
38577   cat conftest.err >&5
38578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38579   (exit $ac_status); } && {
38580          test -z "$ac_c_werror_flag" ||
38581          test ! -s conftest.err
38582        } && test -s conftest$ac_exeext &&
38583        $as_test_x conftest$ac_exeext; then
38584   eval "$as_ac_var=yes"
38585 else
38586   echo "$as_me: failed program was:" >&5
38587 sed 's/^/| /' conftest.$ac_ext >&5
38588
38589         eval "$as_ac_var=no"
38590 fi
38591
38592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38593       conftest$ac_exeext conftest.$ac_ext
38594 fi
38595 ac_res=`eval echo '${'$as_ac_var'}'`
38596                { echo "$as_me:$LINENO: result: $ac_res" >&5
38597 echo "${ECHO_T}$ac_res" >&6; }
38598 if test `eval echo '${'$as_ac_var'}'` = yes; then
38599   cat >>confdefs.h <<_ACEOF
38600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38601 _ACEOF
38602
38603 fi
38604 done
38605
38606
38607
38608 for ac_func in chflags
38609 do
38610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38611 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38613 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38614   echo $ECHO_N "(cached) $ECHO_C" >&6
38615 else
38616   cat >conftest.$ac_ext <<_ACEOF
38617 /* confdefs.h.  */
38618 _ACEOF
38619 cat confdefs.h >>conftest.$ac_ext
38620 cat >>conftest.$ac_ext <<_ACEOF
38621 /* end confdefs.h.  */
38622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38623    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38624 #define $ac_func innocuous_$ac_func
38625
38626 /* System header to define __stub macros and hopefully few prototypes,
38627     which can conflict with char $ac_func (); below.
38628     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38629     <limits.h> exists even on freestanding compilers.  */
38630
38631 #ifdef __STDC__
38632 # include <limits.h>
38633 #else
38634 # include <assert.h>
38635 #endif
38636
38637 #undef $ac_func
38638
38639 /* Override any GCC internal prototype to avoid an error.
38640    Use char because int might match the return type of a GCC
38641    builtin and then its argument prototype would still apply.  */
38642 #ifdef __cplusplus
38643 extern "C"
38644 #endif
38645 char $ac_func ();
38646 /* The GNU C library defines this for functions which it implements
38647     to always fail with ENOSYS.  Some functions are actually named
38648     something starting with __ and the normal name is an alias.  */
38649 #if defined __stub_$ac_func || defined __stub___$ac_func
38650 choke me
38651 #endif
38652
38653 int
38654 main ()
38655 {
38656 return $ac_func ();
38657   ;
38658   return 0;
38659 }
38660 _ACEOF
38661 rm -f conftest.$ac_objext conftest$ac_exeext
38662 if { (ac_try="$ac_link"
38663 case "(($ac_try" in
38664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38665   *) ac_try_echo=$ac_try;;
38666 esac
38667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38668   (eval "$ac_link") 2>conftest.er1
38669   ac_status=$?
38670   grep -v '^ *+' conftest.er1 >conftest.err
38671   rm -f conftest.er1
38672   cat conftest.err >&5
38673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38674   (exit $ac_status); } && {
38675          test -z "$ac_c_werror_flag" ||
38676          test ! -s conftest.err
38677        } && test -s conftest$ac_exeext &&
38678        $as_test_x conftest$ac_exeext; then
38679   eval "$as_ac_var=yes"
38680 else
38681   echo "$as_me: failed program was:" >&5
38682 sed 's/^/| /' conftest.$ac_ext >&5
38683
38684         eval "$as_ac_var=no"
38685 fi
38686
38687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38688       conftest$ac_exeext conftest.$ac_ext
38689 fi
38690 ac_res=`eval echo '${'$as_ac_var'}'`
38691                { echo "$as_me:$LINENO: result: $ac_res" >&5
38692 echo "${ECHO_T}$ac_res" >&6; }
38693 if test `eval echo '${'$as_ac_var'}'` = yes; then
38694   cat >>confdefs.h <<_ACEOF
38695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38696 _ACEOF
38697
38698 fi
38699 done
38700
38701
38702
38703
38704
38705
38706 for ac_func in snprintf vsnprintf gethostid fseeko
38707 do
38708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38709 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38711 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38712   echo $ECHO_N "(cached) $ECHO_C" >&6
38713 else
38714   cat >conftest.$ac_ext <<_ACEOF
38715 /* confdefs.h.  */
38716 _ACEOF
38717 cat confdefs.h >>conftest.$ac_ext
38718 cat >>conftest.$ac_ext <<_ACEOF
38719 /* end confdefs.h.  */
38720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38721    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38722 #define $ac_func innocuous_$ac_func
38723
38724 /* System header to define __stub macros and hopefully few prototypes,
38725     which can conflict with char $ac_func (); below.
38726     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38727     <limits.h> exists even on freestanding compilers.  */
38728
38729 #ifdef __STDC__
38730 # include <limits.h>
38731 #else
38732 # include <assert.h>
38733 #endif
38734
38735 #undef $ac_func
38736
38737 /* Override any GCC internal prototype to avoid an error.
38738    Use char because int might match the return type of a GCC
38739    builtin and then its argument prototype would still apply.  */
38740 #ifdef __cplusplus
38741 extern "C"
38742 #endif
38743 char $ac_func ();
38744 /* The GNU C library defines this for functions which it implements
38745     to always fail with ENOSYS.  Some functions are actually named
38746     something starting with __ and the normal name is an alias.  */
38747 #if defined __stub_$ac_func || defined __stub___$ac_func
38748 choke me
38749 #endif
38750
38751 int
38752 main ()
38753 {
38754 return $ac_func ();
38755   ;
38756   return 0;
38757 }
38758 _ACEOF
38759 rm -f conftest.$ac_objext conftest$ac_exeext
38760 if { (ac_try="$ac_link"
38761 case "(($ac_try" in
38762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38763   *) ac_try_echo=$ac_try;;
38764 esac
38765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38766   (eval "$ac_link") 2>conftest.er1
38767   ac_status=$?
38768   grep -v '^ *+' conftest.er1 >conftest.err
38769   rm -f conftest.er1
38770   cat conftest.err >&5
38771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38772   (exit $ac_status); } && {
38773          test -z "$ac_c_werror_flag" ||
38774          test ! -s conftest.err
38775        } && test -s conftest$ac_exeext &&
38776        $as_test_x conftest$ac_exeext; then
38777   eval "$as_ac_var=yes"
38778 else
38779   echo "$as_me: failed program was:" >&5
38780 sed 's/^/| /' conftest.$ac_ext >&5
38781
38782         eval "$as_ac_var=no"
38783 fi
38784
38785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38786       conftest$ac_exeext conftest.$ac_ext
38787 fi
38788 ac_res=`eval echo '${'$as_ac_var'}'`
38789                { echo "$as_me:$LINENO: result: $ac_res" >&5
38790 echo "${ECHO_T}$ac_res" >&6; }
38791 if test `eval echo '${'$as_ac_var'}'` = yes; then
38792   cat >>confdefs.h <<_ACEOF
38793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38794 _ACEOF
38795
38796 fi
38797 done
38798
38799
38800 { echo "$as_me:$LINENO: checking for va_copy" >&5
38801 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38802 if test "${ba_cv_va_copy+set}" = set; then
38803   echo $ECHO_N "(cached) $ECHO_C" >&6
38804 else
38805
38806        cat >conftest.$ac_ext <<_ACEOF
38807 /* confdefs.h.  */
38808 _ACEOF
38809 cat confdefs.h >>conftest.$ac_ext
38810 cat >>conftest.$ac_ext <<_ACEOF
38811 /* end confdefs.h.  */
38812
38813               #include <stdarg.h>
38814               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38815               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38816
38817 int
38818 main ()
38819 {
38820
38821               call_use_va_copy(1,2,3)
38822
38823   ;
38824   return 0;
38825 }
38826 _ACEOF
38827 rm -f conftest.$ac_objext conftest$ac_exeext
38828 if { (ac_try="$ac_link"
38829 case "(($ac_try" in
38830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38831   *) ac_try_echo=$ac_try;;
38832 esac
38833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38834   (eval "$ac_link") 2>conftest.er1
38835   ac_status=$?
38836   grep -v '^ *+' conftest.er1 >conftest.err
38837   rm -f conftest.er1
38838   cat conftest.err >&5
38839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38840   (exit $ac_status); } && {
38841          test -z "$ac_c_werror_flag" ||
38842          test ! -s conftest.err
38843        } && test -s conftest$ac_exeext &&
38844        $as_test_x conftest$ac_exeext; then
38845
38846               ba_cv_va_copy=yes,
38847
38848 else
38849   echo "$as_me: failed program was:" >&5
38850 sed 's/^/| /' conftest.$ac_ext >&5
38851
38852
38853               ba_cv_va_copy=no
38854
38855
38856 fi
38857
38858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38859       conftest$ac_exeext conftest.$ac_ext
38860
38861
38862 fi
38863 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38864 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38865 test $ba_cv_va_copy = yes &&
38866 cat >>confdefs.h <<\_ACEOF
38867 #define HAVE_VA_COPY 1
38868 _ACEOF
38869
38870
38871
38872
38873
38874
38875 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38876 do
38877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38878 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38881   echo $ECHO_N "(cached) $ECHO_C" >&6
38882 else
38883   cat >conftest.$ac_ext <<_ACEOF
38884 /* confdefs.h.  */
38885 _ACEOF
38886 cat confdefs.h >>conftest.$ac_ext
38887 cat >>conftest.$ac_ext <<_ACEOF
38888 /* end confdefs.h.  */
38889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38890    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38891 #define $ac_func innocuous_$ac_func
38892
38893 /* System header to define __stub macros and hopefully few prototypes,
38894     which can conflict with char $ac_func (); below.
38895     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38896     <limits.h> exists even on freestanding compilers.  */
38897
38898 #ifdef __STDC__
38899 # include <limits.h>
38900 #else
38901 # include <assert.h>
38902 #endif
38903
38904 #undef $ac_func
38905
38906 /* Override any GCC internal prototype to avoid an error.
38907    Use char because int might match the return type of a GCC
38908    builtin and then its argument prototype would still apply.  */
38909 #ifdef __cplusplus
38910 extern "C"
38911 #endif
38912 char $ac_func ();
38913 /* The GNU C library defines this for functions which it implements
38914     to always fail with ENOSYS.  Some functions are actually named
38915     something starting with __ and the normal name is an alias.  */
38916 #if defined __stub_$ac_func || defined __stub___$ac_func
38917 choke me
38918 #endif
38919
38920 int
38921 main ()
38922 {
38923 return $ac_func ();
38924   ;
38925   return 0;
38926 }
38927 _ACEOF
38928 rm -f conftest.$ac_objext conftest$ac_exeext
38929 if { (ac_try="$ac_link"
38930 case "(($ac_try" in
38931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38932   *) ac_try_echo=$ac_try;;
38933 esac
38934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38935   (eval "$ac_link") 2>conftest.er1
38936   ac_status=$?
38937   grep -v '^ *+' conftest.er1 >conftest.err
38938   rm -f conftest.er1
38939   cat conftest.err >&5
38940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38941   (exit $ac_status); } && {
38942          test -z "$ac_c_werror_flag" ||
38943          test ! -s conftest.err
38944        } && test -s conftest$ac_exeext &&
38945        $as_test_x conftest$ac_exeext; then
38946   eval "$as_ac_var=yes"
38947 else
38948   echo "$as_me: failed program was:" >&5
38949 sed 's/^/| /' conftest.$ac_ext >&5
38950
38951         eval "$as_ac_var=no"
38952 fi
38953
38954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38955       conftest$ac_exeext conftest.$ac_ext
38956 fi
38957 ac_res=`eval echo '${'$as_ac_var'}'`
38958                { echo "$as_me:$LINENO: result: $ac_res" >&5
38959 echo "${ECHO_T}$ac_res" >&6; }
38960 if test `eval echo '${'$as_ac_var'}'` = yes; then
38961   cat >>confdefs.h <<_ACEOF
38962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38963 _ACEOF
38964
38965 fi
38966 done
38967
38968
38969 # If resolver functions are not in libc check for -lnsl or -lresolv.
38970 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38971 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38972 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38973   echo $ECHO_N "(cached) $ECHO_C" >&6
38974 else
38975   cat >conftest.$ac_ext <<_ACEOF
38976 /* confdefs.h.  */
38977 _ACEOF
38978 cat confdefs.h >>conftest.$ac_ext
38979 cat >>conftest.$ac_ext <<_ACEOF
38980 /* end confdefs.h.  */
38981 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38982    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38983 #define gethostbyname_r innocuous_gethostbyname_r
38984
38985 /* System header to define __stub macros and hopefully few prototypes,
38986     which can conflict with char gethostbyname_r (); below.
38987     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38988     <limits.h> exists even on freestanding compilers.  */
38989
38990 #ifdef __STDC__
38991 # include <limits.h>
38992 #else
38993 # include <assert.h>
38994 #endif
38995
38996 #undef gethostbyname_r
38997
38998 /* Override any GCC internal prototype to avoid an error.
38999    Use char because int might match the return type of a GCC
39000    builtin and then its argument prototype would still apply.  */
39001 #ifdef __cplusplus
39002 extern "C"
39003 #endif
39004 char gethostbyname_r ();
39005 /* The GNU C library defines this for functions which it implements
39006     to always fail with ENOSYS.  Some functions are actually named
39007     something starting with __ and the normal name is an alias.  */
39008 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
39009 choke me
39010 #endif
39011
39012 int
39013 main ()
39014 {
39015 return gethostbyname_r ();
39016   ;
39017   return 0;
39018 }
39019 _ACEOF
39020 rm -f conftest.$ac_objext conftest$ac_exeext
39021 if { (ac_try="$ac_link"
39022 case "(($ac_try" in
39023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39024   *) ac_try_echo=$ac_try;;
39025 esac
39026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39027   (eval "$ac_link") 2>conftest.er1
39028   ac_status=$?
39029   grep -v '^ *+' conftest.er1 >conftest.err
39030   rm -f conftest.er1
39031   cat conftest.err >&5
39032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39033   (exit $ac_status); } && {
39034          test -z "$ac_c_werror_flag" ||
39035          test ! -s conftest.err
39036        } && test -s conftest$ac_exeext &&
39037        $as_test_x conftest$ac_exeext; then
39038   ac_cv_func_gethostbyname_r=yes
39039 else
39040   echo "$as_me: failed program was:" >&5
39041 sed 's/^/| /' conftest.$ac_ext >&5
39042
39043         ac_cv_func_gethostbyname_r=no
39044 fi
39045
39046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39047       conftest$ac_exeext conftest.$ac_ext
39048 fi
39049 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
39050 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
39051 if test $ac_cv_func_gethostbyname_r = yes; then
39052   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
39053 echo "${ECHO_T}using libc's resolver" >&6; }
39054 else
39055
39056 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
39057 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
39058 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
39059   echo $ECHO_N "(cached) $ECHO_C" >&6
39060 else
39061   ac_check_lib_save_LIBS=$LIBS
39062 LIBS="-lnsl  $LIBS"
39063 cat >conftest.$ac_ext <<_ACEOF
39064 /* confdefs.h.  */
39065 _ACEOF
39066 cat confdefs.h >>conftest.$ac_ext
39067 cat >>conftest.$ac_ext <<_ACEOF
39068 /* end confdefs.h.  */
39069
39070 /* Override any GCC internal prototype to avoid an error.
39071    Use char because int might match the return type of a GCC
39072    builtin and then its argument prototype would still apply.  */
39073 #ifdef __cplusplus
39074 extern "C"
39075 #endif
39076 char gethostbyname_r ();
39077 int
39078 main ()
39079 {
39080 return gethostbyname_r ();
39081   ;
39082   return 0;
39083 }
39084 _ACEOF
39085 rm -f conftest.$ac_objext conftest$ac_exeext
39086 if { (ac_try="$ac_link"
39087 case "(($ac_try" in
39088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39089   *) ac_try_echo=$ac_try;;
39090 esac
39091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39092   (eval "$ac_link") 2>conftest.er1
39093   ac_status=$?
39094   grep -v '^ *+' conftest.er1 >conftest.err
39095   rm -f conftest.er1
39096   cat conftest.err >&5
39097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39098   (exit $ac_status); } && {
39099          test -z "$ac_c_werror_flag" ||
39100          test ! -s conftest.err
39101        } && test -s conftest$ac_exeext &&
39102        $as_test_x conftest$ac_exeext; then
39103   ac_cv_lib_nsl_gethostbyname_r=yes
39104 else
39105   echo "$as_me: failed program was:" >&5
39106 sed 's/^/| /' conftest.$ac_ext >&5
39107
39108         ac_cv_lib_nsl_gethostbyname_r=no
39109 fi
39110
39111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39112       conftest$ac_exeext conftest.$ac_ext
39113 LIBS=$ac_check_lib_save_LIBS
39114 fi
39115 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
39116 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
39117 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
39118   cat >>confdefs.h <<_ACEOF
39119 #define HAVE_LIBNSL 1
39120 _ACEOF
39121
39122   LIBS="-lnsl $LIBS"
39123
39124 fi
39125
39126
39127 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
39128 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
39129 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
39130   echo $ECHO_N "(cached) $ECHO_C" >&6
39131 else
39132   ac_check_lib_save_LIBS=$LIBS
39133 LIBS="-lresolv  $LIBS"
39134 cat >conftest.$ac_ext <<_ACEOF
39135 /* confdefs.h.  */
39136 _ACEOF
39137 cat confdefs.h >>conftest.$ac_ext
39138 cat >>conftest.$ac_ext <<_ACEOF
39139 /* end confdefs.h.  */
39140
39141 /* Override any GCC internal prototype to avoid an error.
39142    Use char because int might match the return type of a GCC
39143    builtin and then its argument prototype would still apply.  */
39144 #ifdef __cplusplus
39145 extern "C"
39146 #endif
39147 char gethostbyname_r ();
39148 int
39149 main ()
39150 {
39151 return gethostbyname_r ();
39152   ;
39153   return 0;
39154 }
39155 _ACEOF
39156 rm -f conftest.$ac_objext conftest$ac_exeext
39157 if { (ac_try="$ac_link"
39158 case "(($ac_try" in
39159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39160   *) ac_try_echo=$ac_try;;
39161 esac
39162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39163   (eval "$ac_link") 2>conftest.er1
39164   ac_status=$?
39165   grep -v '^ *+' conftest.er1 >conftest.err
39166   rm -f conftest.er1
39167   cat conftest.err >&5
39168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39169   (exit $ac_status); } && {
39170          test -z "$ac_c_werror_flag" ||
39171          test ! -s conftest.err
39172        } && test -s conftest$ac_exeext &&
39173        $as_test_x conftest$ac_exeext; then
39174   ac_cv_lib_resolv_gethostbyname_r=yes
39175 else
39176   echo "$as_me: failed program was:" >&5
39177 sed 's/^/| /' conftest.$ac_ext >&5
39178
39179         ac_cv_lib_resolv_gethostbyname_r=no
39180 fi
39181
39182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39183       conftest$ac_exeext conftest.$ac_ext
39184 LIBS=$ac_check_lib_save_LIBS
39185 fi
39186 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
39187 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
39188 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
39189   cat >>confdefs.h <<_ACEOF
39190 #define HAVE_LIBRESOLV 1
39191 _ACEOF
39192
39193   LIBS="-lresolv $LIBS"
39194
39195 fi
39196
39197 fi
39198
39199
39200
39201 for ac_func in inet_pton
39202 do
39203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39204 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39207   echo $ECHO_N "(cached) $ECHO_C" >&6
39208 else
39209   cat >conftest.$ac_ext <<_ACEOF
39210 /* confdefs.h.  */
39211 _ACEOF
39212 cat confdefs.h >>conftest.$ac_ext
39213 cat >>conftest.$ac_ext <<_ACEOF
39214 /* end confdefs.h.  */
39215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39216    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39217 #define $ac_func innocuous_$ac_func
39218
39219 /* System header to define __stub macros and hopefully few prototypes,
39220     which can conflict with char $ac_func (); below.
39221     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39222     <limits.h> exists even on freestanding compilers.  */
39223
39224 #ifdef __STDC__
39225 # include <limits.h>
39226 #else
39227 # include <assert.h>
39228 #endif
39229
39230 #undef $ac_func
39231
39232 /* Override any GCC internal prototype to avoid an error.
39233    Use char because int might match the return type of a GCC
39234    builtin and then its argument prototype would still apply.  */
39235 #ifdef __cplusplus
39236 extern "C"
39237 #endif
39238 char $ac_func ();
39239 /* The GNU C library defines this for functions which it implements
39240     to always fail with ENOSYS.  Some functions are actually named
39241     something starting with __ and the normal name is an alias.  */
39242 #if defined __stub_$ac_func || defined __stub___$ac_func
39243 choke me
39244 #endif
39245
39246 int
39247 main ()
39248 {
39249 return $ac_func ();
39250   ;
39251   return 0;
39252 }
39253 _ACEOF
39254 rm -f conftest.$ac_objext conftest$ac_exeext
39255 if { (ac_try="$ac_link"
39256 case "(($ac_try" in
39257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39258   *) ac_try_echo=$ac_try;;
39259 esac
39260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39261   (eval "$ac_link") 2>conftest.er1
39262   ac_status=$?
39263   grep -v '^ *+' conftest.er1 >conftest.err
39264   rm -f conftest.er1
39265   cat conftest.err >&5
39266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39267   (exit $ac_status); } && {
39268          test -z "$ac_c_werror_flag" ||
39269          test ! -s conftest.err
39270        } && test -s conftest$ac_exeext &&
39271        $as_test_x conftest$ac_exeext; then
39272   eval "$as_ac_var=yes"
39273 else
39274   echo "$as_me: failed program was:" >&5
39275 sed 's/^/| /' conftest.$ac_ext >&5
39276
39277         eval "$as_ac_var=no"
39278 fi
39279
39280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39281       conftest$ac_exeext conftest.$ac_ext
39282 fi
39283 ac_res=`eval echo '${'$as_ac_var'}'`
39284                { echo "$as_me:$LINENO: result: $ac_res" >&5
39285 echo "${ECHO_T}$ac_res" >&6; }
39286 if test `eval echo '${'$as_ac_var'}'` = yes; then
39287   cat >>confdefs.h <<_ACEOF
39288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39289 _ACEOF
39290  cat >>confdefs.h <<\_ACEOF
39291 #define HAVE_INET_PTON 1
39292 _ACEOF
39293
39294 fi
39295 done
39296
39297
39298 for ac_func in inet_ntop
39299 do
39300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39304   echo $ECHO_N "(cached) $ECHO_C" >&6
39305 else
39306   cat >conftest.$ac_ext <<_ACEOF
39307 /* confdefs.h.  */
39308 _ACEOF
39309 cat confdefs.h >>conftest.$ac_ext
39310 cat >>conftest.$ac_ext <<_ACEOF
39311 /* end confdefs.h.  */
39312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39313    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39314 #define $ac_func innocuous_$ac_func
39315
39316 /* System header to define __stub macros and hopefully few prototypes,
39317     which can conflict with char $ac_func (); below.
39318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39319     <limits.h> exists even on freestanding compilers.  */
39320
39321 #ifdef __STDC__
39322 # include <limits.h>
39323 #else
39324 # include <assert.h>
39325 #endif
39326
39327 #undef $ac_func
39328
39329 /* Override any GCC internal prototype to avoid an error.
39330    Use char because int might match the return type of a GCC
39331    builtin and then its argument prototype would still apply.  */
39332 #ifdef __cplusplus
39333 extern "C"
39334 #endif
39335 char $ac_func ();
39336 /* The GNU C library defines this for functions which it implements
39337     to always fail with ENOSYS.  Some functions are actually named
39338     something starting with __ and the normal name is an alias.  */
39339 #if defined __stub_$ac_func || defined __stub___$ac_func
39340 choke me
39341 #endif
39342
39343 int
39344 main ()
39345 {
39346 return $ac_func ();
39347   ;
39348   return 0;
39349 }
39350 _ACEOF
39351 rm -f conftest.$ac_objext conftest$ac_exeext
39352 if { (ac_try="$ac_link"
39353 case "(($ac_try" in
39354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39355   *) ac_try_echo=$ac_try;;
39356 esac
39357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39358   (eval "$ac_link") 2>conftest.er1
39359   ac_status=$?
39360   grep -v '^ *+' conftest.er1 >conftest.err
39361   rm -f conftest.er1
39362   cat conftest.err >&5
39363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39364   (exit $ac_status); } && {
39365          test -z "$ac_c_werror_flag" ||
39366          test ! -s conftest.err
39367        } && test -s conftest$ac_exeext &&
39368        $as_test_x conftest$ac_exeext; then
39369   eval "$as_ac_var=yes"
39370 else
39371   echo "$as_me: failed program was:" >&5
39372 sed 's/^/| /' conftest.$ac_ext >&5
39373
39374         eval "$as_ac_var=no"
39375 fi
39376
39377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39378       conftest$ac_exeext conftest.$ac_ext
39379 fi
39380 ac_res=`eval echo '${'$as_ac_var'}'`
39381                { echo "$as_me:$LINENO: result: $ac_res" >&5
39382 echo "${ECHO_T}$ac_res" >&6; }
39383 if test `eval echo '${'$as_ac_var'}'` = yes; then
39384   cat >>confdefs.h <<_ACEOF
39385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39386 _ACEOF
39387  cat >>confdefs.h <<\_ACEOF
39388 #define HAVE_INET_NTOP 1
39389 _ACEOF
39390
39391 fi
39392 done
39393
39394
39395 for ac_func in gethostbyname2
39396 do
39397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39398 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39400 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39401   echo $ECHO_N "(cached) $ECHO_C" >&6
39402 else
39403   cat >conftest.$ac_ext <<_ACEOF
39404 /* confdefs.h.  */
39405 _ACEOF
39406 cat confdefs.h >>conftest.$ac_ext
39407 cat >>conftest.$ac_ext <<_ACEOF
39408 /* end confdefs.h.  */
39409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39410    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39411 #define $ac_func innocuous_$ac_func
39412
39413 /* System header to define __stub macros and hopefully few prototypes,
39414     which can conflict with char $ac_func (); below.
39415     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39416     <limits.h> exists even on freestanding compilers.  */
39417
39418 #ifdef __STDC__
39419 # include <limits.h>
39420 #else
39421 # include <assert.h>
39422 #endif
39423
39424 #undef $ac_func
39425
39426 /* Override any GCC internal prototype to avoid an error.
39427    Use char because int might match the return type of a GCC
39428    builtin and then its argument prototype would still apply.  */
39429 #ifdef __cplusplus
39430 extern "C"
39431 #endif
39432 char $ac_func ();
39433 /* The GNU C library defines this for functions which it implements
39434     to always fail with ENOSYS.  Some functions are actually named
39435     something starting with __ and the normal name is an alias.  */
39436 #if defined __stub_$ac_func || defined __stub___$ac_func
39437 choke me
39438 #endif
39439
39440 int
39441 main ()
39442 {
39443 return $ac_func ();
39444   ;
39445   return 0;
39446 }
39447 _ACEOF
39448 rm -f conftest.$ac_objext conftest$ac_exeext
39449 if { (ac_try="$ac_link"
39450 case "(($ac_try" in
39451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39452   *) ac_try_echo=$ac_try;;
39453 esac
39454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39455   (eval "$ac_link") 2>conftest.er1
39456   ac_status=$?
39457   grep -v '^ *+' conftest.er1 >conftest.err
39458   rm -f conftest.er1
39459   cat conftest.err >&5
39460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39461   (exit $ac_status); } && {
39462          test -z "$ac_c_werror_flag" ||
39463          test ! -s conftest.err
39464        } && test -s conftest$ac_exeext &&
39465        $as_test_x conftest$ac_exeext; then
39466   eval "$as_ac_var=yes"
39467 else
39468   echo "$as_me: failed program was:" >&5
39469 sed 's/^/| /' conftest.$ac_ext >&5
39470
39471         eval "$as_ac_var=no"
39472 fi
39473
39474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39475       conftest$ac_exeext conftest.$ac_ext
39476 fi
39477 ac_res=`eval echo '${'$as_ac_var'}'`
39478                { echo "$as_me:$LINENO: result: $ac_res" >&5
39479 echo "${ECHO_T}$ac_res" >&6; }
39480 if test `eval echo '${'$as_ac_var'}'` = yes; then
39481   cat >>confdefs.h <<_ACEOF
39482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39483 _ACEOF
39484  cat >>confdefs.h <<\_ACEOF
39485 #define HAVE_GETHOSTBYNAME2 1
39486 _ACEOF
39487
39488 fi
39489 done
39490
39491
39492 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39493 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39494 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39495   echo $ECHO_N "(cached) $ECHO_C" >&6
39496 else
39497
39498        cat >conftest.$ac_ext <<_ACEOF
39499 /* confdefs.h.  */
39500 _ACEOF
39501 cat confdefs.h >>conftest.$ac_ext
39502 cat >>conftest.$ac_ext <<_ACEOF
39503 /* end confdefs.h.  */
39504
39505               #include <sys/socket.h>
39506
39507 int
39508 main ()
39509 {
39510
39511               struct sockaddr s; s.sa_len;
39512
39513   ;
39514   return 0;
39515 }
39516 _ACEOF
39517 rm -f conftest.$ac_objext
39518 if { (ac_try="$ac_compile"
39519 case "(($ac_try" in
39520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39521   *) ac_try_echo=$ac_try;;
39522 esac
39523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39524   (eval "$ac_compile") 2>conftest.er1
39525   ac_status=$?
39526   grep -v '^ *+' conftest.er1 >conftest.err
39527   rm -f conftest.er1
39528   cat conftest.err >&5
39529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39530   (exit $ac_status); } && {
39531          test -z "$ac_c_werror_flag" ||
39532          test ! -s conftest.err
39533        } && test -s conftest.$ac_objext; then
39534
39535              ac_cv_struct_sockaddr_sa_len=yes
39536
39537 else
39538   echo "$as_me: failed program was:" >&5
39539 sed 's/^/| /' conftest.$ac_ext >&5
39540
39541         ac_cv_struct_sockaddr_sa_len=no
39542
39543
39544 fi
39545
39546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39547
39548
39549 fi
39550 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39551 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39552
39553 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39554
39555 cat >>confdefs.h <<\_ACEOF
39556 #define HAVE_SA_LEN 1
39557 _ACEOF
39558
39559 fi
39560
39561
39562 for ac_func in strftime
39563 do
39564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39565 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39567 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39568   echo $ECHO_N "(cached) $ECHO_C" >&6
39569 else
39570   cat >conftest.$ac_ext <<_ACEOF
39571 /* confdefs.h.  */
39572 _ACEOF
39573 cat confdefs.h >>conftest.$ac_ext
39574 cat >>conftest.$ac_ext <<_ACEOF
39575 /* end confdefs.h.  */
39576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39577    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39578 #define $ac_func innocuous_$ac_func
39579
39580 /* System header to define __stub macros and hopefully few prototypes,
39581     which can conflict with char $ac_func (); below.
39582     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39583     <limits.h> exists even on freestanding compilers.  */
39584
39585 #ifdef __STDC__
39586 # include <limits.h>
39587 #else
39588 # include <assert.h>
39589 #endif
39590
39591 #undef $ac_func
39592
39593 /* Override any GCC internal prototype to avoid an error.
39594    Use char because int might match the return type of a GCC
39595    builtin and then its argument prototype would still apply.  */
39596 #ifdef __cplusplus
39597 extern "C"
39598 #endif
39599 char $ac_func ();
39600 /* The GNU C library defines this for functions which it implements
39601     to always fail with ENOSYS.  Some functions are actually named
39602     something starting with __ and the normal name is an alias.  */
39603 #if defined __stub_$ac_func || defined __stub___$ac_func
39604 choke me
39605 #endif
39606
39607 int
39608 main ()
39609 {
39610 return $ac_func ();
39611   ;
39612   return 0;
39613 }
39614 _ACEOF
39615 rm -f conftest.$ac_objext conftest$ac_exeext
39616 if { (ac_try="$ac_link"
39617 case "(($ac_try" in
39618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39619   *) ac_try_echo=$ac_try;;
39620 esac
39621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39622   (eval "$ac_link") 2>conftest.er1
39623   ac_status=$?
39624   grep -v '^ *+' conftest.er1 >conftest.err
39625   rm -f conftest.er1
39626   cat conftest.err >&5
39627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39628   (exit $ac_status); } && {
39629          test -z "$ac_c_werror_flag" ||
39630          test ! -s conftest.err
39631        } && test -s conftest$ac_exeext &&
39632        $as_test_x conftest$ac_exeext; then
39633   eval "$as_ac_var=yes"
39634 else
39635   echo "$as_me: failed program was:" >&5
39636 sed 's/^/| /' conftest.$ac_ext >&5
39637
39638         eval "$as_ac_var=no"
39639 fi
39640
39641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39642       conftest$ac_exeext conftest.$ac_ext
39643 fi
39644 ac_res=`eval echo '${'$as_ac_var'}'`
39645                { echo "$as_me:$LINENO: result: $ac_res" >&5
39646 echo "${ECHO_T}$ac_res" >&6; }
39647 if test `eval echo '${'$as_ac_var'}'` = yes; then
39648   cat >>confdefs.h <<_ACEOF
39649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39650 _ACEOF
39651
39652 else
39653   # strftime is in -lintl on SCO UNIX.
39654 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39655 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39656 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39657   echo $ECHO_N "(cached) $ECHO_C" >&6
39658 else
39659   ac_check_lib_save_LIBS=$LIBS
39660 LIBS="-lintl  $LIBS"
39661 cat >conftest.$ac_ext <<_ACEOF
39662 /* confdefs.h.  */
39663 _ACEOF
39664 cat confdefs.h >>conftest.$ac_ext
39665 cat >>conftest.$ac_ext <<_ACEOF
39666 /* end confdefs.h.  */
39667
39668 /* Override any GCC internal prototype to avoid an error.
39669    Use char because int might match the return type of a GCC
39670    builtin and then its argument prototype would still apply.  */
39671 #ifdef __cplusplus
39672 extern "C"
39673 #endif
39674 char strftime ();
39675 int
39676 main ()
39677 {
39678 return strftime ();
39679   ;
39680   return 0;
39681 }
39682 _ACEOF
39683 rm -f conftest.$ac_objext conftest$ac_exeext
39684 if { (ac_try="$ac_link"
39685 case "(($ac_try" in
39686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39687   *) ac_try_echo=$ac_try;;
39688 esac
39689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39690   (eval "$ac_link") 2>conftest.er1
39691   ac_status=$?
39692   grep -v '^ *+' conftest.er1 >conftest.err
39693   rm -f conftest.er1
39694   cat conftest.err >&5
39695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39696   (exit $ac_status); } && {
39697          test -z "$ac_c_werror_flag" ||
39698          test ! -s conftest.err
39699        } && test -s conftest$ac_exeext &&
39700        $as_test_x conftest$ac_exeext; then
39701   ac_cv_lib_intl_strftime=yes
39702 else
39703   echo "$as_me: failed program was:" >&5
39704 sed 's/^/| /' conftest.$ac_ext >&5
39705
39706         ac_cv_lib_intl_strftime=no
39707 fi
39708
39709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39710       conftest$ac_exeext conftest.$ac_ext
39711 LIBS=$ac_check_lib_save_LIBS
39712 fi
39713 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39714 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39715 if test $ac_cv_lib_intl_strftime = yes; then
39716   cat >>confdefs.h <<\_ACEOF
39717 #define HAVE_STRFTIME 1
39718 _ACEOF
39719
39720 LIBS="-lintl $LIBS"
39721 fi
39722
39723 fi
39724 done
39725
39726
39727 for ac_func in vprintf
39728 do
39729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39730 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39732 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39733   echo $ECHO_N "(cached) $ECHO_C" >&6
39734 else
39735   cat >conftest.$ac_ext <<_ACEOF
39736 /* confdefs.h.  */
39737 _ACEOF
39738 cat confdefs.h >>conftest.$ac_ext
39739 cat >>conftest.$ac_ext <<_ACEOF
39740 /* end confdefs.h.  */
39741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39742    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39743 #define $ac_func innocuous_$ac_func
39744
39745 /* System header to define __stub macros and hopefully few prototypes,
39746     which can conflict with char $ac_func (); below.
39747     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39748     <limits.h> exists even on freestanding compilers.  */
39749
39750 #ifdef __STDC__
39751 # include <limits.h>
39752 #else
39753 # include <assert.h>
39754 #endif
39755
39756 #undef $ac_func
39757
39758 /* Override any GCC internal prototype to avoid an error.
39759    Use char because int might match the return type of a GCC
39760    builtin and then its argument prototype would still apply.  */
39761 #ifdef __cplusplus
39762 extern "C"
39763 #endif
39764 char $ac_func ();
39765 /* The GNU C library defines this for functions which it implements
39766     to always fail with ENOSYS.  Some functions are actually named
39767     something starting with __ and the normal name is an alias.  */
39768 #if defined __stub_$ac_func || defined __stub___$ac_func
39769 choke me
39770 #endif
39771
39772 int
39773 main ()
39774 {
39775 return $ac_func ();
39776   ;
39777   return 0;
39778 }
39779 _ACEOF
39780 rm -f conftest.$ac_objext conftest$ac_exeext
39781 if { (ac_try="$ac_link"
39782 case "(($ac_try" in
39783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39784   *) ac_try_echo=$ac_try;;
39785 esac
39786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39787   (eval "$ac_link") 2>conftest.er1
39788   ac_status=$?
39789   grep -v '^ *+' conftest.er1 >conftest.err
39790   rm -f conftest.er1
39791   cat conftest.err >&5
39792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39793   (exit $ac_status); } && {
39794          test -z "$ac_c_werror_flag" ||
39795          test ! -s conftest.err
39796        } && test -s conftest$ac_exeext &&
39797        $as_test_x conftest$ac_exeext; then
39798   eval "$as_ac_var=yes"
39799 else
39800   echo "$as_me: failed program was:" >&5
39801 sed 's/^/| /' conftest.$ac_ext >&5
39802
39803         eval "$as_ac_var=no"
39804 fi
39805
39806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39807       conftest$ac_exeext conftest.$ac_ext
39808 fi
39809 ac_res=`eval echo '${'$as_ac_var'}'`
39810                { echo "$as_me:$LINENO: result: $ac_res" >&5
39811 echo "${ECHO_T}$ac_res" >&6; }
39812 if test `eval echo '${'$as_ac_var'}'` = yes; then
39813   cat >>confdefs.h <<_ACEOF
39814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39815 _ACEOF
39816
39817 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39818 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39819 if test "${ac_cv_func__doprnt+set}" = set; then
39820   echo $ECHO_N "(cached) $ECHO_C" >&6
39821 else
39822   cat >conftest.$ac_ext <<_ACEOF
39823 /* confdefs.h.  */
39824 _ACEOF
39825 cat confdefs.h >>conftest.$ac_ext
39826 cat >>conftest.$ac_ext <<_ACEOF
39827 /* end confdefs.h.  */
39828 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39829    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39830 #define _doprnt innocuous__doprnt
39831
39832 /* System header to define __stub macros and hopefully few prototypes,
39833     which can conflict with char _doprnt (); below.
39834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39835     <limits.h> exists even on freestanding compilers.  */
39836
39837 #ifdef __STDC__
39838 # include <limits.h>
39839 #else
39840 # include <assert.h>
39841 #endif
39842
39843 #undef _doprnt
39844
39845 /* Override any GCC internal prototype to avoid an error.
39846    Use char because int might match the return type of a GCC
39847    builtin and then its argument prototype would still apply.  */
39848 #ifdef __cplusplus
39849 extern "C"
39850 #endif
39851 char _doprnt ();
39852 /* The GNU C library defines this for functions which it implements
39853     to always fail with ENOSYS.  Some functions are actually named
39854     something starting with __ and the normal name is an alias.  */
39855 #if defined __stub__doprnt || defined __stub____doprnt
39856 choke me
39857 #endif
39858
39859 int
39860 main ()
39861 {
39862 return _doprnt ();
39863   ;
39864   return 0;
39865 }
39866 _ACEOF
39867 rm -f conftest.$ac_objext conftest$ac_exeext
39868 if { (ac_try="$ac_link"
39869 case "(($ac_try" in
39870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39871   *) ac_try_echo=$ac_try;;
39872 esac
39873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39874   (eval "$ac_link") 2>conftest.er1
39875   ac_status=$?
39876   grep -v '^ *+' conftest.er1 >conftest.err
39877   rm -f conftest.er1
39878   cat conftest.err >&5
39879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39880   (exit $ac_status); } && {
39881          test -z "$ac_c_werror_flag" ||
39882          test ! -s conftest.err
39883        } && test -s conftest$ac_exeext &&
39884        $as_test_x conftest$ac_exeext; then
39885   ac_cv_func__doprnt=yes
39886 else
39887   echo "$as_me: failed program was:" >&5
39888 sed 's/^/| /' conftest.$ac_ext >&5
39889
39890         ac_cv_func__doprnt=no
39891 fi
39892
39893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39894       conftest$ac_exeext conftest.$ac_ext
39895 fi
39896 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39897 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39898 if test $ac_cv_func__doprnt = yes; then
39899
39900 cat >>confdefs.h <<\_ACEOF
39901 #define HAVE_DOPRNT 1
39902 _ACEOF
39903
39904 fi
39905
39906 fi
39907 done
39908
39909
39910 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39911 # for constant arguments.  Useless!
39912 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39913 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39914 if test "${ac_cv_working_alloca_h+set}" = set; then
39915   echo $ECHO_N "(cached) $ECHO_C" >&6
39916 else
39917   cat >conftest.$ac_ext <<_ACEOF
39918 /* confdefs.h.  */
39919 _ACEOF
39920 cat confdefs.h >>conftest.$ac_ext
39921 cat >>conftest.$ac_ext <<_ACEOF
39922 /* end confdefs.h.  */
39923 #include <alloca.h>
39924 int
39925 main ()
39926 {
39927 char *p = (char *) alloca (2 * sizeof (int));
39928                           if (p) return 0;
39929   ;
39930   return 0;
39931 }
39932 _ACEOF
39933 rm -f conftest.$ac_objext conftest$ac_exeext
39934 if { (ac_try="$ac_link"
39935 case "(($ac_try" in
39936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39937   *) ac_try_echo=$ac_try;;
39938 esac
39939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39940   (eval "$ac_link") 2>conftest.er1
39941   ac_status=$?
39942   grep -v '^ *+' conftest.er1 >conftest.err
39943   rm -f conftest.er1
39944   cat conftest.err >&5
39945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39946   (exit $ac_status); } && {
39947          test -z "$ac_c_werror_flag" ||
39948          test ! -s conftest.err
39949        } && test -s conftest$ac_exeext &&
39950        $as_test_x conftest$ac_exeext; then
39951   ac_cv_working_alloca_h=yes
39952 else
39953   echo "$as_me: failed program was:" >&5
39954 sed 's/^/| /' conftest.$ac_ext >&5
39955
39956         ac_cv_working_alloca_h=no
39957 fi
39958
39959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39960       conftest$ac_exeext conftest.$ac_ext
39961 fi
39962 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39963 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39964 if test $ac_cv_working_alloca_h = yes; then
39965
39966 cat >>confdefs.h <<\_ACEOF
39967 #define HAVE_ALLOCA_H 1
39968 _ACEOF
39969
39970 fi
39971
39972 { echo "$as_me:$LINENO: checking for alloca" >&5
39973 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39974 if test "${ac_cv_func_alloca_works+set}" = set; then
39975   echo $ECHO_N "(cached) $ECHO_C" >&6
39976 else
39977   cat >conftest.$ac_ext <<_ACEOF
39978 /* confdefs.h.  */
39979 _ACEOF
39980 cat confdefs.h >>conftest.$ac_ext
39981 cat >>conftest.$ac_ext <<_ACEOF
39982 /* end confdefs.h.  */
39983 #ifdef __GNUC__
39984 # define alloca __builtin_alloca
39985 #else
39986 # ifdef _MSC_VER
39987 #  include <malloc.h>
39988 #  define alloca _alloca
39989 # else
39990 #  ifdef HAVE_ALLOCA_H
39991 #   include <alloca.h>
39992 #  else
39993 #   ifdef _AIX
39994  #pragma alloca
39995 #   else
39996 #    ifndef alloca /* predefined by HP cc +Olibcalls */
39997 char *alloca ();
39998 #    endif
39999 #   endif
40000 #  endif
40001 # endif
40002 #endif
40003
40004 int
40005 main ()
40006 {
40007 char *p = (char *) alloca (1);
40008                                     if (p) return 0;
40009   ;
40010   return 0;
40011 }
40012 _ACEOF
40013 rm -f conftest.$ac_objext conftest$ac_exeext
40014 if { (ac_try="$ac_link"
40015 case "(($ac_try" in
40016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40017   *) ac_try_echo=$ac_try;;
40018 esac
40019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40020   (eval "$ac_link") 2>conftest.er1
40021   ac_status=$?
40022   grep -v '^ *+' conftest.er1 >conftest.err
40023   rm -f conftest.er1
40024   cat conftest.err >&5
40025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40026   (exit $ac_status); } && {
40027          test -z "$ac_c_werror_flag" ||
40028          test ! -s conftest.err
40029        } && test -s conftest$ac_exeext &&
40030        $as_test_x conftest$ac_exeext; then
40031   ac_cv_func_alloca_works=yes
40032 else
40033   echo "$as_me: failed program was:" >&5
40034 sed 's/^/| /' conftest.$ac_ext >&5
40035
40036         ac_cv_func_alloca_works=no
40037 fi
40038
40039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40040       conftest$ac_exeext conftest.$ac_ext
40041 fi
40042 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
40043 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
40044
40045 if test $ac_cv_func_alloca_works = yes; then
40046
40047 cat >>confdefs.h <<\_ACEOF
40048 #define HAVE_ALLOCA 1
40049 _ACEOF
40050
40051 else
40052   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
40053 # that cause trouble.  Some versions do not even contain alloca or
40054 # contain a buggy version.  If you still want to use their alloca,
40055 # use ar to extract alloca.o from them instead of compiling alloca.c.
40056
40057 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
40058
40059 cat >>confdefs.h <<\_ACEOF
40060 #define C_ALLOCA 1
40061 _ACEOF
40062
40063
40064 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
40065 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
40066 if test "${ac_cv_os_cray+set}" = set; then
40067   echo $ECHO_N "(cached) $ECHO_C" >&6
40068 else
40069   cat >conftest.$ac_ext <<_ACEOF
40070 /* confdefs.h.  */
40071 _ACEOF
40072 cat confdefs.h >>conftest.$ac_ext
40073 cat >>conftest.$ac_ext <<_ACEOF
40074 /* end confdefs.h.  */
40075 #if defined CRAY && ! defined CRAY2
40076 webecray
40077 #else
40078 wenotbecray
40079 #endif
40080
40081 _ACEOF
40082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40083   $EGREP "webecray" >/dev/null 2>&1; then
40084   ac_cv_os_cray=yes
40085 else
40086   ac_cv_os_cray=no
40087 fi
40088 rm -f conftest*
40089
40090 fi
40091 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
40092 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
40093 if test $ac_cv_os_cray = yes; then
40094   for ac_func in _getb67 GETB67 getb67; do
40095     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40096 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40099   echo $ECHO_N "(cached) $ECHO_C" >&6
40100 else
40101   cat >conftest.$ac_ext <<_ACEOF
40102 /* confdefs.h.  */
40103 _ACEOF
40104 cat confdefs.h >>conftest.$ac_ext
40105 cat >>conftest.$ac_ext <<_ACEOF
40106 /* end confdefs.h.  */
40107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40108    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40109 #define $ac_func innocuous_$ac_func
40110
40111 /* System header to define __stub macros and hopefully few prototypes,
40112     which can conflict with char $ac_func (); below.
40113     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40114     <limits.h> exists even on freestanding compilers.  */
40115
40116 #ifdef __STDC__
40117 # include <limits.h>
40118 #else
40119 # include <assert.h>
40120 #endif
40121
40122 #undef $ac_func
40123
40124 /* Override any GCC internal prototype to avoid an error.
40125    Use char because int might match the return type of a GCC
40126    builtin and then its argument prototype would still apply.  */
40127 #ifdef __cplusplus
40128 extern "C"
40129 #endif
40130 char $ac_func ();
40131 /* The GNU C library defines this for functions which it implements
40132     to always fail with ENOSYS.  Some functions are actually named
40133     something starting with __ and the normal name is an alias.  */
40134 #if defined __stub_$ac_func || defined __stub___$ac_func
40135 choke me
40136 #endif
40137
40138 int
40139 main ()
40140 {
40141 return $ac_func ();
40142   ;
40143   return 0;
40144 }
40145 _ACEOF
40146 rm -f conftest.$ac_objext conftest$ac_exeext
40147 if { (ac_try="$ac_link"
40148 case "(($ac_try" in
40149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40150   *) ac_try_echo=$ac_try;;
40151 esac
40152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40153   (eval "$ac_link") 2>conftest.er1
40154   ac_status=$?
40155   grep -v '^ *+' conftest.er1 >conftest.err
40156   rm -f conftest.er1
40157   cat conftest.err >&5
40158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40159   (exit $ac_status); } && {
40160          test -z "$ac_c_werror_flag" ||
40161          test ! -s conftest.err
40162        } && test -s conftest$ac_exeext &&
40163        $as_test_x conftest$ac_exeext; then
40164   eval "$as_ac_var=yes"
40165 else
40166   echo "$as_me: failed program was:" >&5
40167 sed 's/^/| /' conftest.$ac_ext >&5
40168
40169         eval "$as_ac_var=no"
40170 fi
40171
40172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40173       conftest$ac_exeext conftest.$ac_ext
40174 fi
40175 ac_res=`eval echo '${'$as_ac_var'}'`
40176                { echo "$as_me:$LINENO: result: $ac_res" >&5
40177 echo "${ECHO_T}$ac_res" >&6; }
40178 if test `eval echo '${'$as_ac_var'}'` = yes; then
40179
40180 cat >>confdefs.h <<_ACEOF
40181 #define CRAY_STACKSEG_END $ac_func
40182 _ACEOF
40183
40184     break
40185 fi
40186
40187   done
40188 fi
40189
40190 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
40191 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
40192 if test "${ac_cv_c_stack_direction+set}" = set; then
40193   echo $ECHO_N "(cached) $ECHO_C" >&6
40194 else
40195   if test "$cross_compiling" = yes; then
40196   ac_cv_c_stack_direction=0
40197 else
40198   cat >conftest.$ac_ext <<_ACEOF
40199 /* confdefs.h.  */
40200 _ACEOF
40201 cat confdefs.h >>conftest.$ac_ext
40202 cat >>conftest.$ac_ext <<_ACEOF
40203 /* end confdefs.h.  */
40204 $ac_includes_default
40205 int
40206 find_stack_direction ()
40207 {
40208   static char *addr = 0;
40209   auto char dummy;
40210   if (addr == 0)
40211     {
40212       addr = &dummy;
40213       return find_stack_direction ();
40214     }
40215   else
40216     return (&dummy > addr) ? 1 : -1;
40217 }
40218
40219 int
40220 main ()
40221 {
40222   return find_stack_direction () < 0;
40223 }
40224 _ACEOF
40225 rm -f conftest$ac_exeext
40226 if { (ac_try="$ac_link"
40227 case "(($ac_try" in
40228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40229   *) ac_try_echo=$ac_try;;
40230 esac
40231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40232   (eval "$ac_link") 2>&5
40233   ac_status=$?
40234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40235   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40236   { (case "(($ac_try" in
40237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40238   *) ac_try_echo=$ac_try;;
40239 esac
40240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40241   (eval "$ac_try") 2>&5
40242   ac_status=$?
40243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40244   (exit $ac_status); }; }; then
40245   ac_cv_c_stack_direction=1
40246 else
40247   echo "$as_me: program exited with status $ac_status" >&5
40248 echo "$as_me: failed program was:" >&5
40249 sed 's/^/| /' conftest.$ac_ext >&5
40250
40251 ( exit $ac_status )
40252 ac_cv_c_stack_direction=-1
40253 fi
40254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40255 fi
40256
40257
40258 fi
40259 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40260 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40261
40262 cat >>confdefs.h <<_ACEOF
40263 #define STACK_DIRECTION $ac_cv_c_stack_direction
40264 _ACEOF
40265
40266
40267 fi
40268
40269 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40270 # -lseq on Dynix/PTX, -lgen on Unixware.
40271 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40272 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40273 if test "${ac_cv_search_getmntent+set}" = set; then
40274   echo $ECHO_N "(cached) $ECHO_C" >&6
40275 else
40276   ac_func_search_save_LIBS=$LIBS
40277 cat >conftest.$ac_ext <<_ACEOF
40278 /* confdefs.h.  */
40279 _ACEOF
40280 cat confdefs.h >>conftest.$ac_ext
40281 cat >>conftest.$ac_ext <<_ACEOF
40282 /* end confdefs.h.  */
40283
40284 /* Override any GCC internal prototype to avoid an error.
40285    Use char because int might match the return type of a GCC
40286    builtin and then its argument prototype would still apply.  */
40287 #ifdef __cplusplus
40288 extern "C"
40289 #endif
40290 char getmntent ();
40291 int
40292 main ()
40293 {
40294 return getmntent ();
40295   ;
40296   return 0;
40297 }
40298 _ACEOF
40299 for ac_lib in '' sun seq gen; do
40300   if test -z "$ac_lib"; then
40301     ac_res="none required"
40302   else
40303     ac_res=-l$ac_lib
40304     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
40305   fi
40306   rm -f conftest.$ac_objext conftest$ac_exeext
40307 if { (ac_try="$ac_link"
40308 case "(($ac_try" in
40309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40310   *) ac_try_echo=$ac_try;;
40311 esac
40312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40313   (eval "$ac_link") 2>conftest.er1
40314   ac_status=$?
40315   grep -v '^ *+' conftest.er1 >conftest.err
40316   rm -f conftest.er1
40317   cat conftest.err >&5
40318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40319   (exit $ac_status); } && {
40320          test -z "$ac_c_werror_flag" ||
40321          test ! -s conftest.err
40322        } && test -s conftest$ac_exeext &&
40323        $as_test_x conftest$ac_exeext; then
40324   ac_cv_search_getmntent=$ac_res
40325 else
40326   echo "$as_me: failed program was:" >&5
40327 sed 's/^/| /' conftest.$ac_ext >&5
40328
40329
40330 fi
40331
40332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40333       conftest$ac_exeext
40334   if test "${ac_cv_search_getmntent+set}" = set; then
40335   break
40336 fi
40337 done
40338 if test "${ac_cv_search_getmntent+set}" = set; then
40339   :
40340 else
40341   ac_cv_search_getmntent=no
40342 fi
40343 rm conftest.$ac_ext
40344 LIBS=$ac_func_search_save_LIBS
40345 fi
40346 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40347 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40348 ac_res=$ac_cv_search_getmntent
40349 if test "$ac_res" != no; then
40350   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40351   ac_cv_func_getmntent=yes
40352
40353 cat >>confdefs.h <<\_ACEOF
40354 #define HAVE_GETMNTENT 1
40355 _ACEOF
40356
40357 else
40358   ac_cv_func_getmntent=no
40359 fi
40360
40361
40362 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40363 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40364 if test "${ac_cv_func_closedir_void+set}" = set; then
40365   echo $ECHO_N "(cached) $ECHO_C" >&6
40366 else
40367   if test "$cross_compiling" = yes; then
40368   ac_cv_func_closedir_void=yes
40369 else
40370   cat >conftest.$ac_ext <<_ACEOF
40371 /* confdefs.h.  */
40372 _ACEOF
40373 cat confdefs.h >>conftest.$ac_ext
40374 cat >>conftest.$ac_ext <<_ACEOF
40375 /* end confdefs.h.  */
40376 $ac_includes_default
40377 #include <$ac_header_dirent>
40378 #ifndef __cplusplus
40379 int closedir ();
40380 #endif
40381
40382 int
40383 main ()
40384 {
40385 return closedir (opendir (".")) != 0;
40386   ;
40387   return 0;
40388 }
40389 _ACEOF
40390 rm -f conftest$ac_exeext
40391 if { (ac_try="$ac_link"
40392 case "(($ac_try" in
40393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40394   *) ac_try_echo=$ac_try;;
40395 esac
40396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40397   (eval "$ac_link") 2>&5
40398   ac_status=$?
40399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40400   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40401   { (case "(($ac_try" in
40402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40403   *) ac_try_echo=$ac_try;;
40404 esac
40405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40406   (eval "$ac_try") 2>&5
40407   ac_status=$?
40408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40409   (exit $ac_status); }; }; then
40410   ac_cv_func_closedir_void=no
40411 else
40412   echo "$as_me: program exited with status $ac_status" >&5
40413 echo "$as_me: failed program was:" >&5
40414 sed 's/^/| /' conftest.$ac_ext >&5
40415
40416 ( exit $ac_status )
40417 ac_cv_func_closedir_void=yes
40418 fi
40419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40420 fi
40421
40422
40423 fi
40424 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40425 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40426 if test $ac_cv_func_closedir_void = yes; then
40427
40428 cat >>confdefs.h <<\_ACEOF
40429 #define CLOSEDIR_VOID 1
40430 _ACEOF
40431
40432 fi
40433
40434 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40435 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40436 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40437   echo $ECHO_N "(cached) $ECHO_C" >&6
40438 else
40439   if test "$cross_compiling" = yes; then
40440   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40441 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40442    { (exit 1); exit 1; }; }
40443 else
40444   cat >conftest.$ac_ext <<_ACEOF
40445 /* confdefs.h.  */
40446 _ACEOF
40447 cat confdefs.h >>conftest.$ac_ext
40448 cat >>conftest.$ac_ext <<_ACEOF
40449 /* end confdefs.h.  */
40450 $ac_includes_default
40451 int
40452 main ()
40453 {
40454 /* If this system has a BSD-style setpgrp which takes arguments,
40455   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40456   exit successfully. */
40457   return setpgrp (1,1) != -1;
40458   ;
40459   return 0;
40460 }
40461 _ACEOF
40462 rm -f conftest$ac_exeext
40463 if { (ac_try="$ac_link"
40464 case "(($ac_try" in
40465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40466   *) ac_try_echo=$ac_try;;
40467 esac
40468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40469   (eval "$ac_link") 2>&5
40470   ac_status=$?
40471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40472   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
40479   ac_status=$?
40480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40481   (exit $ac_status); }; }; then
40482   ac_cv_func_setpgrp_void=no
40483 else
40484   echo "$as_me: program exited with status $ac_status" >&5
40485 echo "$as_me: failed program was:" >&5
40486 sed 's/^/| /' conftest.$ac_ext >&5
40487
40488 ( exit $ac_status )
40489 ac_cv_func_setpgrp_void=yes
40490 fi
40491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40492 fi
40493
40494
40495 fi
40496 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40497 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40498 if test $ac_cv_func_setpgrp_void = yes; then
40499
40500 cat >>confdefs.h <<\_ACEOF
40501 #define SETPGRP_VOID 1
40502 _ACEOF
40503
40504 fi
40505             # AC_FUNC_FNMATCH    dnl use local version
40506
40507 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40508 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40509 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40510   echo $ECHO_N "(cached) $ECHO_C" >&6
40511 else
40512   ac_check_lib_save_LIBS=$LIBS
40513 LIBS="-lintl  $LIBS"
40514 cat >conftest.$ac_ext <<_ACEOF
40515 /* confdefs.h.  */
40516 _ACEOF
40517 cat confdefs.h >>conftest.$ac_ext
40518 cat >>conftest.$ac_ext <<_ACEOF
40519 /* end confdefs.h.  */
40520
40521 /* Override any GCC internal prototype to avoid an error.
40522    Use char because int might match the return type of a GCC
40523    builtin and then its argument prototype would still apply.  */
40524 #ifdef __cplusplus
40525 extern "C"
40526 #endif
40527 char gettext ();
40528 int
40529 main ()
40530 {
40531 return gettext ();
40532   ;
40533   return 0;
40534 }
40535 _ACEOF
40536 rm -f conftest.$ac_objext conftest$ac_exeext
40537 if { (ac_try="$ac_link"
40538 case "(($ac_try" in
40539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40540   *) ac_try_echo=$ac_try;;
40541 esac
40542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40543   (eval "$ac_link") 2>conftest.er1
40544   ac_status=$?
40545   grep -v '^ *+' conftest.er1 >conftest.err
40546   rm -f conftest.er1
40547   cat conftest.err >&5
40548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40549   (exit $ac_status); } && {
40550          test -z "$ac_c_werror_flag" ||
40551          test ! -s conftest.err
40552        } && test -s conftest$ac_exeext &&
40553        $as_test_x conftest$ac_exeext; then
40554   ac_cv_lib_intl_gettext=yes
40555 else
40556   echo "$as_me: failed program was:" >&5
40557 sed 's/^/| /' conftest.$ac_ext >&5
40558
40559         ac_cv_lib_intl_gettext=no
40560 fi
40561
40562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40563       conftest$ac_exeext conftest.$ac_ext
40564 LIBS=$ac_check_lib_save_LIBS
40565 fi
40566 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40567 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40568 if test $ac_cv_lib_intl_gettext = yes; then
40569   LIBS="$LIBS -lintl"
40570 fi
40571
40572
40573
40574 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40575 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40576 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40577   echo $ECHO_N "(cached) $ECHO_C" >&6
40578 else
40579   ac_check_lib_save_LIBS=$LIBS
40580 LIBS="-lsun  $LIBS"
40581 cat >conftest.$ac_ext <<_ACEOF
40582 /* confdefs.h.  */
40583 _ACEOF
40584 cat confdefs.h >>conftest.$ac_ext
40585 cat >>conftest.$ac_ext <<_ACEOF
40586 /* end confdefs.h.  */
40587
40588 /* Override any GCC internal prototype to avoid an error.
40589    Use char because int might match the return type of a GCC
40590    builtin and then its argument prototype would still apply.  */
40591 #ifdef __cplusplus
40592 extern "C"
40593 #endif
40594 char getpwnam ();
40595 int
40596 main ()
40597 {
40598 return getpwnam ();
40599   ;
40600   return 0;
40601 }
40602 _ACEOF
40603 rm -f conftest.$ac_objext conftest$ac_exeext
40604 if { (ac_try="$ac_link"
40605 case "(($ac_try" in
40606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40607   *) ac_try_echo=$ac_try;;
40608 esac
40609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40610   (eval "$ac_link") 2>conftest.er1
40611   ac_status=$?
40612   grep -v '^ *+' conftest.er1 >conftest.err
40613   rm -f conftest.er1
40614   cat conftest.err >&5
40615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40616   (exit $ac_status); } && {
40617          test -z "$ac_c_werror_flag" ||
40618          test ! -s conftest.err
40619        } && test -s conftest$ac_exeext &&
40620        $as_test_x conftest$ac_exeext; then
40621   ac_cv_lib_sun_getpwnam=yes
40622 else
40623   echo "$as_me: failed program was:" >&5
40624 sed 's/^/| /' conftest.$ac_ext >&5
40625
40626         ac_cv_lib_sun_getpwnam=no
40627 fi
40628
40629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40630       conftest$ac_exeext conftest.$ac_ext
40631 LIBS=$ac_check_lib_save_LIBS
40632 fi
40633 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40634 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40635 if test $ac_cv_lib_sun_getpwnam = yes; then
40636   cat >>confdefs.h <<_ACEOF
40637 #define HAVE_LIBSUN 1
40638 _ACEOF
40639
40640   LIBS="-lsun $LIBS"
40641
40642 fi
40643
40644
40645
40646 for ac_header in zlib.h
40647 do
40648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40650   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40653   echo $ECHO_N "(cached) $ECHO_C" >&6
40654 fi
40655 ac_res=`eval echo '${'$as_ac_Header'}'`
40656                { echo "$as_me:$LINENO: result: $ac_res" >&5
40657 echo "${ECHO_T}$ac_res" >&6; }
40658 else
40659   # Is the header compilable?
40660 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40662 cat >conftest.$ac_ext <<_ACEOF
40663 /* confdefs.h.  */
40664 _ACEOF
40665 cat confdefs.h >>conftest.$ac_ext
40666 cat >>conftest.$ac_ext <<_ACEOF
40667 /* end confdefs.h.  */
40668 $ac_includes_default
40669 #include <$ac_header>
40670 _ACEOF
40671 rm -f conftest.$ac_objext
40672 if { (ac_try="$ac_compile"
40673 case "(($ac_try" in
40674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40675   *) ac_try_echo=$ac_try;;
40676 esac
40677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40678   (eval "$ac_compile") 2>conftest.er1
40679   ac_status=$?
40680   grep -v '^ *+' conftest.er1 >conftest.err
40681   rm -f conftest.er1
40682   cat conftest.err >&5
40683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40684   (exit $ac_status); } && {
40685          test -z "$ac_c_werror_flag" ||
40686          test ! -s conftest.err
40687        } && test -s conftest.$ac_objext; then
40688   ac_header_compiler=yes
40689 else
40690   echo "$as_me: failed program was:" >&5
40691 sed 's/^/| /' conftest.$ac_ext >&5
40692
40693         ac_header_compiler=no
40694 fi
40695
40696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40698 echo "${ECHO_T}$ac_header_compiler" >&6; }
40699
40700 # Is the header present?
40701 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40703 cat >conftest.$ac_ext <<_ACEOF
40704 /* confdefs.h.  */
40705 _ACEOF
40706 cat confdefs.h >>conftest.$ac_ext
40707 cat >>conftest.$ac_ext <<_ACEOF
40708 /* end confdefs.h.  */
40709 #include <$ac_header>
40710 _ACEOF
40711 if { (ac_try="$ac_cpp conftest.$ac_ext"
40712 case "(($ac_try" in
40713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40714   *) ac_try_echo=$ac_try;;
40715 esac
40716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40717   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40718   ac_status=$?
40719   grep -v '^ *+' conftest.er1 >conftest.err
40720   rm -f conftest.er1
40721   cat conftest.err >&5
40722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40723   (exit $ac_status); } >/dev/null && {
40724          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40725          test ! -s conftest.err
40726        }; then
40727   ac_header_preproc=yes
40728 else
40729   echo "$as_me: failed program was:" >&5
40730 sed 's/^/| /' conftest.$ac_ext >&5
40731
40732   ac_header_preproc=no
40733 fi
40734
40735 rm -f conftest.err conftest.$ac_ext
40736 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40737 echo "${ECHO_T}$ac_header_preproc" >&6; }
40738
40739 # So?  What about this header?
40740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40741   yes:no: )
40742     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40743 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40744     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40745 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40746     ac_header_preproc=yes
40747     ;;
40748   no:yes:* )
40749     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40751     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40752 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40753     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40754 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40755     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40756 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40757     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40759     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40760 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40761
40762     ;;
40763 esac
40764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40767   echo $ECHO_N "(cached) $ECHO_C" >&6
40768 else
40769   eval "$as_ac_Header=\$ac_header_preproc"
40770 fi
40771 ac_res=`eval echo '${'$as_ac_Header'}'`
40772                { echo "$as_me:$LINENO: result: $ac_res" >&5
40773 echo "${ECHO_T}$ac_res" >&6; }
40774
40775 fi
40776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40777   cat >>confdefs.h <<_ACEOF
40778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40779 _ACEOF
40780
40781 fi
40782
40783 done
40784
40785 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40786 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40787 if test "${ac_cv_lib_z_deflate+set}" = set; then
40788   echo $ECHO_N "(cached) $ECHO_C" >&6
40789 else
40790   ac_check_lib_save_LIBS=$LIBS
40791 LIBS="-lz  $LIBS"
40792 cat >conftest.$ac_ext <<_ACEOF
40793 /* confdefs.h.  */
40794 _ACEOF
40795 cat confdefs.h >>conftest.$ac_ext
40796 cat >>conftest.$ac_ext <<_ACEOF
40797 /* end confdefs.h.  */
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 deflate ();
40806 int
40807 main ()
40808 {
40809 return deflate ();
40810   ;
40811   return 0;
40812 }
40813 _ACEOF
40814 rm -f conftest.$ac_objext conftest$ac_exeext
40815 if { (ac_try="$ac_link"
40816 case "(($ac_try" in
40817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40818   *) ac_try_echo=$ac_try;;
40819 esac
40820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40821   (eval "$ac_link") 2>conftest.er1
40822   ac_status=$?
40823   grep -v '^ *+' conftest.er1 >conftest.err
40824   rm -f conftest.er1
40825   cat conftest.err >&5
40826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40827   (exit $ac_status); } && {
40828          test -z "$ac_c_werror_flag" ||
40829          test ! -s conftest.err
40830        } && test -s conftest$ac_exeext &&
40831        $as_test_x conftest$ac_exeext; then
40832   ac_cv_lib_z_deflate=yes
40833 else
40834   echo "$as_me: failed program was:" >&5
40835 sed 's/^/| /' conftest.$ac_ext >&5
40836
40837         ac_cv_lib_z_deflate=no
40838 fi
40839
40840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40841       conftest$ac_exeext conftest.$ac_ext
40842 LIBS=$ac_check_lib_save_LIBS
40843 fi
40844 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40845 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40846 if test $ac_cv_lib_z_deflate = yes; then
40847   FDLIBS="-lz"
40848 fi
40849
40850 have_zlib=no
40851 if test x$FDLIBS = x-lz; then
40852    cat >>confdefs.h <<\_ACEOF
40853 #define HAVE_LIBZ 1
40854 _ACEOF
40855
40856    have_zlib=yes
40857 fi
40858
40859 support_acl=auto
40860 # Check whether --enable-acl was given.
40861 if test "${enable_acl+set}" = set; then
40862   enableval=$enable_acl;
40863        if test x$enableval = xyes; then
40864           support_acl=yes
40865        elif test x$enableval = xno; then
40866           support_acl=no
40867        fi
40868
40869
40870 fi
40871
40872
40873 have_acl=no
40874 have_extended_acl=no
40875 if test x$support_acl = xyes -o x$support_acl = xauto; then
40876    if test "${ac_cv_header_sys_acl_h+set}" = set; then
40877   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40878 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40879 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40880   echo $ECHO_N "(cached) $ECHO_C" >&6
40881 fi
40882 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40883 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40884 else
40885   # Is the header compilable?
40886 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40887 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40888 cat >conftest.$ac_ext <<_ACEOF
40889 /* confdefs.h.  */
40890 _ACEOF
40891 cat confdefs.h >>conftest.$ac_ext
40892 cat >>conftest.$ac_ext <<_ACEOF
40893 /* end confdefs.h.  */
40894 $ac_includes_default
40895 #include <sys/acl.h>
40896 _ACEOF
40897 rm -f conftest.$ac_objext
40898 if { (ac_try="$ac_compile"
40899 case "(($ac_try" in
40900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40901   *) ac_try_echo=$ac_try;;
40902 esac
40903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40904   (eval "$ac_compile") 2>conftest.er1
40905   ac_status=$?
40906   grep -v '^ *+' conftest.er1 >conftest.err
40907   rm -f conftest.er1
40908   cat conftest.err >&5
40909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40910   (exit $ac_status); } && {
40911          test -z "$ac_c_werror_flag" ||
40912          test ! -s conftest.err
40913        } && test -s conftest.$ac_objext; then
40914   ac_header_compiler=yes
40915 else
40916   echo "$as_me: failed program was:" >&5
40917 sed 's/^/| /' conftest.$ac_ext >&5
40918
40919         ac_header_compiler=no
40920 fi
40921
40922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40924 echo "${ECHO_T}$ac_header_compiler" >&6; }
40925
40926 # Is the header present?
40927 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40928 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40929 cat >conftest.$ac_ext <<_ACEOF
40930 /* confdefs.h.  */
40931 _ACEOF
40932 cat confdefs.h >>conftest.$ac_ext
40933 cat >>conftest.$ac_ext <<_ACEOF
40934 /* end confdefs.h.  */
40935 #include <sys/acl.h>
40936 _ACEOF
40937 if { (ac_try="$ac_cpp conftest.$ac_ext"
40938 case "(($ac_try" in
40939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40940   *) ac_try_echo=$ac_try;;
40941 esac
40942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40943   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40944   ac_status=$?
40945   grep -v '^ *+' conftest.er1 >conftest.err
40946   rm -f conftest.er1
40947   cat conftest.err >&5
40948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40949   (exit $ac_status); } >/dev/null && {
40950          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40951          test ! -s conftest.err
40952        }; then
40953   ac_header_preproc=yes
40954 else
40955   echo "$as_me: failed program was:" >&5
40956 sed 's/^/| /' conftest.$ac_ext >&5
40957
40958   ac_header_preproc=no
40959 fi
40960
40961 rm -f conftest.err conftest.$ac_ext
40962 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40963 echo "${ECHO_T}$ac_header_preproc" >&6; }
40964
40965 # So?  What about this header?
40966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40967   yes:no: )
40968     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40969 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40970     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40971 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40972     ac_header_preproc=yes
40973     ;;
40974   no:yes:* )
40975     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40976 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40977     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
40978 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
40979     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40980 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40981     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
40982 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
40983     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40984 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40985     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40986 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40987
40988     ;;
40989 esac
40990 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40991 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40992 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40993   echo $ECHO_N "(cached) $ECHO_C" >&6
40994 else
40995   ac_cv_header_sys_acl_h=$ac_header_preproc
40996 fi
40997 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40998 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40999
41000 fi
41001 if test $ac_cv_header_sys_acl_h = yes; then
41002
41003 cat >>confdefs.h <<\_ACEOF
41004 #define HAVE_SYS_ACL_H 1
41005 _ACEOF
41006
41007 fi
41008
41009
41010    { echo "$as_me:$LINENO: checking for acl_get_file" >&5
41011 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
41012 if test "${ac_cv_func_acl_get_file+set}" = set; then
41013   echo $ECHO_N "(cached) $ECHO_C" >&6
41014 else
41015   cat >conftest.$ac_ext <<_ACEOF
41016 /* confdefs.h.  */
41017 _ACEOF
41018 cat confdefs.h >>conftest.$ac_ext
41019 cat >>conftest.$ac_ext <<_ACEOF
41020 /* end confdefs.h.  */
41021 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
41022    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41023 #define acl_get_file innocuous_acl_get_file
41024
41025 /* System header to define __stub macros and hopefully few prototypes,
41026     which can conflict with char acl_get_file (); below.
41027     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41028     <limits.h> exists even on freestanding compilers.  */
41029
41030 #ifdef __STDC__
41031 # include <limits.h>
41032 #else
41033 # include <assert.h>
41034 #endif
41035
41036 #undef acl_get_file
41037
41038 /* Override any GCC internal prototype to avoid an error.
41039    Use char because int might match the return type of a GCC
41040    builtin and then its argument prototype would still apply.  */
41041 #ifdef __cplusplus
41042 extern "C"
41043 #endif
41044 char acl_get_file ();
41045 /* The GNU C library defines this for functions which it implements
41046     to always fail with ENOSYS.  Some functions are actually named
41047     something starting with __ and the normal name is an alias.  */
41048 #if defined __stub_acl_get_file || defined __stub___acl_get_file
41049 choke me
41050 #endif
41051
41052 int
41053 main ()
41054 {
41055 return acl_get_file ();
41056   ;
41057   return 0;
41058 }
41059 _ACEOF
41060 rm -f conftest.$ac_objext conftest$ac_exeext
41061 if { (ac_try="$ac_link"
41062 case "(($ac_try" in
41063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41064   *) ac_try_echo=$ac_try;;
41065 esac
41066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41067   (eval "$ac_link") 2>conftest.er1
41068   ac_status=$?
41069   grep -v '^ *+' conftest.er1 >conftest.err
41070   rm -f conftest.er1
41071   cat conftest.err >&5
41072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41073   (exit $ac_status); } && {
41074          test -z "$ac_c_werror_flag" ||
41075          test ! -s conftest.err
41076        } && test -s conftest$ac_exeext &&
41077        $as_test_x conftest$ac_exeext; then
41078   ac_cv_func_acl_get_file=yes
41079 else
41080   echo "$as_me: failed program was:" >&5
41081 sed 's/^/| /' conftest.$ac_ext >&5
41082
41083         ac_cv_func_acl_get_file=no
41084 fi
41085
41086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41087       conftest$ac_exeext conftest.$ac_ext
41088 fi
41089 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
41090 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
41091 if test $ac_cv_func_acl_get_file = yes; then
41092
41093           have_acl=yes
41094
41095 else
41096
41097           { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
41098 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
41099 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
41100   echo $ECHO_N "(cached) $ECHO_C" >&6
41101 else
41102   ac_check_lib_save_LIBS=$LIBS
41103 LIBS="-lacl  $LIBS"
41104 cat >conftest.$ac_ext <<_ACEOF
41105 /* confdefs.h.  */
41106 _ACEOF
41107 cat confdefs.h >>conftest.$ac_ext
41108 cat >>conftest.$ac_ext <<_ACEOF
41109 /* end confdefs.h.  */
41110
41111 /* Override any GCC internal prototype to avoid an error.
41112    Use char because int might match the return type of a GCC
41113    builtin and then its argument prototype would still apply.  */
41114 #ifdef __cplusplus
41115 extern "C"
41116 #endif
41117 char acl_get_file ();
41118 int
41119 main ()
41120 {
41121 return acl_get_file ();
41122   ;
41123   return 0;
41124 }
41125 _ACEOF
41126 rm -f conftest.$ac_objext conftest$ac_exeext
41127 if { (ac_try="$ac_link"
41128 case "(($ac_try" in
41129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41130   *) ac_try_echo=$ac_try;;
41131 esac
41132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41133   (eval "$ac_link") 2>conftest.er1
41134   ac_status=$?
41135   grep -v '^ *+' conftest.er1 >conftest.err
41136   rm -f conftest.er1
41137   cat conftest.err >&5
41138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41139   (exit $ac_status); } && {
41140          test -z "$ac_c_werror_flag" ||
41141          test ! -s conftest.err
41142        } && test -s conftest$ac_exeext &&
41143        $as_test_x conftest$ac_exeext; then
41144   ac_cv_lib_acl_acl_get_file=yes
41145 else
41146   echo "$as_me: failed program was:" >&5
41147 sed 's/^/| /' conftest.$ac_ext >&5
41148
41149         ac_cv_lib_acl_acl_get_file=no
41150 fi
41151
41152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41153       conftest$ac_exeext conftest.$ac_ext
41154 LIBS=$ac_check_lib_save_LIBS
41155 fi
41156 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
41157 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
41158 if test $ac_cv_lib_acl_acl_get_file = yes; then
41159
41160                  have_acl=yes;
41161                  FDLIBS="-lacl $FDLIBS"
41162
41163 else
41164
41165                  { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
41166 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
41167 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
41168   echo $ECHO_N "(cached) $ECHO_C" >&6
41169 else
41170   ac_check_lib_save_LIBS=$LIBS
41171 LIBS="-lpacl  $LIBS"
41172 cat >conftest.$ac_ext <<_ACEOF
41173 /* confdefs.h.  */
41174 _ACEOF
41175 cat confdefs.h >>conftest.$ac_ext
41176 cat >>conftest.$ac_ext <<_ACEOF
41177 /* end confdefs.h.  */
41178
41179 /* Override any GCC internal prototype to avoid an error.
41180    Use char because int might match the return type of a GCC
41181    builtin and then its argument prototype would still apply.  */
41182 #ifdef __cplusplus
41183 extern "C"
41184 #endif
41185 char acl_get_file ();
41186 int
41187 main ()
41188 {
41189 return acl_get_file ();
41190   ;
41191   return 0;
41192 }
41193 _ACEOF
41194 rm -f conftest.$ac_objext conftest$ac_exeext
41195 if { (ac_try="$ac_link"
41196 case "(($ac_try" in
41197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41198   *) ac_try_echo=$ac_try;;
41199 esac
41200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41201   (eval "$ac_link") 2>conftest.er1
41202   ac_status=$?
41203   grep -v '^ *+' conftest.er1 >conftest.err
41204   rm -f conftest.er1
41205   cat conftest.err >&5
41206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41207   (exit $ac_status); } && {
41208          test -z "$ac_c_werror_flag" ||
41209          test ! -s conftest.err
41210        } && test -s conftest$ac_exeext &&
41211        $as_test_x conftest$ac_exeext; then
41212   ac_cv_lib_pacl_acl_get_file=yes
41213 else
41214   echo "$as_me: failed program was:" >&5
41215 sed 's/^/| /' conftest.$ac_ext >&5
41216
41217         ac_cv_lib_pacl_acl_get_file=no
41218 fi
41219
41220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41221       conftest$ac_exeext conftest.$ac_ext
41222 LIBS=$ac_check_lib_save_LIBS
41223 fi
41224 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
41225 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
41226 if test $ac_cv_lib_pacl_acl_get_file = yes; then
41227
41228                         have_acl=yes;
41229                         FDLIBS="-lpacl $FDLIBS"
41230
41231 else
41232
41233                         { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
41234 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
41235 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
41236   echo $ECHO_N "(cached) $ECHO_C" >&6
41237 else
41238   ac_check_lib_save_LIBS=$LIBS
41239 LIBS="-lsec  $LIBS"
41240 cat >conftest.$ac_ext <<_ACEOF
41241 /* confdefs.h.  */
41242 _ACEOF
41243 cat confdefs.h >>conftest.$ac_ext
41244 cat >>conftest.$ac_ext <<_ACEOF
41245 /* end confdefs.h.  */
41246
41247 /* Override any GCC internal prototype to avoid an error.
41248    Use char because int might match the return type of a GCC
41249    builtin and then its argument prototype would still apply.  */
41250 #ifdef __cplusplus
41251 extern "C"
41252 #endif
41253 char acltotext ();
41254 int
41255 main ()
41256 {
41257 return acltotext ();
41258   ;
41259   return 0;
41260 }
41261 _ACEOF
41262 rm -f conftest.$ac_objext conftest$ac_exeext
41263 if { (ac_try="$ac_link"
41264 case "(($ac_try" in
41265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41266   *) ac_try_echo=$ac_try;;
41267 esac
41268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41269   (eval "$ac_link") 2>conftest.er1
41270   ac_status=$?
41271   grep -v '^ *+' conftest.er1 >conftest.err
41272   rm -f conftest.er1
41273   cat conftest.err >&5
41274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41275   (exit $ac_status); } && {
41276          test -z "$ac_c_werror_flag" ||
41277          test ! -s conftest.err
41278        } && test -s conftest$ac_exeext &&
41279        $as_test_x conftest$ac_exeext; then
41280   ac_cv_lib_sec_acltotext=yes
41281 else
41282   echo "$as_me: failed program was:" >&5
41283 sed 's/^/| /' conftest.$ac_ext >&5
41284
41285         ac_cv_lib_sec_acltotext=no
41286 fi
41287
41288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41289       conftest$ac_exeext conftest.$ac_ext
41290 LIBS=$ac_check_lib_save_LIBS
41291 fi
41292 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41293 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41294 if test $ac_cv_lib_sec_acltotext = yes; then
41295
41296                                have_acl=yes;
41297                                FDLIBS="-lsec $FDLIBS"
41298
41299                                { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41300 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41301 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41302   echo $ECHO_N "(cached) $ECHO_C" >&6
41303 else
41304   ac_check_lib_save_LIBS=$LIBS
41305 LIBS="-lsec  $LIBS"
41306 cat >conftest.$ac_ext <<_ACEOF
41307 /* confdefs.h.  */
41308 _ACEOF
41309 cat confdefs.h >>conftest.$ac_ext
41310 cat >>conftest.$ac_ext <<_ACEOF
41311 /* end confdefs.h.  */
41312
41313 /* Override any GCC internal prototype to avoid an error.
41314    Use char because int might match the return type of a GCC
41315    builtin and then its argument prototype would still apply.  */
41316 #ifdef __cplusplus
41317 extern "C"
41318 #endif
41319 char acl_totext ();
41320 int
41321 main ()
41322 {
41323 return acl_totext ();
41324   ;
41325   return 0;
41326 }
41327 _ACEOF
41328 rm -f conftest.$ac_objext conftest$ac_exeext
41329 if { (ac_try="$ac_link"
41330 case "(($ac_try" in
41331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41332   *) ac_try_echo=$ac_try;;
41333 esac
41334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41335   (eval "$ac_link") 2>conftest.er1
41336   ac_status=$?
41337   grep -v '^ *+' conftest.er1 >conftest.err
41338   rm -f conftest.er1
41339   cat conftest.err >&5
41340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41341   (exit $ac_status); } && {
41342          test -z "$ac_c_werror_flag" ||
41343          test ! -s conftest.err
41344        } && test -s conftest$ac_exeext &&
41345        $as_test_x conftest$ac_exeext; then
41346   ac_cv_lib_sec_acl_totext=yes
41347 else
41348   echo "$as_me: failed program was:" >&5
41349 sed 's/^/| /' conftest.$ac_ext >&5
41350
41351         ac_cv_lib_sec_acl_totext=no
41352 fi
41353
41354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41355       conftest$ac_exeext conftest.$ac_ext
41356 LIBS=$ac_check_lib_save_LIBS
41357 fi
41358 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41359 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41360 if test $ac_cv_lib_sec_acl_totext = yes; then
41361
41362                                       have_extended_acl=yes
41363
41364
41365 fi
41366
41367
41368
41369 fi
41370
41371
41372
41373 fi
41374
41375
41376
41377 fi
41378
41379
41380
41381 fi
41382
41383
41384    if test x$support_acl = xyes -a $have_acl != yes; then
41385       { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41386   please either load the acl libraries or rerun configure without --enable-acl" >&5
41387 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41388   please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41389    { (exit 1); exit 1; }; }
41390    else
41391       if test $have_acl = yes; then
41392
41393 cat >>confdefs.h <<\_ACEOF
41394 #define HAVE_ACL 1
41395 _ACEOF
41396
41397       fi
41398
41399       if test $have_extended_acl = yes; then
41400
41401 cat >>confdefs.h <<\_ACEOF
41402 #define HAVE_EXTENDED_ACL 1
41403 _ACEOF
41404
41405       fi
41406    fi
41407 fi
41408
41409 support_xattr=auto
41410 # Check whether --enable-xattr was given.
41411 if test "${enable_xattr+set}" = set; then
41412   enableval=$enable_xattr;
41413        if test x$enableval = xyes; then
41414           support_xattr=yes
41415        elif test x$enableval = xno; then
41416           support_xattr=no
41417        fi
41418
41419
41420 fi
41421
41422
41423 have_xattr=no
41424 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
41425             if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41426   { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41427 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41428 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41429   echo $ECHO_N "(cached) $ECHO_C" >&6
41430 fi
41431 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41432 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41433 else
41434   # Is the header compilable?
41435 { echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
41436 echo $ECHO_N "checking sys/extattr.h usability... $ECHO_C" >&6; }
41437 cat >conftest.$ac_ext <<_ACEOF
41438 /* confdefs.h.  */
41439 _ACEOF
41440 cat confdefs.h >>conftest.$ac_ext
41441 cat >>conftest.$ac_ext <<_ACEOF
41442 /* end confdefs.h.  */
41443 $ac_includes_default
41444 #include <sys/extattr.h>
41445 _ACEOF
41446 rm -f conftest.$ac_objext
41447 if { (ac_try="$ac_compile"
41448 case "(($ac_try" in
41449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41450   *) ac_try_echo=$ac_try;;
41451 esac
41452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41453   (eval "$ac_compile") 2>conftest.er1
41454   ac_status=$?
41455   grep -v '^ *+' conftest.er1 >conftest.err
41456   rm -f conftest.er1
41457   cat conftest.err >&5
41458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41459   (exit $ac_status); } && {
41460          test -z "$ac_c_werror_flag" ||
41461          test ! -s conftest.err
41462        } && test -s conftest.$ac_objext; then
41463   ac_header_compiler=yes
41464 else
41465   echo "$as_me: failed program was:" >&5
41466 sed 's/^/| /' conftest.$ac_ext >&5
41467
41468         ac_header_compiler=no
41469 fi
41470
41471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41473 echo "${ECHO_T}$ac_header_compiler" >&6; }
41474
41475 # Is the header present?
41476 { echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
41477 echo $ECHO_N "checking sys/extattr.h presence... $ECHO_C" >&6; }
41478 cat >conftest.$ac_ext <<_ACEOF
41479 /* confdefs.h.  */
41480 _ACEOF
41481 cat confdefs.h >>conftest.$ac_ext
41482 cat >>conftest.$ac_ext <<_ACEOF
41483 /* end confdefs.h.  */
41484 #include <sys/extattr.h>
41485 _ACEOF
41486 if { (ac_try="$ac_cpp conftest.$ac_ext"
41487 case "(($ac_try" in
41488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41489   *) ac_try_echo=$ac_try;;
41490 esac
41491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41492   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41493   ac_status=$?
41494   grep -v '^ *+' conftest.er1 >conftest.err
41495   rm -f conftest.er1
41496   cat conftest.err >&5
41497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41498   (exit $ac_status); } >/dev/null && {
41499          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41500          test ! -s conftest.err
41501        }; then
41502   ac_header_preproc=yes
41503 else
41504   echo "$as_me: failed program was:" >&5
41505 sed 's/^/| /' conftest.$ac_ext >&5
41506
41507   ac_header_preproc=no
41508 fi
41509
41510 rm -f conftest.err conftest.$ac_ext
41511 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41512 echo "${ECHO_T}$ac_header_preproc" >&6; }
41513
41514 # So?  What about this header?
41515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41516   yes:no: )
41517     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41518 echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41519     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
41520 echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
41521     ac_header_preproc=yes
41522     ;;
41523   no:yes:* )
41524     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
41525 echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
41526     { echo "$as_me:$LINENO: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&5
41527 echo "$as_me: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&2;}
41528     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
41529 echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
41530     { echo "$as_me:$LINENO: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&5
41531 echo "$as_me: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41532     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
41533 echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
41534     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
41535 echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
41536
41537     ;;
41538 esac
41539 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41540 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41541 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41542   echo $ECHO_N "(cached) $ECHO_C" >&6
41543 else
41544   ac_cv_header_sys_extattr_h=$ac_header_preproc
41545 fi
41546 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41547 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41548
41549 fi
41550 if test $ac_cv_header_sys_extattr_h = yes; then
41551
41552 cat >>confdefs.h <<\_ACEOF
41553 #define HAVE_SYS_EXTATTR_H 1
41554 _ACEOF
41555
41556 fi
41557
41558
41559    if test "${ac_cv_header_libutil_h+set}" = set; then
41560   { echo "$as_me:$LINENO: checking for libutil.h" >&5
41561 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41562 if test "${ac_cv_header_libutil_h+set}" = set; then
41563   echo $ECHO_N "(cached) $ECHO_C" >&6
41564 fi
41565 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41566 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41567 else
41568   # Is the header compilable?
41569 { echo "$as_me:$LINENO: checking libutil.h usability" >&5
41570 echo $ECHO_N "checking libutil.h usability... $ECHO_C" >&6; }
41571 cat >conftest.$ac_ext <<_ACEOF
41572 /* confdefs.h.  */
41573 _ACEOF
41574 cat confdefs.h >>conftest.$ac_ext
41575 cat >>conftest.$ac_ext <<_ACEOF
41576 /* end confdefs.h.  */
41577 $ac_includes_default
41578 #include <libutil.h>
41579 _ACEOF
41580 rm -f conftest.$ac_objext
41581 if { (ac_try="$ac_compile"
41582 case "(($ac_try" in
41583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41584   *) ac_try_echo=$ac_try;;
41585 esac
41586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41587   (eval "$ac_compile") 2>conftest.er1
41588   ac_status=$?
41589   grep -v '^ *+' conftest.er1 >conftest.err
41590   rm -f conftest.er1
41591   cat conftest.err >&5
41592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41593   (exit $ac_status); } && {
41594          test -z "$ac_c_werror_flag" ||
41595          test ! -s conftest.err
41596        } && test -s conftest.$ac_objext; then
41597   ac_header_compiler=yes
41598 else
41599   echo "$as_me: failed program was:" >&5
41600 sed 's/^/| /' conftest.$ac_ext >&5
41601
41602         ac_header_compiler=no
41603 fi
41604
41605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41607 echo "${ECHO_T}$ac_header_compiler" >&6; }
41608
41609 # Is the header present?
41610 { echo "$as_me:$LINENO: checking libutil.h presence" >&5
41611 echo $ECHO_N "checking libutil.h presence... $ECHO_C" >&6; }
41612 cat >conftest.$ac_ext <<_ACEOF
41613 /* confdefs.h.  */
41614 _ACEOF
41615 cat confdefs.h >>conftest.$ac_ext
41616 cat >>conftest.$ac_ext <<_ACEOF
41617 /* end confdefs.h.  */
41618 #include <libutil.h>
41619 _ACEOF
41620 if { (ac_try="$ac_cpp conftest.$ac_ext"
41621 case "(($ac_try" in
41622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41623   *) ac_try_echo=$ac_try;;
41624 esac
41625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41626   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41627   ac_status=$?
41628   grep -v '^ *+' conftest.er1 >conftest.err
41629   rm -f conftest.er1
41630   cat conftest.err >&5
41631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41632   (exit $ac_status); } >/dev/null && {
41633          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41634          test ! -s conftest.err
41635        }; then
41636   ac_header_preproc=yes
41637 else
41638   echo "$as_me: failed program was:" >&5
41639 sed 's/^/| /' conftest.$ac_ext >&5
41640
41641   ac_header_preproc=no
41642 fi
41643
41644 rm -f conftest.err conftest.$ac_ext
41645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41646 echo "${ECHO_T}$ac_header_preproc" >&6; }
41647
41648 # So?  What about this header?
41649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41650   yes:no: )
41651     { echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
41652 echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41653     { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
41654 echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
41655     ac_header_preproc=yes
41656     ;;
41657   no:yes:* )
41658     { echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
41659 echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
41660     { echo "$as_me:$LINENO: WARNING: libutil.h:     check for missing prerequisite headers?" >&5
41661 echo "$as_me: WARNING: libutil.h:     check for missing prerequisite headers?" >&2;}
41662     { echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
41663 echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
41664     { echo "$as_me:$LINENO: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&5
41665 echo "$as_me: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41666     { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
41667 echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
41668     { echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
41669 echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
41670
41671     ;;
41672 esac
41673 { echo "$as_me:$LINENO: checking for libutil.h" >&5
41674 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41675 if test "${ac_cv_header_libutil_h+set}" = set; then
41676   echo $ECHO_N "(cached) $ECHO_C" >&6
41677 else
41678   ac_cv_header_libutil_h=$ac_header_preproc
41679 fi
41680 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41681 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41682
41683 fi
41684 if test $ac_cv_header_libutil_h = yes; then
41685
41686 cat >>confdefs.h <<\_ACEOF
41687 #define HAVE_LIBUTIL_H 1
41688 _ACEOF
41689
41690 fi
41691
41692
41693
41694
41695
41696 for ac_func in extattr_get_link extattr_set_link extattr_list_link
41697 do
41698 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41699 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41700 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41701 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41702   echo $ECHO_N "(cached) $ECHO_C" >&6
41703 else
41704   cat >conftest.$ac_ext <<_ACEOF
41705 /* confdefs.h.  */
41706 _ACEOF
41707 cat confdefs.h >>conftest.$ac_ext
41708 cat >>conftest.$ac_ext <<_ACEOF
41709 /* end confdefs.h.  */
41710 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41711    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41712 #define $ac_func innocuous_$ac_func
41713
41714 /* System header to define __stub macros and hopefully few prototypes,
41715     which can conflict with char $ac_func (); below.
41716     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41717     <limits.h> exists even on freestanding compilers.  */
41718
41719 #ifdef __STDC__
41720 # include <limits.h>
41721 #else
41722 # include <assert.h>
41723 #endif
41724
41725 #undef $ac_func
41726
41727 /* Override any GCC internal prototype to avoid an error.
41728    Use char because int might match the return type of a GCC
41729    builtin and then its argument prototype would still apply.  */
41730 #ifdef __cplusplus
41731 extern "C"
41732 #endif
41733 char $ac_func ();
41734 /* The GNU C library defines this for functions which it implements
41735     to always fail with ENOSYS.  Some functions are actually named
41736     something starting with __ and the normal name is an alias.  */
41737 #if defined __stub_$ac_func || defined __stub___$ac_func
41738 choke me
41739 #endif
41740
41741 int
41742 main ()
41743 {
41744 return $ac_func ();
41745   ;
41746   return 0;
41747 }
41748 _ACEOF
41749 rm -f conftest.$ac_objext conftest$ac_exeext
41750 if { (ac_try="$ac_link"
41751 case "(($ac_try" in
41752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41753   *) ac_try_echo=$ac_try;;
41754 esac
41755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41756   (eval "$ac_link") 2>conftest.er1
41757   ac_status=$?
41758   grep -v '^ *+' conftest.er1 >conftest.err
41759   rm -f conftest.er1
41760   cat conftest.err >&5
41761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41762   (exit $ac_status); } && {
41763          test -z "$ac_c_werror_flag" ||
41764          test ! -s conftest.err
41765        } && test -s conftest$ac_exeext &&
41766        $as_test_x conftest$ac_exeext; then
41767   eval "$as_ac_var=yes"
41768 else
41769   echo "$as_me: failed program was:" >&5
41770 sed 's/^/| /' conftest.$ac_ext >&5
41771
41772         eval "$as_ac_var=no"
41773 fi
41774
41775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41776       conftest$ac_exeext conftest.$ac_ext
41777 fi
41778 ac_res=`eval echo '${'$as_ac_var'}'`
41779                { echo "$as_me:$LINENO: result: $ac_res" >&5
41780 echo "${ECHO_T}$ac_res" >&6; }
41781 if test `eval echo '${'$as_ac_var'}'` = yes; then
41782   cat >>confdefs.h <<_ACEOF
41783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41784 _ACEOF
41785
41786           have_xattr=yes
41787
41788 cat >>confdefs.h <<\_ACEOF
41789 #define HAVE_EXTATTR_GET_LINK 1
41790 _ACEOF
41791
41792
41793 cat >>confdefs.h <<\_ACEOF
41794 #define HAVE_EXTATTR_SET_LINK 1
41795 _ACEOF
41796
41797
41798 cat >>confdefs.h <<\_ACEOF
41799 #define HAVE_EXTATTR_LIST_LINK 1
41800 _ACEOF
41801
41802
41803
41804 fi
41805 done
41806
41807
41808    if test $have_xattr = no; then
41809
41810
41811
41812 for ac_func in extattr_get_file extattr_set_file extattr_list_file
41813 do
41814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41815 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41817 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41818   echo $ECHO_N "(cached) $ECHO_C" >&6
41819 else
41820   cat >conftest.$ac_ext <<_ACEOF
41821 /* confdefs.h.  */
41822 _ACEOF
41823 cat confdefs.h >>conftest.$ac_ext
41824 cat >>conftest.$ac_ext <<_ACEOF
41825 /* end confdefs.h.  */
41826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41827    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41828 #define $ac_func innocuous_$ac_func
41829
41830 /* System header to define __stub macros and hopefully few prototypes,
41831     which can conflict with char $ac_func (); below.
41832     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41833     <limits.h> exists even on freestanding compilers.  */
41834
41835 #ifdef __STDC__
41836 # include <limits.h>
41837 #else
41838 # include <assert.h>
41839 #endif
41840
41841 #undef $ac_func
41842
41843 /* Override any GCC internal prototype to avoid an error.
41844    Use char because int might match the return type of a GCC
41845    builtin and then its argument prototype would still apply.  */
41846 #ifdef __cplusplus
41847 extern "C"
41848 #endif
41849 char $ac_func ();
41850 /* The GNU C library defines this for functions which it implements
41851     to always fail with ENOSYS.  Some functions are actually named
41852     something starting with __ and the normal name is an alias.  */
41853 #if defined __stub_$ac_func || defined __stub___$ac_func
41854 choke me
41855 #endif
41856
41857 int
41858 main ()
41859 {
41860 return $ac_func ();
41861   ;
41862   return 0;
41863 }
41864 _ACEOF
41865 rm -f conftest.$ac_objext conftest$ac_exeext
41866 if { (ac_try="$ac_link"
41867 case "(($ac_try" in
41868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41869   *) ac_try_echo=$ac_try;;
41870 esac
41871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41872   (eval "$ac_link") 2>conftest.er1
41873   ac_status=$?
41874   grep -v '^ *+' conftest.er1 >conftest.err
41875   rm -f conftest.er1
41876   cat conftest.err >&5
41877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41878   (exit $ac_status); } && {
41879          test -z "$ac_c_werror_flag" ||
41880          test ! -s conftest.err
41881        } && test -s conftest$ac_exeext &&
41882        $as_test_x conftest$ac_exeext; then
41883   eval "$as_ac_var=yes"
41884 else
41885   echo "$as_me: failed program was:" >&5
41886 sed 's/^/| /' conftest.$ac_ext >&5
41887
41888         eval "$as_ac_var=no"
41889 fi
41890
41891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41892       conftest$ac_exeext conftest.$ac_ext
41893 fi
41894 ac_res=`eval echo '${'$as_ac_var'}'`
41895                { echo "$as_me:$LINENO: result: $ac_res" >&5
41896 echo "${ECHO_T}$ac_res" >&6; }
41897 if test `eval echo '${'$as_ac_var'}'` = yes; then
41898   cat >>confdefs.h <<_ACEOF
41899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41900 _ACEOF
41901
41902              have_xattr=yes
41903
41904 cat >>confdefs.h <<\_ACEOF
41905 #define HAVE_EXTATTR_GET_FILE 1
41906 _ACEOF
41907
41908
41909 cat >>confdefs.h <<\_ACEOF
41910 #define HAVE_EXTATTR_SET_FILE 1
41911 _ACEOF
41912
41913
41914 cat >>confdefs.h <<\_ACEOF
41915 #define HAVE_EXTATTR_LIST_FILE 1
41916 _ACEOF
41917
41918
41919
41920 fi
41921 done
41922
41923    fi
41924
41925    if test $have_xattr = yes; then
41926       have_extattr_string_in_libc=no
41927
41928
41929 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
41930 do
41931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41932 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41934 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41935   echo $ECHO_N "(cached) $ECHO_C" >&6
41936 else
41937   cat >conftest.$ac_ext <<_ACEOF
41938 /* confdefs.h.  */
41939 _ACEOF
41940 cat confdefs.h >>conftest.$ac_ext
41941 cat >>conftest.$ac_ext <<_ACEOF
41942 /* end confdefs.h.  */
41943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41944    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41945 #define $ac_func innocuous_$ac_func
41946
41947 /* System header to define __stub macros and hopefully few prototypes,
41948     which can conflict with char $ac_func (); below.
41949     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41950     <limits.h> exists even on freestanding compilers.  */
41951
41952 #ifdef __STDC__
41953 # include <limits.h>
41954 #else
41955 # include <assert.h>
41956 #endif
41957
41958 #undef $ac_func
41959
41960 /* Override any GCC internal prototype to avoid an error.
41961    Use char because int might match the return type of a GCC
41962    builtin and then its argument prototype would still apply.  */
41963 #ifdef __cplusplus
41964 extern "C"
41965 #endif
41966 char $ac_func ();
41967 /* The GNU C library defines this for functions which it implements
41968     to always fail with ENOSYS.  Some functions are actually named
41969     something starting with __ and the normal name is an alias.  */
41970 #if defined __stub_$ac_func || defined __stub___$ac_func
41971 choke me
41972 #endif
41973
41974 int
41975 main ()
41976 {
41977 return $ac_func ();
41978   ;
41979   return 0;
41980 }
41981 _ACEOF
41982 rm -f conftest.$ac_objext conftest$ac_exeext
41983 if { (ac_try="$ac_link"
41984 case "(($ac_try" in
41985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41986   *) ac_try_echo=$ac_try;;
41987 esac
41988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41989   (eval "$ac_link") 2>conftest.er1
41990   ac_status=$?
41991   grep -v '^ *+' conftest.er1 >conftest.err
41992   rm -f conftest.er1
41993   cat conftest.err >&5
41994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41995   (exit $ac_status); } && {
41996          test -z "$ac_c_werror_flag" ||
41997          test ! -s conftest.err
41998        } && test -s conftest$ac_exeext &&
41999        $as_test_x conftest$ac_exeext; then
42000   eval "$as_ac_var=yes"
42001 else
42002   echo "$as_me: failed program was:" >&5
42003 sed 's/^/| /' conftest.$ac_ext >&5
42004
42005         eval "$as_ac_var=no"
42006 fi
42007
42008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42009       conftest$ac_exeext conftest.$ac_ext
42010 fi
42011 ac_res=`eval echo '${'$as_ac_var'}'`
42012                { echo "$as_me:$LINENO: result: $ac_res" >&5
42013 echo "${ECHO_T}$ac_res" >&6; }
42014 if test `eval echo '${'$as_ac_var'}'` = yes; then
42015   cat >>confdefs.h <<_ACEOF
42016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42017 _ACEOF
42018
42019              have_extattr_string_in_libc=yes
42020
42021 cat >>confdefs.h <<\_ACEOF
42022 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42023 _ACEOF
42024
42025
42026 cat >>confdefs.h <<\_ACEOF
42027 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42028 _ACEOF
42029
42030
42031
42032 fi
42033 done
42034
42035
42036                         if test $have_extattr_string_in_libc = no; then
42037          { echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
42038 echo $ECHO_N "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... $ECHO_C" >&6; }
42039 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
42040   echo $ECHO_N "(cached) $ECHO_C" >&6
42041 else
42042   ac_check_lib_save_LIBS=$LIBS
42043 LIBS="-lutil  $LIBS"
42044 cat >conftest.$ac_ext <<_ACEOF
42045 /* confdefs.h.  */
42046 _ACEOF
42047 cat confdefs.h >>conftest.$ac_ext
42048 cat >>conftest.$ac_ext <<_ACEOF
42049 /* end confdefs.h.  */
42050
42051 /* Override any GCC internal prototype to avoid an error.
42052    Use char because int might match the return type of a GCC
42053    builtin and then its argument prototype would still apply.  */
42054 #ifdef __cplusplus
42055 extern "C"
42056 #endif
42057 char extattr_namespace_to_string extattr_string_to_namespace ();
42058 int
42059 main ()
42060 {
42061 return extattr_namespace_to_string extattr_string_to_namespace ();
42062   ;
42063   return 0;
42064 }
42065 _ACEOF
42066 rm -f conftest.$ac_objext conftest$ac_exeext
42067 if { (ac_try="$ac_link"
42068 case "(($ac_try" in
42069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42070   *) ac_try_echo=$ac_try;;
42071 esac
42072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42073   (eval "$ac_link") 2>conftest.er1
42074   ac_status=$?
42075   grep -v '^ *+' conftest.er1 >conftest.err
42076   rm -f conftest.er1
42077   cat conftest.err >&5
42078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42079   (exit $ac_status); } && {
42080          test -z "$ac_c_werror_flag" ||
42081          test ! -s conftest.err
42082        } && test -s conftest$ac_exeext &&
42083        $as_test_x conftest$ac_exeext; then
42084   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
42085 else
42086   echo "$as_me: failed program was:" >&5
42087 sed 's/^/| /' conftest.$ac_ext >&5
42088
42089         ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
42090 fi
42091
42092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42093       conftest$ac_exeext conftest.$ac_ext
42094 LIBS=$ac_check_lib_save_LIBS
42095 fi
42096 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
42097 echo "${ECHO_T}$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
42098 if test $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace = yes; then
42099
42100
42101 cat >>confdefs.h <<\_ACEOF
42102 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42103 _ACEOF
42104
42105
42106 cat >>confdefs.h <<\_ACEOF
42107 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42108 _ACEOF
42109
42110                 FDLIBS="-lutil $FDLIBS"
42111
42112
42113 fi
42114
42115       fi
42116    fi
42117
42118             if test $have_xattr = no; then
42119       if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42120   { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42121 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42122 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42123   echo $ECHO_N "(cached) $ECHO_C" >&6
42124 fi
42125 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42126 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42127 else
42128   # Is the header compilable?
42129 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
42130 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
42131 cat >conftest.$ac_ext <<_ACEOF
42132 /* confdefs.h.  */
42133 _ACEOF
42134 cat confdefs.h >>conftest.$ac_ext
42135 cat >>conftest.$ac_ext <<_ACEOF
42136 /* end confdefs.h.  */
42137 $ac_includes_default
42138 #include <sys/xattr.h>
42139 _ACEOF
42140 rm -f conftest.$ac_objext
42141 if { (ac_try="$ac_compile"
42142 case "(($ac_try" in
42143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42144   *) ac_try_echo=$ac_try;;
42145 esac
42146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42147   (eval "$ac_compile") 2>conftest.er1
42148   ac_status=$?
42149   grep -v '^ *+' conftest.er1 >conftest.err
42150   rm -f conftest.er1
42151   cat conftest.err >&5
42152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42153   (exit $ac_status); } && {
42154          test -z "$ac_c_werror_flag" ||
42155          test ! -s conftest.err
42156        } && test -s conftest.$ac_objext; then
42157   ac_header_compiler=yes
42158 else
42159   echo "$as_me: failed program was:" >&5
42160 sed 's/^/| /' conftest.$ac_ext >&5
42161
42162         ac_header_compiler=no
42163 fi
42164
42165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42167 echo "${ECHO_T}$ac_header_compiler" >&6; }
42168
42169 # Is the header present?
42170 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
42171 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
42172 cat >conftest.$ac_ext <<_ACEOF
42173 /* confdefs.h.  */
42174 _ACEOF
42175 cat confdefs.h >>conftest.$ac_ext
42176 cat >>conftest.$ac_ext <<_ACEOF
42177 /* end confdefs.h.  */
42178 #include <sys/xattr.h>
42179 _ACEOF
42180 if { (ac_try="$ac_cpp conftest.$ac_ext"
42181 case "(($ac_try" in
42182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42183   *) ac_try_echo=$ac_try;;
42184 esac
42185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42186   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42187   ac_status=$?
42188   grep -v '^ *+' conftest.er1 >conftest.err
42189   rm -f conftest.er1
42190   cat conftest.err >&5
42191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42192   (exit $ac_status); } >/dev/null && {
42193          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42194          test ! -s conftest.err
42195        }; then
42196   ac_header_preproc=yes
42197 else
42198   echo "$as_me: failed program was:" >&5
42199 sed 's/^/| /' conftest.$ac_ext >&5
42200
42201   ac_header_preproc=no
42202 fi
42203
42204 rm -f conftest.err conftest.$ac_ext
42205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42206 echo "${ECHO_T}$ac_header_preproc" >&6; }
42207
42208 # So?  What about this header?
42209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42210   yes:no: )
42211     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42212 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42213     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
42214 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
42215     ac_header_preproc=yes
42216     ;;
42217   no:yes:* )
42218     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
42219 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
42220     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&5
42221 echo "$as_me: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&2;}
42222     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
42223 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
42224     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&5
42225 echo "$as_me: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42226     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
42227 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
42228     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
42229 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
42230
42231     ;;
42232 esac
42233 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42234 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42235 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42236   echo $ECHO_N "(cached) $ECHO_C" >&6
42237 else
42238   ac_cv_header_sys_xattr_h=$ac_header_preproc
42239 fi
42240 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42241 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42242
42243 fi
42244 if test $ac_cv_header_sys_xattr_h = yes; then
42245
42246 cat >>confdefs.h <<\_ACEOF
42247 #define HAVE_SYS_XATTR_H 1
42248 _ACEOF
42249
42250 fi
42251
42252
42253
42254
42255
42256 for ac_func in llistxattr lgetxattr lsetxattr
42257 do
42258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42259 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42261 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42262   echo $ECHO_N "(cached) $ECHO_C" >&6
42263 else
42264   cat >conftest.$ac_ext <<_ACEOF
42265 /* confdefs.h.  */
42266 _ACEOF
42267 cat confdefs.h >>conftest.$ac_ext
42268 cat >>conftest.$ac_ext <<_ACEOF
42269 /* end confdefs.h.  */
42270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42271    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42272 #define $ac_func innocuous_$ac_func
42273
42274 /* System header to define __stub macros and hopefully few prototypes,
42275     which can conflict with char $ac_func (); below.
42276     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42277     <limits.h> exists even on freestanding compilers.  */
42278
42279 #ifdef __STDC__
42280 # include <limits.h>
42281 #else
42282 # include <assert.h>
42283 #endif
42284
42285 #undef $ac_func
42286
42287 /* Override any GCC internal prototype to avoid an error.
42288    Use char because int might match the return type of a GCC
42289    builtin and then its argument prototype would still apply.  */
42290 #ifdef __cplusplus
42291 extern "C"
42292 #endif
42293 char $ac_func ();
42294 /* The GNU C library defines this for functions which it implements
42295     to always fail with ENOSYS.  Some functions are actually named
42296     something starting with __ and the normal name is an alias.  */
42297 #if defined __stub_$ac_func || defined __stub___$ac_func
42298 choke me
42299 #endif
42300
42301 int
42302 main ()
42303 {
42304 return $ac_func ();
42305   ;
42306   return 0;
42307 }
42308 _ACEOF
42309 rm -f conftest.$ac_objext conftest$ac_exeext
42310 if { (ac_try="$ac_link"
42311 case "(($ac_try" in
42312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42313   *) ac_try_echo=$ac_try;;
42314 esac
42315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42316   (eval "$ac_link") 2>conftest.er1
42317   ac_status=$?
42318   grep -v '^ *+' conftest.er1 >conftest.err
42319   rm -f conftest.er1
42320   cat conftest.err >&5
42321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42322   (exit $ac_status); } && {
42323          test -z "$ac_c_werror_flag" ||
42324          test ! -s conftest.err
42325        } && test -s conftest$ac_exeext &&
42326        $as_test_x conftest$ac_exeext; then
42327   eval "$as_ac_var=yes"
42328 else
42329   echo "$as_me: failed program was:" >&5
42330 sed 's/^/| /' conftest.$ac_ext >&5
42331
42332         eval "$as_ac_var=no"
42333 fi
42334
42335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42336       conftest$ac_exeext conftest.$ac_ext
42337 fi
42338 ac_res=`eval echo '${'$as_ac_var'}'`
42339                { echo "$as_me:$LINENO: result: $ac_res" >&5
42340 echo "${ECHO_T}$ac_res" >&6; }
42341 if test `eval echo '${'$as_ac_var'}'` = yes; then
42342   cat >>confdefs.h <<_ACEOF
42343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42344 _ACEOF
42345
42346              have_xattr=yes
42347
42348 cat >>confdefs.h <<\_ACEOF
42349 #define HAVE_LLISTXATTR 1
42350 _ACEOF
42351
42352
42353 cat >>confdefs.h <<\_ACEOF
42354 #define HAVE_LGETXATTR 1
42355 _ACEOF
42356
42357
42358 cat >>confdefs.h <<\_ACEOF
42359 #define HAVE_LSETXATTR 1
42360 _ACEOF
42361
42362
42363
42364 fi
42365 done
42366
42367
42368       if test $have_xattr = no; then
42369
42370
42371
42372 for ac_func in listxattr getxattr setxattr
42373 do
42374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42375 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42377 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42378   echo $ECHO_N "(cached) $ECHO_C" >&6
42379 else
42380   cat >conftest.$ac_ext <<_ACEOF
42381 /* confdefs.h.  */
42382 _ACEOF
42383 cat confdefs.h >>conftest.$ac_ext
42384 cat >>conftest.$ac_ext <<_ACEOF
42385 /* end confdefs.h.  */
42386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42387    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42388 #define $ac_func innocuous_$ac_func
42389
42390 /* System header to define __stub macros and hopefully few prototypes,
42391     which can conflict with char $ac_func (); below.
42392     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42393     <limits.h> exists even on freestanding compilers.  */
42394
42395 #ifdef __STDC__
42396 # include <limits.h>
42397 #else
42398 # include <assert.h>
42399 #endif
42400
42401 #undef $ac_func
42402
42403 /* Override any GCC internal prototype to avoid an error.
42404    Use char because int might match the return type of a GCC
42405    builtin and then its argument prototype would still apply.  */
42406 #ifdef __cplusplus
42407 extern "C"
42408 #endif
42409 char $ac_func ();
42410 /* The GNU C library defines this for functions which it implements
42411     to always fail with ENOSYS.  Some functions are actually named
42412     something starting with __ and the normal name is an alias.  */
42413 #if defined __stub_$ac_func || defined __stub___$ac_func
42414 choke me
42415 #endif
42416
42417 int
42418 main ()
42419 {
42420 return $ac_func ();
42421   ;
42422   return 0;
42423 }
42424 _ACEOF
42425 rm -f conftest.$ac_objext conftest$ac_exeext
42426 if { (ac_try="$ac_link"
42427 case "(($ac_try" in
42428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42429   *) ac_try_echo=$ac_try;;
42430 esac
42431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42432   (eval "$ac_link") 2>conftest.er1
42433   ac_status=$?
42434   grep -v '^ *+' conftest.er1 >conftest.err
42435   rm -f conftest.er1
42436   cat conftest.err >&5
42437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42438   (exit $ac_status); } && {
42439          test -z "$ac_c_werror_flag" ||
42440          test ! -s conftest.err
42441        } && test -s conftest$ac_exeext &&
42442        $as_test_x conftest$ac_exeext; then
42443   eval "$as_ac_var=yes"
42444 else
42445   echo "$as_me: failed program was:" >&5
42446 sed 's/^/| /' conftest.$ac_ext >&5
42447
42448         eval "$as_ac_var=no"
42449 fi
42450
42451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42452       conftest$ac_exeext conftest.$ac_ext
42453 fi
42454 ac_res=`eval echo '${'$as_ac_var'}'`
42455                { echo "$as_me:$LINENO: result: $ac_res" >&5
42456 echo "${ECHO_T}$ac_res" >&6; }
42457 if test `eval echo '${'$as_ac_var'}'` = yes; then
42458   cat >>confdefs.h <<_ACEOF
42459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42460 _ACEOF
42461
42462                 have_xattr=yes
42463
42464 cat >>confdefs.h <<\_ACEOF
42465 #define HAVE_LISTXATTR 1
42466 _ACEOF
42467
42468
42469 cat >>confdefs.h <<\_ACEOF
42470 #define HAVE_GETXATTR 1
42471 _ACEOF
42472
42473
42474 cat >>confdefs.h <<\_ACEOF
42475 #define HAVE_SETXATTR 1
42476 _ACEOF
42477
42478
42479
42480 fi
42481 done
42482
42483       fi
42484    fi
42485
42486             if test $have_xattr = no; then
42487       if test "${ac_cv_header_sys_attr_h+set}" = set; then
42488   { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42489 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42490 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42491   echo $ECHO_N "(cached) $ECHO_C" >&6
42492 fi
42493 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42494 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42495 else
42496   # Is the header compilable?
42497 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
42498 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
42499 cat >conftest.$ac_ext <<_ACEOF
42500 /* confdefs.h.  */
42501 _ACEOF
42502 cat confdefs.h >>conftest.$ac_ext
42503 cat >>conftest.$ac_ext <<_ACEOF
42504 /* end confdefs.h.  */
42505 $ac_includes_default
42506 #include <sys/attr.h>
42507 _ACEOF
42508 rm -f conftest.$ac_objext
42509 if { (ac_try="$ac_compile"
42510 case "(($ac_try" in
42511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42512   *) ac_try_echo=$ac_try;;
42513 esac
42514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42515   (eval "$ac_compile") 2>conftest.er1
42516   ac_status=$?
42517   grep -v '^ *+' conftest.er1 >conftest.err
42518   rm -f conftest.er1
42519   cat conftest.err >&5
42520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42521   (exit $ac_status); } && {
42522          test -z "$ac_c_werror_flag" ||
42523          test ! -s conftest.err
42524        } && test -s conftest.$ac_objext; then
42525   ac_header_compiler=yes
42526 else
42527   echo "$as_me: failed program was:" >&5
42528 sed 's/^/| /' conftest.$ac_ext >&5
42529
42530         ac_header_compiler=no
42531 fi
42532
42533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42535 echo "${ECHO_T}$ac_header_compiler" >&6; }
42536
42537 # Is the header present?
42538 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
42539 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
42540 cat >conftest.$ac_ext <<_ACEOF
42541 /* confdefs.h.  */
42542 _ACEOF
42543 cat confdefs.h >>conftest.$ac_ext
42544 cat >>conftest.$ac_ext <<_ACEOF
42545 /* end confdefs.h.  */
42546 #include <sys/attr.h>
42547 _ACEOF
42548 if { (ac_try="$ac_cpp conftest.$ac_ext"
42549 case "(($ac_try" in
42550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42551   *) ac_try_echo=$ac_try;;
42552 esac
42553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42554   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42555   ac_status=$?
42556   grep -v '^ *+' conftest.er1 >conftest.err
42557   rm -f conftest.er1
42558   cat conftest.err >&5
42559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42560   (exit $ac_status); } >/dev/null && {
42561          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42562          test ! -s conftest.err
42563        }; then
42564   ac_header_preproc=yes
42565 else
42566   echo "$as_me: failed program was:" >&5
42567 sed 's/^/| /' conftest.$ac_ext >&5
42568
42569   ac_header_preproc=no
42570 fi
42571
42572 rm -f conftest.err conftest.$ac_ext
42573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42574 echo "${ECHO_T}$ac_header_preproc" >&6; }
42575
42576 # So?  What about this header?
42577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42578   yes:no: )
42579     { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42580 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42581     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
42582 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
42583     ac_header_preproc=yes
42584     ;;
42585   no:yes:* )
42586     { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
42587 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
42588     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&5
42589 echo "$as_me: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&2;}
42590     { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
42591 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
42592     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&5
42593 echo "$as_me: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42594     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
42595 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
42596     { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
42597 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
42598
42599     ;;
42600 esac
42601 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42602 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42603 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42604   echo $ECHO_N "(cached) $ECHO_C" >&6
42605 else
42606   ac_cv_header_sys_attr_h=$ac_header_preproc
42607 fi
42608 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42609 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42610
42611 fi
42612 if test $ac_cv_header_sys_attr_h = yes; then
42613
42614 cat >>confdefs.h <<\_ACEOF
42615 #define HAVE_SYS_ATTR_H 1
42616 _ACEOF
42617
42618 fi
42619
42620
42621       if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42622   { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42623 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42624 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42625   echo $ECHO_N "(cached) $ECHO_C" >&6
42626 fi
42627 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42628 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42629 else
42630   # Is the header compilable?
42631 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
42632 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
42633 cat >conftest.$ac_ext <<_ACEOF
42634 /* confdefs.h.  */
42635 _ACEOF
42636 cat confdefs.h >>conftest.$ac_ext
42637 cat >>conftest.$ac_ext <<_ACEOF
42638 /* end confdefs.h.  */
42639 $ac_includes_default
42640 #include <sys/nvpair.h>
42641 _ACEOF
42642 rm -f conftest.$ac_objext
42643 if { (ac_try="$ac_compile"
42644 case "(($ac_try" in
42645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42646   *) ac_try_echo=$ac_try;;
42647 esac
42648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42649   (eval "$ac_compile") 2>conftest.er1
42650   ac_status=$?
42651   grep -v '^ *+' conftest.er1 >conftest.err
42652   rm -f conftest.er1
42653   cat conftest.err >&5
42654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42655   (exit $ac_status); } && {
42656          test -z "$ac_c_werror_flag" ||
42657          test ! -s conftest.err
42658        } && test -s conftest.$ac_objext; then
42659   ac_header_compiler=yes
42660 else
42661   echo "$as_me: failed program was:" >&5
42662 sed 's/^/| /' conftest.$ac_ext >&5
42663
42664         ac_header_compiler=no
42665 fi
42666
42667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42668 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42669 echo "${ECHO_T}$ac_header_compiler" >&6; }
42670
42671 # Is the header present?
42672 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
42673 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
42674 cat >conftest.$ac_ext <<_ACEOF
42675 /* confdefs.h.  */
42676 _ACEOF
42677 cat confdefs.h >>conftest.$ac_ext
42678 cat >>conftest.$ac_ext <<_ACEOF
42679 /* end confdefs.h.  */
42680 #include <sys/nvpair.h>
42681 _ACEOF
42682 if { (ac_try="$ac_cpp conftest.$ac_ext"
42683 case "(($ac_try" in
42684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42685   *) ac_try_echo=$ac_try;;
42686 esac
42687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42688   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42689   ac_status=$?
42690   grep -v '^ *+' conftest.er1 >conftest.err
42691   rm -f conftest.er1
42692   cat conftest.err >&5
42693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42694   (exit $ac_status); } >/dev/null && {
42695          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42696          test ! -s conftest.err
42697        }; then
42698   ac_header_preproc=yes
42699 else
42700   echo "$as_me: failed program was:" >&5
42701 sed 's/^/| /' conftest.$ac_ext >&5
42702
42703   ac_header_preproc=no
42704 fi
42705
42706 rm -f conftest.err conftest.$ac_ext
42707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42708 echo "${ECHO_T}$ac_header_preproc" >&6; }
42709
42710 # So?  What about this header?
42711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42712   yes:no: )
42713     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
42714 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42715     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
42716 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
42717     ac_header_preproc=yes
42718     ;;
42719   no:yes:* )
42720     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
42721 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
42722     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&5
42723 echo "$as_me: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&2;}
42724     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
42725 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
42726     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&5
42727 echo "$as_me: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42728     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
42729 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
42730     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
42731 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
42732
42733     ;;
42734 esac
42735 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42736 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42737 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42738   echo $ECHO_N "(cached) $ECHO_C" >&6
42739 else
42740   ac_cv_header_sys_nvpair_h=$ac_header_preproc
42741 fi
42742 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42743 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42744
42745 fi
42746 if test $ac_cv_header_sys_nvpair_h = yes; then
42747
42748 cat >>confdefs.h <<\_ACEOF
42749 #define HAVE_SYS_NVPAIR_H 1
42750 _ACEOF
42751
42752 fi
42753
42754
42755       if test "${ac_cv_header_attr_h+set}" = set; then
42756   { echo "$as_me:$LINENO: checking for attr.h" >&5
42757 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42758 if test "${ac_cv_header_attr_h+set}" = set; then
42759   echo $ECHO_N "(cached) $ECHO_C" >&6
42760 fi
42761 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42762 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42763 else
42764   # Is the header compilable?
42765 { echo "$as_me:$LINENO: checking attr.h usability" >&5
42766 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
42767 cat >conftest.$ac_ext <<_ACEOF
42768 /* confdefs.h.  */
42769 _ACEOF
42770 cat confdefs.h >>conftest.$ac_ext
42771 cat >>conftest.$ac_ext <<_ACEOF
42772 /* end confdefs.h.  */
42773 $ac_includes_default
42774 #include <attr.h>
42775 _ACEOF
42776 rm -f conftest.$ac_objext
42777 if { (ac_try="$ac_compile"
42778 case "(($ac_try" in
42779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42780   *) ac_try_echo=$ac_try;;
42781 esac
42782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42783   (eval "$ac_compile") 2>conftest.er1
42784   ac_status=$?
42785   grep -v '^ *+' conftest.er1 >conftest.err
42786   rm -f conftest.er1
42787   cat conftest.err >&5
42788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42789   (exit $ac_status); } && {
42790          test -z "$ac_c_werror_flag" ||
42791          test ! -s conftest.err
42792        } && test -s conftest.$ac_objext; then
42793   ac_header_compiler=yes
42794 else
42795   echo "$as_me: failed program was:" >&5
42796 sed 's/^/| /' conftest.$ac_ext >&5
42797
42798         ac_header_compiler=no
42799 fi
42800
42801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42802 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42803 echo "${ECHO_T}$ac_header_compiler" >&6; }
42804
42805 # Is the header present?
42806 { echo "$as_me:$LINENO: checking attr.h presence" >&5
42807 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
42808 cat >conftest.$ac_ext <<_ACEOF
42809 /* confdefs.h.  */
42810 _ACEOF
42811 cat confdefs.h >>conftest.$ac_ext
42812 cat >>conftest.$ac_ext <<_ACEOF
42813 /* end confdefs.h.  */
42814 #include <attr.h>
42815 _ACEOF
42816 if { (ac_try="$ac_cpp conftest.$ac_ext"
42817 case "(($ac_try" in
42818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42819   *) ac_try_echo=$ac_try;;
42820 esac
42821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42822   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42823   ac_status=$?
42824   grep -v '^ *+' conftest.er1 >conftest.err
42825   rm -f conftest.er1
42826   cat conftest.err >&5
42827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42828   (exit $ac_status); } >/dev/null && {
42829          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42830          test ! -s conftest.err
42831        }; then
42832   ac_header_preproc=yes
42833 else
42834   echo "$as_me: failed program was:" >&5
42835 sed 's/^/| /' conftest.$ac_ext >&5
42836
42837   ac_header_preproc=no
42838 fi
42839
42840 rm -f conftest.err conftest.$ac_ext
42841 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42842 echo "${ECHO_T}$ac_header_preproc" >&6; }
42843
42844 # So?  What about this header?
42845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42846   yes:no: )
42847     { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42848 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42849     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
42850 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
42851     ac_header_preproc=yes
42852     ;;
42853   no:yes:* )
42854     { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
42855 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
42856     { echo "$as_me:$LINENO: WARNING: attr.h:     check for missing prerequisite headers?" >&5
42857 echo "$as_me: WARNING: attr.h:     check for missing prerequisite headers?" >&2;}
42858     { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
42859 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
42860     { echo "$as_me:$LINENO: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&5
42861 echo "$as_me: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42862     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
42863 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
42864     { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
42865 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
42866
42867     ;;
42868 esac
42869 { echo "$as_me:$LINENO: checking for attr.h" >&5
42870 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42871 if test "${ac_cv_header_attr_h+set}" = set; then
42872   echo $ECHO_N "(cached) $ECHO_C" >&6
42873 else
42874   ac_cv_header_attr_h=$ac_header_preproc
42875 fi
42876 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42877 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42878
42879 fi
42880 if test $ac_cv_header_attr_h = yes; then
42881
42882 cat >>confdefs.h <<\_ACEOF
42883 #define HAVE_ATTR_H 1
42884 _ACEOF
42885
42886 fi
42887
42888
42889
42890
42891
42892
42893
42894
42895 for ac_func in openat fstatat unlinkat fchownat futimesat
42896 do
42897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42898 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42901   echo $ECHO_N "(cached) $ECHO_C" >&6
42902 else
42903   cat >conftest.$ac_ext <<_ACEOF
42904 /* confdefs.h.  */
42905 _ACEOF
42906 cat confdefs.h >>conftest.$ac_ext
42907 cat >>conftest.$ac_ext <<_ACEOF
42908 /* end confdefs.h.  */
42909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42910    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42911 #define $ac_func innocuous_$ac_func
42912
42913 /* System header to define __stub macros and hopefully few prototypes,
42914     which can conflict with char $ac_func (); below.
42915     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42916     <limits.h> exists even on freestanding compilers.  */
42917
42918 #ifdef __STDC__
42919 # include <limits.h>
42920 #else
42921 # include <assert.h>
42922 #endif
42923
42924 #undef $ac_func
42925
42926 /* Override any GCC internal prototype to avoid an error.
42927    Use char because int might match the return type of a GCC
42928    builtin and then its argument prototype would still apply.  */
42929 #ifdef __cplusplus
42930 extern "C"
42931 #endif
42932 char $ac_func ();
42933 /* The GNU C library defines this for functions which it implements
42934     to always fail with ENOSYS.  Some functions are actually named
42935     something starting with __ and the normal name is an alias.  */
42936 #if defined __stub_$ac_func || defined __stub___$ac_func
42937 choke me
42938 #endif
42939
42940 int
42941 main ()
42942 {
42943 return $ac_func ();
42944   ;
42945   return 0;
42946 }
42947 _ACEOF
42948 rm -f conftest.$ac_objext conftest$ac_exeext
42949 if { (ac_try="$ac_link"
42950 case "(($ac_try" in
42951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42952   *) ac_try_echo=$ac_try;;
42953 esac
42954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42955   (eval "$ac_link") 2>conftest.er1
42956   ac_status=$?
42957   grep -v '^ *+' conftest.er1 >conftest.err
42958   rm -f conftest.er1
42959   cat conftest.err >&5
42960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42961   (exit $ac_status); } && {
42962          test -z "$ac_c_werror_flag" ||
42963          test ! -s conftest.err
42964        } && test -s conftest$ac_exeext &&
42965        $as_test_x conftest$ac_exeext; then
42966   eval "$as_ac_var=yes"
42967 else
42968   echo "$as_me: failed program was:" >&5
42969 sed 's/^/| /' conftest.$ac_ext >&5
42970
42971         eval "$as_ac_var=no"
42972 fi
42973
42974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42975       conftest$ac_exeext conftest.$ac_ext
42976 fi
42977 ac_res=`eval echo '${'$as_ac_var'}'`
42978                { echo "$as_me:$LINENO: result: $ac_res" >&5
42979 echo "${ECHO_T}$ac_res" >&6; }
42980 if test `eval echo '${'$as_ac_var'}'` = yes; then
42981   cat >>confdefs.h <<_ACEOF
42982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42983 _ACEOF
42984
42985              have_xattr=yes
42986
42987 cat >>confdefs.h <<\_ACEOF
42988 #define HAVE_OPENAT 1
42989 _ACEOF
42990
42991
42992 cat >>confdefs.h <<\_ACEOF
42993 #define HAVE_FSTATAT 1
42994 _ACEOF
42995
42996
42997 cat >>confdefs.h <<\_ACEOF
42998 #define HAVE_UNLINKAT 1
42999 _ACEOF
43000
43001
43002 cat >>confdefs.h <<\_ACEOF
43003 #define HAVE_FCHOWNAT 1
43004 _ACEOF
43005
43006
43007 cat >>confdefs.h <<\_ACEOF
43008 #define HAVE_FUTIMESAT 1
43009 _ACEOF
43010
43011
43012
43013 fi
43014 done
43015
43016
43017       if test $have_xattr = yes; then
43018          { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
43019 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
43020 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
43021   echo $ECHO_N "(cached) $ECHO_C" >&6
43022 else
43023   ac_check_lib_save_LIBS=$LIBS
43024 LIBS="-lnvpair  $LIBS"
43025 cat >conftest.$ac_ext <<_ACEOF
43026 /* confdefs.h.  */
43027 _ACEOF
43028 cat confdefs.h >>conftest.$ac_ext
43029 cat >>conftest.$ac_ext <<_ACEOF
43030 /* end confdefs.h.  */
43031
43032 /* Override any GCC internal prototype to avoid an error.
43033    Use char because int might match the return type of a GCC
43034    builtin and then its argument prototype would still apply.  */
43035 #ifdef __cplusplus
43036 extern "C"
43037 #endif
43038 char nvlist_next_nvpair ();
43039 int
43040 main ()
43041 {
43042 return nvlist_next_nvpair ();
43043   ;
43044   return 0;
43045 }
43046 _ACEOF
43047 rm -f conftest.$ac_objext conftest$ac_exeext
43048 if { (ac_try="$ac_link"
43049 case "(($ac_try" in
43050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43051   *) ac_try_echo=$ac_try;;
43052 esac
43053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43054   (eval "$ac_link") 2>conftest.er1
43055   ac_status=$?
43056   grep -v '^ *+' conftest.er1 >conftest.err
43057   rm -f conftest.er1
43058   cat conftest.err >&5
43059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43060   (exit $ac_status); } && {
43061          test -z "$ac_c_werror_flag" ||
43062          test ! -s conftest.err
43063        } && test -s conftest$ac_exeext &&
43064        $as_test_x conftest$ac_exeext; then
43065   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
43066 else
43067   echo "$as_me: failed program was:" >&5
43068 sed 's/^/| /' conftest.$ac_ext >&5
43069
43070         ac_cv_lib_nvpair_nvlist_next_nvpair=no
43071 fi
43072
43073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43074       conftest$ac_exeext conftest.$ac_ext
43075 LIBS=$ac_check_lib_save_LIBS
43076 fi
43077 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
43078 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
43079 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
43080
43081
43082 cat >>confdefs.h <<\_ACEOF
43083 #define HAVE_NVLIST_NEXT_NVPAIR 1
43084 _ACEOF
43085
43086                 FDLIBS="-lnvpair $FDLIBS"
43087
43088
43089 fi
43090
43091       fi
43092    fi
43093
43094    if test x$support_xattr = xyes -a $have_xattr != yes; then
43095       { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
43096   please either load the xattr libraries or rerun configure without --enable-xattr" >&5
43097 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
43098   please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
43099    { (exit 1); exit 1; }; }
43100    else
43101       if test $have_xattr = yes; then
43102
43103 cat >>confdefs.h <<\_ACEOF
43104 #define HAVE_XATTR 1
43105 _ACEOF
43106
43107       fi
43108    fi
43109 fi
43110
43111 PTHREAD_LIB=""
43112 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
43113 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
43114 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
43115   echo $ECHO_N "(cached) $ECHO_C" >&6
43116 else
43117   ac_check_lib_save_LIBS=$LIBS
43118 LIBS="-lpthread  $LIBS"
43119 cat >conftest.$ac_ext <<_ACEOF
43120 /* confdefs.h.  */
43121 _ACEOF
43122 cat confdefs.h >>conftest.$ac_ext
43123 cat >>conftest.$ac_ext <<_ACEOF
43124 /* end confdefs.h.  */
43125
43126 /* Override any GCC internal prototype to avoid an error.
43127    Use char because int might match the return type of a GCC
43128    builtin and then its argument prototype would still apply.  */
43129 #ifdef __cplusplus
43130 extern "C"
43131 #endif
43132 char pthread_create ();
43133 int
43134 main ()
43135 {
43136 return pthread_create ();
43137   ;
43138   return 0;
43139 }
43140 _ACEOF
43141 rm -f conftest.$ac_objext conftest$ac_exeext
43142 if { (ac_try="$ac_link"
43143 case "(($ac_try" in
43144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43145   *) ac_try_echo=$ac_try;;
43146 esac
43147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43148   (eval "$ac_link") 2>conftest.er1
43149   ac_status=$?
43150   grep -v '^ *+' conftest.er1 >conftest.err
43151   rm -f conftest.er1
43152   cat conftest.err >&5
43153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43154   (exit $ac_status); } && {
43155          test -z "$ac_c_werror_flag" ||
43156          test ! -s conftest.err
43157        } && test -s conftest$ac_exeext &&
43158        $as_test_x conftest$ac_exeext; then
43159   ac_cv_lib_pthread_pthread_create=yes
43160 else
43161   echo "$as_me: failed program was:" >&5
43162 sed 's/^/| /' conftest.$ac_ext >&5
43163
43164         ac_cv_lib_pthread_pthread_create=no
43165 fi
43166
43167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43168       conftest$ac_exeext conftest.$ac_ext
43169 LIBS=$ac_check_lib_save_LIBS
43170 fi
43171 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
43172 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
43173 if test $ac_cv_lib_pthread_pthread_create = yes; then
43174   PTHREAD_LIB="-lpthread"
43175 else
43176
43177        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
43178 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
43179 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
43180   echo $ECHO_N "(cached) $ECHO_C" >&6
43181 else
43182   ac_check_lib_save_LIBS=$LIBS
43183 LIBS="-lpthreads  $LIBS"
43184 cat >conftest.$ac_ext <<_ACEOF
43185 /* confdefs.h.  */
43186 _ACEOF
43187 cat confdefs.h >>conftest.$ac_ext
43188 cat >>conftest.$ac_ext <<_ACEOF
43189 /* end confdefs.h.  */
43190
43191 /* Override any GCC internal prototype to avoid an error.
43192    Use char because int might match the return type of a GCC
43193    builtin and then its argument prototype would still apply.  */
43194 #ifdef __cplusplus
43195 extern "C"
43196 #endif
43197 char pthread_create ();
43198 int
43199 main ()
43200 {
43201 return pthread_create ();
43202   ;
43203   return 0;
43204 }
43205 _ACEOF
43206 rm -f conftest.$ac_objext conftest$ac_exeext
43207 if { (ac_try="$ac_link"
43208 case "(($ac_try" in
43209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43210   *) ac_try_echo=$ac_try;;
43211 esac
43212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43213   (eval "$ac_link") 2>conftest.er1
43214   ac_status=$?
43215   grep -v '^ *+' conftest.er1 >conftest.err
43216   rm -f conftest.er1
43217   cat conftest.err >&5
43218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43219   (exit $ac_status); } && {
43220          test -z "$ac_c_werror_flag" ||
43221          test ! -s conftest.err
43222        } && test -s conftest$ac_exeext &&
43223        $as_test_x conftest$ac_exeext; then
43224   ac_cv_lib_pthreads_pthread_create=yes
43225 else
43226   echo "$as_me: failed program was:" >&5
43227 sed 's/^/| /' conftest.$ac_ext >&5
43228
43229         ac_cv_lib_pthreads_pthread_create=no
43230 fi
43231
43232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43233       conftest$ac_exeext conftest.$ac_ext
43234 LIBS=$ac_check_lib_save_LIBS
43235 fi
43236 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
43237 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
43238 if test $ac_cv_lib_pthreads_pthread_create = yes; then
43239   PTHREAD_LIB="-lpthreads"
43240 else
43241
43242               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
43243 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
43244 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
43245   echo $ECHO_N "(cached) $ECHO_C" >&6
43246 else
43247   ac_check_lib_save_LIBS=$LIBS
43248 LIBS="-lc_r  $LIBS"
43249 cat >conftest.$ac_ext <<_ACEOF
43250 /* confdefs.h.  */
43251 _ACEOF
43252 cat confdefs.h >>conftest.$ac_ext
43253 cat >>conftest.$ac_ext <<_ACEOF
43254 /* end confdefs.h.  */
43255
43256 /* Override any GCC internal prototype to avoid an error.
43257    Use char because int might match the return type of a GCC
43258    builtin and then its argument prototype would still apply.  */
43259 #ifdef __cplusplus
43260 extern "C"
43261 #endif
43262 char pthread_create ();
43263 int
43264 main ()
43265 {
43266 return pthread_create ();
43267   ;
43268   return 0;
43269 }
43270 _ACEOF
43271 rm -f conftest.$ac_objext conftest$ac_exeext
43272 if { (ac_try="$ac_link"
43273 case "(($ac_try" in
43274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43275   *) ac_try_echo=$ac_try;;
43276 esac
43277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43278   (eval "$ac_link") 2>conftest.er1
43279   ac_status=$?
43280   grep -v '^ *+' conftest.er1 >conftest.err
43281   rm -f conftest.er1
43282   cat conftest.err >&5
43283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43284   (exit $ac_status); } && {
43285          test -z "$ac_c_werror_flag" ||
43286          test ! -s conftest.err
43287        } && test -s conftest$ac_exeext &&
43288        $as_test_x conftest$ac_exeext; then
43289   ac_cv_lib_c_r_pthread_create=yes
43290 else
43291   echo "$as_me: failed program was:" >&5
43292 sed 's/^/| /' conftest.$ac_ext >&5
43293
43294         ac_cv_lib_c_r_pthread_create=no
43295 fi
43296
43297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43298       conftest$ac_exeext conftest.$ac_ext
43299 LIBS=$ac_check_lib_save_LIBS
43300 fi
43301 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
43302 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
43303 if test $ac_cv_lib_c_r_pthread_create = yes; then
43304   PTHREAD_LIB="-lc_r"
43305 else
43306
43307                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
43308 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
43309 if test "${ac_cv_func_pthread_create+set}" = set; then
43310   echo $ECHO_N "(cached) $ECHO_C" >&6
43311 else
43312   cat >conftest.$ac_ext <<_ACEOF
43313 /* confdefs.h.  */
43314 _ACEOF
43315 cat confdefs.h >>conftest.$ac_ext
43316 cat >>conftest.$ac_ext <<_ACEOF
43317 /* end confdefs.h.  */
43318 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
43319    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43320 #define pthread_create innocuous_pthread_create
43321
43322 /* System header to define __stub macros and hopefully few prototypes,
43323     which can conflict with char pthread_create (); below.
43324     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43325     <limits.h> exists even on freestanding compilers.  */
43326
43327 #ifdef __STDC__
43328 # include <limits.h>
43329 #else
43330 # include <assert.h>
43331 #endif
43332
43333 #undef pthread_create
43334
43335 /* Override any GCC internal prototype to avoid an error.
43336    Use char because int might match the return type of a GCC
43337    builtin and then its argument prototype would still apply.  */
43338 #ifdef __cplusplus
43339 extern "C"
43340 #endif
43341 char pthread_create ();
43342 /* The GNU C library defines this for functions which it implements
43343     to always fail with ENOSYS.  Some functions are actually named
43344     something starting with __ and the normal name is an alias.  */
43345 #if defined __stub_pthread_create || defined __stub___pthread_create
43346 choke me
43347 #endif
43348
43349 int
43350 main ()
43351 {
43352 return pthread_create ();
43353   ;
43354   return 0;
43355 }
43356 _ACEOF
43357 rm -f conftest.$ac_objext conftest$ac_exeext
43358 if { (ac_try="$ac_link"
43359 case "(($ac_try" in
43360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43361   *) ac_try_echo=$ac_try;;
43362 esac
43363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43364   (eval "$ac_link") 2>conftest.er1
43365   ac_status=$?
43366   grep -v '^ *+' conftest.er1 >conftest.err
43367   rm -f conftest.er1
43368   cat conftest.err >&5
43369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43370   (exit $ac_status); } && {
43371          test -z "$ac_c_werror_flag" ||
43372          test ! -s conftest.err
43373        } && test -s conftest$ac_exeext &&
43374        $as_test_x conftest$ac_exeext; then
43375   ac_cv_func_pthread_create=yes
43376 else
43377   echo "$as_me: failed program was:" >&5
43378 sed 's/^/| /' conftest.$ac_ext >&5
43379
43380         ac_cv_func_pthread_create=no
43381 fi
43382
43383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43384       conftest$ac_exeext conftest.$ac_ext
43385 fi
43386 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
43387 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
43388
43389
43390
43391 fi
43392
43393
43394
43395 fi
43396
43397
43398
43399 fi
43400
43401
43402
43403
43404 for ac_header in sys/prctl.h sys/capability.h
43405 do
43406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43408   { echo "$as_me:$LINENO: checking for $ac_header" >&5
43409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43411   echo $ECHO_N "(cached) $ECHO_C" >&6
43412 fi
43413 ac_res=`eval echo '${'$as_ac_Header'}'`
43414                { echo "$as_me:$LINENO: result: $ac_res" >&5
43415 echo "${ECHO_T}$ac_res" >&6; }
43416 else
43417   # Is the header compilable?
43418 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
43419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
43420 cat >conftest.$ac_ext <<_ACEOF
43421 /* confdefs.h.  */
43422 _ACEOF
43423 cat confdefs.h >>conftest.$ac_ext
43424 cat >>conftest.$ac_ext <<_ACEOF
43425 /* end confdefs.h.  */
43426 $ac_includes_default
43427 #include <$ac_header>
43428 _ACEOF
43429 rm -f conftest.$ac_objext
43430 if { (ac_try="$ac_compile"
43431 case "(($ac_try" in
43432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43433   *) ac_try_echo=$ac_try;;
43434 esac
43435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43436   (eval "$ac_compile") 2>conftest.er1
43437   ac_status=$?
43438   grep -v '^ *+' conftest.er1 >conftest.err
43439   rm -f conftest.er1
43440   cat conftest.err >&5
43441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43442   (exit $ac_status); } && {
43443          test -z "$ac_c_werror_flag" ||
43444          test ! -s conftest.err
43445        } && test -s conftest.$ac_objext; then
43446   ac_header_compiler=yes
43447 else
43448   echo "$as_me: failed program was:" >&5
43449 sed 's/^/| /' conftest.$ac_ext >&5
43450
43451         ac_header_compiler=no
43452 fi
43453
43454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43456 echo "${ECHO_T}$ac_header_compiler" >&6; }
43457
43458 # Is the header present?
43459 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
43460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
43461 cat >conftest.$ac_ext <<_ACEOF
43462 /* confdefs.h.  */
43463 _ACEOF
43464 cat confdefs.h >>conftest.$ac_ext
43465 cat >>conftest.$ac_ext <<_ACEOF
43466 /* end confdefs.h.  */
43467 #include <$ac_header>
43468 _ACEOF
43469 if { (ac_try="$ac_cpp conftest.$ac_ext"
43470 case "(($ac_try" in
43471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43472   *) ac_try_echo=$ac_try;;
43473 esac
43474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43475   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43476   ac_status=$?
43477   grep -v '^ *+' conftest.er1 >conftest.err
43478   rm -f conftest.er1
43479   cat conftest.err >&5
43480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43481   (exit $ac_status); } >/dev/null && {
43482          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43483          test ! -s conftest.err
43484        }; then
43485   ac_header_preproc=yes
43486 else
43487   echo "$as_me: failed program was:" >&5
43488 sed 's/^/| /' conftest.$ac_ext >&5
43489
43490   ac_header_preproc=no
43491 fi
43492
43493 rm -f conftest.err conftest.$ac_ext
43494 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43495 echo "${ECHO_T}$ac_header_preproc" >&6; }
43496
43497 # So?  What about this header?
43498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43499   yes:no: )
43500     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43503 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43504     ac_header_preproc=yes
43505     ;;
43506   no:yes:* )
43507     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43509     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43510 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43511     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43512 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43513     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43514 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43515     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43517     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43518 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43519
43520     ;;
43521 esac
43522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43525   echo $ECHO_N "(cached) $ECHO_C" >&6
43526 else
43527   eval "$as_ac_Header=\$ac_header_preproc"
43528 fi
43529 ac_res=`eval echo '${'$as_ac_Header'}'`
43530                { echo "$as_me:$LINENO: result: $ac_res" >&5
43531 echo "${ECHO_T}$ac_res" >&6; }
43532
43533 fi
43534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43535   cat >>confdefs.h <<_ACEOF
43536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43537 _ACEOF
43538
43539 fi
43540
43541 done
43542
43543
43544
43545 for ac_func in prctl setreuid
43546 do
43547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43548 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43550 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43551   echo $ECHO_N "(cached) $ECHO_C" >&6
43552 else
43553   cat >conftest.$ac_ext <<_ACEOF
43554 /* confdefs.h.  */
43555 _ACEOF
43556 cat confdefs.h >>conftest.$ac_ext
43557 cat >>conftest.$ac_ext <<_ACEOF
43558 /* end confdefs.h.  */
43559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43560    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43561 #define $ac_func innocuous_$ac_func
43562
43563 /* System header to define __stub macros and hopefully few prototypes,
43564     which can conflict with char $ac_func (); below.
43565     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43566     <limits.h> exists even on freestanding compilers.  */
43567
43568 #ifdef __STDC__
43569 # include <limits.h>
43570 #else
43571 # include <assert.h>
43572 #endif
43573
43574 #undef $ac_func
43575
43576 /* Override any GCC internal prototype to avoid an error.
43577    Use char because int might match the return type of a GCC
43578    builtin and then its argument prototype would still apply.  */
43579 #ifdef __cplusplus
43580 extern "C"
43581 #endif
43582 char $ac_func ();
43583 /* The GNU C library defines this for functions which it implements
43584     to always fail with ENOSYS.  Some functions are actually named
43585     something starting with __ and the normal name is an alias.  */
43586 #if defined __stub_$ac_func || defined __stub___$ac_func
43587 choke me
43588 #endif
43589
43590 int
43591 main ()
43592 {
43593 return $ac_func ();
43594   ;
43595   return 0;
43596 }
43597 _ACEOF
43598 rm -f conftest.$ac_objext conftest$ac_exeext
43599 if { (ac_try="$ac_link"
43600 case "(($ac_try" in
43601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43602   *) ac_try_echo=$ac_try;;
43603 esac
43604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43605   (eval "$ac_link") 2>conftest.er1
43606   ac_status=$?
43607   grep -v '^ *+' conftest.er1 >conftest.err
43608   rm -f conftest.er1
43609   cat conftest.err >&5
43610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43611   (exit $ac_status); } && {
43612          test -z "$ac_c_werror_flag" ||
43613          test ! -s conftest.err
43614        } && test -s conftest$ac_exeext &&
43615        $as_test_x conftest$ac_exeext; then
43616   eval "$as_ac_var=yes"
43617 else
43618   echo "$as_me: failed program was:" >&5
43619 sed 's/^/| /' conftest.$ac_ext >&5
43620
43621         eval "$as_ac_var=no"
43622 fi
43623
43624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43625       conftest$ac_exeext conftest.$ac_ext
43626 fi
43627 ac_res=`eval echo '${'$as_ac_var'}'`
43628                { echo "$as_me:$LINENO: result: $ac_res" >&5
43629 echo "${ECHO_T}$ac_res" >&6; }
43630 if test `eval echo '${'$as_ac_var'}'` = yes; then
43631   cat >>confdefs.h <<_ACEOF
43632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43633 _ACEOF
43634
43635 fi
43636 done
43637
43638 { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
43639 echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
43640 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
43641   echo $ECHO_N "(cached) $ECHO_C" >&6
43642 else
43643   ac_check_lib_save_LIBS=$LIBS
43644 LIBS="-lcap  $LIBS"
43645 cat >conftest.$ac_ext <<_ACEOF
43646 /* confdefs.h.  */
43647 _ACEOF
43648 cat confdefs.h >>conftest.$ac_ext
43649 cat >>conftest.$ac_ext <<_ACEOF
43650 /* end confdefs.h.  */
43651
43652 /* Override any GCC internal prototype to avoid an error.
43653    Use char because int might match the return type of a GCC
43654    builtin and then its argument prototype would still apply.  */
43655 #ifdef __cplusplus
43656 extern "C"
43657 #endif
43658 char cap_set_proc ();
43659 int
43660 main ()
43661 {
43662 return cap_set_proc ();
43663   ;
43664   return 0;
43665 }
43666 _ACEOF
43667 rm -f conftest.$ac_objext conftest$ac_exeext
43668 if { (ac_try="$ac_link"
43669 case "(($ac_try" in
43670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43671   *) ac_try_echo=$ac_try;;
43672 esac
43673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43674   (eval "$ac_link") 2>conftest.er1
43675   ac_status=$?
43676   grep -v '^ *+' conftest.er1 >conftest.err
43677   rm -f conftest.er1
43678   cat conftest.err >&5
43679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43680   (exit $ac_status); } && {
43681          test -z "$ac_c_werror_flag" ||
43682          test ! -s conftest.err
43683        } && test -s conftest$ac_exeext &&
43684        $as_test_x conftest$ac_exeext; then
43685   ac_cv_lib_cap_cap_set_proc=yes
43686 else
43687   echo "$as_me: failed program was:" >&5
43688 sed 's/^/| /' conftest.$ac_ext >&5
43689
43690         ac_cv_lib_cap_cap_set_proc=no
43691 fi
43692
43693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43694       conftest$ac_exeext conftest.$ac_ext
43695 LIBS=$ac_check_lib_save_LIBS
43696 fi
43697 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
43698 echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
43699 if test $ac_cv_lib_cap_cap_set_proc = yes; then
43700   CAP_LIBS="-lcap"
43701 else
43702   CAP_LIBS=
43703 fi
43704
43705 if test x$CAP_LIBS = x-lcap; then
43706
43707 cat >>confdefs.h <<\_ACEOF
43708 #define HAVE_LIBCAP 1
43709 _ACEOF
43710
43711 fi
43712
43713
43714
43715 cat >>confdefs.h <<\_ACEOF
43716 #define FDLIBS 1
43717 _ACEOF
43718
43719
43720 CFLAGS=${CFLAGS--O}
43721
43722 if test x$have_gcc = xyes ; then
43723    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43724    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43725 fi
43726 LDFLAGS=${LDFLAGS--O}
43727 DB_LIBS="${SQL_LFLAGS}"
43728 CPPFLAGS="$CPPFLAGS"
43729 CFLAGS="$CFLAGS"
43730
43731
43732
43733
43734
43735
43736
43737
43738
43739
43740
43741
43742
43743
43744
43745
43746 OBJLIST=
43747
43748
43749 lld="lld"
43750 llu="llu"
43751
43752 WCFLAGS=
43753 WLDFLAGS=
43754
43755 PFILES="platforms/Makefile"
43756 PSCMD="ps -e"
43757 WIN32=
43758 MACOSX=
43759
43760 hostname=`uname -n | cut -d '.' -f 1`
43761 if test x${hostname} = x ; then
43762    hostname="localhost"
43763 fi
43764 ping -c 1 $hostname 2>/dev/null 1>/dev/null
43765 if test ! $? = 0; then
43766   hostname="localhost"
43767 fi
43768
43769 case "$DISTNAME" in
43770 aix)
43771    DISTVER=`uname -r`
43772    PSCMD="ps -e -o pid,comm"
43773    PFILES="${PFILES} \
43774       platforms/aix/Makefile"
43775    TAPEDRIVE="/dev/rmt0.1"
43776   ;;
43777 alpha)
43778    DISTVER=`uname -r`
43779    PTHREAD_LIB="-lpthread -lexc"
43780    if test "${CC}" = "gcc" ; then
43781       lld="lld"
43782       llu="llu"
43783    else
43784       lld="ld"
43785       llu="lu"
43786    fi
43787    TAPEDRIVE="/dev/nrmt0"
43788   ;;
43789 bsdi)
43790    DISTVER=`uname -a |awk '{print $3}'`
43791    TAPEDRIVE="/dev/nrmt0"
43792    PTHREAD_LIB="-pthread"
43793    CFLAGS="${CFLAGS} -pthread"
43794    PSCMD="ps -ax -o pid,command"
43795    lld="qd"
43796    llu="qu"
43797    PFILES="${PFILES} \
43798        platforms/bsdi/Makefile \
43799        platforms/bsdi/bacula-fd \
43800        platforms/bsdi/bacula-sd \
43801        platforms/bsdi/bacula-dir"
43802    largefile_support="yes"
43803   ;;
43804 cygwin)
43805    DISTVER=`uname -a |awk '{print $3}'`
43806    TAPEDRIVE="/dev/nrst0"
43807    WIN32=win32
43808    WCFLAGS="-mwindows"
43809    WLDFLAGS="-mwindows"
43810   ;;
43811 darwin)
43812    DISTVER=`uname -r`
43813    TAPEDRIVE="/dev/nst0"
43814    PSCMD="ps -e -o pid,command"
43815    MACOSX=macosx
43816    PFILES="${PFILES} \
43817       platforms/darwin/Makefile"
43818   ;;
43819 osx)
43820    DISTVER=`uname -r`
43821    TAPEDRIVE="/dev/nst0"
43822    PSCMD="ps -e -o pid,command"
43823    MACOSX=macosx
43824    PFILES="${PFILES} \
43825       platforms/osx/Makefile"
43826   ;;
43827 debian)
43828    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
43829       DISTNAME="ubuntu"
43830    fi
43831    DISTVER=`cat /etc/debian_version`
43832    if test -f /etc/lsb-release ; then
43833       . /etc/lsb-release
43834       if test "x$DISTRIB_ID" != "x" ; then
43835          DISTNAME=$DISTRIB_ID
43836       fi
43837       if test "x$DISTRIB_RELEASE" != "x" ; then
43838          DISTVER=$DISTRIB_RELEASE
43839       fi
43840    fi
43841    if test "$DISTNAME" = "Ubuntu" ; then
43842       DISTNAME="ubuntu"
43843    fi
43844    TAPEDRIVE="/dev/nst0"
43845    PSCMD="ps -e -o pid,command"
43846    if test "$DISTNAME" = "ubuntu" ; then
43847       PFILES="${PFILES} \
43848          platforms/ubuntu/Makefile \
43849          platforms/ubuntu/bacula-fd \
43850          platforms/ubuntu/bacula-sd \
43851          platforms/ubuntu/bacula-dir"
43852    else
43853       PFILES="${PFILES} \
43854          platforms/debian/Makefile \
43855          platforms/debian/bacula-fd \
43856          platforms/debian/bacula-sd \
43857          platforms/debian/bacula-dir"
43858    fi
43859   ;;
43860 freebsd)
43861    DISTVER=`uname -a |awk '{print $3}'`
43862    VER=`echo $DISTVER | cut -c 1`
43863    if test x$VER = x4 ; then
43864       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
43865       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
43866    fi
43867    lld="qd"
43868    llu="qu"
43869    TAPEDRIVE="/dev/nrsa0"
43870    PSCMD="ps -ax -o pid,command"
43871    PFILES="${PFILES} \
43872        platforms/freebsd/Makefile \
43873        platforms/freebsd/bacula-fd \
43874        platforms/freebsd/bacula-sd \
43875        platforms/freebsd/bacula-dir"
43876    largefile_support="yes"
43877   ;;
43878 hpux)
43879    PSCMD="UNIX95=1; ps -e -o pid,comm"
43880    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
43881    DISTVER=`uname -r`
43882    TAPEDRIVE="/dev/rmt/0hnb"
43883    PTHREAD_LIB="-lpthread"
43884    cat >>confdefs.h <<\_ACEOF
43885 #define _INCLUDE_LONGLONG 1
43886 _ACEOF
43887
43888   ;;
43889 irix)
43890    DISTVER=`uname -r`
43891    TAPEDRIVE="/dev/rmt/0cbn"
43892    PSCMD="ps -e -o pid,comm"
43893    PFILES="${PFILES} \
43894        platforms/irix/Makefile \
43895        platforms/irix/bacula-fd \
43896        platforms/irix/bacula-sd \
43897        platforms/irix/bacula-dir"
43898   ;;
43899 netbsd)
43900    DISTVER=`uname -a |awk '{print $3}'`
43901    lld="qd"
43902    llu="qu"
43903    TAPEDRIVE="/dev/nrst0"
43904    PSCMD="ps -ax -o pid,command"
43905    PTHREAD_LIB="-pthread"
43906    CFLAGS="${CFLAGS} -pthread"
43907   ;;
43908 openbsd)
43909    DISTVER=`uname -a |awk '{print $3}'`
43910    lld="qd"
43911    llu="qu"
43912    TAPEDRIVE="/dev/nrst0"
43913    PSCMD="ps -ax -o pid,command"
43914    PTHREAD_LIB="-pthread"
43915    CFLAGS="${CFLAGS} -pthread"
43916    PFILES="${PFILES} \
43917        platforms/openbsd/Makefile \
43918        platforms/openbsd/bacula-fd \
43919        platforms/openbsd/bacula-sd \
43920        platforms/openbsd/bacula-dir"
43921   ;;
43922 redhat)
43923    if test -f /etc/whitebox-release ; then
43924       f=/etc/whitebox-release
43925    else
43926       f=/etc/redhat-release
43927    fi
43928    if test `cat $f | grep release |\
43929          cut -f 3 -d ' '`x = "Enterprise"x ; then
43930       DISTVER="Enterprise "`cat $f | grep release |\
43931           cut -f 6 -d ' '`
43932    else
43933        DISTVER=`cat /etc/redhat-release | grep release |\
43934            cut -f 5 -d ' '`
43935    fi
43936    TAPEDRIVE="/dev/nst0"
43937    PSCMD="ps -e -o pid,command"
43938    PFILES="${PFILES} \
43939        platforms/redhat/Makefile \
43940        platforms/redhat/bacula-fd \
43941        platforms/redhat/bacula-sd \
43942        platforms/redhat/bacula-dir
43943        "
43944   ;;
43945 mandrake)
43946    DISTVER=`cat /etc/mandrake-release | grep release |\
43947       cut -f 5 -d ' '`
43948    TAPEDRIVE="/dev/nst0"
43949    PSCMD="ps -e -o pid,command"
43950    PFILES="${PFILES} \
43951        platforms/mandrake/Makefile \
43952        platforms/mandrake/bacula-fd \
43953        platforms/mandrake/bacula-sd \
43954        platforms/mandrake/bacula-dir \
43955        platforms/mandrake/bacula.spec \
43956        "
43957   ;;
43958 gentoo)
43959    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
43960    TAPEDRIVE="/dev/nst0"
43961    PSCMD="ps -e -o pid,command"
43962    PFILES="${PFILES} \
43963        platforms/gentoo/Makefile \
43964     platforms/gentoo/bacula-init \
43965        platforms/gentoo/bacula-fd \
43966        platforms/gentoo/bacula-sd \
43967        platforms/gentoo/bacula-dir"
43968   ;;
43969 slackware)
43970    DISTVER=`cat /etc/slackware-version`
43971    TAPEDRIVE="/dev/nst0"
43972    PSCMD="ps -e -o pid,command"
43973    PFILES="${PFILES} \
43974        platforms/slackware/Makefile \
43975        platforms/slackware/rc.bacula-fd \
43976        platforms/slackware/rc.bacula-sd \
43977        platforms/slackware/rc.bacula-dir\
43978        platforms/slackware/functions.bacula"
43979   ;;
43980 solaris)
43981    DISTVER=`uname -r`
43982    TAPEDRIVE="/dev/rmt/0cbn"
43983    PSCMD="ps -e -o pid,comm"
43984    PFILES="${PFILES} \
43985        platforms/solaris/Makefile \
43986        platforms/solaris/bacula-fd \
43987        platforms/solaris/bacula-sd \
43988        platforms/solaris/bacula-dir"
43989    if test x$DISTVER = x5.6 ; then
43990        cat >>confdefs.h <<\_ACEOF
43991 #define HAVE_OLD_SOCKOPT 1
43992 _ACEOF
43993
43994    fi
43995    LIBS="$LIBS -lresolv"
43996   ;;
43997 suse)
43998    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
43999        cut -f 3 -d ' '`
44000    TAPEDRIVE="/dev/nst0"
44001    PSCMD="ps -e -o pid,command"
44002    PFILES="${PFILES} \
44003        platforms/suse/Makefile \
44004        platforms/suse/bacula-fd \
44005        platforms/suse/bacula-sd \
44006        platforms/suse/bacula-dir \
44007        platforms/suse/bacula \
44008        platforms/suse/bacula.spec"
44009   ;;
44010 suse5)
44011    DISTNAME=suse
44012    DISTVER=5.x
44013    TAPEDRIVE="/dev/nst0"
44014    PSCMD="ps -e -o pid,command"
44015    PFILES="${PFILES} \
44016        platforms/suse/Makefile \
44017        platforms/suse/bacula-fd \
44018        platforms/suse/bacula-sd \
44019        platforms/suse/bacula-dir"
44020   ;;
44021 unknown)
44022    DISTVER=unknown
44023    TAPEDRIVE="/dev/nst0"
44024   ;;
44025 *)
44026   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
44027   ;;
44028 esac
44029
44030
44031
44032 LIBS="$PTHREAD_LIB $LIBS"
44033
44034 cat >>confdefs.h <<_ACEOF
44035 #define lld "$lld"
44036 _ACEOF
44037
44038 cat >>confdefs.h <<_ACEOF
44039 #define llu "$llu"
44040 _ACEOF
44041
44042
44043
44044
44045
44046
44047
44048
44049 MCOMMON=./autoconf/Make.common
44050
44051
44052 if test "x${subsysdir}" = "x${sbindir}" ; then
44053    echo " "
44054    echo " "
44055    echo "You have set both --sbindir and --with-subsys-dir"
44056    echo "  equal to: ${subsysdir} "
44057    echo "This is not permitted. Please reconfigure."
44058    echo " "
44059    echo "Aborting configuration ..."
44060    echo " "
44061    echo " "
44062    exit 1
44063 fi
44064
44065 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/create_ingres_database src/cats/update_ingres_tables src/cats/make_ingres_tables src/cats/grant_ingres_privileges src/cats/drop_ingres_tables src/cats/drop_ingres_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 examples/nagios/check_bacula/Makefile $PFILES"
44066
44067 ac_config_commands="$ac_config_commands default"
44068
44069 cat >confcache <<\_ACEOF
44070 # This file is a shell script that caches the results of configure
44071 # tests run on this system so they can be shared between configure
44072 # scripts and configure runs, see configure's option --config-cache.
44073 # It is not useful on other systems.  If it contains results you don't
44074 # want to keep, you may remove or edit it.
44075 #
44076 # config.status only pays attention to the cache file if you give it
44077 # the --recheck option to rerun configure.
44078 #
44079 # `ac_cv_env_foo' variables (set or unset) will be overridden when
44080 # loading this file, other *unset* `ac_cv_foo' will be assigned the
44081 # following values.
44082
44083 _ACEOF
44084
44085 # The following way of writing the cache mishandles newlines in values,
44086 # but we know of no workaround that is simple, portable, and efficient.
44087 # So, we kill variables containing newlines.
44088 # Ultrix sh set writes to stderr and can't be redirected directly,
44089 # and sets the high bit in the cache file unless we assign to the vars.
44090 (
44091   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
44092     eval ac_val=\$$ac_var
44093     case $ac_val in #(
44094     *${as_nl}*)
44095       case $ac_var in #(
44096       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
44097 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
44098       esac
44099       case $ac_var in #(
44100       _ | IFS | as_nl) ;; #(
44101       *) $as_unset $ac_var ;;
44102       esac ;;
44103     esac
44104   done
44105
44106   (set) 2>&1 |
44107     case $as_nl`(ac_space=' '; set) 2>&1` in #(
44108     *${as_nl}ac_space=\ *)
44109       # `set' does not quote correctly, so add quotes (double-quote
44110       # substitution turns \\\\ into \\, and sed turns \\ into \).
44111       sed -n \
44112         "s/'/'\\\\''/g;
44113           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
44114       ;; #(
44115     *)
44116       # `set' quotes correctly as required by POSIX, so do not add quotes.
44117       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
44118       ;;
44119     esac |
44120     sort
44121 ) |
44122   sed '
44123      /^ac_cv_env_/b end
44124      t clear
44125      :clear
44126      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44127      t end
44128      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44129      :end' >>confcache
44130 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
44131   if test -w "$cache_file"; then
44132     test "x$cache_file" != "x/dev/null" &&
44133       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
44134 echo "$as_me: updating cache $cache_file" >&6;}
44135     cat confcache >$cache_file
44136   else
44137     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
44138 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
44139   fi
44140 fi
44141 rm -f confcache
44142
44143 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44144 # Let make expand exec_prefix.
44145 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44146
44147 DEFS=-DHAVE_CONFIG_H
44148
44149 ac_libobjs=
44150 ac_ltlibobjs=
44151 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44152   # 1. Remove the extension, and $U if already installed.
44153   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
44154   ac_i=`echo "$ac_i" | sed "$ac_script"`
44155   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
44156   #    will be set to the directory where LIBOBJS objects are built.
44157   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
44158   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
44159 done
44160 LIBOBJS=$ac_libobjs
44161
44162 LTLIBOBJS=$ac_ltlibobjs
44163
44164
44165
44166 : ${CONFIG_STATUS=./config.status}
44167 ac_clean_files_save=$ac_clean_files
44168 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44169 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44170 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44171 cat >$CONFIG_STATUS <<_ACEOF
44172 #! $SHELL
44173 # Generated by $as_me.
44174 # Run this file to recreate the current configuration.
44175 # Compiler output produced by configure, useful for debugging
44176 # configure, is in config.log if it exists.
44177
44178 debug=false
44179 ac_cs_recheck=false
44180 ac_cs_silent=false
44181 SHELL=\${CONFIG_SHELL-$SHELL}
44182 _ACEOF
44183
44184 cat >>$CONFIG_STATUS <<\_ACEOF
44185 ## --------------------- ##
44186 ## M4sh Initialization.  ##
44187 ## --------------------- ##
44188
44189 # Be more Bourne compatible
44190 DUALCASE=1; export DUALCASE # for MKS sh
44191 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44192   emulate sh
44193   NULLCMD=:
44194   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44195   # is contrary to our usage.  Disable this feature.
44196   alias -g '${1+"$@"}'='"$@"'
44197   setopt NO_GLOB_SUBST
44198 else
44199   case `(set -o) 2>/dev/null` in
44200   *posix*) set -o posix ;;
44201 esac
44202
44203 fi
44204
44205
44206
44207
44208 # PATH needs CR
44209 # Avoid depending upon Character Ranges.
44210 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44211 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44212 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44213 as_cr_digits='0123456789'
44214 as_cr_alnum=$as_cr_Letters$as_cr_digits
44215
44216 # The user is always right.
44217 if test "${PATH_SEPARATOR+set}" != set; then
44218   echo "#! /bin/sh" >conf$$.sh
44219   echo  "exit 0"   >>conf$$.sh
44220   chmod +x conf$$.sh
44221   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44222     PATH_SEPARATOR=';'
44223   else
44224     PATH_SEPARATOR=:
44225   fi
44226   rm -f conf$$.sh
44227 fi
44228
44229 # Support unset when possible.
44230 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44231   as_unset=unset
44232 else
44233   as_unset=false
44234 fi
44235
44236
44237 # IFS
44238 # We need space, tab and new line, in precisely that order.  Quoting is
44239 # there to prevent editors from complaining about space-tab.
44240 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
44241 # splitting by setting IFS to empty value.)
44242 as_nl='
44243 '
44244 IFS=" ""        $as_nl"
44245
44246 # Find who we are.  Look in the path if we contain no directory separator.
44247 case $0 in
44248   *[\\/]* ) as_myself=$0 ;;
44249   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44250 for as_dir in $PATH
44251 do
44252   IFS=$as_save_IFS
44253   test -z "$as_dir" && as_dir=.
44254   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44255 done
44256 IFS=$as_save_IFS
44257
44258      ;;
44259 esac
44260 # We did not find ourselves, most probably we were run as `sh COMMAND'
44261 # in which case we are not to be found in the path.
44262 if test "x$as_myself" = x; then
44263   as_myself=$0
44264 fi
44265 if test ! -f "$as_myself"; then
44266   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
44267   { (exit 1); exit 1; }
44268 fi
44269
44270 # Work around bugs in pre-3.0 UWIN ksh.
44271 for as_var in ENV MAIL MAILPATH
44272 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44273 done
44274 PS1='$ '
44275 PS2='> '
44276 PS4='+ '
44277
44278 # NLS nuisances.
44279 for as_var in \
44280   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44281   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44282   LC_TELEPHONE LC_TIME
44283 do
44284   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44285     eval $as_var=C; export $as_var
44286   else
44287     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44288   fi
44289 done
44290
44291 # Required to use basename.
44292 if expr a : '\(a\)' >/dev/null 2>&1 &&
44293    test "X`expr 00001 : '.*\(...\)'`" = X001; then
44294   as_expr=expr
44295 else
44296   as_expr=false
44297 fi
44298
44299 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
44300   as_basename=basename
44301 else
44302   as_basename=false
44303 fi
44304
44305
44306 # Name of the executable.
44307 as_me=`$as_basename -- "$0" ||
44308 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44309          X"$0" : 'X\(//\)$' \| \
44310          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
44311 echo X/"$0" |
44312     sed '/^.*\/\([^/][^/]*\)\/*$/{
44313             s//\1/
44314             q
44315           }
44316           /^X\/\(\/\/\)$/{
44317             s//\1/
44318             q
44319           }
44320           /^X\/\(\/\).*/{
44321             s//\1/
44322             q
44323           }
44324           s/.*/./; q'`
44325
44326 # CDPATH.
44327 $as_unset CDPATH
44328
44329
44330
44331   as_lineno_1=$LINENO
44332   as_lineno_2=$LINENO
44333   test "x$as_lineno_1" != "x$as_lineno_2" &&
44334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
44335
44336   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44337   # uniformly replaced by the line number.  The first 'sed' inserts a
44338   # line-number line after each line using $LINENO; the second 'sed'
44339   # does the real work.  The second script uses 'N' to pair each
44340   # line-number line with the line containing $LINENO, and appends
44341   # trailing '-' during substitution so that $LINENO is not a special
44342   # case at line end.
44343   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44344   # scripts with optimization help from Paolo Bonzini.  Blame Lee
44345   # E. McMahon (1931-1989) for sed's syntax.  :-)
44346   sed -n '
44347     p
44348     /[$]LINENO/=
44349   ' <$as_myself |
44350     sed '
44351       s/[$]LINENO.*/&-/
44352       t lineno
44353       b
44354       :lineno
44355       N
44356       :loop
44357       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
44358       t loop
44359       s/-\n.*//
44360     ' >$as_me.lineno &&
44361   chmod +x "$as_me.lineno" ||
44362     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
44363    { (exit 1); exit 1; }; }
44364
44365   # Don't try to exec as it changes $[0], causing all sort of problems
44366   # (the dirname of $[0] is not the place where we might find the
44367   # original and so on.  Autoconf is especially sensitive to this).
44368   . "./$as_me.lineno"
44369   # Exit status is that of the last command.
44370   exit
44371 }
44372
44373
44374 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
44375   as_dirname=dirname
44376 else
44377   as_dirname=false
44378 fi
44379
44380 ECHO_C= ECHO_N= ECHO_T=
44381 case `echo -n x` in
44382 -n*)
44383   case `echo 'x\c'` in
44384   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
44385   *)   ECHO_C='\c';;
44386   esac;;
44387 *)
44388   ECHO_N='-n';;
44389 esac
44390
44391 if expr a : '\(a\)' >/dev/null 2>&1 &&
44392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
44393   as_expr=expr
44394 else
44395   as_expr=false
44396 fi
44397
44398 rm -f conf$$ conf$$.exe conf$$.file
44399 if test -d conf$$.dir; then
44400   rm -f conf$$.dir/conf$$.file
44401 else
44402   rm -f conf$$.dir
44403   mkdir conf$$.dir
44404 fi
44405 echo >conf$$.file
44406 if ln -s conf$$.file conf$$ 2>/dev/null; then
44407   as_ln_s='ln -s'
44408   # ... but there are two gotchas:
44409   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
44410   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
44411   # In both cases, we have to default to `cp -p'.
44412   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
44413     as_ln_s='cp -p'
44414 elif ln conf$$.file conf$$ 2>/dev/null; then
44415   as_ln_s=ln
44416 else
44417   as_ln_s='cp -p'
44418 fi
44419 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
44420 rmdir conf$$.dir 2>/dev/null
44421
44422 if mkdir -p . 2>/dev/null; then
44423   as_mkdir_p=:
44424 else
44425   test -d ./-p && rmdir ./-p
44426   as_mkdir_p=false
44427 fi
44428
44429 if test -x / >/dev/null 2>&1; then
44430   as_test_x='test -x'
44431 else
44432   if ls -dL / >/dev/null 2>&1; then
44433     as_ls_L_option=L
44434   else
44435     as_ls_L_option=
44436   fi
44437   as_test_x='
44438     eval sh -c '\''
44439       if test -d "$1"; then
44440         test -d "$1/.";
44441       else
44442         case $1 in
44443         -*)set "./$1";;
44444         esac;
44445         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
44446         ???[sx]*):;;*)false;;esac;fi
44447     '\'' sh
44448   '
44449 fi
44450 as_executable_p=$as_test_x
44451
44452 # Sed expression to map a string onto a valid CPP name.
44453 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
44454
44455 # Sed expression to map a string onto a valid variable name.
44456 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
44457
44458
44459 exec 6>&1
44460
44461 # Save the log message, to keep $[0] and so on meaningful, and to
44462 # report actual input values of CONFIG_FILES etc. instead of their
44463 # values after options handling.
44464 ac_log="
44465 This file was extended by $as_me, which was
44466 generated by GNU Autoconf 2.61.  Invocation command line was
44467
44468   CONFIG_FILES    = $CONFIG_FILES
44469   CONFIG_HEADERS  = $CONFIG_HEADERS
44470   CONFIG_LINKS    = $CONFIG_LINKS
44471   CONFIG_COMMANDS = $CONFIG_COMMANDS
44472   $ $0 $@
44473
44474 on `(hostname || uname -n) 2>/dev/null | sed 1q`
44475 "
44476
44477 _ACEOF
44478
44479 cat >>$CONFIG_STATUS <<_ACEOF
44480 # Files that config.status was made for.
44481 config_files="$ac_config_files"
44482 config_headers="$ac_config_headers"
44483 config_commands="$ac_config_commands"
44484
44485 _ACEOF
44486
44487 cat >>$CONFIG_STATUS <<\_ACEOF
44488 ac_cs_usage="\
44489 \`$as_me' instantiates files from templates according to the
44490 current configuration.
44491
44492 Usage: $0 [OPTIONS] [FILE]...
44493
44494   -h, --help       print this help, then exit
44495   -V, --version    print version number and configuration settings, then exit
44496   -q, --quiet      do not print progress messages
44497   -d, --debug      don't remove temporary files
44498       --recheck    update $as_me by reconfiguring in the same conditions
44499   --file=FILE[:TEMPLATE]
44500                    instantiate the configuration file FILE
44501   --header=FILE[:TEMPLATE]
44502                    instantiate the configuration header FILE
44503
44504 Configuration files:
44505 $config_files
44506
44507 Configuration headers:
44508 $config_headers
44509
44510 Configuration commands:
44511 $config_commands
44512
44513 Report bugs to <bug-autoconf@gnu.org>."
44514
44515 _ACEOF
44516 cat >>$CONFIG_STATUS <<_ACEOF
44517 ac_cs_version="\\
44518 config.status
44519 configured by $0, generated by GNU Autoconf 2.61,
44520   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
44521
44522 Copyright (C) 2006 Free Software Foundation, Inc.
44523 This config.status script is free software; the Free Software Foundation
44524 gives unlimited permission to copy, distribute and modify it."
44525
44526 ac_pwd='$ac_pwd'
44527 srcdir='$srcdir'
44528 INSTALL='$INSTALL'
44529 _ACEOF
44530
44531 cat >>$CONFIG_STATUS <<\_ACEOF
44532 # If no file are specified by the user, then we need to provide default
44533 # value.  By we need to know if files were specified by the user.
44534 ac_need_defaults=:
44535 while test $# != 0
44536 do
44537   case $1 in
44538   --*=*)
44539     ac_option=`expr "X$1" : 'X\([^=]*\)='`
44540     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
44541     ac_shift=:
44542     ;;
44543   *)
44544     ac_option=$1
44545     ac_optarg=$2
44546     ac_shift=shift
44547     ;;
44548   esac
44549
44550   case $ac_option in
44551   # Handling of the options.
44552   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44553     ac_cs_recheck=: ;;
44554   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
44555     echo "$ac_cs_version"; exit ;;
44556   --debug | --debu | --deb | --de | --d | -d )
44557     debug=: ;;
44558   --file | --fil | --fi | --f )
44559     $ac_shift
44560     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44561     ac_need_defaults=false;;
44562   --header | --heade | --head | --hea )
44563     $ac_shift
44564     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44565     ac_need_defaults=false;;
44566   --he | --h)
44567     # Conflict between --help and --header
44568     { echo "$as_me: error: ambiguous option: $1
44569 Try \`$0 --help' for more information." >&2
44570    { (exit 1); exit 1; }; };;
44571   --help | --hel | -h )
44572     echo "$ac_cs_usage"; exit ;;
44573   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44574   | -silent | --silent | --silen | --sile | --sil | --si | --s)
44575     ac_cs_silent=: ;;
44576
44577   # This is an error.
44578   -*) { echo "$as_me: error: unrecognized option: $1
44579 Try \`$0 --help' for more information." >&2
44580    { (exit 1); exit 1; }; } ;;
44581
44582   *) ac_config_targets="$ac_config_targets $1"
44583      ac_need_defaults=false ;;
44584
44585   esac
44586   shift
44587 done
44588
44589 ac_configure_extra_args=
44590
44591 if $ac_cs_silent; then
44592   exec 6>/dev/null
44593   ac_configure_extra_args="$ac_configure_extra_args --silent"
44594 fi
44595
44596 _ACEOF
44597 cat >>$CONFIG_STATUS <<_ACEOF
44598 if \$ac_cs_recheck; then
44599   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44600   CONFIG_SHELL=$SHELL
44601   export CONFIG_SHELL
44602   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44603 fi
44604
44605 _ACEOF
44606 cat >>$CONFIG_STATUS <<\_ACEOF
44607 exec 5>>config.log
44608 {
44609   echo
44610   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44611 ## Running $as_me. ##
44612 _ASBOX
44613   echo "$ac_log"
44614 } >&5
44615
44616 _ACEOF
44617 cat >>$CONFIG_STATUS <<_ACEOF
44618 #
44619 # INIT-COMMANDS
44620 #
44621
44622
44623 # The HP-UX ksh and POSIX shell print the target directory to stdout
44624 # if CDPATH is set.
44625 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
44626
44627 sed_quote_subst='$sed_quote_subst'
44628 double_quote_subst='$double_quote_subst'
44629 delay_variable_subst='$delay_variable_subst'
44630 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
44631 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
44632 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
44633 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
44634 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
44635 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
44636 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
44637 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
44638 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
44639 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
44640 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
44641 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
44642 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
44643 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
44644 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
44645 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
44646 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
44647 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
44648 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
44649 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
44650 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
44651 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
44652 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
44653 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
44654 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
44655 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
44656 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
44657 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44658 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
44659 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
44660 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
44661 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
44662 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44663 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
44664 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
44665 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44666 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44667 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44668 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
44669 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44670 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
44671 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
44672 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
44673 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
44674 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"`'
44675 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"`'
44676 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
44677 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
44678 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
44679 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
44680 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
44681 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
44682 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
44683 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
44684 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
44685 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
44686 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
44687 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
44688 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
44689 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
44690 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
44691 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
44692 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44693 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44694 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
44695 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
44696 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44697 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44698 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
44699 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44700 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44701 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44702 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44703 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44704 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44705 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
44706 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44707 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44708 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44709 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
44710 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
44711 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
44712 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
44713 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
44714 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44715 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
44716 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
44717 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
44718 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
44719 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
44720 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44721 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44722 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44723 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44724 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
44725 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
44726 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
44727 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
44728 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
44729 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44730 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44731 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
44732 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44733 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
44734 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44735 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44736 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44737 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44738 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
44739 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
44740 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44741 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44742 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
44743 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
44744 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
44745 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
44746 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
44747 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
44748 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
44749 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44750 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44751 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
44752 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
44753 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
44754 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44755 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44756 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44757 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44758 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44759 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44760 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44761 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44762 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44763 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44764 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44765 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44766 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44767 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44768 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44769 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44770 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44771 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44772 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44773 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44774 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44775 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44776 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44777 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44778 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44779 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44780 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44781 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44782 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44783 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44784 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44785 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44786 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44787 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44788 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44789 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44790 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44791 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44792 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44793 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44794 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44795 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44796 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44797 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44798 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44799 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44800 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44801
44802 LTCC='$LTCC'
44803 LTCFLAGS='$LTCFLAGS'
44804 compiler='$compiler_DEFAULT'
44805
44806 # Quote evaled strings.
44807 for var in SED \
44808 GREP \
44809 EGREP \
44810 FGREP \
44811 LD \
44812 NM \
44813 LN_S \
44814 lt_SP2NL \
44815 lt_NL2SP \
44816 reload_flag \
44817 OBJDUMP \
44818 deplibs_check_method \
44819 file_magic_cmd \
44820 AR \
44821 AR_FLAGS \
44822 STRIP \
44823 RANLIB \
44824 CC \
44825 CFLAGS \
44826 compiler \
44827 lt_cv_sys_global_symbol_pipe \
44828 lt_cv_sys_global_symbol_to_cdecl \
44829 lt_cv_sys_global_symbol_to_c_name_address \
44830 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
44831 SHELL \
44832 ECHO \
44833 lt_prog_compiler_no_builtin_flag \
44834 lt_prog_compiler_wl \
44835 lt_prog_compiler_pic \
44836 lt_prog_compiler_static \
44837 lt_cv_prog_compiler_c_o \
44838 need_locks \
44839 DSYMUTIL \
44840 NMEDIT \
44841 LIPO \
44842 OTOOL \
44843 OTOOL64 \
44844 shrext_cmds \
44845 export_dynamic_flag_spec \
44846 whole_archive_flag_spec \
44847 compiler_needs_object \
44848 with_gnu_ld \
44849 allow_undefined_flag \
44850 no_undefined_flag \
44851 hardcode_libdir_flag_spec \
44852 hardcode_libdir_flag_spec_ld \
44853 hardcode_libdir_separator \
44854 fix_srcfile_path \
44855 exclude_expsyms \
44856 include_expsyms \
44857 file_list_spec \
44858 variables_saved_for_relink \
44859 libname_spec \
44860 library_names_spec \
44861 soname_spec \
44862 finish_eval \
44863 old_striplib \
44864 striplib \
44865 compiler_lib_search_dirs \
44866 predep_objects \
44867 postdep_objects \
44868 predeps \
44869 postdeps \
44870 compiler_lib_search_path \
44871 LD_CXX \
44872 compiler_CXX \
44873 lt_prog_compiler_no_builtin_flag_CXX \
44874 lt_prog_compiler_wl_CXX \
44875 lt_prog_compiler_pic_CXX \
44876 lt_prog_compiler_static_CXX \
44877 lt_cv_prog_compiler_c_o_CXX \
44878 export_dynamic_flag_spec_CXX \
44879 whole_archive_flag_spec_CXX \
44880 compiler_needs_object_CXX \
44881 with_gnu_ld_CXX \
44882 allow_undefined_flag_CXX \
44883 no_undefined_flag_CXX \
44884 hardcode_libdir_flag_spec_CXX \
44885 hardcode_libdir_flag_spec_ld_CXX \
44886 hardcode_libdir_separator_CXX \
44887 fix_srcfile_path_CXX \
44888 exclude_expsyms_CXX \
44889 include_expsyms_CXX \
44890 file_list_spec_CXX \
44891 compiler_lib_search_dirs_CXX \
44892 predep_objects_CXX \
44893 postdep_objects_CXX \
44894 predeps_CXX \
44895 postdeps_CXX \
44896 compiler_lib_search_path_CXX; do
44897     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44898     *[\\\\\\\`\\"\\\$]*)
44899       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
44900       ;;
44901     *)
44902       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44903       ;;
44904     esac
44905 done
44906
44907 # Double-quote double-evaled strings.
44908 for var in reload_cmds \
44909 old_postinstall_cmds \
44910 old_postuninstall_cmds \
44911 old_archive_cmds \
44912 extract_expsyms_cmds \
44913 old_archive_from_new_cmds \
44914 old_archive_from_expsyms_cmds \
44915 archive_cmds \
44916 archive_expsym_cmds \
44917 module_cmds \
44918 module_expsym_cmds \
44919 export_symbols_cmds \
44920 prelink_cmds \
44921 postinstall_cmds \
44922 postuninstall_cmds \
44923 finish_cmds \
44924 sys_lib_search_path_spec \
44925 sys_lib_dlsearch_path_spec \
44926 old_archive_cmds_CXX \
44927 old_archive_from_new_cmds_CXX \
44928 old_archive_from_expsyms_cmds_CXX \
44929 archive_cmds_CXX \
44930 archive_expsym_cmds_CXX \
44931 module_cmds_CXX \
44932 module_expsym_cmds_CXX \
44933 export_symbols_cmds_CXX \
44934 prelink_cmds_CXX; do
44935     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44936     *[\\\\\\\`\\"\\\$]*)
44937       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
44938       ;;
44939     *)
44940       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44941       ;;
44942     esac
44943 done
44944
44945 # Fix-up fallback echo if it was mangled by the above quoting rules.
44946 case \$lt_ECHO in
44947 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
44948   ;;
44949 esac
44950
44951 ac_aux_dir='$ac_aux_dir'
44952 xsi_shell='$xsi_shell'
44953 lt_shell_append='$lt_shell_append'
44954
44955 # See if we are running on zsh, and set the options which allow our
44956 # commands through without removal of \ escapes INIT.
44957 if test -n "\${ZSH_VERSION+set}" ; then
44958    setopt NO_GLOB_SUBST
44959 fi
44960
44961
44962     PACKAGE='$PACKAGE'
44963     VERSION='$VERSION'
44964     TIMESTAMP='$TIMESTAMP'
44965     RM='$RM'
44966     ofile='$ofile'
44967
44968
44969
44970
44971
44972 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
44973     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
44974     # from automake.
44975     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
44976     # Capture the value of LINGUAS because we need it to compute CATALOGS.
44977     LINGUAS="${LINGUAS-%UNSET%}"
44978
44979
44980 _ACEOF
44981
44982 cat >>$CONFIG_STATUS <<\_ACEOF
44983
44984 # Handling of arguments.
44985 for ac_config_target in $ac_config_targets
44986 do
44987   case $ac_config_target in
44988     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
44989     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
44990     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
44991     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
44992     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44993     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
44994     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
44995     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
44996     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
44997     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
44998     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
44999     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
45000     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
45001     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
45002     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
45003     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
45004     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
45005     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
45006     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
45007     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
45008     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
45009     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
45010     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
45011     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
45012     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
45013     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
45014     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
45015     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
45016     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
45017     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
45018     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
45019     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
45020     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
45021     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
45022     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
45023     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
45024     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
45025     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
45026     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
45027     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
45028     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
45029     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
45030     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
45031     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
45032     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
45033     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
45034     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
45035     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
45036     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
45037     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
45038     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
45039     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
45040     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
45041     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
45042     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
45043     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
45044     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
45045     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
45046     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
45047     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
45048     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
45049     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
45050     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
45051     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
45052     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
45053     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
45054     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
45055     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
45056     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
45057     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
45058     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
45059     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
45060     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
45061     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
45062     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
45063     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
45064     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
45065     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
45066     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
45067     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
45068     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
45069     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
45070     "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
45071     "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
45072     "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
45073     "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
45074     "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
45075     "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
45076     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
45077     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
45078     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
45079     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
45080     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
45081     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
45082     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
45083     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
45084     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
45085     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
45086     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
45087     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
45088     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
45089     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
45090     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
45091     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
45092     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
45093     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
45094     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
45095     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
45096     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
45097     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
45098     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
45099     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
45100     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
45101     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
45102     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
45103     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
45104     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
45105     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45106
45107   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45108 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45109    { (exit 1); exit 1; }; };;
45110   esac
45111 done
45112
45113
45114 # If the user did not use the arguments to specify the items to instantiate,
45115 # then the envvar interface is used.  Set only those that are not.
45116 # We use the long form for the default assignment because of an extremely
45117 # bizarre bug on SunOS 4.1.3.
45118 if $ac_need_defaults; then
45119   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45120   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45121   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45122 fi
45123
45124 # Have a temporary directory for convenience.  Make it in the build tree
45125 # simply because there is no reason against having it here, and in addition,
45126 # creating and moving files from /tmp can sometimes cause problems.
45127 # Hook for its removal unless debugging.
45128 # Note that there is a small window in which the directory will not be cleaned:
45129 # after its creation but before its name has been assigned to `$tmp'.
45130 $debug ||
45131 {
45132   tmp=
45133   trap 'exit_status=$?
45134   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
45135 ' 0
45136   trap '{ (exit 1); exit 1; }' 1 2 13 15
45137 }
45138 # Create a (secure) tmp directory for tmp files.
45139
45140 {
45141   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
45142   test -n "$tmp" && test -d "$tmp"
45143 }  ||
45144 {
45145   tmp=./conf$$-$RANDOM
45146   (umask 077 && mkdir "$tmp")
45147 } ||
45148 {
45149    echo "$me: cannot create a temporary directory in ." >&2
45150    { (exit 1); exit 1; }
45151 }
45152
45153 #
45154 # Set up the sed scripts for CONFIG_FILES section.
45155 #
45156
45157 # No need to generate the scripts if there are no CONFIG_FILES.
45158 # This happens for instance when ./config.status config.h
45159 if test -n "$CONFIG_FILES"; then
45160
45161 _ACEOF
45162
45163 # Create sed commands to just substitute file output variables.
45164
45165 # Remaining file output variables are in a fragment that also has non-file
45166 # output varibles.
45167
45168
45169
45170 ac_delim='%!_!# '
45171 for ac_last_try in false false false false false :; do
45172   cat >conf$$subs.sed <<_ACEOF
45173 SHELL!$SHELL$ac_delim
45174 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
45175 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
45176 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
45177 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
45178 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
45179 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
45180 exec_prefix!$exec_prefix$ac_delim
45181 prefix!$prefix$ac_delim
45182 program_transform_name!$program_transform_name$ac_delim
45183 bindir!$bindir$ac_delim
45184 sbindir!$sbindir$ac_delim
45185 libexecdir!$libexecdir$ac_delim
45186 datarootdir!$datarootdir$ac_delim
45187 datadir!$datadir$ac_delim
45188 sysconfdir!$sysconfdir$ac_delim
45189 sharedstatedir!$sharedstatedir$ac_delim
45190 localstatedir!$localstatedir$ac_delim
45191 includedir!$includedir$ac_delim
45192 oldincludedir!$oldincludedir$ac_delim
45193 docdir!$docdir$ac_delim
45194 infodir!$infodir$ac_delim
45195 htmldir!$htmldir$ac_delim
45196 dvidir!$dvidir$ac_delim
45197 pdfdir!$pdfdir$ac_delim
45198 psdir!$psdir$ac_delim
45199 libdir!$libdir$ac_delim
45200 localedir!$localedir$ac_delim
45201 mandir!$mandir$ac_delim
45202 DEFS!$DEFS$ac_delim
45203 ECHO_C!$ECHO_C$ac_delim
45204 ECHO_N!$ECHO_N$ac_delim
45205 ECHO_T!$ECHO_T$ac_delim
45206 LIBS!$LIBS$ac_delim
45207 build_alias!$build_alias$ac_delim
45208 host_alias!$host_alias$ac_delim
45209 target_alias!$target_alias$ac_delim
45210 BUILD_DIR!$BUILD_DIR$ac_delim
45211 TOP_DIR!$TOP_DIR$ac_delim
45212 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
45213 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
45214 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
45215 TRUEPRG!$TRUEPRG$ac_delim
45216 FALSEPRG!$FALSEPRG$ac_delim
45217 VERSION!$VERSION$ac_delim
45218 DATE!$DATE$ac_delim
45219 LSMDATE!$LSMDATE$ac_delim
45220 BACULA!$BACULA$ac_delim
45221 post_host!$post_host$ac_delim
45222 CC!$CC$ac_delim
45223 CFLAGS!$CFLAGS$ac_delim
45224 LDFLAGS!$LDFLAGS$ac_delim
45225 CPPFLAGS!$CPPFLAGS$ac_delim
45226 ac_ct_CC!$ac_ct_CC$ac_delim
45227 EXEEXT!$EXEEXT$ac_delim
45228 OBJEXT!$OBJEXT$ac_delim
45229 CXX!$CXX$ac_delim
45230 CXXFLAGS!$CXXFLAGS$ac_delim
45231 ac_ct_CXX!$ac_ct_CXX$ac_delim
45232 CPP!$CPP$ac_delim
45233 GREP!$GREP$ac_delim
45234 EGREP!$EGREP$ac_delim
45235 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
45236 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
45237 INSTALL_DATA!$INSTALL_DATA$ac_delim
45238 MV!$MV$ac_delim
45239 REMOVE!$REMOVE$ac_delim
45240 CP!$CP$ac_delim
45241 SED!$SED$ac_delim
45242 ECHO!$ECHO$ac_delim
45243 CMP!$CMP$ac_delim
45244 TBL!$TBL$ac_delim
45245 AR!$AR$ac_delim
45246 OPENSSL!$OPENSSL$ac_delim
45247 MTX!$MTX$ac_delim
45248 DD!$DD$ac_delim
45249 MKISOFS!$MKISOFS$ac_delim
45250 PYTHON!$PYTHON$ac_delim
45251 GROWISOFS!$GROWISOFS$ac_delim
45252 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
45253 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
45254 PKGCONFIG!$PKGCONFIG$ac_delim
45255 QMAKE!$QMAKE$ac_delim
45256 GMAKE!$GMAKE$ac_delim
45257 WXCONFIG!$WXCONFIG$ac_delim
45258 WXFLAGS!$WXFLAGS$ac_delim
45259 CDRECORD!$CDRECORD$ac_delim
45260 PIDOF!$PIDOF$ac_delim
45261 AWK!$AWK$ac_delim
45262 ARFLAGS!$ARFLAGS$ac_delim
45263 MAKE_SHELL!$MAKE_SHELL$ac_delim
45264 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
45265 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
45266 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
45267 _ACEOF
45268
45269   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
45270     break
45271   elif $ac_last_try; then
45272     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45273 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45274    { (exit 1); exit 1; }; }
45275   else
45276     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45277   fi
45278 done
45279
45280 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45281 if test -n "$ac_eof"; then
45282   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45283   ac_eof=`expr $ac_eof + 1`
45284 fi
45285
45286 cat >>$CONFIG_STATUS <<_ACEOF
45287 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
45288 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45289 /^[      ]*@MCOMMON@[    ]*$/{
45290 r $MCOMMON
45291 d
45292 }
45293 _ACEOF
45294 sed '
45295 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45296 s/^/s,@/; s/!/@,|#_!!_#|/
45297 :n
45298 t n
45299 s/'"$ac_delim"'$/,g/; t
45300 s/$/\\/; p
45301 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45302 ' >>$CONFIG_STATUS <conf$$subs.sed
45303 rm -f conf$$subs.sed
45304 cat >>$CONFIG_STATUS <<_ACEOF
45305 CEOF$ac_eof
45306 _ACEOF
45307
45308
45309 ac_delim='%!_!# '
45310 for ac_last_try in false false false false false :; do
45311   cat >conf$$subs.sed <<_ACEOF
45312 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
45313 LIBTOOL!$LIBTOOL$ac_delim
45314 build!$build$ac_delim
45315 build_cpu!$build_cpu$ac_delim
45316 build_vendor!$build_vendor$ac_delim
45317 build_os!$build_os$ac_delim
45318 host!$host$ac_delim
45319 host_cpu!$host_cpu$ac_delim
45320 host_vendor!$host_vendor$ac_delim
45321 host_os!$host_os$ac_delim
45322 FGREP!$FGREP$ac_delim
45323 LD!$LD$ac_delim
45324 DUMPBIN!$DUMPBIN$ac_delim
45325 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
45326 NM!$NM$ac_delim
45327 LN_S!$LN_S$ac_delim
45328 OBJDUMP!$OBJDUMP$ac_delim
45329 STRIP!$STRIP$ac_delim
45330 RANLIB!$RANLIB$ac_delim
45331 lt_ECHO!$lt_ECHO$ac_delim
45332 DSYMUTIL!$DSYMUTIL$ac_delim
45333 NMEDIT!$NMEDIT$ac_delim
45334 LIPO!$LIPO$ac_delim
45335 OTOOL!$OTOOL$ac_delim
45336 OTOOL64!$OTOOL64$ac_delim
45337 CXXCPP!$CXXCPP$ac_delim
45338 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
45339 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
45340 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
45341 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
45342 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
45343 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
45344 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
45345 FD_PLUGIN_DIR!$FD_PLUGIN_DIR$ac_delim
45346 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
45347 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
45348 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
45349 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
45350 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
45351 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
45352 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
45353 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
45354 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
45355 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
45356 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
45357 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
45358 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
45359 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
45360 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
45361 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
45362 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
45363 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
45364 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
45365 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
45366 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
45367 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
45368 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
45369 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
45370 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
45371 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
45372 SET_MAKE!$SET_MAKE$ac_delim
45373 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
45374 USE_NLS!$USE_NLS$ac_delim
45375 MSGFMT!$MSGFMT$ac_delim
45376 GMSGFMT!$GMSGFMT$ac_delim
45377 XGETTEXT!$XGETTEXT$ac_delim
45378 MSGMERGE!$MSGMERGE$ac_delim
45379 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
45380 LIBICONV!$LIBICONV$ac_delim
45381 LTLIBICONV!$LTLIBICONV$ac_delim
45382 INTLLIBS!$INTLLIBS$ac_delim
45383 LIBINTL!$LIBINTL$ac_delim
45384 LTLIBINTL!$LTLIBINTL$ac_delim
45385 POSUB!$POSUB$ac_delim
45386 GLIBC2!$GLIBC2$ac_delim
45387 ALLOCA!$ALLOCA$ac_delim
45388 GLIBC21!$GLIBC21$ac_delim
45389 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
45390 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
45391 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
45392 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
45393 INTLBISON!$INTLBISON$ac_delim
45394 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
45395 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
45396 CATOBJEXT!$CATOBJEXT$ac_delim
45397 DATADIRNAME!$DATADIRNAME$ac_delim
45398 INSTOBJEXT!$INSTOBJEXT$ac_delim
45399 GENCAT!$GENCAT$ac_delim
45400 INTLOBJS!$INTLOBJS$ac_delim
45401 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
45402 BAT_DIR!$BAT_DIR$ac_delim
45403 QWT_INC!$QWT_INC$ac_delim
45404 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
45405 QWT_LIB!$QWT_LIB$ac_delim
45406 QWT!$QWT$ac_delim
45407 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
45408 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
45409 _ACEOF
45410
45411   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45412     break
45413   elif $ac_last_try; then
45414     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45415 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45416    { (exit 1); exit 1; }; }
45417   else
45418     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45419   fi
45420 done
45421
45422 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45423 if test -n "$ac_eof"; then
45424   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45425   ac_eof=`expr $ac_eof + 1`
45426 fi
45427
45428 cat >>$CONFIG_STATUS <<_ACEOF
45429 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
45430 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45431 _ACEOF
45432 sed '
45433 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45434 s/^/s,@/; s/!/@,|#_!!_#|/
45435 :n
45436 t n
45437 s/'"$ac_delim"'$/,g/; t
45438 s/$/\\/; p
45439 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45440 ' >>$CONFIG_STATUS <conf$$subs.sed
45441 rm -f conf$$subs.sed
45442 cat >>$CONFIG_STATUS <<_ACEOF
45443 CEOF$ac_eof
45444 _ACEOF
45445
45446
45447 ac_delim='%!_!# '
45448 for ac_last_try in false false false false false :; do
45449   cat >conf$$subs.sed <<_ACEOF
45450 WX_DIR!$WX_DIR$ac_delim
45451 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
45452 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
45453 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
45454 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
45455 STATIC_FD!$STATIC_FD$ac_delim
45456 STATIC_SD!$STATIC_SD$ac_delim
45457 STATIC_DIR!$STATIC_DIR$ac_delim
45458 STATIC_CONS!$STATIC_CONS$ac_delim
45459 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
45460 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
45461 ALL_DIRS!$ALL_DIRS$ac_delim
45462 DIRD_DIR!$DIRD_DIR$ac_delim
45463 DIR_TOOLS!$DIR_TOOLS$ac_delim
45464 STORED_DIR!$STORED_DIR$ac_delim
45465 CONS_INC!$CONS_INC$ac_delim
45466 CONS_OBJ!$CONS_OBJ$ac_delim
45467 CONS_SRC!$CONS_SRC$ac_delim
45468 CONS_LIBS!$CONS_LIBS$ac_delim
45469 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
45470 READLINE_SRC!$READLINE_SRC$ac_delim
45471 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
45472 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
45473 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
45474 OPENSSL_INC!$OPENSSL_INC$ac_delim
45475 working_dir!$working_dir$ac_delim
45476 archivedir!$archivedir$ac_delim
45477 basename!$basename$ac_delim
45478 hostname!$hostname$ac_delim
45479 scriptdir!$scriptdir$ac_delim
45480 bsrdir!$bsrdir$ac_delim
45481 logdir!$logdir$ac_delim
45482 plugindir!$plugindir$ac_delim
45483 dump_email!$dump_email$ac_delim
45484 job_email!$job_email$ac_delim
45485 smtp_host!$smtp_host$ac_delim
45486 piddir!$piddir$ac_delim
45487 subsysdir!$subsysdir$ac_delim
45488 baseport!$baseport$ac_delim
45489 dir_port!$dir_port$ac_delim
45490 fd_port!$fd_port$ac_delim
45491 sd_port!$sd_port$ac_delim
45492 dir_password!$dir_password$ac_delim
45493 fd_password!$fd_password$ac_delim
45494 sd_password!$sd_password$ac_delim
45495 mon_dir_password!$mon_dir_password$ac_delim
45496 mon_fd_password!$mon_fd_password$ac_delim
45497 mon_sd_password!$mon_sd_password$ac_delim
45498 db_name!$db_name$ac_delim
45499 db_user!$db_user$ac_delim
45500 db_password!$db_password$ac_delim
45501 db_port!$db_port$ac_delim
45502 dir_user!$dir_user$ac_delim
45503 dir_group!$dir_group$ac_delim
45504 sd_user!$sd_user$ac_delim
45505 sd_group!$sd_group$ac_delim
45506 fd_user!$fd_user$ac_delim
45507 fd_group!$fd_group$ac_delim
45508 SBINPERM!$SBINPERM$ac_delim
45509 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
45510 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
45511 SQL_BINDIR!$SQL_BINDIR$ac_delim
45512 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
45513 uncomment_dbi!$uncomment_dbi$ac_delim
45514 DB_PROG!$DB_PROG$ac_delim
45515 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
45516 cats!$cats$ac_delim
45517 DB_TYPE!$DB_TYPE$ac_delim
45518 GETCONF!$GETCONF$ac_delim
45519 XMKMF!$XMKMF$ac_delim
45520 X_CFLAGS!$X_CFLAGS$ac_delim
45521 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
45522 X_LIBS!$X_LIBS$ac_delim
45523 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
45524 LIBOBJS!$LIBOBJS$ac_delim
45525 CAP_LIBS!$CAP_LIBS$ac_delim
45526 FDLIBS!$FDLIBS$ac_delim
45527 DEBUG!$DEBUG$ac_delim
45528 DINCLUDE!$DINCLUDE$ac_delim
45529 DLIB!$DLIB$ac_delim
45530 DB_LIBS!$DB_LIBS$ac_delim
45531 WCFLAGS!$WCFLAGS$ac_delim
45532 WLDFLAGS!$WLDFLAGS$ac_delim
45533 WRAPLIBS!$WRAPLIBS$ac_delim
45534 OBJLIST!$OBJLIST$ac_delim
45535 TAPEDRIVE!$TAPEDRIVE$ac_delim
45536 PSCMD!$PSCMD$ac_delim
45537 WIN32!$WIN32$ac_delim
45538 MACOSX!$MACOSX$ac_delim
45539 DISTNAME!$DISTNAME$ac_delim
45540 DISTVER!$DISTVER$ac_delim
45541 LTLIBOBJS!$LTLIBOBJS$ac_delim
45542 _ACEOF
45543
45544   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
45545     break
45546   elif $ac_last_try; then
45547     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45548 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45549    { (exit 1); exit 1; }; }
45550   else
45551     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45552   fi
45553 done
45554
45555 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45556 if test -n "$ac_eof"; then
45557   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45558   ac_eof=`expr $ac_eof + 1`
45559 fi
45560
45561 cat >>$CONFIG_STATUS <<_ACEOF
45562 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
45563 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
45564 _ACEOF
45565 sed '
45566 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45567 s/^/s,@/; s/!/@,|#_!!_#|/
45568 :n
45569 t n
45570 s/'"$ac_delim"'$/,g/; t
45571 s/$/\\/; p
45572 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45573 ' >>$CONFIG_STATUS <conf$$subs.sed
45574 rm -f conf$$subs.sed
45575 cat >>$CONFIG_STATUS <<_ACEOF
45576 :end
45577 s/|#_!!_#|//g
45578 CEOF$ac_eof
45579 _ACEOF
45580
45581
45582 # VPATH may cause trouble with some makes, so we remove $(srcdir),
45583 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45584 # trailing colons and then remove the whole line if VPATH becomes empty
45585 # (actually we leave an empty line to preserve line numbers).
45586 if test "x$srcdir" = x.; then
45587   ac_vpsub='/^[  ]*VPATH[        ]*=/{
45588 s/:*\$(srcdir):*/:/
45589 s/:*\${srcdir}:*/:/
45590 s/:*@srcdir@:*/:/
45591 s/^\([^=]*=[     ]*\):*/\1/
45592 s/:*$//
45593 s/^[^=]*=[       ]*$//
45594 }'
45595 fi
45596
45597 cat >>$CONFIG_STATUS <<\_ACEOF
45598 fi # test -n "$CONFIG_FILES"
45599
45600
45601 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
45602 do
45603   case $ac_tag in
45604   :[FHLC]) ac_mode=$ac_tag; continue;;
45605   esac
45606   case $ac_mode$ac_tag in
45607   :[FHL]*:*);;
45608   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
45609 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
45610    { (exit 1); exit 1; }; };;
45611   :[FH]-) ac_tag=-:-;;
45612   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
45613   esac
45614   ac_save_IFS=$IFS
45615   IFS=:
45616   set x $ac_tag
45617   IFS=$ac_save_IFS
45618   shift
45619   ac_file=$1
45620   shift
45621
45622   case $ac_mode in
45623   :L) ac_source=$1;;
45624   :[FH])
45625     ac_file_inputs=
45626     for ac_f
45627     do
45628       case $ac_f in
45629       -) ac_f="$tmp/stdin";;
45630       *) # Look for the file first in the build tree, then in the source tree
45631          # (if the path is not absolute).  The absolute path cannot be DOS-style,
45632          # because $ac_f cannot contain `:'.
45633          test -f "$ac_f" ||
45634            case $ac_f in
45635            [\\/$]*) false;;
45636            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
45637            esac ||
45638            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
45639 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
45640    { (exit 1); exit 1; }; };;
45641       esac
45642       ac_file_inputs="$ac_file_inputs $ac_f"
45643     done
45644
45645     # Let's still pretend it is `configure' which instantiates (i.e., don't
45646     # use $as_me), people would be surprised to read:
45647     #    /* config.h.  Generated by config.status.  */
45648     configure_input="Generated from "`IFS=:
45649           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
45650     if test x"$ac_file" != x-; then
45651       configure_input="$ac_file.  $configure_input"
45652       { echo "$as_me:$LINENO: creating $ac_file" >&5
45653 echo "$as_me: creating $ac_file" >&6;}
45654     fi
45655
45656     case $ac_tag in
45657     *:-:* | *:-) cat >"$tmp/stdin";;
45658     esac
45659     ;;
45660   esac
45661
45662   ac_dir=`$as_dirname -- "$ac_file" ||
45663 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45664          X"$ac_file" : 'X\(//\)[^/]' \| \
45665          X"$ac_file" : 'X\(//\)$' \| \
45666          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
45667 echo X"$ac_file" |
45668     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45669             s//\1/
45670             q
45671           }
45672           /^X\(\/\/\)[^/].*/{
45673             s//\1/
45674             q
45675           }
45676           /^X\(\/\/\)$/{
45677             s//\1/
45678             q
45679           }
45680           /^X\(\/\).*/{
45681             s//\1/
45682             q
45683           }
45684           s/.*/./; q'`
45685   { as_dir="$ac_dir"
45686   case $as_dir in #(
45687   -*) as_dir=./$as_dir;;
45688   esac
45689   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
45690     as_dirs=
45691     while :; do
45692       case $as_dir in #(
45693       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
45694       *) as_qdir=$as_dir;;
45695       esac
45696       as_dirs="'$as_qdir' $as_dirs"
45697       as_dir=`$as_dirname -- "$as_dir" ||
45698 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45699          X"$as_dir" : 'X\(//\)[^/]' \| \
45700          X"$as_dir" : 'X\(//\)$' \| \
45701          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45702 echo X"$as_dir" |
45703     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45704             s//\1/
45705             q
45706           }
45707           /^X\(\/\/\)[^/].*/{
45708             s//\1/
45709             q
45710           }
45711           /^X\(\/\/\)$/{
45712             s//\1/
45713             q
45714           }
45715           /^X\(\/\).*/{
45716             s//\1/
45717             q
45718           }
45719           s/.*/./; q'`
45720       test -d "$as_dir" && break
45721     done
45722     test -z "$as_dirs" || eval "mkdir $as_dirs"
45723   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
45724 echo "$as_me: error: cannot create directory $as_dir" >&2;}
45725    { (exit 1); exit 1; }; }; }
45726   ac_builddir=.
45727
45728 case "$ac_dir" in
45729 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
45730 *)
45731   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45732   # A ".." for each directory in $ac_dir_suffix.
45733   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
45734   case $ac_top_builddir_sub in
45735   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
45736   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
45737   esac ;;
45738 esac
45739 ac_abs_top_builddir=$ac_pwd
45740 ac_abs_builddir=$ac_pwd$ac_dir_suffix
45741 # for backward compatibility:
45742 ac_top_builddir=$ac_top_build_prefix
45743
45744 case $srcdir in
45745   .)  # We are building in place.
45746     ac_srcdir=.
45747     ac_top_srcdir=$ac_top_builddir_sub
45748     ac_abs_top_srcdir=$ac_pwd ;;
45749   [\\/]* | ?:[\\/]* )  # Absolute name.
45750     ac_srcdir=$srcdir$ac_dir_suffix;
45751     ac_top_srcdir=$srcdir
45752     ac_abs_top_srcdir=$srcdir ;;
45753   *) # Relative name.
45754     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
45755     ac_top_srcdir=$ac_top_build_prefix$srcdir
45756     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
45757 esac
45758 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
45759
45760
45761   case $ac_mode in
45762   :F)
45763   #
45764   # CONFIG_FILE
45765   #
45766
45767   case $INSTALL in
45768   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45769   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
45770   esac
45771 _ACEOF
45772
45773 cat >>$CONFIG_STATUS <<\_ACEOF
45774 # If the template does not know about datarootdir, expand it.
45775 # FIXME: This hack should be removed a few years after 2.60.
45776 ac_datarootdir_hack=; ac_datarootdir_seen=
45777
45778 case `sed -n '/datarootdir/ {
45779   p
45780   q
45781 }
45782 /@datadir@/p
45783 /@docdir@/p
45784 /@infodir@/p
45785 /@localedir@/p
45786 /@mandir@/p
45787 ' $ac_file_inputs` in
45788 *datarootdir*) ac_datarootdir_seen=yes;;
45789 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
45790   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
45791 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
45792 _ACEOF
45793 cat >>$CONFIG_STATUS <<_ACEOF
45794   ac_datarootdir_hack='
45795   s&@datadir@&$datadir&g
45796   s&@docdir@&$docdir&g
45797   s&@infodir@&$infodir&g
45798   s&@localedir@&$localedir&g
45799   s&@mandir@&$mandir&g
45800     s&\\\${datarootdir}&$datarootdir&g' ;;
45801 esac
45802 _ACEOF
45803
45804 # Neutralize VPATH when `$srcdir' = `.'.
45805 # Shell code in configure.ac might set extrasub.
45806 # FIXME: do we really want to maintain this feature?
45807 cat >>$CONFIG_STATUS <<_ACEOF
45808   sed "$ac_vpsub
45809 $extrasub
45810 _ACEOF
45811 cat >>$CONFIG_STATUS <<\_ACEOF
45812 :t
45813 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45814 s&@configure_input@&$configure_input&;t t
45815 s&@top_builddir@&$ac_top_builddir_sub&;t t
45816 s&@srcdir@&$ac_srcdir&;t t
45817 s&@abs_srcdir@&$ac_abs_srcdir&;t t
45818 s&@top_srcdir@&$ac_top_srcdir&;t t
45819 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
45820 s&@builddir@&$ac_builddir&;t t
45821 s&@abs_builddir@&$ac_abs_builddir&;t t
45822 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
45823 s&@INSTALL@&$ac_INSTALL&;t t
45824 $ac_datarootdir_hack
45825 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
45826
45827 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
45828   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
45829   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
45830   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45831 which seems to be undefined.  Please make sure it is defined." >&5
45832 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45833 which seems to be undefined.  Please make sure it is defined." >&2;}
45834
45835   rm -f "$tmp/stdin"
45836   case $ac_file in
45837   -) cat "$tmp/out"; rm -f "$tmp/out";;
45838   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
45839   esac
45840  ;;
45841   :H)
45842   #
45843   # CONFIG_HEADER
45844   #
45845 _ACEOF
45846
45847 # Transform confdefs.h into a sed script `conftest.defines', that
45848 # substitutes the proper values into config.h.in to produce config.h.
45849 rm -f conftest.defines conftest.tail
45850 # First, append a space to every undef/define line, to ease matching.
45851 echo 's/$/ /' >conftest.defines
45852 # Then, protect against being on the right side of a sed subst, or in
45853 # an unquoted here document, in config.status.  If some macros were
45854 # called several times there might be several #defines for the same
45855 # symbol, which is useless.  But do not sort them, since the last
45856 # AC_DEFINE must be honored.
45857 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
45858 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
45859 # NAME is the cpp macro being defined, VALUE is the value it is being given.
45860 # PARAMS is the parameter list in the macro definition--in most cases, it's
45861 # just an empty string.
45862 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
45863 ac_dB='\\)[      (].*,\\1define\\2'
45864 ac_dC=' '
45865 ac_dD=' ,'
45866
45867 uniq confdefs.h |
45868   sed -n '
45869         t rset
45870         :rset
45871         s/^[     ]*#[    ]*define[       ][      ]*//
45872         t ok
45873         d
45874         :ok
45875         s/[\\&,]/\\&/g
45876         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
45877         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
45878   ' >>conftest.defines
45879
45880 # Remove the space that was appended to ease matching.
45881 # Then replace #undef with comments.  This is necessary, for
45882 # example, in the case of _POSIX_SOURCE, which is predefined and required
45883 # on some systems where configure will not decide to define it.
45884 # (The regexp can be short, since the line contains either #define or #undef.)
45885 echo 's/ $//
45886 s,^[     #]*u.*,/* & */,' >>conftest.defines
45887
45888 # Break up conftest.defines:
45889 ac_max_sed_lines=50
45890
45891 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
45892 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
45893 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
45894 # et cetera.
45895 ac_in='$ac_file_inputs'
45896 ac_out='"$tmp/out1"'
45897 ac_nxt='"$tmp/out2"'
45898
45899 while :
45900 do
45901   # Write a here document:
45902     cat >>$CONFIG_STATUS <<_ACEOF
45903     # First, check the format of the line:
45904     cat >"\$tmp/defines.sed" <<\\CEOF
45905 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
45906 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
45907 b
45908 :def
45909 _ACEOF
45910   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
45911   echo 'CEOF
45912     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
45913   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
45914   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
45915   grep . conftest.tail >/dev/null || break
45916   rm -f conftest.defines
45917   mv conftest.tail conftest.defines
45918 done
45919 rm -f conftest.defines conftest.tail
45920
45921 echo "ac_result=$ac_in" >>$CONFIG_STATUS
45922 cat >>$CONFIG_STATUS <<\_ACEOF
45923   if test x"$ac_file" != x-; then
45924     echo "/* $configure_input  */" >"$tmp/config.h"
45925     cat "$ac_result" >>"$tmp/config.h"
45926     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
45927       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45928 echo "$as_me: $ac_file is unchanged" >&6;}
45929     else
45930       rm -f $ac_file
45931       mv "$tmp/config.h" $ac_file
45932     fi
45933   else
45934     echo "/* $configure_input  */"
45935     cat "$ac_result"
45936   fi
45937   rm -f "$tmp/out12"
45938  ;;
45939
45940   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
45941 echo "$as_me: executing $ac_file commands" >&6;}
45942  ;;
45943   esac
45944
45945
45946   case $ac_file$ac_mode in
45947     "libtool":C)
45948
45949     # See if we are running on zsh, and set the options which allow our
45950     # commands through without removal of \ escapes.
45951     if test -n "${ZSH_VERSION+set}" ; then
45952       setopt NO_GLOB_SUBST
45953     fi
45954
45955     cfgfile="${ofile}T"
45956     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
45957     $RM "$cfgfile"
45958
45959     cat <<_LT_EOF >> "$cfgfile"
45960 #! $SHELL
45961
45962 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
45963 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
45964 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
45965 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
45966 #
45967 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
45968 #                 2006, 2007, 2008 Free Software Foundation, Inc.
45969 #   Written by Gordon Matzigkeit, 1996
45970 #
45971 #   This file is part of GNU Libtool.
45972 #
45973 # GNU Libtool is free software; you can redistribute it and/or
45974 # modify it under the terms of the GNU General Public License as
45975 # published by the Free Software Foundation; either version 2 of
45976 # the License, or (at your option) any later version.
45977 #
45978 # As a special exception to the GNU General Public License,
45979 # if you distribute this file as part of a program or library that
45980 # is built using GNU Libtool, you may include this file under the
45981 # same distribution terms that you use for the rest of that program.
45982 #
45983 # GNU Libtool is distributed in the hope that it will be useful,
45984 # but WITHOUT ANY WARRANTY; without even the implied warranty of
45985 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
45986 # GNU General Public License for more details.
45987 #
45988 # You should have received a copy of the GNU General Public License
45989 # along with GNU Libtool; see the file COPYING.  If not, a copy
45990 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
45991 # obtained by writing to the Free Software Foundation, Inc.,
45992 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
45993
45994
45995 # The names of the tagged configurations supported by this script.
45996 available_tags="CXX "
45997
45998 # ### BEGIN LIBTOOL CONFIG
45999
46000 # Which release of libtool.m4 was used?
46001 macro_version=$macro_version
46002 macro_revision=$macro_revision
46003
46004 # Whether or not to build shared libraries.
46005 build_libtool_libs=$enable_shared
46006
46007 # Whether or not to build static libraries.
46008 build_old_libs=$enable_static
46009
46010 # What type of objects to build.
46011 pic_mode=$pic_mode
46012
46013 # Whether or not to optimize for fast installation.
46014 fast_install=$enable_fast_install
46015
46016 # The host system.
46017 host_alias=$host_alias
46018 host=$host
46019 host_os=$host_os
46020
46021 # The build system.
46022 build_alias=$build_alias
46023 build=$build
46024 build_os=$build_os
46025
46026 # A sed program that does not truncate output.
46027 SED=$lt_SED
46028
46029 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
46030 Xsed="\$SED -e 1s/^X//"
46031
46032 # A grep program that handles long lines.
46033 GREP=$lt_GREP
46034
46035 # An ERE matcher.
46036 EGREP=$lt_EGREP
46037
46038 # A literal string matcher.
46039 FGREP=$lt_FGREP
46040
46041 # A BSD- or MS-compatible name lister.
46042 NM=$lt_NM
46043
46044 # Whether we need soft or hard links.
46045 LN_S=$lt_LN_S
46046
46047 # What is the maximum length of a command?
46048 max_cmd_len=$max_cmd_len
46049
46050 # Object file suffix (normally "o").
46051 objext=$ac_objext
46052
46053 # Executable file suffix (normally "").
46054 exeext=$exeext
46055
46056 # whether the shell understands "unset".
46057 lt_unset=$lt_unset
46058
46059 # turn spaces into newlines.
46060 SP2NL=$lt_lt_SP2NL
46061
46062 # turn newlines into spaces.
46063 NL2SP=$lt_lt_NL2SP
46064
46065 # How to create reloadable object files.
46066 reload_flag=$lt_reload_flag
46067 reload_cmds=$lt_reload_cmds
46068
46069 # An object symbol dumper.
46070 OBJDUMP=$lt_OBJDUMP
46071
46072 # Method to check whether dependent libraries are shared objects.
46073 deplibs_check_method=$lt_deplibs_check_method
46074
46075 # Command to use when deplibs_check_method == "file_magic".
46076 file_magic_cmd=$lt_file_magic_cmd
46077
46078 # The archiver.
46079 AR=$lt_AR
46080 AR_FLAGS=$lt_AR_FLAGS
46081
46082 # A symbol stripping program.
46083 STRIP=$lt_STRIP
46084
46085 # Commands used to install an old-style archive.
46086 RANLIB=$lt_RANLIB
46087 old_postinstall_cmds=$lt_old_postinstall_cmds
46088 old_postuninstall_cmds=$lt_old_postuninstall_cmds
46089
46090 # A C compiler.
46091 LTCC=$lt_CC
46092
46093 # LTCC compiler flags.
46094 LTCFLAGS=$lt_CFLAGS
46095
46096 # Take the output of nm and produce a listing of raw symbols and C names.
46097 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
46098
46099 # Transform the output of nm in a proper C declaration.
46100 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
46101
46102 # Transform the output of nm in a C name address pair.
46103 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
46104
46105 # Transform the output of nm in a C name address pair when lib prefix is needed.
46106 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
46107
46108 # The name of the directory that contains temporary libtool files.
46109 objdir=$objdir
46110
46111 # Shell to use when invoking shell scripts.
46112 SHELL=$lt_SHELL
46113
46114 # An echo program that does not interpret backslashes.
46115 ECHO=$lt_ECHO
46116
46117 # Used to examine libraries when file_magic_cmd begins with "file".
46118 MAGIC_CMD=$MAGIC_CMD
46119
46120 # Must we lock files when doing compilation?
46121 need_locks=$lt_need_locks
46122
46123 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
46124 DSYMUTIL=$lt_DSYMUTIL
46125
46126 # Tool to change global to local symbols on Mac OS X.
46127 NMEDIT=$lt_NMEDIT
46128
46129 # Tool to manipulate fat objects and archives on Mac OS X.
46130 LIPO=$lt_LIPO
46131
46132 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
46133 OTOOL=$lt_OTOOL
46134
46135 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
46136 OTOOL64=$lt_OTOOL64
46137
46138 # Old archive suffix (normally "a").
46139 libext=$libext
46140
46141 # Shared library suffix (normally ".so").
46142 shrext_cmds=$lt_shrext_cmds
46143
46144 # The commands to extract the exported symbol list from a shared archive.
46145 extract_expsyms_cmds=$lt_extract_expsyms_cmds
46146
46147 # Variables whose values should be saved in libtool wrapper scripts and
46148 # restored at link time.
46149 variables_saved_for_relink=$lt_variables_saved_for_relink
46150
46151 # Do we need the "lib" prefix for modules?
46152 need_lib_prefix=$need_lib_prefix
46153
46154 # Do we need a version for libraries?
46155 need_version=$need_version
46156
46157 # Library versioning type.
46158 version_type=$version_type
46159
46160 # Shared library runtime path variable.
46161 runpath_var=$runpath_var
46162
46163 # Shared library path variable.
46164 shlibpath_var=$shlibpath_var
46165
46166 # Is shlibpath searched before the hard-coded library search path?
46167 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
46168
46169 # Format of library name prefix.
46170 libname_spec=$lt_libname_spec
46171
46172 # List of archive names.  First name is the real one, the rest are links.
46173 # The last name is the one that the linker finds with -lNAME
46174 library_names_spec=$lt_library_names_spec
46175
46176 # The coded name of the library, if different from the real name.
46177 soname_spec=$lt_soname_spec
46178
46179 # Command to use after installation of a shared archive.
46180 postinstall_cmds=$lt_postinstall_cmds
46181
46182 # Command to use after uninstallation of a shared archive.
46183 postuninstall_cmds=$lt_postuninstall_cmds
46184
46185 # Commands used to finish a libtool library installation in a directory.
46186 finish_cmds=$lt_finish_cmds
46187
46188 # As "finish_cmds", except a single script fragment to be evaled but
46189 # not shown.
46190 finish_eval=$lt_finish_eval
46191
46192 # Whether we should hardcode library paths into libraries.
46193 hardcode_into_libs=$hardcode_into_libs
46194
46195 # Compile-time system search path for libraries.
46196 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
46197
46198 # Run-time system search path for libraries.
46199 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
46200
46201 # Whether dlopen is supported.
46202 dlopen_support=$enable_dlopen
46203
46204 # Whether dlopen of programs is supported.
46205 dlopen_self=$enable_dlopen_self
46206
46207 # Whether dlopen of statically linked programs is supported.
46208 dlopen_self_static=$enable_dlopen_self_static
46209
46210 # Commands to strip libraries.
46211 old_striplib=$lt_old_striplib
46212 striplib=$lt_striplib
46213
46214
46215 # The linker used to build libraries.
46216 LD=$lt_LD
46217
46218 # Commands used to build an old-style archive.
46219 old_archive_cmds=$lt_old_archive_cmds
46220
46221 # A language specific compiler.
46222 CC=$lt_compiler
46223
46224 # Is the compiler the GNU compiler?
46225 with_gcc=$GCC
46226
46227 # Compiler flag to turn off builtin functions.
46228 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
46229
46230 # How to pass a linker flag through the compiler.
46231 wl=$lt_lt_prog_compiler_wl
46232
46233 # Additional compiler flags for building library objects.
46234 pic_flag=$lt_lt_prog_compiler_pic
46235
46236 # Compiler flag to prevent dynamic linking.
46237 link_static_flag=$lt_lt_prog_compiler_static
46238
46239 # Does compiler simultaneously support -c and -o options?
46240 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
46241
46242 # Whether or not to add -lc for building shared libraries.
46243 build_libtool_need_lc=$archive_cmds_need_lc
46244
46245 # Whether or not to disallow shared libs when runtime libs are static.
46246 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
46247
46248 # Compiler flag to allow reflexive dlopens.
46249 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
46250
46251 # Compiler flag to generate shared objects directly from archives.
46252 whole_archive_flag_spec=$lt_whole_archive_flag_spec
46253
46254 # Whether the compiler copes with passing no objects directly.
46255 compiler_needs_object=$lt_compiler_needs_object
46256
46257 # Create an old-style archive from a shared archive.
46258 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
46259
46260 # Create a temporary old-style archive to link instead of a shared archive.
46261 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
46262
46263 # Commands used to build a shared archive.
46264 archive_cmds=$lt_archive_cmds
46265 archive_expsym_cmds=$lt_archive_expsym_cmds
46266
46267 # Commands used to build a loadable module if different from building
46268 # a shared archive.
46269 module_cmds=$lt_module_cmds
46270 module_expsym_cmds=$lt_module_expsym_cmds
46271
46272 # Whether we are building with GNU ld or not.
46273 with_gnu_ld=$lt_with_gnu_ld
46274
46275 # Flag that allows shared libraries with undefined symbols to be built.
46276 allow_undefined_flag=$lt_allow_undefined_flag
46277
46278 # Flag that enforces no undefined symbols.
46279 no_undefined_flag=$lt_no_undefined_flag
46280
46281 # Flag to hardcode \$libdir into a binary during linking.
46282 # This must work even if \$libdir does not exist
46283 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
46284
46285 # If ld is used when linking, flag to hardcode \$libdir into a binary
46286 # during linking.  This must work even if \$libdir does not exist.
46287 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
46288
46289 # Whether we need a single "-rpath" flag with a separated argument.
46290 hardcode_libdir_separator=$lt_hardcode_libdir_separator
46291
46292 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46293 # DIR into the resulting binary.
46294 hardcode_direct=$hardcode_direct
46295
46296 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46297 # DIR into the resulting binary and the resulting library dependency is
46298 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46299 # library is relocated.
46300 hardcode_direct_absolute=$hardcode_direct_absolute
46301
46302 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46303 # into the resulting binary.
46304 hardcode_minus_L=$hardcode_minus_L
46305
46306 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46307 # into the resulting binary.
46308 hardcode_shlibpath_var=$hardcode_shlibpath_var
46309
46310 # Set to "yes" if building a shared library automatically hardcodes DIR
46311 # into the library and all subsequent libraries and executables linked
46312 # against it.
46313 hardcode_automatic=$hardcode_automatic
46314
46315 # Set to yes if linker adds runtime paths of dependent libraries
46316 # to runtime path list.
46317 inherit_rpath=$inherit_rpath
46318
46319 # Whether libtool must link a program against all its dependency libraries.
46320 link_all_deplibs=$link_all_deplibs
46321
46322 # Fix the shell variable \$srcfile for the compiler.
46323 fix_srcfile_path=$lt_fix_srcfile_path
46324
46325 # Set to "yes" if exported symbols are required.
46326 always_export_symbols=$always_export_symbols
46327
46328 # The commands to list exported symbols.
46329 export_symbols_cmds=$lt_export_symbols_cmds
46330
46331 # Symbols that should not be listed in the preloaded symbols.
46332 exclude_expsyms=$lt_exclude_expsyms
46333
46334 # Symbols that must always be exported.
46335 include_expsyms=$lt_include_expsyms
46336
46337 # Commands necessary for linking programs (against libraries) with templates.
46338 prelink_cmds=$lt_prelink_cmds
46339
46340 # Specify filename containing input files.
46341 file_list_spec=$lt_file_list_spec
46342
46343 # How to hardcode a shared library path into an executable.
46344 hardcode_action=$hardcode_action
46345
46346 # The directories searched by this compiler when creating a shared library.
46347 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
46348
46349 # Dependencies to place before and after the objects being linked to
46350 # create a shared library.
46351 predep_objects=$lt_predep_objects
46352 postdep_objects=$lt_postdep_objects
46353 predeps=$lt_predeps
46354 postdeps=$lt_postdeps
46355
46356 # The library search path used internally by the compiler when linking
46357 # a shared library.
46358 compiler_lib_search_path=$lt_compiler_lib_search_path
46359
46360 # ### END LIBTOOL CONFIG
46361
46362 _LT_EOF
46363
46364   case $host_os in
46365   aix3*)
46366     cat <<\_LT_EOF >> "$cfgfile"
46367 # AIX sometimes has problems with the GCC collect2 program.  For some
46368 # reason, if we set the COLLECT_NAMES environment variable, the problems
46369 # vanish in a puff of smoke.
46370 if test "X${COLLECT_NAMES+set}" != Xset; then
46371   COLLECT_NAMES=
46372   export COLLECT_NAMES
46373 fi
46374 _LT_EOF
46375     ;;
46376   esac
46377
46378
46379 ltmain="$ac_aux_dir/ltmain.sh"
46380
46381
46382   # We use sed instead of cat because bash on DJGPP gets confused if
46383   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
46384   # text mode, it properly converts lines to CR/LF.  This bash problem
46385   # is reportedly fixed, but why not run on old versions too?
46386   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
46387     || (rm -f "$cfgfile"; exit 1)
46388
46389   case $xsi_shell in
46390   yes)
46391     cat << \_LT_EOF >> "$cfgfile"
46392
46393 # func_dirname file append nondir_replacement
46394 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
46395 # otherwise set result to NONDIR_REPLACEMENT.
46396 func_dirname ()
46397 {
46398   case ${1} in
46399     */*) func_dirname_result="${1%/*}${2}" ;;
46400     *  ) func_dirname_result="${3}" ;;
46401   esac
46402 }
46403
46404 # func_basename file
46405 func_basename ()
46406 {
46407   func_basename_result="${1##*/}"
46408 }
46409
46410 # func_dirname_and_basename file append nondir_replacement
46411 # perform func_basename and func_dirname in a single function
46412 # call:
46413 #   dirname:  Compute the dirname of FILE.  If nonempty,
46414 #             add APPEND to the result, otherwise set result
46415 #             to NONDIR_REPLACEMENT.
46416 #             value returned in "$func_dirname_result"
46417 #   basename: Compute filename of FILE.
46418 #             value retuned in "$func_basename_result"
46419 # Implementation must be kept synchronized with func_dirname
46420 # and func_basename. For efficiency, we do not delegate to
46421 # those functions but instead duplicate the functionality here.
46422 func_dirname_and_basename ()
46423 {
46424   case ${1} in
46425     */*) func_dirname_result="${1%/*}${2}" ;;
46426     *  ) func_dirname_result="${3}" ;;
46427   esac
46428   func_basename_result="${1##*/}"
46429 }
46430
46431 # func_stripname prefix suffix name
46432 # strip PREFIX and SUFFIX off of NAME.
46433 # PREFIX and SUFFIX must not contain globbing or regex special
46434 # characters, hashes, percent signs, but SUFFIX may contain a leading
46435 # dot (in which case that matches only a dot).
46436 func_stripname ()
46437 {
46438   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
46439   # positional parameters, so assign one to ordinary parameter first.
46440   func_stripname_result=${3}
46441   func_stripname_result=${func_stripname_result#"${1}"}
46442   func_stripname_result=${func_stripname_result%"${2}"}
46443 }
46444
46445 # func_opt_split
46446 func_opt_split ()
46447 {
46448   func_opt_split_opt=${1%%=*}
46449   func_opt_split_arg=${1#*=}
46450 }
46451
46452 # func_lo2o object
46453 func_lo2o ()
46454 {
46455   case ${1} in
46456     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
46457     *)    func_lo2o_result=${1} ;;
46458   esac
46459 }
46460
46461 # func_xform libobj-or-source
46462 func_xform ()
46463 {
46464   func_xform_result=${1%.*}.lo
46465 }
46466
46467 # func_arith arithmetic-term...
46468 func_arith ()
46469 {
46470   func_arith_result=$(( $* ))
46471 }
46472
46473 # func_len string
46474 # STRING may not start with a hyphen.
46475 func_len ()
46476 {
46477   func_len_result=${#1}
46478 }
46479
46480 _LT_EOF
46481     ;;
46482   *) # Bourne compatible functions.
46483     cat << \_LT_EOF >> "$cfgfile"
46484
46485 # func_dirname file append nondir_replacement
46486 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
46487 # otherwise set result to NONDIR_REPLACEMENT.
46488 func_dirname ()
46489 {
46490   # Extract subdirectory from the argument.
46491   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
46492   if test "X$func_dirname_result" = "X${1}"; then
46493     func_dirname_result="${3}"
46494   else
46495     func_dirname_result="$func_dirname_result${2}"
46496   fi
46497 }
46498
46499 # func_basename file
46500 func_basename ()
46501 {
46502   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
46503 }
46504
46505
46506 # func_stripname prefix suffix name
46507 # strip PREFIX and SUFFIX off of NAME.
46508 # PREFIX and SUFFIX must not contain globbing or regex special
46509 # characters, hashes, percent signs, but SUFFIX may contain a leading
46510 # dot (in which case that matches only a dot).
46511 # func_strip_suffix prefix name
46512 func_stripname ()
46513 {
46514   case ${2} in
46515     .*) func_stripname_result=`$ECHO "X${3}" \
46516            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
46517     *)  func_stripname_result=`$ECHO "X${3}" \
46518            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
46519   esac
46520 }
46521
46522 # sed scripts:
46523 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
46524 my_sed_long_arg='1s/^-[^=]*=//'
46525
46526 # func_opt_split
46527 func_opt_split ()
46528 {
46529   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
46530   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
46531 }
46532
46533 # func_lo2o object
46534 func_lo2o ()
46535 {
46536   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
46537 }
46538
46539 # func_xform libobj-or-source
46540 func_xform ()
46541 {
46542   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
46543 }
46544
46545 # func_arith arithmetic-term...
46546 func_arith ()
46547 {
46548   func_arith_result=`expr "$@"`
46549 }
46550
46551 # func_len string
46552 # STRING may not start with a hyphen.
46553 func_len ()
46554 {
46555   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
46556 }
46557
46558 _LT_EOF
46559 esac
46560
46561 case $lt_shell_append in
46562   yes)
46563     cat << \_LT_EOF >> "$cfgfile"
46564
46565 # func_append var value
46566 # Append VALUE to the end of shell variable VAR.
46567 func_append ()
46568 {
46569   eval "$1+=\$2"
46570 }
46571 _LT_EOF
46572     ;;
46573   *)
46574     cat << \_LT_EOF >> "$cfgfile"
46575
46576 # func_append var value
46577 # Append VALUE to the end of shell variable VAR.
46578 func_append ()
46579 {
46580   eval "$1=\$$1\$2"
46581 }
46582
46583 _LT_EOF
46584     ;;
46585   esac
46586
46587
46588   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
46589     || (rm -f "$cfgfile"; exit 1)
46590
46591   mv -f "$cfgfile" "$ofile" ||
46592     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
46593   chmod +x "$ofile"
46594
46595
46596     cat <<_LT_EOF >> "$ofile"
46597
46598 # ### BEGIN LIBTOOL TAG CONFIG: CXX
46599
46600 # The linker used to build libraries.
46601 LD=$lt_LD_CXX
46602
46603 # Commands used to build an old-style archive.
46604 old_archive_cmds=$lt_old_archive_cmds_CXX
46605
46606 # A language specific compiler.
46607 CC=$lt_compiler_CXX
46608
46609 # Is the compiler the GNU compiler?
46610 with_gcc=$GCC_CXX
46611
46612 # Compiler flag to turn off builtin functions.
46613 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
46614
46615 # How to pass a linker flag through the compiler.
46616 wl=$lt_lt_prog_compiler_wl_CXX
46617
46618 # Additional compiler flags for building library objects.
46619 pic_flag=$lt_lt_prog_compiler_pic_CXX
46620
46621 # Compiler flag to prevent dynamic linking.
46622 link_static_flag=$lt_lt_prog_compiler_static_CXX
46623
46624 # Does compiler simultaneously support -c and -o options?
46625 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
46626
46627 # Whether or not to add -lc for building shared libraries.
46628 build_libtool_need_lc=$archive_cmds_need_lc_CXX
46629
46630 # Whether or not to disallow shared libs when runtime libs are static.
46631 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
46632
46633 # Compiler flag to allow reflexive dlopens.
46634 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
46635
46636 # Compiler flag to generate shared objects directly from archives.
46637 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
46638
46639 # Whether the compiler copes with passing no objects directly.
46640 compiler_needs_object=$lt_compiler_needs_object_CXX
46641
46642 # Create an old-style archive from a shared archive.
46643 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
46644
46645 # Create a temporary old-style archive to link instead of a shared archive.
46646 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
46647
46648 # Commands used to build a shared archive.
46649 archive_cmds=$lt_archive_cmds_CXX
46650 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
46651
46652 # Commands used to build a loadable module if different from building
46653 # a shared archive.
46654 module_cmds=$lt_module_cmds_CXX
46655 module_expsym_cmds=$lt_module_expsym_cmds_CXX
46656
46657 # Whether we are building with GNU ld or not.
46658 with_gnu_ld=$lt_with_gnu_ld_CXX
46659
46660 # Flag that allows shared libraries with undefined symbols to be built.
46661 allow_undefined_flag=$lt_allow_undefined_flag_CXX
46662
46663 # Flag that enforces no undefined symbols.
46664 no_undefined_flag=$lt_no_undefined_flag_CXX
46665
46666 # Flag to hardcode \$libdir into a binary during linking.
46667 # This must work even if \$libdir does not exist
46668 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
46669
46670 # If ld is used when linking, flag to hardcode \$libdir into a binary
46671 # during linking.  This must work even if \$libdir does not exist.
46672 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
46673
46674 # Whether we need a single "-rpath" flag with a separated argument.
46675 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
46676
46677 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46678 # DIR into the resulting binary.
46679 hardcode_direct=$hardcode_direct_CXX
46680
46681 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46682 # DIR into the resulting binary and the resulting library dependency is
46683 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46684 # library is relocated.
46685 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
46686
46687 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46688 # into the resulting binary.
46689 hardcode_minus_L=$hardcode_minus_L_CXX
46690
46691 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46692 # into the resulting binary.
46693 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
46694
46695 # Set to "yes" if building a shared library automatically hardcodes DIR
46696 # into the library and all subsequent libraries and executables linked
46697 # against it.
46698 hardcode_automatic=$hardcode_automatic_CXX
46699
46700 # Set to yes if linker adds runtime paths of dependent libraries
46701 # to runtime path list.
46702 inherit_rpath=$inherit_rpath_CXX
46703
46704 # Whether libtool must link a program against all its dependency libraries.
46705 link_all_deplibs=$link_all_deplibs_CXX
46706
46707 # Fix the shell variable \$srcfile for the compiler.
46708 fix_srcfile_path=$lt_fix_srcfile_path_CXX
46709
46710 # Set to "yes" if exported symbols are required.
46711 always_export_symbols=$always_export_symbols_CXX
46712
46713 # The commands to list exported symbols.
46714 export_symbols_cmds=$lt_export_symbols_cmds_CXX
46715
46716 # Symbols that should not be listed in the preloaded symbols.
46717 exclude_expsyms=$lt_exclude_expsyms_CXX
46718
46719 # Symbols that must always be exported.
46720 include_expsyms=$lt_include_expsyms_CXX
46721
46722 # Commands necessary for linking programs (against libraries) with templates.
46723 prelink_cmds=$lt_prelink_cmds_CXX
46724
46725 # Specify filename containing input files.
46726 file_list_spec=$lt_file_list_spec_CXX
46727
46728 # How to hardcode a shared library path into an executable.
46729 hardcode_action=$hardcode_action_CXX
46730
46731 # The directories searched by this compiler when creating a shared library.
46732 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
46733
46734 # Dependencies to place before and after the objects being linked to
46735 # create a shared library.
46736 predep_objects=$lt_predep_objects_CXX
46737 postdep_objects=$lt_postdep_objects_CXX
46738 predeps=$lt_predeps_CXX
46739 postdeps=$lt_postdeps_CXX
46740
46741 # The library search path used internally by the compiler when linking
46742 # a shared library.
46743 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
46744
46745 # ### END LIBTOOL TAG CONFIG: CXX
46746 _LT_EOF
46747
46748  ;;
46749     "default-1":C)
46750     for ac_file in $CONFIG_FILES; do
46751       # Support "outfile[:infile[:infile...]]"
46752       case "$ac_file" in
46753         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
46754       esac
46755       # PO directories have a Makefile.in generated from Makefile.in.in.
46756       case "$ac_file" in */Makefile.in)
46757         # Adjust a relative srcdir.
46758         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
46759         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
46760         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
46761         # In autoconf-2.13 it is called $ac_given_srcdir.
46762         # In autoconf-2.50 it is called $srcdir.
46763         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
46764         case "$ac_given_srcdir" in
46765           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
46766           /*) top_srcdir="$ac_given_srcdir" ;;
46767           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
46768         esac
46769         # Treat a directory as a PO directory if and only if it has a
46770         # POTFILES.in file. This allows packages to have multiple PO
46771         # directories under different names or in different locations.
46772         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
46773           rm -f "$ac_dir/POTFILES"
46774           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
46775           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
46776           POMAKEFILEDEPS="POTFILES.in"
46777           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
46778           # on $ac_dir but don't depend on user-specified configuration
46779           # parameters.
46780           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
46781             # The LINGUAS file contains the set of available languages.
46782             if test -n "$OBSOLETE_ALL_LINGUAS"; then
46783               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
46784             fi
46785             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
46786             # Hide the ALL_LINGUAS assigment from automake.
46787             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
46788             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
46789           else
46790             # The set of available languages was given in configure.in.
46791             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
46792           fi
46793           # Compute POFILES
46794           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
46795           # Compute UPDATEPOFILES
46796           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
46797           # Compute DUMMYPOFILES
46798           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
46799           # Compute GMOFILES
46800           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
46801           case "$ac_given_srcdir" in
46802             .) srcdirpre= ;;
46803             *) srcdirpre='$(srcdir)/' ;;
46804           esac
46805           POFILES=
46806           UPDATEPOFILES=
46807           DUMMYPOFILES=
46808           GMOFILES=
46809           for lang in $ALL_LINGUAS; do
46810             POFILES="$POFILES $srcdirpre$lang.po"
46811             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
46812             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
46813             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
46814           done
46815           # CATALOGS depends on both $ac_dir and the user's LINGUAS
46816           # environment variable.
46817           INST_LINGUAS=
46818           if test -n "$ALL_LINGUAS"; then
46819             for presentlang in $ALL_LINGUAS; do
46820               useit=no
46821               if test "%UNSET%" != "$LINGUAS"; then
46822                 desiredlanguages="$LINGUAS"
46823               else
46824                 desiredlanguages="$ALL_LINGUAS"
46825               fi
46826               for desiredlang in $desiredlanguages; do
46827                 # Use the presentlang catalog if desiredlang is
46828                 #   a. equal to presentlang, or
46829                 #   b. a variant of presentlang (because in this case,
46830                 #      presentlang can be used as a fallback for messages
46831                 #      which are not translated in the desiredlang catalog).
46832                 case "$desiredlang" in
46833                   "$presentlang"*) useit=yes;;
46834                 esac
46835               done
46836               if test $useit = yes; then
46837                 INST_LINGUAS="$INST_LINGUAS $presentlang"
46838               fi
46839             done
46840           fi
46841           CATALOGS=
46842           if test -n "$INST_LINGUAS"; then
46843             for lang in $INST_LINGUAS; do
46844               CATALOGS="$CATALOGS $lang.gmo"
46845             done
46846           fi
46847           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
46848           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"
46849           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
46850             if test -f "$f"; then
46851               case "$f" in
46852                 *.orig | *.bak | *~) ;;
46853                 *) cat "$f" >> "$ac_dir/Makefile" ;;
46854               esac
46855             fi
46856           done
46857         fi
46858         ;;
46859       esac
46860     done ;;
46861     "default":C)
46862  ;;
46863
46864   esac
46865 done # for ac_tag
46866
46867
46868 { (exit 0); exit 0; }
46869 _ACEOF
46870 chmod +x $CONFIG_STATUS
46871 ac_clean_files=$ac_clean_files_save
46872
46873
46874 # configure is writing to config.log, and then calls config.status.
46875 # config.status does its own redirection, appending to config.log.
46876 # Unfortunately, on DOS this fails, as config.log is still kept open
46877 # by configure, so config.status won't be able to write to it; its
46878 # output is simply discarded.  So we exec the FD to /dev/null,
46879 # effectively closing config.log, so it can be properly (re)opened and
46880 # appended to by config.status.  When coming back to configure, we
46881 # need to make the FD available again.
46882 if test "$no_create" != yes; then
46883   ac_cs_success=:
46884   ac_config_status_args=
46885   test "$silent" = yes &&
46886     ac_config_status_args="$ac_config_status_args --quiet"
46887   exec 5>/dev/null
46888   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46889   exec 5>>config.log
46890   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46891   # would make configure fail if this is the last instruction.
46892   $ac_cs_success || { (exit 1); exit 1; }
46893 fi
46894
46895
46896 if test "${support_bat}" = "yes" ; then
46897    if test "x$QMAKE" = "xnone"; then
46898       { { echo "$as_me:$LINENO: error: Could not find qmake $PATH. Check your Qt installation" >&5
46899 echo "$as_me: error: Could not find qmake $PATH. Check your Qt installation" >&2;}
46900    { (exit 1); exit 1; }; }
46901    fi
46902
46903    QMAKEBIN="qmake"
46904    cd src/qt-console
46905    echo "Creating bat Makefile"
46906    touch bat
46907    chmod 755 bat
46908    rm -f Makefile
46909    $QMAKEBIN
46910    ${MAKE:-make} clean
46911    cd ${BUILD_DIR}
46912 fi
46913
46914 if test X"$GCC" = "Xyes" ; then
46915   echo "Doing make of dependencies"
46916   ${MAKE:-make} depend
46917 fi
46918
46919 cd src/qt-console
46920 chmod 755 install_conf_file build-depkgs-qt-console
46921 cd ${BUILD_DIR}
46922
46923 cd scripts
46924 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
46925 chmod 755 dvd-handler dvd-simulator
46926 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
46927 cd ..
46928
46929 c=updatedb
46930 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
46931 chmod 755 $c/update_postgresql_tables_10_to_11
46932
46933 c=src/cats
46934
46935 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
46936 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
46937
46938 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
46939 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
46940
46941 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
46942 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
46943
46944 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
46945 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
46946
46947 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
46948 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
46949
46950 chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
46951 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
46952
46953
46954 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
46955 chmod 755 $c/sqlite
46956 chmod 755 $c/mysql
46957
46958 chmod 755 src/win32/build-depkgs-mingw32
46959
46960 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
46961    largefile_support="yes"
46962 fi
46963
46964 if test X"$GCC" = "Xyes" ; then
46965                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
46966    if test "x${CCVERSION}" = "x" ; then
46967       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
46968    fi
46969    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
46970    if test x"${CXXVERSION}" = x ; then
46971       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
46972    fi
46973 fi
46974
46975 # clean up any old junk
46976 echo " "
46977 echo "Cleaning up"
46978 echo " "
46979 ${MAKE:-make} clean
46980
46981 if test "x${db_type}" = "xInternal" ; then
46982    echo " "
46983    echo " "
46984    echo "You have not specified either --enable-client-only or one of the"
46985    echo "  supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
46986    echo "  This is not permitted. Please reconfigure."
46987    echo " "
46988    echo "Aborting the configuration ..."
46989    echo " "
46990    echo " "
46991    exit 1
46992 fi
46993
46994 echo "
46995 Configuration on `date`:
46996
46997    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
46998    Bacula version:          ${BACULA} ${VERSION} (${DATE})
46999    Source code location:    ${srcdir}
47000    Install binaries:        ${sbindir}
47001    Install libraries:       ${libdir}
47002    Install config files:    ${sysconfdir}
47003    Scripts directory:       ${scriptdir}
47004    Archive directory:       ${archivedir}
47005    Working directory:       ${working_dir}
47006    PID directory:           ${piddir}
47007    Subsys directory:        ${subsysdir}
47008    Man directory:           ${mandir}
47009    Data directory:          ${datarootdir}
47010    Plugin directory:        ${plugindir}
47011    C Compiler:              ${CC} ${CCVERSION}
47012    C++ Compiler:            ${CXX} ${CXXVERSION}
47013    Compiler flags:          ${WCFLAGS} ${CFLAGS}
47014    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
47015    Libraries:               ${LIBS}
47016    Statically Linked Tools: ${support_static_tools}
47017    Statically Linked FD:    ${support_static_fd}
47018    Statically Linked SD:    ${support_static_sd}
47019    Statically Linked DIR:   ${support_static_dir}
47020    Statically Linked CONS:  ${support_static_cons}
47021    Database type:           ${db_type}
47022    Database port:           ${db_port}
47023    Database lib:            ${DB_LIBS}
47024    Database name:           ${db_name}
47025    Database user:           ${db_user}
47026
47027    Job Output Email:        ${job_email}
47028    Traceback Email:         ${dump_email}
47029    SMTP Host Address:       ${smtp_host}
47030
47031    Director Port:           ${dir_port}
47032    File daemon Port:        ${fd_port}
47033    Storage daemon Port:     ${sd_port}
47034
47035    Director User:           ${dir_user}
47036    Director Group:          ${dir_group}
47037    Storage Daemon User:     ${sd_user}
47038    Storage DaemonGroup:     ${sd_group}
47039    File Daemon User:        ${fd_user}
47040    File Daemon Group:       ${fd_group}
47041
47042    SQL binaries Directory   ${SQL_BINDIR}
47043
47044    Large file support:      $largefile_support
47045    Bacula conio support:    ${got_conio} ${CONS_LIBS}
47046    readline support:        ${got_readline} ${PRTREADLINE_SRC}
47047    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
47048    TLS support:             ${support_tls}
47049    Encryption support:      ${support_crypto}
47050    ZLIB support:            ${have_zlib}
47051    enable-smartalloc:       ${support_smartalloc}
47052    enable-lockmgr:          ${support_lockmgr}
47053    bat support:             ${support_bat}
47054    enable-gnome:            ${support_gnome} ${gnome_version}
47055    enable-bwx-console:      ${support_wx_console} ${wx_version}
47056    enable-tray-monitor:     ${support_tray_monitor}
47057    client-only:             ${build_client_only}
47058    build-dird:              ${build_dird}
47059    build-stored:            ${build_stored}
47060    Plugin support:          ${have_plugins}
47061    ACL support:             ${have_acl}
47062    XATTR support:           ${have_xattr}
47063    Python support:          ${support_python} ${PYTHON_LIBS}
47064    Batch insert enabled:    ${support_batch_insert}
47065
47066   " > config.out
47067
47068 # create a small shell script useful for support with
47069 # configure options and config.out info
47070 cat > scripts/bacula_config << EOF
47071 #!/bin/sh
47072 cat << __EOC__
47073 $ $0 $ac_configure_args
47074 EOF
47075 cat config.out >> scripts/bacula_config
47076 echo __EOC__ >> scripts/bacula_config
47077 chmod 755 scripts/bacula_config
47078
47079 cat config.out
47080
47081 # Display a warning message if postgresql client lib is <= 8.1
47082 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
47083         -a x$support_batch_insert = xyes
47084 then
47085         echo "WARNING: Your PostgreSQL client library is too old to detect "
47086         echo " if it was compiled with --enable-thread-safety, consider to"
47087         echo " upgrade it in order to avoid problems with Batch insert mode"
47088         echo
47089 fi